drm/amd/pp/smu10: log smu version and modify error logging in send_msg
Subsystems (2)
PATCH 1/1 drm/amd/pp/smu10: log smu version and modify error logging in send_msg
--- drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c +7 -2
@@ -85,7 +85,7 @@ static int smu10_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg)smu10_send_msg_to_smc_without_waiting (hwmgr, msg);if (smu10_wait_for_response (hwmgr) ==0 ) -printk ("Failed to send Message %x.\n" , msg); +pr_err ("%s Failed to send Message (0x%04x)\n" , __func__, msg);return 0 ; }
@@ -106,7 +106,7 @@ static int smu10_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr,if (smu10_wait_for_response (hwmgr) ==0 ) -printk ("Failed to send Message %x.\n" , msg); +pr_err ("%s Failed to send Message (0x%04x)\n" , __func__, msg);return 0 ; }
@@ -210,6 +210,11 @@ static int smu10_start_smu(struct pp_hwmgr *hwmgr)smum_send_msg_to_smc (hwmgr, PPSMC_MSG_GetSmuVersion); hwmgr->smu_version =smu10_read_arg_from_smc (hwmgr); +pr_info ("smu version %02d.%02d.%02d.%02d\n" , + ((hwmgr->smu_version >>24 ) &0xFF ), + ((hwmgr->smu_version >>16 ) &0xFF ), + ((hwmgr->smu_version >>8 ) &0xFF ), + (hwmgr->smu_version &0xFF )); adev->pm.fw_version = hwmgr->smu_version >>8 ; if (adev->rev_id < 0x8 && adev->pdev->device != 0x15d8 &&
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1554374279-6820-1-git-send-email-shirish.s-5C7GfCeVMHo@public.gmane.org
Quoted 2 lines · Shirish
Signed-off-by Shirish S <[email protected]>
Please include a patch description. Why are you you making this change?
Quoted 18 lines
--- drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c +1
-1@@ -85,7 +85,7 @@ static int smu10_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg)smu10_send_msg_to_smc_without_waiting (hwmgr, msg);if (smu10_wait_for_response (hwmgr) ==0 ) -printk ("Failed to send Message %x.\n" , msg); +pr_err ("%s Failed to send Message (0x%04x)\n" , __func__, msg);return 0 ; }
drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c static int smu10_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, · line 112
Quoted 8 lines
drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c +1
-1@@ -106,7 +106,7 @@ static int smu10_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr,if (smu10_wait_for_response (hwmgr) ==0 ) -printk ("Failed to send Message %x.\n" , msg); +pr_err ("%s Failed to send Message (0x%04x)\n" , __func__, msg);return 0 ; }
Are there any cases where these are harmless and can be ignored?
drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c static int smu10_start_smu(struct pp_hwmgr *hwmgr) · line 217
Quoted 9 lines
drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c +5
-0@@ -210,6 +210,11 @@ static int smu10_start_smu(struct pp_hwmgr *hwmgr)smum_send_msg_to_smc (hwmgr, PPSMC_MSG_GetSmuVersion); hwmgr->smu_version =smu10_read_arg_from_smc (hwmgr); +pr_info ("smu version %02d.%02d.%02d.%02d\n" , + ((hwmgr->smu_version >>24 ) &0xFF ), + ((hwmgr->smu_version >>16 ) &0xFF ), + ((hwmgr->smu_version >>8 ) &0xFF ), + (hwmgr->smu_version &0xFF ));
Do we need to print this here? Would it be better as a debug output? We already expose the smu firmware version via debugfs along with all of the other firmware versions.
Alex
Quoted 10 lines
drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c +0
-1adev->pm.fw_version = hwmgr->smu_version >>8 ; if (adev->rev_id < 0x8 && adev->pdev->device != 0x15d8 && --2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): CADnq5_N5qcLEWGZ2OxpyBybrrQ9xFiGmGXZjBLJzzusTmmddGw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org
Quoted 3 lines · Alex Deucher
Quoted 1 line · Shirish
Signed-off-by Shirish S <[email protected]>Please include a patch description. Why are you you making this change?
Was not aware of the debugfs entry, i wish to abandon this patch.
I shall get back with a patch in case we need more info from send_msg failures.
Quoted 31 lines
Quoted 19 lines
--- drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c +1
-1@@ -85,7 +85,7 @@ static int smu10_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg)smu10_send_msg_to_smc_without_waiting (hwmgr, msg);if (smu10_wait_for_response (hwmgr) ==0 ) -printk ("Failed to send Message %x.\n" , msg); +pr_err ("%s Failed to send Message (0x%04x)\n" , __func__, msg);return 0 ; }drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c static int smu10_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, · line 112
Quoted 8 lines
drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c +1
-1@@ -106,7 +106,7 @@ static int smu10_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr,if (smu10_wait_for_response (hwmgr) ==0 ) -printk ("Failed to send Message %x.\n" , msg); +pr_err ("%s Failed to send Message (0x%04x)\n" , __func__, msg);return 0 ; }Are there any cases where these are harmless and can be ignored?
Quoted 2 lines
drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c +0
-0@@ -210,6 +210,11 @@ static int smu10_start_smu(struct pp_hwmgr *hwmgr)
Quoted 10 lines
drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c static int smu10_start_smu(struct pp_hwmgr *hwmgr) · line 217
Quoted 7 lines
drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c +5
-0smum_send_msg_to_smc (hwmgr, PPSMC_MSG_GetSmuVersion); hwmgr->smu_version =smu10_read_arg_from_smc (hwmgr); +pr_info ("smu version %02d.%02d.%02d.%02d\n" , + ((hwmgr->smu_version >>24 ) &0xFF ), + ((hwmgr->smu_version >>16 ) &0xFF ), + ((hwmgr->smu_version >>8 ) &0xFF ), + (hwmgr->smu_version &0xFF ));Do we need to print this here? Would it be better as a debug output? We already expose the smu firmware version via debugfs along with all of the other firmware versions.
Thanks Alex, its very useful information.
Regards,
Shirish S
Quoted 13 lines
Alex
Quoted 10 lines
drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c +0
-1adev->pm.fw_version = hwmgr->smu_version >>8 ; if (adev->rev_id < 0x8 && adev->pdev->device != 0x15d8 && --2.7.4
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Signature · 7 lines
Regards, Shirish S _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx