All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/3] gpu/buddy: find range-biased blocks in the free trees
@ 2026-11-18 20:16 William Palacek
  2026-11-18 20:16 ` [PATCH v4 1/3] " William Palacek
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: William Palacek @ 2026-11-18 20:16 UTC (permalink / raw)
  To: dri-devel
  Cc: intel-xe, Matthew Auld, Arunpravin Paneer Selvam, Sanjay Yadav,
	Joel Fernandes, Christian König, linux-kernel,
	William Palacek

In a range-restricted allocation, the strict pass of
__alloc_range_bias() still visits every free block of the other class
in the range: a dirty request among many free cleared blocks steps
through each of them. amdgpu restricts every VRAM allocation to its
memory partition under NPS2/NPS4, so it takes this path for every KFD
VRAM allocation there.

Patch 1 replaces the walk with a lookup in the offset-sorted free trees,
on top of Arun's range guard code. Patch 2 drops subtree_max_free_order,
which nothing reads after patch 1. Patch 3 adds tests for an inverted
range and for the NPS4 fill pattern.

v3: https://patchwork.freedesktop.org/series/178108/#rev2
v2: https://patchwork.freedesktop.org/series/178108/#rev1
v1: https://patchwork.freedesktop.org/series/176957/

William Palacek (3):
  gpu/buddy: find range-biased blocks in the free trees
  gpu/buddy: drop subtree_max_free_order
  gpu/tests/buddy: add range-biased allocation tests

 drivers/gpu/buddy.c                | 334 +++++++++++++++++++----------
 drivers/gpu/tests/gpu_buddy_test.c |  67 ++++++
 include/linux/gpu_buddy.h          |   7 -
 3 files changed, 291 insertions(+), 117 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-11-19 19:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-18 20:16 [PATCH v4 0/3] gpu/buddy: find range-biased blocks in the free trees William Palacek
2026-11-18 20:16 ` [PATCH v4 1/3] " William Palacek
2026-11-18 20:17 ` [PATCH v4 2/3] gpu/buddy: drop subtree_max_free_order William Palacek
2026-11-19  5:09   ` Arunpravin Paneer Selvam
2026-11-18 20:17 ` [PATCH v4 3/3] gpu/tests/buddy: add range-biased allocation tests William Palacek
2026-11-19 18:32 ` ✓ CI.KUnit: success for gpu/buddy: find range-biased blocks in the free trees Patchwork
2026-11-19 19:26 ` ✓ Xe.CI.BAT: " 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.