]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/panthor: Add DEV_QUERY_GROUP_PRIORITIES_INFO dev query
authorMary Guillemard <mary.guillemard@collabora.com>
Mon, 9 Sep 2024 06:48:21 +0000 (08:48 +0200)
committerSteven Price <steven.price@arm.com>
Wed, 25 Sep 2024 14:26:01 +0000 (15:26 +0100)
commitf70000ef23527f6d928d1175c66c5fafa968814b
treed18554e056c0a01b75a4f636508b044f4354bd31
parentf73716fd4550d588a811f11c370e90c303f0829b
drm/panthor: Add DEV_QUERY_GROUP_PRIORITIES_INFO dev query

Expose allowed group priorities with a new device query.

This new uAPI will be used in Mesa to properly report what priorities a
user can use for EGL_IMG_context_priority.

Since this extends the uAPI and because userland needs a way to
advertise priorities accordingly, this also bumps the driver minor
version.

v2:
- Remove drm_panthor_group_allow_priority_flags definition
- Document that allowed_mask is a bitmask of drm_panthor_group_priority

v3:
- Use BIT macro in panthor_query_group_priorities_info
- Add r-b from Steven Price and Boris Brezillon

Signed-off-by: Mary Guillemard <mary.guillemard@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240909064820.34982-4-mary.guillemard@collabora.com
drivers/gpu/drm/panthor/panthor_drv.c
include/uapi/drm/panthor_drm.h