]> 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)
commit2a89e7d45126bdd0306271e45e39137837fff091
treeeec4a2ac99dede0b73d4fa3b66e108e603bf8f1c
parentc1795ebde4a30062158b66681c1e08154d2ffb01
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