From: Matthew Auld <matthew.auld@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>,
"Matthew Brost" <matthew.brost@intel.com>,
"Matthew Auld" <matthew.auld@intel.com>
Subject: [PATCH v2 0/6] Interruptible bb wait + related bits
Date: Fri, 27 Nov 2026 12:14:10 +0000 [thread overview]
Message-ID: <20261127-migrate-bb-optimise-v2-0-808d0d520ddb@intel.com> (raw)
Original motivation comes from user issue:
https://gitlab.freedesktop.org/drm/xe/kernel/-/work_items/9644
Original attempt:
https://patchwork.freedesktop.org/series/176670/
In this version the approach is to try to reduce overall pressure on the
bb pool.
The first three patches fix suballocator waits so callers can control
whether bb waits are interruptible, keeping waits uninterruptible where
required by the caller or once multi-pass migration work is already in
flight.
Remaining patches reduce overall pressure on the bb pool and make
hitting the wait less likely in the first place. Also, there is a small
optimisation for big VRAM clears via indentity map, in addition to
cleaning up unused suballocator helpers.
---
Changes in v2:
- Add some missing Fixes: tags (Thomas).
- Move the stable fixes to the start of the series.
- Fix display fbdev takeover build by passing intr=false to
xe_migrate_copy().
- Link to v1: https://lore.kernel.org/r/20261030-migrate-bb-optimise-v1-0-b8d01649cfe9@intel.com
---
Matthew Auld (6):
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
drm/xe/migrate: optimise 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
drivers/gpu/drm/xe/display/xe_display_bo.c | 3 +-
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 +-
15 files changed, 71 insertions(+), 244 deletions(-)
---
base-commit: 2167aae7e27a3c224f220ce01eea87498ff3724d
change-id: 20261028-migrate-bb-optimise-65bb54cf303e
next reply other threads:[~2026-11-27 12:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 12:14 Matthew Auld [this message]
2026-11-27 12:14 ` [PATCH v2 1/6] drm/xe/sa: allow callers to specify interruptible suballocator waits Matthew Auld
2026-11-27 12:14 ` [PATCH v2 2/6] drm/xe/migrate: plumb interruptible wait flag to clear and copy Matthew Auld
2026-11-27 12:14 ` [PATCH v2 3/6] drm/xe/migrate: avoid interruptible waits once passes are in flight Matthew Auld
2026-11-27 12:14 ` [PATCH v2 4/6] drm/xe/migrate: optimise chunk sizes for identity VRAM clears Matthew Auld
2026-11-27 12:14 ` [PATCH v2 5/6] drm/xe/bb: drop per-batch prefetch padding Matthew Auld
2026-11-27 12:33 ` sashiko-bot
2026-11-27 12:14 ` [PATCH v2 6/6] drm/xe/sa: remove unused shadow BO and two-step bb helpers Matthew Auld
2026-11-27 12:27 ` ✓ CI.KUnit: success for Interruptible bb wait + related bits (rev2) Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261127-migrate-bb-optimise-v2-0-808d0d520ddb@intel.com \
--to=matthew.auld@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.brost@intel.com \
--cc=thomas.hellstrom@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox