hw/ufs: Add Write Booster Support on UFS
Get series with b4
b4 am [email protected] change-id 20260402-write_booster-3b05503a7a13Versions newest first
- v7 Latest5 patches 1 replyIn review
- v65 patches 0 repliesSuperseded
- v55 patches 1 replySuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v4 | 5 patches | 0 replies | Superseded | |
| v3 | 5 patches | 2 replies | Superseded | |
| v2 | 5 patches | 2 replies | Superseded inferred link | |
| v1 | 5 patches | 2 replies | Superseded |
Changes in v7 from the cover letter
- Added range check for dPinnedWriteBoosterBufferNumAllocUnits
- Added range check for dNonPinnedWriteBoosterBufferMinNumAllocUnits
- Added exception event status operation
- Fixed minimum buffer size set in WB initialization
- Fixed resize operation
- Fixed Pinned WB buffer consumption
- Fixed user_space_reduction related value
- Fixed buffer size sync timing
- Fixed flush operation
- Removed unused DEFINE_PROP varialbles
Patches in v7 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | hw/ufs: Apply UFS 4.1 Specificationhw/ include/ | +122 | 0 replies | |
| 2/5 | hw/ufs: Modify flag handling operationhw/ | +119 | 0 replies | |
| 3/5 | hw/ufs: Add idle operationhw/ hw/ | +73 | 0 replies | |
| 4/5 | hw/ufs: Add UFS Write Booster Supporthw/ hw/ hw/ +1 more | +632 | 0 replies | |
| 5/5 | tests/qtest: Add UFS Write Booster QTesttests/ | +172 | 0 replies |
Reviews trailers per patch
None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Jeuk Kim |
|---|---|
| Series | R-b |
| 1/5 | |
| 2/5 | |
| 3/5 | |
| 4/5 | |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v7 0/5] hw/ufs: Add Write Booster Support on UFS
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
---
Changes in v7:
- Added range check for dPinnedWriteBoosterBufferNumAllocUnits
- Added range check for dNonPinnedWriteBoosterBufferMinNumAllocUnits
- Added exception event status operation
- Fixed minimum buffer size set in WB initialization
- Fixed resize operation
- Fixed Pinned WB buffer consumption
- Fixed user_space_reduction related value
- Fixed buffer size sync timing
- Fixed flush operation
- Removed unused DEFINE_PROP varialbles
Changes in v6:
- Fix Pinned Total Written Size Calculation(2).
- Added range check for dMaxFIFOSizeForWriteBoosterPartialFlushMode
- Fix flush status check
Changes in v5:
- Fix Pinned Total Written Size Calculation.
- Fix WB related status reset timing
- Link to v4: https://lore.kernel.org/qemu-devel/[email protected]
Changes in v4:
- Fixed MCQ idle check: skip unallocated qid
- Removed unused arguments from WB accounting functions
- Added SCSI command status guard for WB accounting at completion
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/[email protected]
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
---
---
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 | 102 ++++++- hw/ufs/ufs.c | 714 ++++++++++++++++++++++++++++++++++++++++++++++--- hw/ufs/ufs.h | 49 ++++ include/block/ufs.h | 114 +++++++- tests/qtest/ufs-test.c | 172 ++++++++++++ 5 files changed, 1105 insertions(+), 46 deletions(-)
---
base-commit: 5e61afe211e82a9af15a8794a0bd29bb574e953b
change-id: 20260407-write_booster-889a06cadc59
Best regards,
Signature · 1 line
Jaemyung Lee <[email protected]>