drm/xe/vm: Defer vm rebind until next exec if nothing to execute
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Tue, 14 Mar 2023 14:56:44 +0000 (15:56 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:30:14 +0000 (18:30 -0500)
commit8e41443e1bb7a9aa03263ab9e317ef04927be5aa
tree2a41465d11fd29e526a49d93de402954cc956e2a
parent7cba3396fd7e87a976b8ad1e30d734b72dec7e31
drm/xe/vm: Defer vm rebind until next exec if nothing to execute

If all compute engines of a vm in compute mode are idle,
defer a rebind to the next exec to avoid the VM unnecessarily trying
to make memory resident and compete with other VMs for available
memory space.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_exec.c
drivers/gpu/drm/xe/xe_vm.c
drivers/gpu/drm/xe/xe_vm.h
drivers/gpu/drm/xe/xe_vm_types.h