]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/panthor: Add an ioctl to query BO flags
authorBoris Brezillon <boris.brezillon@collabora.com>
Mon, 8 Dec 2025 10:08:32 +0000 (11:08 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 9 Dec 2025 12:09:36 +0000 (13:09 +0100)
commitc146c82f862e9c7e602a908891c3adf992ef2beb
tree3768091eb44b2b9e728b12721d4995731ede8c9b
parente06177ec7a36391c66216b55b7c112d5ba8c4cc1
drm/panthor: Add an ioctl to query BO flags

This is useful when importing BOs, so we can know about cacheability
and flush the caches when needed.

We can also know when the buffer comes from a different subsystem and
take proper actions (avoid CPU mappings, or do kernel-based syncs
instead of userland cache flushes).

v2:
- New commit

v3:
- Add Steve's R-b

v4:
- No changes

v5:
- No changes

v6:
- No changes

v7:
- No changes

v8:
- No changes

Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://patch.msgid.link/20251208100841.730527-6-boris.brezillon@collabora.com
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
drivers/gpu/drm/panthor/panthor_drv.c
include/uapi/drm/panthor_drm.h