]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/panfrost: Internally label some BOs
authorAdrián Larumbe <adrian.larumbe@collabora.com>
Tue, 20 May 2025 17:43:59 +0000 (18:43 +0100)
committerSteven Price <steven.price@arm.com>
Mon, 2 Jun 2025 12:51:15 +0000 (13:51 +0100)
commitca8b3216dcea9b3601c925a4942a054e92b0d528
tree0dedafdb1b6d1f2f3b9fc395832f3559ad7f5aae
parente0e33f9bbbd635e18003cf8590c978beb9ce9045
drm/panfrost: Internally label some BOs

Perfcnt samples buffer is not exposed to UM, but we would like to keep
a tag on it as a potential debug aid.

PRIME imported GEM buffers are UM exposed, but since the usual Panfrost
UM driver code path is not followed in their creation, they might remain
unlabelled for their entire lifetime, so a generic tag was deemed
preferable. The tag is assigned before a UM handle is created so it
doesn't contradict the logic about labelling internal BOs.

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/20250520174634.353267-3-adrian.larumbe@collabora.com
drivers/gpu/drm/panfrost/panfrost_gem.c
drivers/gpu/drm/panfrost/panfrost_perfcnt.c