]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe: Create LRC BO without VM
authorNiranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Thu, 29 May 2025 05:20:32 +0000 (22:20 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Thu, 29 May 2025 16:18:31 +0000 (09:18 -0700)
commitfbeaad071a98fef87deccee81d564de1c8e8e16d
treef16d1840f08b641419460dcfd8a9788ca365953b
parent4f296d77cf49fcb5f90b4674123ad7f3a0676165
drm/xe: Create LRC BO without VM

Specifying VM during lrc->bo creation requires VM's reference
to be held for the lifetime of lrc->bo as it will use VM's dma
reservation object. Using VM's dma reservation object for
lrc->bo doesn't provide any advantage. Hence do not pass VM
while creating lrc->bo.

v2: Use xe_bo_unpin_map_no_vm (Matthew Brost)

Fixes: 264eecdba211 ("drm/xe: Decouple xe_exec_queue and xe_lrc")
Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250529052031.2429120-2-niranjana.vishwanathapura@intel.com
drivers/gpu/drm/xe/xe_exec_queue.c
drivers/gpu/drm/xe/xe_lrc.c