[PATCH 12/15] drm/xe: Enable ULLS migration jobs when opening LR VM
Matthew Brost
matthew.brost at intel.com
Thu Jun 5 15:32:20 UTC 2025
Call xe_migration_lr_vm_get upon opening LR VM and
xe_migration_lr_vm_put upon close to enter / exit ULLS on the migration
exec queue.
Signed-off-by: Matthew Brost <matthew.brost at intel.com>
---
drivers/gpu/drm/xe/xe_vm.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c
index 0285938a4bb2..8373e776b504 100644
--- a/drivers/gpu/drm/xe/xe_vm.c
+++ b/drivers/gpu/drm/xe/xe_vm.c
@@ -1807,6 +1807,11 @@ struct xe_vm *xe_vm_create(struct xe_device *xe, u32 flags)
if (number_tiles > 1)
vm->composite_fence_ctx = dma_fence_context_alloc(1);
+ if (flags & XE_VM_FLAG_LR_MODE) {
+ for_each_tile(tile, xe, id)
+ xe_migrate_lr_vm_get(tile->migrate);
+ }
+
trace_xe_vm_create(vm);
return vm;
@@ -1964,6 +1969,11 @@ void xe_vm_close_and_put(struct xe_vm *vm)
up_write(&vm->lock);
+ if (vm->flags & XE_VM_FLAG_LR_MODE) {
+ for_each_tile(tile, xe, id)
+ xe_migrate_lr_vm_put(tile->migrate);
+ }
+
down_write(&xe->usm.lock);
if (vm->usm.asid) {
void *lookup;
--
2.34.1
More information about the Intel-xe
mailing list