]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit487635563871f22c9dd12e331bf4416808ddf76b
treebe6d72fc577cbd858a49db0267d34c88616800a6
parent804856ce740157a25567671275afc236b029117c
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