drm/xe: Rework rebinding
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Wed, 27 Mar 2024 09:11:34 +0000 (10:11 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Thu, 28 Mar 2024 07:39:28 +0000 (08:39 +0100)
commit5a091aff50b780ae29c7faf70a7a6c21c98a54c4
tree21e46bbeb46da09b011448f55807a42abbee2c6d
parent4fc4899e86f7afbd09f4bcb899f0fc57e0296e62
drm/xe: Rework rebinding

Instead of handling the vm's rebind fence separately,
which is error prone if they are not strictly ordered,
attach rebind fences as kernel fences to the vm's resv.

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: <stable@vger.kernel.org> # v6.8+
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240327091136.3271-3-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/xe/xe_exec.c
drivers/gpu/drm/xe/xe_pt.c
drivers/gpu/drm/xe/xe_vm.c
drivers/gpu/drm/xe/xe_vm.h
drivers/gpu/drm/xe/xe_vm_types.h