hw/ufs: Add fault injection, update TMR doc, and add qtests
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest8 patches 1 replyIn review
- v28 patches 6 repliesSuperseded
- v18 patches 2 repliesSuperseded
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | hw/ufs: Add experimental fault injection properties for holding requestshw/ hw/ hw/ +2 more | +241 | 0 replies | |
| 2/8 | hw/ufs: Handle task management requests for fault-injected held requestshw/ | +80 | 0 replies | |
| 3/8 | hw/ufs: Add ssu-timeout mode for power management recovery testinghw/ hw/ | +21 | 0 replies | |
| 4/8 | docs/system/ufs: Update task management request support statusdocs/ | +4 | 0 replies | |
| 5/8 | tests/qtest/ufs-test: Add TMR and async MCQ SCSI submission helperstests/ | +53 | 0 replies | |
| 6/8 | tests/qtest/ufs-test: Add HCE reset unit testtests/ | +79 | 0 replies | |
| 7/8 | tests/qtest/ufs-test: Add MCQ runtime register and TMR handling testtests/ | +160 | 0 replies | |
| 8/8 | tests/qtest/ufs-test: Add QOM fault injection task abort testtests/ | +680 | 0 replies |
Reviews trailers per patch
None of the 8 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/8 | |
| 2/8 | |
| 3/8 | |
| 4/8 | |
| 5/8 | |
| 6/8 | |
| 7/8 | |
| 8/8 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v3 0/8] hw/ufs: Add fault injection, update TMR doc, and add qtests
This series adds experimental fault injection to the UFS device model so host drivers can exercise task abort and power management recovery, updates the task management description in the UFS docs, and adds qtest cases for controller reset, MCQ runtime registers, task management and fault-injected task abort.
The series applies on top of Daejun Park's Zoned UFS v3 series.
- Patches 1-2: x-fault-inject-tag and x-fault-inject-mode properties to hold a transfer request, and task management handling for the held request.
- Patch 3: ssu-timeout mode for power management recovery testing.
- Patch 4: document the supported task management functions (QUERY TASK and ABORT TASK).
- Patches 5-8: qtest helpers and test cases.
The fault injection properties are experimental (x- prefix) and off by default.
Differences from v2:
- On QUERY TASK in in-transition mode, execute the held request through the normal path and return real task status instead of completing with synthetic success.
- Map x-fault-inject-mode to an enum property with QEnumLookup validation and reject values greater than 255 in x-fault-inject-tag.
- Match 16-byte SCSI read and write commands in fault injection and update trace events to 64-bit LBA.
- Verify reset queue tail pointers in HCE reset and add doorbell fault injection test coverage for legacy UFS mode.
v2: https://lore.kernel.org/qemu-devel/[email protected]/
v1: https://lore.kernel.org/qemu-devel/[email protected]/
Tested with qos-test on aarch64 (all 29 UFS test cases pass, including 10 zoned UFS cases).
Based-on: <20261020001647epcms2p52cd58173164a43e252c33a3eb5935dc8@epcms2p5>
Stanley Jhu (8):
hw/ufs: Add experimental fault injection properties for holding
requests
hw/ufs: Handle task management requests for fault-injected held
requests
hw/ufs: Add ssu-timeout mode for power management recovery testing docs/system/ufs: Update task management request support status tests/qtest/ufs-test: Add TMR and async MCQ SCSI submission helpers tests/qtest/ufs-test: Add HCE reset unit test tests/qtest/ufs-test: Add MCQ runtime register and TMR handling test tests/qtest/ufs-test: Add QOM fault injection task abort test
docs/system/devices/ufs.rst | 7 +- hw/ufs/trace-events | 2 + hw/ufs/ufs-pci.c | 7 + hw/ufs/ufs-sysbus.c | 7 + hw/ufs/ufs.c | 260 +++++++++- hw/ufs/ufs.h | 65 +++ tests/qtest/ufs-test.c | 970 ++++++++++++++++++++++++++++++++++++ 7 files changed, 1314 insertions(+), 4 deletions(-)
Signature · 1 line
2.56.0.307.g5fe7bd680c-goog