]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/vf: Avoid indefinite blocking in preempt rebind worker for VFs supporting...
authorMatthew Brost <matthew.brost@intel.com>
Wed, 8 Oct 2025 21:45:16 +0000 (14:45 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 9 Oct 2025 10:22:41 +0000 (03:22 -0700)
commit1faeeea056abb05a6513418e4cdb208326a67749
treeefba17087127237dd3feea327aea4a0735f82c55
parenta4dae94aad6ace04d396034e99a93b0e489b3da4
drm/xe/vf: Avoid indefinite blocking in preempt rebind worker for VFs supporting migration

Blocking in work queues on a hardware action that may never occur —
especially when it depends on a software fixup also scheduled on the
a work queue — is a recipe for deadlock. This situation arises with
the preempt rebind worker and VF post-migration recovery. To prevent
potential deadlocks, avoid indefinite blocking in the preempt rebind
worker for VFs that support migration.

v4:
 - Use dma_fence_wait_timeout (CI)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Tomasz Lis <tomasz.lis@intel.com>
Link: https://lore.kernel.org/r/20251008214532.3442967-19-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_vm.c