[PATCH v3 0/4] Implement clear VRAM on free
Matthew Brost
matthew.brost at intel.com
Mon Jun 23 15:19:25 UTC 2025
Do not use a delayed worker to destroy BO VMAs. Drop the BO argument
from xe_migrate_clear, as this function can be called with a BO that has
a zero reference count. Finally, implement VRAM clearing on free.
Avoiding a delayed worker for BO VMA destruction ensures timely
finalization of the BO during unbind, which should improve the
performance of clear-on-free. This change is therefore included in this
series.
v3:
- Fix kunit
Matt
Matthew Brost (4):
drm/xe: Only use delayed worker to destroy userptr VMAs
drm/xe: Drop BO argument from xe_migrate_clear
drm/xe: Add xe_bo_tt_has_data helper
drm/xe: Implement clear VRAM on free
drivers/gpu/drm/xe/tests/xe_migrate.c | 22 +++++---
drivers/gpu/drm/xe/xe_bo.c | 75 +++++++++++++++++++++++--
drivers/gpu/drm/xe/xe_bo.h | 2 +
drivers/gpu/drm/xe/xe_migrate.c | 50 +++++++++++------
drivers/gpu/drm/xe/xe_migrate.h | 9 ++-
drivers/gpu/drm/xe/xe_res_cursor.h | 26 +++++++++
drivers/gpu/drm/xe/xe_ttm_vram_mgr.c | 6 +-
drivers/gpu/drm/xe/xe_ttm_vram_mgr.h | 6 ++
drivers/gpu/drm/xe/xe_vm.c | 80 ++++++++++++++-------------
drivers/gpu/drm/xe/xe_vm_types.h | 13 ++---
10 files changed, 213 insertions(+), 76 deletions(-)
--
2.34.1
More information about the Intel-xe
mailing list