drm/xe: Refactor __xe_exec_queue_create()
authorBrian Welty <brian.welty@intel.com>
Wed, 10 Jan 2024 17:32:49 +0000 (09:32 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 10 Jan 2024 23:01:27 +0000 (15:01 -0800)
commit6e144a7d6f8a22f22f49f2ecf4268da1c75bcc4a
treefea16f1c2666ab2a5fc23a4b8d28db9d342dbb77
parenta109d19992294736abd4f4232ea639e03eb1f9e7
drm/xe: Refactor __xe_exec_queue_create()

Split __xe_exec_queue_create() into two functions, alloc and init.

We have an issue in that exec_queue_user_extensions are applied too late.
In the case of USM properties, these need to be set prior to xe_lrc_init().
Refactor the logic here, so we can resolve this in follow-on. We only need
the xe_vm_lock held during the exec_queue_init function.

Signed-off-by: Brian Welty <brian.welty@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
drivers/gpu/drm/xe/xe_exec_queue.c