From: Rex Zhu Date: Fri, 21 Apr 2017 02:32:09 +0000 (+0800) Subject: drm/amd/powerplay: print msg id when smu failed. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5140a749a20b601de2c692316751d9caf07e7ade;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/amd/powerplay: print msg id when smu failed. Print the failed msg when it fails. Signed-off-by: Rex Zhu Reviewed-by: Alex Deucher Reviewed-by: Hawking Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.c index b69dcb9e6a39..ce0a30388ea1 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/rv_smumgr.c @@ -124,9 +124,8 @@ int rv_send_msg_to_smc(struct pp_smumgr *smumgr, uint16_t msg) rv_send_msg_to_smc_without_waiting(smumgr, msg); - PP_ASSERT_WITH_CODE(rv_wait_for_response(smumgr) == 1, - "Failed to send Message.", - return -EINVAL); + if (rv_wait_for_response(smumgr) == 0) + printk("Failed to send Message %x.\n", msg); return 0; } @@ -149,9 +148,9 @@ int rv_send_msg_to_smc_with_parameter(struct pp_smumgr *smumgr, rv_send_msg_to_smc_without_waiting(smumgr, msg); - PP_ASSERT_WITH_CODE(rv_wait_for_response(smumgr) == 1, - "Failed to send Message.", - return -EINVAL); + + if (rv_wait_for_response(smumgr) == 0) + printk("Failed to send Message %x.\n", msg); return 0; }