Skip to content

Interruptible bb wait + related bits

Matthew Auld intel-xe 1 version In review

Get series with b4
b4 am [email protected] change-id 20261028-migrate-bb-optimise-65bb54cf303e

Versions newest first

  1. v1 Latest6 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6drm/xe/migrate: allow larger chunk sizes for identity VRAM clearsdrivers/gpu/drm/xe/xe_migrate.c+6 -01 reply
2/6drm/xe/bb: drop per-batch prefetch paddingdrivers/gpu/drm/xe/xe_bb.c+6 -201 reply
3/6drm/xe/sa: remove unused shadow BO and two-step bb helpersdrivers/gpu/drm/xe/xe_bb.c drivers/gpu/drm/xe/xe_bb.h drivers/gpu/drm/xe/xe_guc_buf.c +3 more+4 -1911 reply
4/6drm/xe/sa: allow callers to specify interruptible suballocator waitsdrivers/gpu/drm/xe/xe_bb.c drivers/gpu/drm/xe/xe_bb.h drivers/gpu/drm/xe/xe_guc_buf.c +3 more+23 -111 reply
5/6drm/xe/migrate: plumb interruptible wait flag to clear and copydrivers/gpu/drm/xe/tests/xe_bo.c drivers/gpu/drm/xe/tests/xe_migrate.c drivers/gpu/drm/xe/xe_bo.c +4 more+31 -221 reply
6/6drm/xe/migrate: avoid interruptible waits once passes are in flightdrivers/gpu/drm/xe/xe_migrate.c+2 -21 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchThomas Hellström
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] Interruptible bb wait + related bits

Original motivation comes from user issue:
https://gitlab.freedesktop.org/drm/xe/kernel/-/work_items/9644

Previous attempt:
https://patchwork.freedesktop.org/series/176670/

In this version the approach is to try to reduce overall pressure on the bb pool. And then for the bb wait, which is now much less likely to be hit, keeping it uinterruptible only where it makes sense, like when caller asked for it.

---
Matthew Auld (6):
drm/xe/migrate: allow larger chunk sizes for identity VRAM clears drm/xe/bb: drop per-batch prefetch padding
drm/xe/sa: remove unused shadow BO and two-step bb helpers drm/xe/sa: allow callers to specify interruptible suballocator waits drm/xe/migrate: plumb interruptible wait flag to clear and copy drm/xe/migrate: avoid interruptible waits once passes are in flight

 drivers/gpu/drm/xe/tests/xe_bo.c           |   2 +-
 drivers/gpu/drm/xe/tests/xe_migrate.c      |  12 ++--
 drivers/gpu/drm/xe/xe_bb.c                 |  90 ++----------------------
 drivers/gpu/drm/xe/xe_bb.h                 |  12 ++--
 drivers/gpu/drm/xe/xe_bo.c                 |   9 +--
 drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c |   3 +-
 drivers/gpu/drm/xe/xe_guc_buf.c            |   6 +-
 drivers/gpu/drm/xe/xe_migrate.c            |  25 +++++--
 drivers/gpu/drm/xe/xe_migrate.h            |   6 +-
 drivers/gpu/drm/xe/xe_page_reclaim.c       |   2 +-
 drivers/gpu/drm/xe/xe_sa.c                 | 109 ++---------------------------
 drivers/gpu/drm/xe/xe_sa.h                 |  31 +++-----
 drivers/gpu/drm/xe/xe_sa_types.h           |   3 -
 drivers/gpu/drm/xe/xe_vram.c               |   2 +-
 14 files changed, 69 insertions(+), 243 deletions(-)

---
base-commit: 29f9258a2788a1066c0910c480e65c80887f4d20
change-id: 20261028-migrate-bb-optimise-65bb54cf303e