]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/xe: Use Xe ordered workqueue for rebind worker
authorMatthew Brost <matthew.brost@intel.com>
Fri, 9 Jun 2023 18:19:30 +0000 (11:19 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:35:21 +0000 (18:35 -0500)
commit5e3220de6c72349f77977c62a991748d4e0fea26
tree7f33b88cc9da9ea0c6e685f2263a87b424eb3127
parent790bdc7cb2e7dafbac0aafc016dcb7493c925bac
drm/xe: Use Xe ordered workqueue for rebind worker

A mix of the system unbound wq and Xe ordered wq was used for the
rebind, only use the Xe ordered wq. This will ensure only 1 rebind is
occuring at a time providing a somewhat clunky work around for short
comings in TTM wrt to memory contention. Once the TTM memory contention
is resolved we should be able to use a dedicated non-ordered workqueue.

Also add helper to queue rebind worker to avoid using wrong workqueue
going forward.

Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_preempt_fence.c
drivers/gpu/drm/xe/xe_vm.c
drivers/gpu/drm/xe/xe_vm.h