Skip to content

hw/ufs: Fix mcq completion queue wraparound

Ilia Levi qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2hw/ufs: Fix mcq completion queue wraparoundhw/ufs/ufs.c hw/ufs/ufs.h+28 -10 replies
2/2tests/qtest/ufs-test: Add test for mcq completion queue wraparoundtests/qtest/ufs-test.c+125 -01 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.

PatchJeuk KimFabiano Rosas
SeriesR-b
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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