]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/xe: Don't trigger rebind on initial dma-buf validation
authorMatthew Brost <matthew.brost@intel.com>
Mon, 25 Aug 2025 15:28:41 +0000 (08:28 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Tue, 26 Aug 2025 04:59:54 +0000 (21:59 -0700)
commitffdf968762e4fb3cdae54e811ec3525e67440a60
tree4f79b4cf1f2c9e40516aeea9c06f7aad2b4a0b01
parent358ee50ab565f3c8ea32480e9d03127a81ba32f8
drm/xe: Don't trigger rebind on initial dma-buf validation

On the first validate of an imported dma-buf (initial bind), the device
has no GPU mappings, so a rebind is unnecessary. Rebinding here is
harmful in multi-GPU setups and for VMs using preempt-fence mode, as it
would evict in-flight GPU work.

v2:
 - Drop dma_buf_validated, check for XE_PL_SYSTEM (Thomas)

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://lore.kernel.org/r/20250825152841.3837378-1-matthew.brost@intel.com
drivers/gpu/drm/xe/xe_bo.c