]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/vm: move rebind_work init earlier
authorMatthew Auld <matthew.auld@intel.com>
Wed, 14 May 2025 15:24:25 +0000 (16:24 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Thu, 29 May 2025 10:56:01 +0000 (11:56 +0100)
commit96af397aa1a2d1032a6e28ff3f4bc0ab4be40e1d
tree1c5025f9be971acd7aab474edf28c8639fdd5f6f
parent338ec84deefdaf8e479455ee7d55434571799cf0
drm/xe/vm: move rebind_work init earlier

In xe_vm_close_and_put() we need to be able to call
flush_work(rebind_work), however during vm creation we can call this on
the error path, before having actually set up the worker, leading to a
splat from flush_work().

It looks like we can simply move the worker init step earlier to fix
this.

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: <stable@vger.kernel.org> # v6.8+
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250514152424.149591-3-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_vm.c