Skip to contentSkip to conversation

Patch "drm/ttm: Fix ttm_pool_beneficial_order() return type" has been added to the 6.19-stable tree

PATCH [email protected] 1 participant 1 message Mar 17

Subsystems (3)
lore
Share & tools
lore

[email protected]

author Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

drm/ttm: Fix ttm_pool_beneficial_order() return type

to the 6.19-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
drm-ttm-fix-ttm_pool_beneficial_order-return-type.patch
and it can be found in the queue-6.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

From 6e3f4514e3b432871ac81717d24f56b441857f77 Mon Sep 17 00:00:00 2001
From: Tvrtko Ursulin <[email protected]>
Date: Fri, 27 Feb 2026 12:49:01 +0000
Subject: drm/ttm: Fix ttm_pool_beneficial_order() return type
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

From: Tvrtko Ursulin <[email protected]>

commit 6e3f4514e3b432871ac81717d24f56b441857f77 upstream.

Fix a nasty copy and paste bug, where the incorrect boolean return type of the ttm_pool_beneficial_order() helper had a consequence of avoiding direct reclaim too eagerly for drivers which use this feature (currently amdgpu).

Fixes 7e9c548d3709 ("drm/ttm: Allow drivers to specify maximum beneficial TTM pool size")
Cc Christian König <[email protected]>
Cc Thadeu Lima de Souza Cascardo <[email protected]>
Cc <[email protected]> # v6.19+
---
 drivers/gpu/drm/ttm/ttm_pool_internal.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/ttm/ttm_pool_internal.h +1 -1
index 82c4b7e56a99..24c179fd69d1 100644
@@ -17,7 +17,7 @@ static inline bool ttm_pool_uses_dma32(struct ttm_pool *pool)
 	return pool->alloc_flags & TTM_ALLOCATION_POOL_USE_DMA32;
 }
 
-static inline bool ttm_pool_beneficial_order(struct ttm_pool *pool)
+static inline unsigned int ttm_pool_beneficial_order(struct ttm_pool *pool)
 {
 	return pool->alloc_flags & 0xff;
 }
Signature · 8 lines
2.53.0



Patches currently in stable-queue which might be from [email protected] are

queue-6.19/drm-ttm-fix-ttm_pool_beneficial_order-return-type.patch
queue-6.19/drm-amdgpu-userq-fix-reference-leak-in-amdgpu_userq_wait_ioctl.patch