On Sat, Apr 12, 2025 at 12:08:03AM +0100, Adrián Larumbe wrote:
Commit 0590c94c3596 ("drm/panthor: Fix race condition when gathering fdinfo group samples") introduced an xarray lock to deal with potential use-after-free errors when accessing groups fdinfo figures. However, this toggles the kernel's atomic context status, so the next nested mutex lock will raise a warning when the kernel is compiled with mutex debug options:
CONFIG_DEBUG_RT_MUTEXES=y CONFIG_DEBUG_MUTEXES=y
Replace Panthor's group fdinfo data mutex with a guarded spinlock.
Signed-off-by: Adrián Larumbe adrian.larumbe@collabora.com Fixes: 0590c94c3596 ("drm/panthor: Fix race condition when gathering fdinfo group samples") Reviewed-by: Liviu Dudau liviu.dudau@arm.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://patchwork.freedesktop.org/patch/msgid/20250303190923.1639985-1-adria... (cherry picked from commit e379856b428acafb8ed689f31d65814da6447b2e)
drivers/gpu/drm/panthor/panthor_sched.c | 28 ++++++++++++------------- 1 file changed, 13 insertions(+), 15 deletions(-)
Does not apply at all, did something get corrupted?