]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amd/display: Use GFP_ATOMIC in dc_create_plane_state()
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 11 Nov 2025 16:17:22 +0000 (11:17 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jan 2026 12:11:52 +0000 (13:11 +0100)
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

index 98391ba103d6c8a2e02f8a954a4987f5a4c6df44..1262b72d532b414d30069ad2c00c3e826db3b205 100644 (file)
@@ -104,7 +104,7 @@ void enable_surface_flip_reporting(struct dc_plane_state *plane_state,
 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;