]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.10-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Dec 2025 15:48:26 +0000 (16:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Dec 2025 15:48:26 +0000 (16:48 +0100)
added patches:
drm-amd-display-use-gfp_atomic-in-dc_create_plane_state.patch

queue-5.10/drm-amd-display-use-gfp_atomic-in-dc_create_plane_state.patch [new file with mode: 0644]
queue-5.10/series

diff --git a/queue-5.10/drm-amd-display-use-gfp_atomic-in-dc_create_plane_state.patch b/queue-5.10/drm-amd-display-use-gfp_atomic-in-dc_create_plane_state.patch
new file mode 100644 (file)
index 0000000..45bea60
--- /dev/null
@@ -0,0 +1,32 @@
+From 3c41114dcdabb7b25f5bc33273c6db9c7af7f4a7 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Tue, 11 Nov 2025 11:17:22 -0500
+Subject: drm/amd/display: Use GFP_ATOMIC in dc_create_plane_state()
+
+From: Alex Deucher <alexander.deucher@amd.com>
+
+commit 3c41114dcdabb7b25f5bc33273c6db9c7af7f4a7 upstream.
+
+This can get called from an atomic context.
+
+Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4470
+Reviewed-by: Harry Wentland <harry.wentland@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+(cherry picked from commit 8acdad9344cc7b4e7bc01f0dfea80093eb3768db)
+Cc: stable@vger.kernel.org
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/gpu/drm/amd/display/dc/core/dc_surface.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/gpu/drm/amd/display/dc/core/dc_surface.c
++++ b/drivers/gpu/drm/amd/display/dc/core/dc_surface.c
+@@ -104,7 +104,7 @@ void enable_surface_flip_reporting(struc
+ struct dc_plane_state *dc_create_plane_state(struct dc *dc)
+ {
+       struct dc_plane_state *plane_state = kvzalloc(sizeof(*plane_state),
+-                                                      GFP_KERNEL);
++                                                      GFP_ATOMIC);
+       if (NULL == plane_state)
+               return NULL;
index cba6bc730ee59bd886359d2b8264a66ed3146398..3d406caa62e21a367b4386d6cb40d031f27c5ea6 100644 (file)
@@ -260,3 +260,4 @@ pm-runtime-do-not-clear-needs_force_resume-with-enabled-runtime-pm.patch
 fsnotify-do-not-generate-access-modify-events-on-child-for-special-files.patch
 nfsd-mark-variable-__maybe_unused-to-avoid-w-1-build-break.patch
 io_uring-fix-filename-leak-in-__io_openat_prep.patch
+drm-amd-display-use-gfp_atomic-in-dc_create_plane_state.patch