drm/amdgpu: disallow gfxoff until GC IP blocks complete s2idle resume
authorPrike Liang <Prike.Liang@amd.com>
Fri, 21 Oct 2022 02:04:40 +0000 (10:04 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Oct 2022 21:48:43 +0000 (17:48 -0400)
commitd61e1d1d5225a9baeb995bcbdb904f66f70ed87e
tree1c83a67ae5109d9ddfd049ded6769a975675d758
parent809734c110548dca410fb0cca52e6b1540319f5e
drm/amdgpu: disallow gfxoff until GC IP blocks complete s2idle resume

In the S2idle suspend/resume phase the gfxoff is keeping functional so
some IP blocks will be likely to reinitialize at gfxoff entry and that
will result in failing to program GC registers.Therefore, let disallow
gfxoff until AMDGPU IPs reinitialized completely.

Signed-off-by: Prike Liang <Prike.Liang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 5.15.x
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c