OSDN Git Service

drm/amd/pp: Clear smu response register before send smu message
authorRex Zhu <Rex.Zhu@amd.com>
Wed, 11 Apr 2018 10:11:49 +0000 (18:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:43:18 +0000 (13:43 -0500)
commit8db42a701326c8872d8634c7b4c0d045bf95f394
treebf12d5bea09e209a786f7be985a71a8114484138
parent5b79d0482f3c1e8d5d78bd573a41e91dd9f0a5a1
drm/amd/pp: Clear smu response register before send smu message

smu firmware do not update response register immediately under
some delay tasks, we may read out the original value.

so need to clear the register before send smu message.

Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c
drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c