Skip to content

Elide clear on full SVM copies

Matthew Brost intel-xe sashiko-reviews 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/xe: Add XE_BO_FLAG_SKIP_CLEARdrivers/gpu/drm/xe/xe_bo.c drivers/gpu/drm/xe/xe_bo.h+4 -00 replies
2/3drm/xe: Add xe_migrate_clear_vramdrivers/gpu/drm/xe/xe_migrate.c drivers/gpu/drm/xe/xe_migrate.h+94 -00 replies
3/3drm/xe: Do not clear SVM device memory allocations up frontdrivers/gpu/drm/xe/xe_svm.c+143 -75 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Elide clear on full SVM copies

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(-)
Signature · 1 line
2.34.1