drm/panthor: Label all kernel BO's
authorAdrián Larumbe <adrian.larumbe@collabora.com>
Wed, 23 Apr 2025 02:12:33 +0000 (03:12 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 23 Apr 2025 08:35:35 +0000 (10:35 +0200)
commit0489149fd6711a8a020a8500029d4ee971c541ba
tree71c6950ca037747d0fb4365a9b1179d43613d928
parenta572dc467de241706ab92d61b3b3a0bca93450c8
drm/panthor: Label all kernel BO's

Kernel BO's aren't exposed to UM, so labelling them is the responsibility
of the driver itself. This kind of tagging will prove useful in further
commits when want to expose these objects through DebugFS.

Expand panthor_kernel_bo_create() interface to take a NUL-terminated
string. No bounds checking is done because all label strings are given
as statically-allocated literals, but if a more complex kernel BO naming
scheme with explicit memory allocation and formatting was desired in the
future, this would have to change.

Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/20250423021238.1639175-4-adrian.larumbe@collabora.com
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
drivers/gpu/drm/panthor/panthor_fw.c
drivers/gpu/drm/panthor/panthor_gem.c
drivers/gpu/drm/panthor/panthor_gem.h
drivers/gpu/drm/panthor/panthor_heap.c
drivers/gpu/drm/panthor/panthor_sched.c