]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/ast: Wrap cursor framebuffer access in drm_gem_fb_begin/end_cpu_access()
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 26 Nov 2025 09:40:10 +0000 (10:40 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 1 Dec 2025 07:40:19 +0000 (08:40 +0100)
commit4dfb97060f22c6c5bea995302f0f58936d8f3271
tree9c8ff4e91b92c86e3e1b95d056644da265b16626
parentef4ed8621a15ea4979dd6c5bde436ae228c4bdfe
drm/ast: Wrap cursor framebuffer access in drm_gem_fb_begin/end_cpu_access()

Call drm_gem_fb_begin_cpu_access() and drm_gem_fb_end_cpu_access()
around cursor image updates. Imported buffers might have to be
synchronized for CPU access before they can be used.

Ignore errors from drm_gem_fb_begin_cpu_access(). These errors can
often be transitory. The cursor image will be updated on the next
frame. Meanwhile display a white square where the cursor would be.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>>
Link: https://patch.msgid.link/20251126094626.41985-4-tzimmermann@suse.de
drivers/gpu/drm/ast/ast_cursor.c