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>
Mon, 24 Oct 2022 18:34:48 +0000 (14:34 -0400)
commitf543d28687480fad06b708bc6e0b0b6ec953b078
treef56cccb25f60ed020daacd0f00afb6b8915ffe19
parent693073a04de491c82cd0e1d6bf979192375373c1
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c