qemu-cr16/hw/ufs
Ilia Levi ad5f6ffcd0 hw/ufs: Fix mcq completion queue wraparound
Currently, ufs_mcq_process_cq() writes to the CQ without checking whether
there is available space. This can cause CQ entries to be discarded and
overwritten. The solution is to stop writing when CQ is full and exert
backpressure on the affected SQs. This is similar to how NVMe CQs operate.

Signed-off-by: Ilia Levi <ilia.levi@intel.com>
Reviewed-by: Jeuk Kim <jeuk20.kim@samsung.com>
Signed-off-by: Jeuk Kim <jeuk20.kim@samsung.com>
(cherry picked from commit f78762a3cc81ca9842907a5fc1b2280083ac51ba)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2026-02-02 16:21:37 +03:00
..
Kconfig
lu.c hw/ufs: fix CQE endianness and UPIU length 2026-02-02 16:21:37 +03:00
meson.build hw/ufs: Support for UFS logical unit 2023-09-07 14:01:29 -04:00
trace-events hw/ufs: Add support MCQ of UFSHCI 4.0 2024-06-03 16:20:42 +09:00
trace.h
ufs.c hw/ufs: Fix mcq completion queue wraparound 2026-02-02 16:21:37 +03:00
ufs.h hw/ufs: Fix mcq completion queue wraparound 2026-02-02 16:21:37 +03:00