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>
Wed, 8 Jul 2020 13:00:55 +0000 (09:00 -0400)
commit90937420c44f7535fd3ac4341a48c4c4dd1fe190
tree5c4772e920070ae156d4380f3b4952a164d82faf
parent429f3d24384b049925771c56b5bc2850cede958f
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c