]> 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>
Thu, 8 Jan 2026 09:14:26 +0000 (10:14 +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 ccbb15f1638c8b73e45602333d8e3d42b6548f26..01b065910468da007e494ac5e6ca72b86db8c871 100644 (file)
@@ -93,7 +93,7 @@ void enable_surface_flip_reporting(struct dc_plane_state *plane_state,
 struct dc_plane_state *dc_create_plane_state(const struct dc *dc)
 {
        struct dc_plane_state *plane_state = kvzalloc(sizeof(*plane_state),
-                                                       GFP_KERNEL);
+                                                       GFP_ATOMIC);
 
        if (NULL == plane_state)
                return NULL;