drm/nouveau/disp: Set drm_mode_config_funcs.atomic_(check|commit)
authorLyude Paul <lyude@redhat.com>
Wed, 21 Jan 2026 19:13:10 +0000 (14:13 -0500)
committerLyude Paul <lyude@redhat.com>
Wed, 21 Jan 2026 20:53:15 +0000 (15:53 -0500)
Apparently we never actually filled these in, despite the fact that we do
in fact technically support atomic modesetting.

Since not having these filled in causes us to potentially forget to disable
fbdev and friends during suspend/resume, let's fix it.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: stable@vger.kernel.org
Reviewed-by: Dave Airlie <airlied@redhat.com>
Link: https://patch.msgid.link/20260121191320.210342-1-lyude@redhat.com
drivers/gpu/drm/nouveau/nouveau_display.c

index 0051562..829c2b5 100644 (file)
@@ -352,6 +352,8 @@ nouveau_user_framebuffer_create(struct drm_device *dev,
 
 static const struct drm_mode_config_funcs nouveau_mode_config_funcs = {
        .fb_create = nouveau_user_framebuffer_create,
+       .atomic_commit = drm_atomic_helper_commit,
+       .atomic_check = drm_atomic_helper_check,
 };