diff options
| author | Matthew Brost <matthew.brost@intel.com> | 2026-02-23 20:25:53 +0300 |
|---|---|---|
| committer | Matthew Brost <matthew.brost@intel.com> | 2026-02-24 20:34:48 +0300 |
| commit | 571cc8356cbf01252d2bbf4101da99380129a727 (patch) | |
| tree | 9387d37e2f36d234979e3290d2238360c077c148 | |
| parent | 196b2b95fec447c2c4460f753b277d840633fbef (diff) | |
| download | linux-571cc8356cbf01252d2bbf4101da99380129a727.tar.xz | |
drm/i915/selftests: Fix build after dma-fence locking rework
The i915_active selftest no longer builds after the dma-fence locking
rework because it directly accessed the fence’s spinlock. The helper
dma_fence_spinlock() must now be used to obtain the spinlock. Update the
selftest to use dma_fence_spinlock() accordingly.
Fixes: 1f32f310a13c ("dma-buf: inline spinlock for fence protection v5")
Cc: Christian König <christian.koenig@amd.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patch.msgid.link/20260223172553.1663749-1-matthew.brost@intel.com
| -rw-r--r-- | drivers/gpu/drm/i915/selftests/i915_active.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/selftests/i915_active.c b/drivers/gpu/drm/i915/selftests/i915_active.c index 52345073b409..9fea2fabeac4 100644 --- a/drivers/gpu/drm/i915/selftests/i915_active.c +++ b/drivers/gpu/drm/i915/selftests/i915_active.c @@ -323,9 +323,9 @@ static void active_flush(struct i915_active *ref, if (!fence) return; - spin_lock_irq(fence->lock); + spin_lock_irq(dma_fence_spinlock(fence)); __list_del_entry(&active->cb.node); - spin_unlock_irq(fence->lock); /* serialise with fence->cb_list */ + spin_unlock_irq(dma_fence_spinlock(fence)); /* serialise with fence->cb_list */ atomic_dec(&ref->count); GEM_BUG_ON(!test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags)); |
