]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.15-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 May 2025 16:24:16 +0000 (18:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 May 2025 16:24:16 +0000 (18:24 +0200)
added patches:
revert-drm-amd-keep-display-off-while-going-into-s4.patch

queue-5.15/revert-drm-amd-keep-display-off-while-going-into-s4.patch [new file with mode: 0644]
queue-5.15/series

diff --git a/queue-5.15/revert-drm-amd-keep-display-off-while-going-into-s4.patch b/queue-5.15/revert-drm-amd-keep-display-off-while-going-into-s4.patch
new file mode 100644 (file)
index 0000000..5b173de
--- /dev/null
@@ -0,0 +1,41 @@
+From 7e7cb7a13c81073d38a10fa7b450d23712281ec4 Mon Sep 17 00:00:00 2001
+From: Mario Limonciello <mario.limonciello@amd.com>
+Date: Thu, 22 May 2025 09:13:28 -0500
+Subject: Revert "drm/amd: Keep display off while going into S4"
+
+From: Mario Limonciello <mario.limonciello@amd.com>
+
+commit 7e7cb7a13c81073d38a10fa7b450d23712281ec4 upstream.
+
+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
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |    5 -----
+ 1 file changed, 5 deletions(-)
+
+--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
++++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+@@ -2710,11 +2710,6 @@ static int dm_resume(void *handle)
+               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_release_state(dm_state->context);
+       dm_state->context = dc_create_state(dm->dc);
index 7cfc5c271d364770c00f2cf20f673c6761eea6f4..b9e434f846f30e1a9bd6efeed5a187d22da5b2eb 100644 (file)
@@ -177,3 +177,4 @@ alsa-pcm-fix-race-of-buffer-access-at-pcm-oss-layer.patch
 llc-fix-data-loss-when-reading-from-a-socket-in-llc_ui_recvmsg.patch
 platform-x86-dell-wmi-sysman-avoid-buffer-overflow-in-current_password_store.patch
 drm-edid-fixed-the-bug-that-hdr-metadata-was-not-reset.patch
+revert-drm-amd-keep-display-off-while-going-into-s4.patch