[PATCH v3 0/2] drm/xe: Consolidate VM initialization logic
Piórkowski, Piotr
piotr.piorkowski at intel.com
Mon Aug 11 10:43:56 UTC 2025
From: Piotr Piórkowski <piotr.piorkowski at intel.com>
This series refactors VM creation to consolidate initialization logic
into xe_vm_create, ensuring consistency across all VM creation paths.
This also fixes a bug introduced in
"drm/xe: add XE_BO_FLAG_PINNED_LATE_RESTORE"
which incorrectly assumed that vm->xef is initialized before PTs are
created.
v1 -> v2:
- take reference to the xe file object only when xef is not NULL
- release the reference to the xe file object on the error path (Matthew)
- move usm.asid and the pt tracking to xe_create_vm - new patch (Matthew)
- add this cover letter
v2 -> v3:
- removed unnecessary duplicate BO tracking code (it is alredy done in xe_pt_create)
- using the local variable xef to verify whether the VM is being created
by userspace
Signed-off-by: Piotr Piórkowski <piotr.piorkowski at intel.com>
Cc: Matthew Auld <matthew.auld at intel.com>
Piotr Piórkowski (2):
drm/xe: Assign ioctl xe file handler to vm in xe_vm_create
drm/xe: Move ASID allocation and user PT BO tracking into xe_vm_create
drivers/gpu/drm/xe/xe_migrate.c | 2 +-
drivers/gpu/drm/xe/xe_pxp_submit.c | 2 +-
drivers/gpu/drm/xe/xe_vm.c | 45 ++++++++++++++----------------
drivers/gpu/drm/xe/xe_vm.h | 2 +-
4 files changed, 24 insertions(+), 27 deletions(-)
--
2.34.1
More information about the Intel-xe
mailing list