drm/xe: Streamline exec queue freeing path
authorNiranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Tue, 19 Mar 2024 17:59:46 +0000 (10:59 -0700)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 20 Mar 2024 05:36:30 +0000 (22:36 -0700)
commit260fa80d4a4163ea60661c30a03f72681ba7d450
treee64ce3966b2fcfa3fdc3fb473b4334a4f23895fa
parentaacf3f629ad7f82170b207158b810066fc354322
drm/xe: Streamline exec queue freeing path

Ensure exec queue freeing happens at one place, that is in
__xe_exec_queue_free(). It releases q->vm reference also. Set
q->vm before handling extensions as they can potentially reference it.

Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240319175947.15890-1-niranjana.vishwanathapura@intel.com
drivers/gpu/drm/xe/xe_exec_queue.c