From 55fcf74cc2330580659426a57d1fa0125f7326b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= Date: Tue, 17 Mar 2026 15:18:54 +0100 Subject: [PATCH] drm/ttm: Don't spam the log on buffer object backing store allocation failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the struct ttm_operation_ctx::gfp_retry_mayfail is true, buffer object backing store allocation failures are expected to silently fail with an error code to the caller. But currently an elaborate warning is printed to the system log. Don't spam the log in this way. Signed-off-by: Thomas Hellström Reviewed-by: Matthew Brost Reviewed-by: Simona Vetter Acked-by: Christian König Link: https://patch.msgid.link/20260317141856.237876-2-thomas.hellstrom@linux.intel.com --- drivers/gpu/drm/ttm/ttm_pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ttm/ttm_pool.c b/drivers/gpu/drm/ttm/ttm_pool.c index c0d95559197c..8fa9e09f6ee5 100644 --- a/drivers/gpu/drm/ttm/ttm_pool.c +++ b/drivers/gpu/drm/ttm/ttm_pool.c @@ -726,7 +726,7 @@ static int __ttm_pool_alloc(struct ttm_pool *pool, struct ttm_tt *tt, gfp_flags |= __GFP_ZERO; if (ctx->gfp_retry_mayfail) - gfp_flags |= __GFP_RETRY_MAYFAIL; + gfp_flags |= __GFP_RETRY_MAYFAIL | __GFP_NOWARN; if (ttm_pool_uses_dma32(pool)) gfp_flags |= GFP_DMA32;