From: Matthew Brost Date: Fri, 16 Jan 2026 22:17:22 +0000 (-0800) Subject: drm/xe: Make usm.asid_to_vm allocation use GFP_NOWAIT X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=444d78578e8a79537e527b50fda17d6aa2d30b79;p=thirdparty%2Flinux.git drm/xe: Make usm.asid_to_vm allocation use GFP_NOWAIT Ensure the asid_to_vm lookup is reclaim-safe so it can be performed during TLB invalidations, which is necessary for context-based TLB invalidation support. Signed-off-by: Matthew Brost Reviewed-by: Stuart Summers Tested-by: Stuart Summers Link: https://patch.msgid.link/20260116221731.868657-3-matthew.brost@intel.com --- diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c index bbbc7e71b8ef4..24647b128a17f 100644 --- a/drivers/gpu/drm/xe/xe_vm.c +++ b/drivers/gpu/drm/xe/xe_vm.c @@ -1653,7 +1653,7 @@ struct xe_vm *xe_vm_create(struct xe_device *xe, u32 flags, struct xe_file *xef) down_write(&xe->usm.lock); err = xa_alloc_cyclic(&xe->usm.asid_to_vm, &asid, vm, XA_LIMIT(1, XE_MAX_ASID - 1), - &xe->usm.next_asid, GFP_KERNEL); + &xe->usm.next_asid, GFP_NOWAIT); up_write(&xe->usm.lock); if (err < 0) goto err_close;