[PATCH v2 0/2] TTM pool shrinker improvements

Tvrtko Ursulin tvrtko.ursulin at igalia.com
Tue Jun 3 11:27:48 UTC 2025


Just two small patches to make the TTM pool shrinker respect the shrink target
configured by the core, and to also signal the core it can cheaply free more
than the default 128 pages.

Motivation was that I was running some VK-CTS tests and noticed shrinker
callback was getting called quite a lot so thought why not make it a tiny bit
more respectful and efficient.

v2:
 * Simplify loop logic and improve commit message.

Cc: Christian König <christian.koenig at amd.com>
Cc: Thomas Hellström <thomas.hellstrom at linux.intel.com>

Tvrtko Ursulin (2):
  drm/ttm: Respect the shrinker core free target
  drm/ttm: Increase pool shrinker batch target

 drivers/gpu/drm/ttm/ttm_pool.c | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

-- 
2.48.0



More information about the dri-devel mailing list