Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Elide clear on full SVM copies
@ 2026-09-29 18:10 Matthew Brost
  2026-09-29 18:10 ` [PATCH 1/3] drm/xe: Add XE_BO_FLAG_SKIP_CLEAR Matthew Brost
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Matthew Brost @ 2026-09-29 18:10 UTC (permalink / raw)
  To: intel-xe

Clearing a BO whose contents will be fully overwritten immediately afterward
provides little benefit and reduces page-fault and prefetch bandwidth.
Elide the initial clear for SVM-allocated BOs, and only perform a clear in
the copy_to_device vfunc when the CPU pages are not fully populated.

Matt

Matthew Brost (3):
  drm/xe: Add XE_BO_FLAG_SKIP_CLEAR
  drm/xe: Add xe_migrate_clear_vram
  drm/xe: Do not clear SVM device memory allocations up front

 drivers/gpu/drm/xe/xe_bo.c      |   3 +
 drivers/gpu/drm/xe/xe_bo.h      |   1 +
 drivers/gpu/drm/xe/xe_migrate.c |  89 +++++++++++++++++++
 drivers/gpu/drm/xe/xe_migrate.h |   5 ++
 drivers/gpu/drm/xe/xe_svm.c     | 150 ++++++++++++++++++++++++++++++--
 5 files changed, 241 insertions(+), 7 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-09-30  0:17 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-29 18:10 [PATCH 0/3] Elide clear on full SVM copies Matthew Brost
2026-09-29 18:10 ` [PATCH 1/3] drm/xe: Add XE_BO_FLAG_SKIP_CLEAR Matthew Brost
2026-09-29 18:10 ` [PATCH 2/3] drm/xe: Add xe_migrate_clear_vram Matthew Brost
2026-09-29 18:10 ` [PATCH 3/3] drm/xe: Do not clear SVM device memory allocations up front Matthew Brost
2026-09-29 18:27   ` sashiko-bot
2026-09-29 18:31     ` Matthew Brost
2026-09-29 20:16   ` Summers, Stuart
2026-09-29 21:14     ` Matthew Brost
2026-09-29 22:05       ` Summers, Stuart
2026-09-29 23:21         ` Matthew Brost
2026-09-29 18:18 ` ✓ CI.KUnit: success for Elide clear on full SVM copies Patchwork
2026-09-29 19:36 ` ✓ Xe.CI.BAT: " Patchwork
2026-09-30  0:17 ` ✗ Xe.CI.FULL: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox