All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/8] drm/xe: add page size allocation mode control
@ 2026-07-01 16:33 Nareshkumar Gollakoti
  2026-07-01 16:33 ` [PATCH v2 1/8] drm/xe: add page size allocation control state to xe_device Nareshkumar Gollakoti
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Nareshkumar Gollakoti @ 2026-07-01 16:33 UTC (permalink / raw)
  To: intel-xe; +Cc: himal.prasad.ghimiray, Nareshkumar Gollakoti

Some platforms support multiple page sizes for user BO allocations,
including 4K, 64K, 2M, and 1G.

For validation and debug, it is useful to control the page size
selection policy for user BOs so that specific allocation paths can be
exercised deterministically. In particular, this makes it possible to
force allocations into 2M-only, 1G-only, or mixed modes.

In mixed mode, allocations are distributed across the supported page
sizes in a round-robin manner. For example, for eight user BOs, the
selected page sizes would be:
  - BO1, BO5: 4K
  - BO2, BO6: 64K
  - BO3, BO7: 2M
  - BO4, BO8: 1G

This series adds:
 - debug control state in xe_device
 - a platform helper for multi-page-size support
 - a debugfs knob to select allocation mode
 - 1G BO alignment flag handling
 - debug policy application at user BO create time
 - propagation into VMA map flags
 - bind-time alignment validation for large-page user BOs
 - PT bind support for selecting leaf level (4K/64K, 2M, 1G paths)

The intent is to improve debugability of page-size-specific
behavior without impacting normal/default paths
when debug mode is not enabled.

Nareshkumar Gollakoti (8):
  drm/xe: add page size allocation control state to xe_device
  drm/xe: add helper for multi page-size support
  drm/xe/debugfs: add page size allocation mode knob
  drm/xe: add 1G BO page-size alignment flag
  drm/xe: apply debug page-size policy to user BO creation
  drm/xe/vm: apply debug page-size policy to VMA map flags
  drm/xe/vm: validate large-page user BO bind alignment
  drm/xe/pt: allow selecting the bind leaf PTE level

 drivers/gpu/drm/xe/xe_bo.c           | 68 +++++++++++++++++++++++++++-
 drivers/gpu/drm/xe/xe_bo.h           |  1 +
 drivers/gpu/drm/xe/xe_debugfs.c      | 52 +++++++++++++++++++++
 drivers/gpu/drm/xe/xe_device.h       |  5 ++
 drivers/gpu/drm/xe/xe_device_types.h | 20 ++++++++
 drivers/gpu/drm/xe/xe_pt.c           | 16 ++++++-
 drivers/gpu/drm/xe/xe_vm.c           | 57 ++++++++++++++++++++++-
 7 files changed, 215 insertions(+), 4 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-07-01 17:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-01 16:33 [PATCH v2 0/8] drm/xe: add page size allocation mode control Nareshkumar Gollakoti
2026-07-01 16:33 ` [PATCH v2 1/8] drm/xe: add page size allocation control state to xe_device Nareshkumar Gollakoti
2026-07-01 16:33 ` [PATCH v2 2/8] drm/xe: add helper for multi page-size support Nareshkumar Gollakoti
2026-07-01 16:33 ` [PATCH v2 3/8] drm/xe/debugfs: add page size allocation mode knob Nareshkumar Gollakoti
2026-07-01 16:33 ` [PATCH v2 4/8] drm/xe: add 1G BO page-size alignment flag Nareshkumar Gollakoti
2026-07-01 16:33 ` [PATCH v2 5/8] drm/xe: apply debug page-size policy to user BO creation Nareshkumar Gollakoti
2026-07-01 16:33 ` [PATCH v2 6/8] drm/xe/vm: apply debug page-size policy to VMA map flags Nareshkumar Gollakoti
2026-07-01 16:33 ` [PATCH v2 7/8] drm/xe/vm: validate large-page user BO bind alignment Nareshkumar Gollakoti
2026-07-01 16:33 ` [PATCH v2 8/8] drm/xe/pt: allow selecting the bind leaf PTE level Nareshkumar Gollakoti
2026-07-01 17:19 ` ✓ CI.KUnit: success for drm/xe: add page size allocation mode control 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.