Skip to contentSkip to conversation

drm/amd/pm: Enhanced reporting also for a stuck command

PATCH In review Luben Tuikov 1 participant 2 messages Nov 10, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/pm: Enhanced reporting also for a stuck command

Also print the message index, parameter and message type on a stuck command.

---
 drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c +2 -1
index 843d2cbfc71d4c..63cab6173206e2 100644
@@ -141,7 +141,8 @@ static void __smu_cmn_reg_print_error(struct smu_context *smu,
 	switch (reg_c2pmsg_90) {
 	case SMU_RESP_NONE:
 		dev_err_ratelimited(adev->dev,
-				    "SMU: I'm not done with your previous command!");
+				    "SMU: I'm not done with your previous command! Index:%d param:0x%08X message:%s",
+				    msg_index, param, message);
 		break;
 	case SMU_RESP_OK:
 		/* The SMU executed the command. It completed with a

base-commit: 14271bc7f5e7ec276c58927ea87af9e81d97fdf3

Signature · 1 line
2.33.1.558.g2bd2f258f4
#1 lore raw

Never mind--the index and param are for the new command we want to submit not the last. Ignore.

Regards,
Luben

Quoted 25 lines · Luben Tuikov

Also print the message index, parameter and message type on a stuck command.

---
 drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c +2 -1
index 843d2cbfc71d4c..63cab6173206e2 100644
@@ -141,7 +141,8 @@ static void __smu_cmn_reg_print_error(struct smu_context *smu,
 	switch (reg_c2pmsg_90) {
 	case SMU_RESP_NONE:
 		dev_err_ratelimited(adev->dev,
-				    "SMU: I'm not done with your previous command!");
+				    "SMU: I'm not done with your previous command! Index:%d param:0x%08X message:%s",
+				    msg_index, param, message);
 		break;
 	case SMU_RESP_OK:
 		/* The SMU executed the command. It completed with a

base-commit: 14271bc7f5e7ec276c58927ea87af9e81d97fdf3