]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/panfrost: Add a PANFROST_SYNC_BO ioctl
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Mon, 8 Dec 2025 10:08:37 +0000 (11:08 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 9 Dec 2025 12:09:36 +0000 (13:09 +0100)
commit7be45f5489769520aa9276137d0f1f543fb81286
treecd3cc273204d9dc1d145107ad15afbd20e4939f5
parent2396d65d94fc75d39f096b9777f9edc9c8e677c1
drm/panfrost: Add a PANFROST_SYNC_BO ioctl

This will be used by the UMD to synchronize CPU-cached mappings when
the UMD can't do it directly (no usermode cache maintenance instruction
on Arm32).

v2:
- Add more to the commit message
- Change the flags to better match the drm_gem_shmem_sync semantics

v3:
- Add Steve's R-b

v4:
- No changes

v5:
- Drop Steve's R-b (semantics changes requiring a new review)

v6:
- Bail out early in panfrost_ioctl_sync_bo() if op_count is zero

v7:
- Hand-roll our own bo_sync() helper

v8:
- Collect R-b

Signed-off-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://patch.msgid.link/20251208100841.730527-11-boris.brezillon@collabora.com
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
drivers/gpu/drm/panfrost/panfrost_drv.c
drivers/gpu/drm/panfrost/panfrost_gem.c
drivers/gpu/drm/panfrost/panfrost_gem.h
include/uapi/drm/panfrost_drm.h