All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] hw/ufs: Fix mcq completion queue wraparound
@ 2025-12-22 12:35 Ilia Levi
  2025-12-22 12:35 ` [PATCH 1/2] " Ilia Levi
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Ilia Levi @ 2025-12-22 12:35 UTC (permalink / raw)
  To: qemu-devel; +Cc: ilia.levi, jeuk20.kim, farosas, lvivier, pbonzini

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(-)

-- 
2.49.1



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-01-02 13:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-22 12:35 [PATCH 0/2] hw/ufs: Fix mcq completion queue wraparound Ilia Levi
2025-12-22 12:35 ` [PATCH 1/2] " Ilia Levi
2025-12-22 12:35 ` [PATCH 2/2] tests/qtest/ufs-test: Add test for " Ilia Levi
2026-01-02 13:38   ` Fabiano Rosas
2026-01-02  0:07 ` [PATCH 0/2] hw/ufs: Fix " Jeuk Kim

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.