Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Scan all holes when fences are disabled in SA
@ 2026-03-11 15:52 Satyanarayana K V P
  2026-03-11 15:52 ` [PATCH 1/3] drm/sa: Scan all holes when fences are disabled Satyanarayana K V P
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Satyanarayana K V P @ 2026-03-11 15:52 UTC (permalink / raw)
  To: intel-xe; +Cc: Satyanarayana K V P

The suballocator algorithm tracks a hole cursor at the last allocation
and tries to allocate after it. This is optimized for fence-ordered
progress, where older allocations are expected to become reusable first.

In fence-enabled mode, that ordering assumption holds. In fence-disabled
mode, allocations may be freed in arbitrary order, so limiting allocation
to the current hole window can miss valid free space and fail allocations
despite sufficient total space.

Update the fence-disabled path to walk through all holes and select any
fitting range, while keeping the existing fence-based behavior unchanged.

Satyanarayana K V P (3):
  drm/sa: Scan all holes when fences are disabled
  drm/xe/vf: Disable fences while initializing CCS read/write sub-allocs
  drm/tests: Add KUnit test for suballocator allocation

 drivers/gpu/drm/Kconfig.debug             |  1 +
 drivers/gpu/drm/drm_suballoc.c            | 90 +++++++++++++++++++++++
 drivers/gpu/drm/tests/.kunitconfig        |  1 +
 drivers/gpu/drm/tests/Makefile            |  1 +
 drivers/gpu/drm/tests/drm_suballoc_test.c | 79 ++++++++++++++++++++
 drivers/gpu/drm/xe/xe_sa.c                | 20 +++++
 drivers/gpu/drm/xe/xe_sa.h                |  1 +
 drivers/gpu/drm/xe/xe_sriov_vf_ccs.c      |  3 +-
 include/drm/drm_suballoc.h                |  5 ++
 9 files changed, 200 insertions(+), 1 deletion(-)
 create mode 100644 drivers/gpu/drm/tests/drm_suballoc_test.c

-- 
2.43.0


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

end of thread, other threads:[~2026-03-12  9:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-11 15:52 [PATCH 0/3] Scan all holes when fences are disabled in SA Satyanarayana K V P
2026-03-11 15:52 ` [PATCH 1/3] drm/sa: Scan all holes when fences are disabled Satyanarayana K V P
2026-03-11 19:02   ` Thomas Hellström
2026-03-12  7:58     ` Christian König
2026-03-12  7:56   ` Christian König
2026-03-11 15:52 ` [PATCH 2/3] drm/xe/vf: Disable fences while initializing CCS read/write sub-allocs Satyanarayana K V P
2026-03-11 15:52 ` [PATCH 3/3] drm/tests: Add KUnit test for suballocator allocation Satyanarayana K V P
2026-03-11 17:08 ` ✗ CI.checkpatch: warning for Scan all holes when fences are disabled in SA Patchwork
2026-03-11 17:09 ` ✓ CI.KUnit: success " Patchwork
2026-03-11 18:14 ` ✓ Xe.CI.BAT: " Patchwork
2026-03-12  9:21 ` ✓ Xe.CI.FULL: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox