]> git.ipfire.org Git - thirdparty/linux.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)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 20:23:49 +0000 (15:23 -0500)
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
drivers/gpu/drm/amd/display/dc/core/dc_surface.c

index 922f23557f5d9e0c67d6afbd22adec257694d1df..0971dfa258454e9692460cda9bcad6c1f549820c 100644 (file)
@@ -86,7 +86,7 @@ uint8_t  dc_plane_get_pipe_mask(struct dc_state *dc_state, const struct dc_plane
 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;