drm/amdgpu: skip CG/PG for gfx during S0ix
authorPratik Vishwakarma <Pratik.Vishwakarma@amd.com>
Tue, 16 Mar 2021 18:15:44 +0000 (14:15 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 22 Mar 2021 19:27:59 +0000 (15:27 -0400)
commit10cb67eb8a1b21419a7cd8e12f002a36bfef12fd
treed6770716ec6c9c1fb922448094cf1b02887beef1
parent9bb735abcbd83ec0b75cb2edf8885cff841fc096
drm/amdgpu: skip CG/PG for gfx during S0ix

Not needed as the device is in gfxoff state so the CG/PG state
is handled just like it would be for gfxoff during runtime gfxoff.

This should also prevent delays on resume.

Reworked from Pratik's original patch (Alex)

Acked-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Pratik Vishwakarma <Pratik.Vishwakarma@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c