On Wed, 23 Sep 2026 22:48:10 +0800, Stanley Jhu <[email protected]> wrote:
> diff --git a/hw/ufs/ufs.c b/hw/ufs/ufs.c
> index adae6639e16..4d8c641b078 100644
> --- a/hw/ufs/ufs.c
> +++ b/hw/ufs/ufs.c
> @@ -970,6 +982,45 @@ static void ufs_mcq_process_db(UfsHc *u, uint8_t qid, 
> uint32_t db)
> [ ... skip 31 lines ... ]
> +            (le32_to_cpu(req->utrd.header.dword_2) & ~UFS_MASK_OCS) |
> +            UFS_OCS_ABORTED);
> +        req->state = UFS_REQUEST_COMPLETE;
> +        QTAILQ_INSERT_TAIL(&sq->cq->req_list, req, entry);
> +        ufs_mcq_process_cq(sq->cq);
> +    }

RTC = 0 reports successful cleanup, whereas a missing task must be reported
with RTC = 1. If no request matches the nexus from SQCTI, this path posts no
OCS = ABORTED CQE but still sets CUS = 1 and RTC = 0. Please report RTC = 1
for this path.

-- 
Jeuk Kim <[email protected]>

Reply via email to