Skip to content

hw/ufs: Add Universal Flash Storage (UFS) support

Jeuk Kim qemu-devel 7 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v10 Latest4 patches 1 replyApplied
  2. v94 patches 4 repliesApplied
  3. v84 patches 2 repliesApplied
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v74 patches5 repliesSuperseded
v63 patches2 repliesSuperseded
v53 patches2 repliesSuperseded
v43 patches6 repliesSuperseded

Changes in v10 from the cover letter

- Added the "UFS_" prefix to all define and enum defined in block/ufs.h. This fixes
https://gitlab.com/qemu-project/qemu/-/jobs/4977255992
which is a win32 build error.

- Fixed not to use pointer type casting (uint32_t * -> unsigned long *). It causes the bug in the find_first_bit() function on big endian host pc. This fixes
https://gitlab.com/qemu-project/qemu/-/jobs/4977256030
which is qos-test failure on s390x hosts.

Patches in v10 Applied

#Subject and filesSizeRepliesApplied
1/4hw/ufs: Initial commit for emulated Universal-Flash-StorageMAINTAINERS docs/specs/pci-ids.rst hw/Kconfig +11 more+1461 -00 replies
2/4hw/ufs: Support for Query Transfer Requestshw/ufs/trace-events hw/ufs/ufs.c hw/ufs/ufs.h+1033 -20 replies
3/4hw/ufs: Support for UFS logical unithw/ufs/lu.c hw/ufs/meson.build hw/ufs/trace-events +3 more+1761 -70 replies
4/4tests/qtest: Introduce tests for UFSMAINTAINERS tests/qtest/meson.build tests/qtest/ufs-test.c+589 -00 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchStefan HajnocziThomas Huth
1/4R-b
2/4R-b
3/4R-b
4/4R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v10 thread

Cover letter [PATCH v10 0/4] hw/ufs: Add Universal Flash Storage (UFS) support

Since v9:
- Added the "UFS_" prefix to all define and enum defined in block/ufs.h. This fixes
https://gitlab.com/qemu-project/qemu/-/jobs/4977255992
which is a win32 build error.

- Fixed not to use pointer type casting (uint32_t * -> unsigned long *). It causes the bug in the find_first_bit() function on big endian host pc. This fixes
https://gitlab.com/qemu-project/qemu/-/jobs/4977256030
which is qos-test failure on s390x hosts.

Please let me know if there are any problems.
Thank you very much!

Jeuk

Jeuk Kim (4):
hw/ufs: Initial commit for emulated Universal-Flash-Storage hw/ufs: Support for Query Transfer Requests hw/ufs: Support for UFS logical unit
tests/qtest: Introduce tests for UFS

 MAINTAINERS              |    7 +
 docs/specs/pci-ids.rst   |    2 +
 hw/Kconfig               |    1 +
 hw/meson.build           |    1 +
 hw/ufs/Kconfig           |    4 +
 hw/ufs/lu.c              | 1445 ++++++++++++++++++++++++++++++++++++
 hw/ufs/meson.build       |    1 +
 hw/ufs/trace-events      |   58 ++
 hw/ufs/trace.h           |    1 +
 hw/ufs/ufs.c             | 1502 ++++++++++++++++++++++++++++++++++++++
 hw/ufs/ufs.h             |  131 ++++
 include/block/ufs.h      | 1090 +++++++++++++++++++++++++++
 include/hw/pci/pci.h     |    1 +
 include/hw/pci/pci_ids.h |    1 +
 include/scsi/constants.h |    1 +
 meson.build              |    1 +
 tests/qtest/meson.build  |    1 +
 tests/qtest/ufs-test.c   |  587 +++++++++++++++
 18 files changed, 4835 insertions(+)
 create mode 100644 hw/ufs/Kconfig
 create mode 100644 hw/ufs/lu.c
 create mode 100644 hw/ufs/meson.build
 create mode 100644 hw/ufs/trace-events
 create mode 100644 hw/ufs/trace.h
 create mode 100644 hw/ufs/ufs.c
 create mode 100644 hw/ufs/ufs.h
 create mode 100644 include/block/ufs.h
 create mode 100644 tests/qtest/ufs-test.c
Signature · 1 line
2.34.1