]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/vm: move xe_svm_init() earlier
authorMatthew Auld <matthew.auld@intel.com>
Wed, 14 May 2025 15:24:26 +0000 (16:24 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Thu, 29 May 2025 10:56:03 +0000 (11:56 +0100)
commit4f296d77cf49fcb5f90b4674123ad7f3a0676165
tree1bef02f064b3f4073da54827c129e85a13bebc57
parent96af397aa1a2d1032a6e28ff3f4bc0ab4be40e1d
drm/xe/vm: move xe_svm_init() earlier

In xe_vm_close_and_put() we need to be able to call xe_svm_fini(),
however during vm creation we can call this on the error path, before
having actually initialised the svm state, leading to various splats
followed by a fatal NPD.

Fixes: 6fd979c2f331 ("drm/xe: Add SVM init / close / fini to faulting VMs")
Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/4967
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250514152424.149591-4-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_vm.c