[PATCH 0/3] drm/xe: VM Overcommit handling fixes

Thomas Hellström thomas.hellstrom at linux.intel.com
Mon Feb 26 16:44:52 UTC 2024


We were not allowing eviction / shrinking of completely unbound
local objects. Since unbinding is the UMD primary means of
freeing up memory on local VM overcommit situations, fix this.

While on it, also reinstate the migration of local objects from
VRAM to TT if the placement list allows it.

Also open up the possibility to evict purgeable local objects with
upcoming changes.

Cc: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
Cc: Matthew Brost <matthew.brost at intel.com>
Cc: Lucas De Marchi <lucas.demarchi at intel.com>
Cc: Oded Gabbay <ogabbay at kernel.org>

Thomas Hellström (3):
  drm/xe/bo: Forward the decision to evict local objects during
    validation
  drm/xe/bo: Allow eviction of unbound local bos
  drm/xe/bo: Allow migrating local bos to TT to make room in VRAM

 drivers/gpu/drm/xe/xe_bo.c       | 41 +++++++++++++++++++++++++++++++-
 drivers/gpu/drm/xe/xe_exec.c     |  2 ++
 drivers/gpu/drm/xe/xe_vm.c       |  8 +++++--
 drivers/gpu/drm/xe/xe_vm_types.h |  7 ++++++
 4 files changed, 55 insertions(+), 3 deletions(-)

-- 
2.43.0



Thomas Hellström (3):
  drm/xe/bo: Forward the decision to evict local objects during
    validation
  drm/xe/bo: Allow eviction of unbound local bos
  drm/xe/bo: Allow migrating local bos to TT to make room in VRAM

 drivers/gpu/drm/xe/xe_bo.c       | 41 +++++++++++++++++++++++++++++++-
 drivers/gpu/drm/xe/xe_exec.c     |  2 ++
 drivers/gpu/drm/xe/xe_vm.c       |  8 +++++--
 drivers/gpu/drm/xe/xe_vm_types.h | 10 ++++++++
 4 files changed, 58 insertions(+), 3 deletions(-)

-- 
2.43.0



More information about the Intel-xe mailing list