OSDN Git Service

drm/amdgpu: fix reporting of failed msg sent to SMU (v2)
authorShirish S <shirish.s@amd.com>
Thu, 25 Oct 2018 21:08:58 +0000 (02:38 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 26 Oct 2018 18:34:44 +0000 (13:34 -0500)
commitcb899a615be6c42e186e0e71862ebbd5a5c15533
treebe6d72fc577cbd858a49db0267d34c88616800a6
parent31e3aad62ab8039581d621403b7905aa19fb30af
drm/amdgpu: fix reporting of failed msg sent to SMU (v2)

Currently send_msg_to_smc_async() only report which message
failed, but the actual failing message is the previous one,
which SMU is unable to service.

This patch reads the contents of register where the SMU is stuck
and report appropriately.

v2: fix the build (Alex)

Signed-off-by: Shirish S <shirish.s@amd.com>
Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c