hw/ufs: Fix mcq completion queue wraparound
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | hw/ufs: Fix mcq completion queue wraparoundhw/ hw/ | +28 | 0 replies | |
| 2/2 | tests/qtest/ufs-test: Add test for mcq completion queue wraparoundtests/ | +125 | 1 reply |
Reviews trailers per patch
1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Jeuk Kim | Fabiano Rosas |
|---|---|---|
| Series | R-b | |
| 1/2 | ||
| 2/2 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] hw/ufs: Fix mcq completion queue wraparound
Currently the completion queue processing routine in UFS does not check whether there is available space. This can cause CQ entries to be discarded and overwritten. This series include a fix for the issue based on how NVMe processes completions. It also includes a test to illustrate the issue.
Before applying the fix, the test will fail with:
ERROR:../tests/qtest/ufs-test.c:801:ufstest_mcq_cq_wraparound:
assertion failed (completed == num_requests): (0 == 32)
Ilia Levi (2):
hw/ufs: Fix mcq completion queue wraparound tests/qtest/ufs-test: Add test for mcq completion queue wraparound
hw/ufs/ufs.c | 20 ++++++- hw/ufs/ufs.h | 9 +++ tests/qtest/ufs-test.c | 125 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 153 insertions(+), 1 deletion(-)
Signature · 1 line
2.49.1