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.
- 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.
Tested with qos-test on aarch64 and x86_64 (14 and 15 UFS cases).
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 | 3 +
hw/ufs/ufs-pci.c | 6 +
hw/ufs/ufs-sysbus.c | 6 +
hw/ufs/ufs.c | 337 +++++++++++++++++++-
hw/ufs/ufs.h | 62 ++++
tests/qtest/ufs-test.c | 610 ++++++++++++++++++++++++++++++++++++
7 files changed, 1027 insertions(+), 4 deletions(-)
base-commit: 8ee6c77176cfee03be0ec7665b6652b2f31f1531
--
2.56.0.385.gd3acb90ef8-goog