]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/xe: Move ASID allocation and user PT BO tracking into xe_vm_create
authorPiotr Piórkowski <piotr.piorkowski@intel.com>
Mon, 11 Aug 2025 10:43:58 +0000 (12:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:34:51 +0000 (16:34 +0200)
commit2d6c8cfb4d89753a8eff31ec33058ab88e62b3cf
tree8f404f2e6dc1f10c3ca969b3de647058dbafcdaa
parentb32e1590a8d22cf7d7f965e46d5576051acf8e42
drm/xe: Move ASID allocation and user PT BO tracking into xe_vm_create

[ Upstream commit 8a30114073639fd97f2c7390abbc34fb8711327a ]

Currently, ASID assignment for user VMs and page-table BO accounting for
client memory tracking are performed in xe_vm_create_ioctl.
To consolidate VM object initialization, move this logic to
xe_vm_create.

v2:
 - removed unnecessary duplicate BO tracking code
 - using the local variable xef to verify whether the VM is being created
   by userspace

Fixes: 658a1c8e0a66 ("drm/xe: Assign ioctl xe file handler to vm in xe_vm_create")
Suggested-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://lore.kernel.org/r/20250811104358.2064150-3-piotr.piorkowski@intel.com
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
(cherry picked from commit 30e0c3f43a414616e0b6ca76cf7f7b2cd387e1d4)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
[Rodrigo: Added fixes tag]
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/xe/xe_vm.c