Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/ttm: Don't spam the log on buffer object backing store allocation failure

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

+1 -1
+1 -1
drivers/gpu/drm/ttm/ttm_pool.c
··· 726 726 gfp_flags |= __GFP_ZERO; 727 727 728 728 if (ctx->gfp_retry_mayfail) 729 - gfp_flags |= __GFP_RETRY_MAYFAIL; 729 + gfp_flags |= __GFP_RETRY_MAYFAIL | __GFP_NOWARN; 730 730 731 731 if (ttm_pool_uses_dma32(pool)) 732 732 gfp_flags |= GFP_DMA32;