From: "Piórkowski, Piotr" <piotr.piorkowski@intel.com>
To: <intel-xe@lists.freedesktop.org>
Cc: "Piotr Piórkowski" <piotr.piorkowski@intel.com>
Subject: [PATCH v3 0/3] Separate GGTT pools for submissions and VFs provisioning
Date: Mon, 17 Aug 2026 16:03:39 +0200 [thread overview]
Message-ID: <20260817140342.415803-1-piotr.piorkowski@intel.com> (raw)
From: Piotr Piórkowski <piotr.piorkowski@intel.com>
GGTT space is used both for driver-owned allocations and for provisioning
GGTT regions to VFs. These allocations currently share a single pool,
which does not allow their usable ranges or allocation policies to be
managed independently.
Introduce separate logical usable and shareable GGTT pools. The pools may
overlap, while each allocation remains constrained to its corresponding
range. When a shareable pool is present, usable allocations proceed from
the bottom and shareable allocations from the top.
v1 -> v2:
- Rename ggtt->usable_size back to ggtt->size.
- Remove the ggtt_insert_node_in_range() helper.
v2 -> v3:
- Init ggtt.lock with mutex_init() in each test.
- Introduce the hw_size struct field instead of the ggtt_accessible_size
function.
Piotr Piórkowski (3):
drm/xe/ggtt: Split GGTT into usable and shareable pools
drm/xe/ggtt: Initialize GGTT pools by SR-IOV mode
drm/xe/ggtt: Add KUnit tests for usable and shareable pools
drivers/gpu/drm/xe/tests/xe_ggtt_test.c | 336 +++++++++++++++++++++
drivers/gpu/drm/xe/xe_ggtt.c | 298 ++++++++++++++----
drivers/gpu/drm/xe/xe_ggtt.h | 14 +-
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 12 +-
4 files changed, 599 insertions(+), 61 deletions(-)
create mode 100644 drivers/gpu/drm/xe/tests/xe_ggtt_test.c
--
2.34.1
next reply other threads:[~2026-08-17 14:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-17 14:03 Piórkowski, Piotr [this message]
2026-08-17 14:03 ` [PATCH v3 1/3] drm/xe/ggtt: Split GGTT into usable and shareable pools Piórkowski, Piotr
2026-08-17 14:18 ` sashiko-bot
2026-08-17 14:03 ` [PATCH v3 2/3] drm/xe/ggtt: Initialize GGTT pools by SR-IOV mode Piórkowski, Piotr
2026-08-17 14:03 ` [PATCH v3 3/3] drm/xe/ggtt: Add KUnit tests for usable and shareable pools Piórkowski, Piotr
2026-08-17 14:15 ` ✗ CI.checkpatch: warning for Separate GGTT pools for submissions and VFs provisioning (rev3) Patchwork
2026-08-17 14:18 ` ✓ CI.KUnit: success " Patchwork
2026-08-17 15:18 ` ✓ Xe.CI.BAT: " Patchwork
2026-08-17 17:37 ` ✗ Xe.CI.FULL: failure " 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=20260817140342.415803-1-piotr.piorkowski@intel.com \
--to=piotr.piorkowski@intel.com \
--cc=intel-xe@lists.freedesktop.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.