]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/ttm: Don't spam the log on buffer object backing store allocation failure
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Tue, 17 Mar 2026 14:18:54 +0000 (15:18 +0100)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Fri, 20 Mar 2026 09:36:12 +0000 (10:36 +0100)
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 <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Simona Vetter <simona.vetter@ffwll.ch>
Acked-by: Christian König <christian.koening@amd.com>
Link: https://patch.msgid.link/20260317141856.237876-2-thomas.hellstrom@linux.intel.com
drivers/gpu/drm/ttm/ttm_pool.c

index c0d95559197c6a9377ffdca2c1a2cd6258a60d2a..8fa9e09f6ee593b414bf1b3e6471e27acb0dfdad 100644 (file)
@@ -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;