]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/nouveau/dispnv50: Don't call drm_atomic_get_crtc_state() in prepare_fb
authorLyude Paul <lyude@redhat.com>
Thu, 11 Dec 2025 19:02:54 +0000 (14:02 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Jan 2026 09:17:20 +0000 (10:17 +0100)
commit5487edb7b8ede8a6f2d034a6da6ee4a56f5b1626
tree22713026378311bb19e9fd159af87231b1ce306e
parentc79ee71f45987a753789c3fede6a34499080584e
drm/nouveau/dispnv50: Don't call drm_atomic_get_crtc_state() in prepare_fb

commit 560271e10b2c86e95ea35afa9e79822e4847f07a upstream.

Since we recently started warning about uses of this function after the
atomic check phase completes, we've started getting warnings about this in
nouveau. It appears a misplaced drm_atomic_get_crtc_state() call has been
hiding in our .prepare_fb callback for a while.

So, fix this by adding a new nv50_head_atom_get_new() function and use that
in our .prepare_fb callback instead.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Fixes: 1590700d94ac ("drm/nouveau/kms/nv50-: split each resource type into their own source files")
Cc: <stable@vger.kernel.org> # v4.18+
Link: https://patch.msgid.link/20251211190256.396742-1-lyude@redhat.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/dispnv50/atom.h
drivers/gpu/drm/nouveau/dispnv50/wndw.c