drm/amdgpu: Don't halt RLC on GFX suspend
authorLijo Lazar <lijo.lazar@amd.com>
Mon, 29 Nov 2021 07:57:44 +0000 (15:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Dec 2021 22:02:40 +0000 (17:02 -0500)
commite0570f0b6e2e88be7ef99d1194b153cb054a2107
treef62a48f1eaf5a1c95cda5e051344e392c6866132
parent7551f70ab93d0f3371b28e996f7583e3be1d9a72
drm/amdgpu: Don't halt RLC on GFX suspend

On aldebaran, RLC also controls GFXCLK. Skip halting RLC during GFX IP suspend
and keep it running till PMFW disables all DPMs.

    [  578.019986] amdgpu 0000:23:00.0: amdgpu: GPU reset begin!
    [  583.245566] amdgpu 0000:23:00.0: amdgpu: Failed to disable smu features.
    [  583.245621] amdgpu 0000:23:00.0: amdgpu: Fail to disable dpm features!
    [  583.245639] [drm:amdgpu_device_ip_suspend_phase2 [amdgpu]] *ERROR* suspend of IP block <smu> failed -62
    [  583.248504] [drm] free PSP TMR buffer

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c