Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/panthor: Enable timestamp propagation

Set the GLB_COUNTER_EN bit to enable coherent propagation of GPU
timestamp values to shader cores. This is a prerequisite for exposing
device-coherent timestamp queries.

Bump the version to 1.6 so userspace can detect support.

v2:
- GLB_COUNTER_EN is not a toggle bit move to panthor_fw_update_reqs

Signed-off-by: Ashley Smith <ashley.smith@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://patch.msgid.link/20251127115019.2113040-1-ashley.smith@collabora.com
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>

authored by

Ashley Smith and committed by
Boris Brezillon
d8f94cb0 88e721ab

+4 -2
+2 -1
drivers/gpu/drm/panthor/panthor_drv.c
··· 1604 1604 * - 1.3 - adds DRM_PANTHOR_GROUP_STATE_INNOCENT flag 1605 1605 * - 1.4 - adds DRM_IOCTL_PANTHOR_BO_SET_LABEL ioctl 1606 1606 * - 1.5 - adds DRM_PANTHOR_SET_USER_MMIO_OFFSET ioctl 1607 + * - 1.6 - enables GLB_COUNTER_EN 1607 1608 */ 1608 1609 static const struct drm_driver panthor_drm_driver = { 1609 1610 .driver_features = DRIVER_RENDER | DRIVER_GEM | DRIVER_SYNCOBJ | ··· 1618 1617 .name = "panthor", 1619 1618 .desc = "Panthor DRM driver", 1620 1619 .major = 1, 1621 - .minor = 5, 1620 + .minor = 6, 1622 1621 1623 1622 .gem_create_object = panthor_gem_create_object, 1624 1623 .gem_prime_import_sg_table = drm_gem_shmem_prime_import_sg_table,
+2 -1
drivers/gpu/drm/panthor/panthor_fw.c
··· 1044 1044 if (panthor_fw_has_glb_state(ptdev)) 1045 1045 glb_iface->input->ack_irq_mask |= GLB_STATE_MASK; 1046 1046 1047 - panthor_fw_update_reqs(glb_iface, req, GLB_IDLE_EN, GLB_IDLE_EN); 1047 + panthor_fw_update_reqs(glb_iface, req, GLB_IDLE_EN | GLB_COUNTER_EN, 1048 + GLB_IDLE_EN | GLB_COUNTER_EN); 1048 1049 panthor_fw_toggle_reqs(glb_iface, req, ack, 1049 1050 GLB_CFG_ALLOC_EN | 1050 1051 GLB_CFG_POWEROFF_TIMER |