diff options
author | Thomas Hellström <thomas.hellstrom@linux.intel.com> | 2023-03-14 17:56:44 +0300 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-20 02:30:14 +0300 |
commit | 8e41443e1bb7a9aa03263ab9e317ef04927be5aa (patch) | |
tree | 2a41465d11fd29e526a49d93de402954cc956e2a /drivers/gpu/drm/xe/xe_exec.c | |
parent | 7cba3396fd7e87a976b8ad1e30d734b72dec7e31 (diff) | |
download | linux-8e41443e1bb7a9aa03263ab9e317ef04927be5aa.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_exec.c')
-rw-r--r-- | drivers/gpu/drm/xe/xe_exec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_exec.c b/drivers/gpu/drm/xe/xe_exec.c index 97fd1a311f2d..ea869f2452ef 100644 --- a/drivers/gpu/drm/xe/xe_exec.c +++ b/drivers/gpu/drm/xe/xe_exec.c @@ -364,6 +364,7 @@ retry: &job->drm.s_fence->finished); xe_sched_job_push(job); + xe_vm_reactivate_rebind(vm); err_repin: if (!xe_vm_no_dma_fences(vm)) |