Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: ufs: core: Add debug log for MCQ command timeout

It is difficult to debug situations where an MCQ command timeout occurs,
the corresponding CQ tag response is received, but the request is not
completed. Add a one-line log to indicate when the CQ entry is abnormal.

Signed-off-by: Peter Wang <peter.wang@mediatek.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20260210070837.1820710-3-peter.wang@mediatek.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Peter Wang and committed by
Martin K. Petersen
3abe4113 01517654

+2
+2
drivers/ufs/core/ufs-mcq.c
··· 301 301 ufshcd_compl_one_cqe(hba, tag, cqe); 302 302 /* After processed the cqe, mark it empty (invalid) entry */ 303 303 cqe->command_desc_base_addr = 0; 304 + } else { 305 + dev_err(hba->dev, "Abnormal CQ entry!\n"); 304 306 } 305 307 } 306 308