Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+2 -2
+2 -2
drivers/gpu/drm/i915/selftests/i915_active.c
··· 323 323 if (!fence) 324 324 return; 325 325 326 - spin_lock_irq(fence->lock); 326 + spin_lock_irq(dma_fence_spinlock(fence)); 327 327 __list_del_entry(&active->cb.node); 328 - spin_unlock_irq(fence->lock); /* serialise with fence->cb_list */ 328 + spin_unlock_irq(dma_fence_spinlock(fence)); /* serialise with fence->cb_list */ 329 329 atomic_dec(&ref->count); 330 330 331 331 GEM_BUG_ON(!test_bit(DMA_FENCE_FLAG_SIGNALED_BIT, &fence->flags));