]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/ast: Handle framebuffer from dma-buf
authorJocelyn Falempe <jfalempe@redhat.com>
Thu, 30 Oct 2025 09:14:11 +0000 (10:14 +0100)
committerJocelyn Falempe <jfalempe@redhat.com>
Mon, 10 Nov 2025 15:02:13 +0000 (16:02 +0100)
commit3dd0be7a301bb0adcca4f7021cfd2e366ca90a0e
tree6f31e1912ffc0f7296a45e88d177b326a1d50807
parent410d88782af805804ebe8cd8a275bd71f88bf399
drm/ast: Handle framebuffer from dma-buf

In the atomic update callback, ast should call
drm_gem_fb_begin_cpu_access() to make sure it can read the
framebuffer from the CPU, otherwise the data might not be there due
to cache, and synchronization.

Tested on a Lenovo SE100, while rendering on the ArrowLake GPU with
i915 driver, and using ast for display.

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