linux/drivers/gpu/drm/panthor
Adrián Larumbe 7d9c3442b0 drm/panthor: Defer scheduler entitiy destruction to queue release
Commit de85488138 ("drm/panthor: Add the scheduler logical block")
handled destruction of a group's queues' drm scheduler entities early
into the group destruction procedure.

However, that races with the group submit ioctl, because by the time
entities are destroyed (through the group destroy ioctl), the submission
procedure might've already obtained a group handle, and therefore the
ability to push jobs into entities. This is met with a DRM error message
within the drm scheduler core as a situation that should never occur.

Fix by deferring drm scheduler entity destruction to queue release time.

Fixes: de85488138 ("drm/panthor: Add the scheduler logical block")
Signed-off-by: Adrián Larumbe <adrian.larumbe@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://lore.kernel.org/r/20250919164436.531930-1-adrian.larumbe@collabora.com
2025-09-25 09:52:03 +01:00
..
Kconfig
Makefile
panthor_devfreq.c drm/panthor: Ignore devfreq_{suspend, resume}_device() failures 2024-12-11 10:03:59 +01:00
panthor_devfreq.h drm/panthor: Ignore devfreq_{suspend, resume}_device() failures 2024-12-11 10:03:59 +01:00
panthor_device.c drm/panthor: show device-wide list of DRM GEM objects over DebugFS 2025-04-23 10:35:36 +02:00
panthor_device.h drm/panthor: Add 64-bit and poll register accessors 2025-06-06 12:44:41 +02:00
panthor_drv.c drm/panthor: validate group queue count 2025-09-04 15:59:23 +01:00
panthor_fw.c drm/panthor: Add 64-bit and poll register accessors 2025-06-06 12:44:41 +02:00
panthor_fw.h drm/panthor: Update CS_STATUS_ defines to correct values 2025-03-05 11:09:17 +00:00
panthor_gem.c drm/panthor: Fix UAF in panthor_gem_create_with_handle() debugfs code 2025-07-10 10:16:50 +01:00
panthor_gem.h drm/panthor: Fix UAF in panthor_gem_create_with_handle() debugfs code 2025-07-10 10:16:50 +01:00
panthor_gpu.c drm/panthor: Wait for _READY register when powering on 2025-06-30 16:57:24 +01:00
panthor_gpu.h drm/panthor: Clean up 64-bit register definitions 2025-06-06 12:44:41 +02:00
panthor_heap.c drm/panthor: Label all kernel BO's 2025-04-23 10:35:35 +02:00
panthor_heap.h drm/panthor: Expose size of driver internal BO's over fdinfo 2025-02-07 15:23:39 +01:00
panthor_mmu.c drm/sched: Rename DRM_GPU_SCHED_STAT_NOMINAL to DRM_GPU_SCHED_STAT_RESET 2025-07-15 08:27:00 -03:00
panthor_mmu.h drm/panthor: Remove dead VM flushing code 2025-07-14 16:59:21 +01:00
panthor_regs.h drm/panthor: Clean up 64-bit register definitions 2025-06-06 12:44:41 +02:00
panthor_sched.c drm/panthor: Defer scheduler entitiy destruction to queue release 2025-09-25 09:52:03 +01:00
panthor_sched.h drm/sched: Store the drm client_id in drm_sched_fence 2025-05-28 16:15:58 +02:00