[PATCH v3 0/5] hw/ufs: Add Write Booster Support on UFS

Jaemyung Lee posted 5 patches 2 days, 9 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260409-write._5Fbooster-v3-0-dd2f1c0119c8@samsung.com
Maintainers: Jeuk Kim <jeuk20.kim@samsung.com>, Kevin Wolf <kwolf@redhat.com>, Hanna Reitz <hreitz@redhat.com>, Fabiano Rosas <farosas@suse.de>, Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>
There is a newer version of this series
hw/ufs/lu.c            |  94 ++++++++
hw/ufs/ufs.c           | 597 +++++++++++++++++++++++++++++++++++++++++++++----
hw/ufs/ufs.h           |  49 ++++
include/block/ufs.h    | 110 ++++++++-
tests/qtest/ufs-test.c | 176 +++++++++++++++
5 files changed, 982 insertions(+), 44 deletions(-)
[PATCH v3 0/5] hw/ufs: Add Write Booster Support on UFS
Posted by Jaemyung Lee 2 days, 9 hours ago
Currently, the QEMU-UFS emulation is implemented based on the JEDEC UFS
4.0 Specification and does not support the operation related to UFS Extended
Features which is defined with latest UFS Specifications.

This series modifies the UFS core implementation to align with the JEDEC
UFS 4.1 Specification[1], and adds a Write Booster UFS Extended Feature
supportability.

Tested: x86-64 KVM, upstream QEMU with Debian GNU/Linux 10

[1]
https://jedec.org/standards-documents/focus/flash/universal-flash-storage-ufs

Signed-off-by: Jaemyung Lee <jaemyung.lee@samsung.com>
---
Changes in v2:
- Fixed MCQ idle check
- Added WRITE_6/WRITE_16 handling
- Fixed WB buffer consume timing
- Added constraint check
- Fixed uint64_t casting for unit calculation
---
Changes in v3:
- Fixed constraint check return value
- Fixed WB buffer consume amount with transfered_len
- Fixed MCQ idle check:
 - Added NULL exception check
 - Added CQ pending request check
---
- Link to v2: https://lore.kernel.org/qemu-devel/20260407-write_booster-v2-0-dd772bb30194@samsung.com

---
Jaemyung Lee (5):
      hw/ufs: Apply UFS 4.1 Specification
      hw/ufs: Modify flag handling operation
      hw/ufs: Add idle operation
      hw/ufs: Add UFS Write Booster Support
      tests/qtest: Add UFS Write Booster QTest

 hw/ufs/lu.c            |  94 ++++++++
 hw/ufs/ufs.c           | 597 +++++++++++++++++++++++++++++++++++++++++++++----
 hw/ufs/ufs.h           |  49 ++++
 include/block/ufs.h    | 110 ++++++++-
 tests/qtest/ufs-test.c | 176 +++++++++++++++
 5 files changed, 982 insertions(+), 44 deletions(-)
---
base-commit: b6a7d06213e5d2f7d124d16418bc289c4a8a4b82
change-id: 20260407-write_booster-889a06cadc59

Best regards,
-- 
Jaemyung Lee <jaemyung.lee@samsung.com>