[PATCH] scsi: ufs: print the counter of each event history

Subsystems: scsi subsystem, the rest

STALE2021d LANDED

Landed in mainline as bafd09f8d8ec on 2021-02-09.

3 messages, 2 authors, 2021-02-05 · open the first message on its own page

[PATCH] scsi: ufs: print the counter of each event history

From: DooHyun Hwang <hidden>
Date: 2021-02-03 10:29:16

Since only print the recorded event history list,
add to print the counter value.

Signed-off-by: DooHyun Hwang <redacted>
---
 drivers/scsi/ufs/ufshcd.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index 721f55db181f..1ea920aeb701 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -451,6 +451,8 @@ static void ufshcd_print_evt(struct ufs_hba *hba, u32 id,
 
 	if (!found)
 		dev_err(hba->dev, "No record of %s\n", err_name);
+	else
+		dev_err(hba->dev, "%s: total cnt=%llu\n", err_name, e->cnt);
 }
 
 static void ufshcd_print_evt_hist(struct ufs_hba *hba)
-- 
2.29.0

RE: [PATCH] scsi: ufs: print the counter of each event history

From: Avri Altman <Avri.Altman@wdc.com>
Date: 2021-02-05 08:19:21


Since only print the recorded event history list,
add to print the counter value.

Signed-off-by: DooHyun Hwang <redacted>
Reviewed-by: Avri Altman <avri.altman@wdc.com>

Btw, You have the counter now in ufs-debugfs as well.

Thanks,
Avri

RE: [PATCH] scsi: ufs: print the counter of each event history

From: DooHyun Hwang <hidden>
Date: 2021-02-05 08:37:09

quoted
Since only print the recorded event history list, add to print the
counter value.

Signed-off-by: DooHyun Hwang <redacted>
Reviewed-by: Avri Altman <avri.altman@wdc.com>

Btw, You have the counter now in ufs-debugfs as well.

Thanks,
Avri
Thank you for your review and information.

I hope to be able to check the counter value in kernel log as well.

Thank you.
DooHyun Hwang.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help