]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/panthor: Flush shmem writes before mapping buffers CPU-uncached
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 7 Nov 2025 17:12:14 +0000 (18:12 +0100)
committerSteven Price <steven.price@arm.com>
Mon, 10 Nov 2025 14:56:06 +0000 (14:56 +0000)
commit576c930e5e7dcb937648490611a83f1bf0171048
treeef6a703e49d2a5b99ea030a96fb0fd601ae14cd5
parenteef295a8508202e750e4f103a97447f3c9d5e3d0
drm/panthor: Flush shmem writes before mapping buffers CPU-uncached

The shmem layer zeroes out the new pages using cached mappings, and if
we don't CPU-flush we might leave dirty cachelines behind, leading to
potential data leaks and/or asynchronous buffer corruption when dirty
cachelines are evicted.

Fixes: 8a1cc07578bf ("drm/panthor: Add GEM logical block")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patch.msgid.link/20251107171214.1186299-1-boris.brezillon@collabora.com
drivers/gpu/drm/panthor/panthor_gem.c