OSDN Git Service

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)
commit1d617c029fd9c960f8ba7a8d1a10699d820bd6b9
treeeec4a2ac99dede0b73d4fa3b66e108e603bf8f1c
parentd08ce8c6d29f8cc7493b781be282604b10fc6e1e
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