drm/amdgpu: add TMR destory function for psp
authorHuang Rui <ray.huang@amd.com>
Tue, 30 Jun 2020 04:32:57 +0000 (12:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Jul 2020 18:24:15 +0000 (14:24 -0400)
commitc564b8601ae917086751d90f464d5f19d731ece7
treefe6dca4c191378e82545dbd87b55bef52e77da74
parent20303ec5d2165ee6344190274bc59118921f71d9
drm/amdgpu: add TMR destory function for psp

TMR is required to be destoried with GFX_CMD_ID_DESTROY_TMR while the
system goes to suspend. Otherwise, PSP may return the failure state
(0xFFFF007) on Gfx-2-PSP command GFX_CMD_ID_SETUP_TMR after do multiple
times suspend/resume.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c