linux/drivers/gpu/drm/panthor
Linmao Li 022e901333 drm/panthor: Check debugfs GEM lock initialization
drmm_mutex_init() can fail while registering the managed cleanup action.
When that happens, drmm_add_action_or_reset() destroys the mutex before
returning the error. Continuing initialization would therefore leave the
debugfs GEM object list with an unusable lock.

Propagate the error as is already done for the other managed mutexes in
panthor_device_init().

Fixes: a3707f53eb ("drm/panthor: show device-wide list of DRM GEM objects over DebugFS")
Signed-off-by: Linmao Li <lilinmao@kylinos.cn>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patch.msgid.link/20260713082912.321021-1-lilinmao@kylinos.cn
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
2026-07-15 13:22:25 +01:00
..
Kconfig drm/panthor: Part ways with drm_gem_shmem_object 2026-04-03 13:23:28 +02:00
Makefile drm/panthor: Add src path to includes of panthor_gpu.o 2026-01-23 21:11:14 +01:00
panthor_devfreq.c drm/panthor: Use existing OPP table if present 2025-11-03 15:28:39 +00:00
panthor_devfreq.h drm/panthor: call into devfreq for current frequency 2025-11-03 15:27:25 +00:00
panthor_device.c drm/panthor: Check debugfs GEM lock initialization 2026-07-15 13:22:25 +01:00
panthor_device.h drm/panthor: Keep interrupts masked until they are needed 2026-06-30 15:26:55 +01:00
panthor_drv.c drm/panthor: Fix missing declaration for panthor_transparent_hugepage 2026-05-07 09:06:10 +01:00
panthor_drv.h drm/panthor: Fix missing declaration for panthor_transparent_hugepage 2026-05-07 09:06:10 +01:00
panthor_fw_regs.h drm/panthor: Use a local iomem base for firmware control registers 2026-04-30 17:15:00 +01:00
panthor_fw.c drm/panthor: return error on truncated firmware 2026-07-15 13:21:28 +01:00
panthor_fw.h drm/panthor: Replace cross-component register accesses with helpers 2026-04-30 17:14:53 +01:00
panthor_gem.c drm/panthor: Reduce padding in gems debugfs for refcount 2026-05-28 16:47:37 +02:00
panthor_gem.h drm/panthor: Implement evicted status for GEM objects 2026-05-28 16:14:39 +02:00
panthor_gpu_regs.h drm/panthor: Use a local iomem base for GPU registers 2026-04-30 17:14:57 +01:00
panthor_gpu.c drm/panthor: Keep interrupts masked until they are needed 2026-06-30 15:26:55 +01:00
panthor_gpu.h drm/panthor: Replace cross-component register accesses with helpers 2026-04-30 17:14:53 +01:00
panthor_heap.c drm/panthor: Split register definitions by components 2026-04-30 17:14:48 +01:00
panthor_heap.h drm/panthor: Expose size of driver internal BO's over fdinfo 2025-02-07 15:23:39 +01:00
panthor_hw.c drm/panthor: Use a local iomem base for PWR registers 2026-04-30 17:14:59 +01:00
panthor_hw.h drm/panthor: Split register definitions by components 2026-04-30 17:14:48 +01:00
panthor_mmu_regs.h drm/panthor: Use a local iomem base for MMU AS registers 2026-04-30 17:15:01 +01:00
panthor_mmu.c drm/panthor: Keep interrupts masked until they are needed 2026-06-30 15:26:55 +01:00
panthor_mmu.h drm/panthor: Add a GEM shrinker 2026-04-03 13:23:57 +02:00
panthor_pwr_regs.h drm/panthor: Use a local iomem base for PWR registers 2026-04-30 17:14:59 +01:00
panthor_pwr.c drm/panthor: Keep interrupts masked until they are needed 2026-06-30 15:26:55 +01:00
panthor_pwr.h drm/panthor: Implement soft reset via PWR_CONTROL 2025-11-26 10:56:19 +01:00
panthor_sched.c drm/panthor: Interrupt group start/resumption if group_bind_locked() fails 2026-06-30 15:26:55 +01:00
panthor_sched.h drm/panthor: Evict groups before VM termination 2025-12-19 11:57:55 +01:00
panthor_trace.h drm/panthor: Add gpu_job_irq tracepoint 2026-01-22 15:15:35 +01:00