]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: During s0ix don't wait to signal GFXOFF
authorLijo Lazar <lijo.lazar@amd.com>
Fri, 1 Oct 2021 08:49:07 +0000 (16:49 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Oct 2021 14:55:07 +0000 (10:55 -0400)
commit47edff1eb2a7ee5701dea2298b7de911efbbadac
treeeec4a2ac99dede0b73d4fa3b66e108e603bf8f1c
parent069362354f4cac540f114fdd89d3fcba83071cb9
drm/amdgpu: During s0ix don't wait to signal GFXOFF

In the rare event when GFX IP suspend coincides with a s0ix entry, don't
schedule a delayed work, instead signal PMFW immediately to allow GFXOFF
entry. GFXOFF is a prerequisite for s0ix entry. PMFW needs to be
signaled about GFXOFF status before amd-pmc module passes OS HINT
to PMFW telling that everything is ready for a safe s0ix entry.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1712

Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciell@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c