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: Support dumping CQ entry in MCQ Mode

Enhance the ufshcd_print_tr() function to support dumping completion
queue (CQ) entries in MCQ mode when an error occurs. This addition
provides more detailed debugging information by including the CQ entry
data in the error logs, aiding in the diagnosis of issues in MCQ mode.

Signed-off-by: Peter Wang <peter.wang@mediatek.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Link: https://patch.msgid.link/20251016023507.1000664-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
8627f322 bfe0d22f

+4 -1
+4 -1
drivers/ufs/core/ufshcd.c
··· 5538 5538 } /* end of switch */ 5539 5539 5540 5540 if ((host_byte(result) != DID_OK) && 5541 - (host_byte(result) != DID_REQUEUE) && !hba->silence_err_logs) 5541 + (host_byte(result) != DID_REQUEUE) && !hba->silence_err_logs) { 5542 + if (cqe) 5543 + ufshcd_hex_dump("UPIU CQE: ", cqe, sizeof(struct cq_entry)); 5542 5544 ufshcd_print_tr(hba, lrbp->task_tag, true); 5545 + } 5543 5546 return result; 5544 5547 } 5545 5548