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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Jul 2020 06:13:32 +0000 (08:13 +0200)
commit2c41c968c6f6480860c67210815cadc6507f5014
treed9bc311b891c865796120da986e725b6d427ff15
parentd7915047a1d59474d06789a9dd1925064969e080
drm/amdgpu: add TMR destory function for psp

commit c564b8601ae917086751d90f464d5f19d731ece7 upstream.

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
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c