All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] Separate GGTT pools for submissions and VFs provisioning
@ 2026-08-17 14:03 Piórkowski, Piotr
  2026-08-17 14:03 ` [PATCH v3 1/3] drm/xe/ggtt: Split GGTT into usable and shareable pools Piórkowski, Piotr
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Piórkowski, Piotr @ 2026-08-17 14:03 UTC (permalink / raw)
  To: intel-xe; +Cc: Piotr Piórkowski

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


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

end of thread, other threads:[~2026-08-17 17:37 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-17 14:03 [PATCH v3 0/3] Separate GGTT pools for submissions and VFs provisioning Piórkowski, Piotr
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

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.