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_vm_types.h | |
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_vm_types.h')
-rw-r--r-- | drivers/gpu/drm/xe/xe_vm_types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_vm_types.h b/drivers/gpu/drm/xe/xe_vm_types.h index 2a3b911ab358..fada7896867f 100644 --- a/drivers/gpu/drm/xe/xe_vm_types.h +++ b/drivers/gpu/drm/xe/xe_vm_types.h @@ -294,6 +294,11 @@ struct xe_vm { /** @num_engines: number user engines attached to this VM */ int num_engines; /** + * @rebind_deactivated: Whether rebind has been temporarily deactivated + * due to no work available. Protected by the vm resv. + */ + bool rebind_deactivated; + /** * @rebind_work: worker to rebind invalidated userptrs / evicted * BOs */ |