Revert "drm/amd: Keep display off while going into S4"
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 22 May 2025 14:13:28 +0000 (09:13 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 May 2025 16:13:51 +0000 (12:13 -0400)
commit 68bfdc8dc0a1a ("drm/amd: Keep display off while going into S4")
attempted to keep displays off during the S4 sequence by not resuming
display IP.  This however leads to hangs because DRM clients such as the
console can try to access registers and cause a hang.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4155
Fixes: 68bfdc8dc0a1a ("drm/amd: Keep display off while going into S4")
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Link: https://lore.kernel.org/r/20250522141328.115095-1-mario.limonciello@amd.com
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit e485502c37b097b0bd773baa7e2741bf7bd2909a)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index cc01b9c68b479e1d78b299392ca650d8474d644c..a187cdb43e7e1d7b99509c8717a7e6b949c34d24 100644 (file)
@@ -3469,11 +3469,6 @@ static int dm_resume(struct amdgpu_ip_block *ip_block)
 
                return 0;
        }
-
-       /* leave display off for S4 sequence */
-       if (adev->in_s4)
-               return 0;
-
        /* Recreate dc_state - DC invalidates it when setting power state to S3. */
        dc_state_release(dm_state->context);
        dm_state->context = dc_state_create(dm->dc, NULL);