mirror-linux/drivers/gpu/drm/v3d
Maíra Canal 7315728ab5
drm/v3d: Remove dedicated fence_lock
Commit adefb2ccea ("drm/v3d: create a dedicated lock for dma fence")
split `fence_lock` from `queue_lock` because v3d_job_update_stats() was
taking `queue_lock` to protect `job->file_priv` during stats collection
in the IRQ handler. Using the same lock for both DMA fence signaling and
stats protection in a IRQ context caused issues on PREEMPT_RT.

Since then, the stats infrastructure has been reworked: v3d_stats is now
refcounted and jobs hold their own references to stats objects, so
v3d_job_update_stats() no longer takes `queue_lock` at all.

With the original reason for the split gone, merge `fence_lock` back
into `queue_lock` to simplify the locking scheme.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Link: https://patch.msgid.link/20260306-v3d-reset-locking-improv-v3-6-49864fe00692@igalia.com
Signed-off-by: Maíra Canal <mcanal@igalia.com>
2026-03-13 18:02:32 -03:00
..
Kconfig
Makefile drm/v3d: Use huge tmpfs mountpoint helpers 2025-12-08 10:52:47 +01:00
v3d_bo.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
v3d_debugfs.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
v3d_drv.c drm/v3d: Attach per-fd reset counters to v3d_stats 2026-03-13 18:02:32 -03:00
v3d_drv.h drm/v3d: Remove dedicated fence_lock 2026-03-13 18:02:32 -03:00
v3d_fence.c drm/v3d: Remove dedicated fence_lock 2026-03-13 18:02:32 -03:00
v3d_gem.c drm/v3d: Remove dedicated fence_lock 2026-03-13 18:02:32 -03:00
v3d_irq.c drm/v3d: Hold v3d_stats references in each job 2026-03-13 18:02:32 -03:00
v3d_mmu.c drm/v3d: Convert v3d logging to device-based DRM helpers 2026-01-19 07:12:25 -03:00
v3d_perfmon.c Merge drm/drm-next into drm-misc-next 2026-02-23 11:48:20 +01:00
v3d_performance_counters.h drm/v3d: Fix miscellaneous documentation errors 2024-12-11 10:06:14 -03:00
v3d_regs.h drm/v3d: Use V3D_SMS registers for power on/off and reset on V3D 7.x 2025-03-23 11:06:15 -03:00
v3d_sched.c drm/v3d: Attach per-fd reset counters to v3d_stats 2026-03-13 18:02:32 -03:00
v3d_submit.c drm/v3d: Hold v3d_stats references in each job 2026-03-13 18:02:32 -03:00
v3d_sysfs.c drm/v3d: Refcount v3d_stats 2026-03-13 18:02:32 -03:00
v3d_trace.h
v3d_trace_points.c