]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: Downgrade pr_err to pr_debug for memory allocation failures
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 3 Nov 2017 15:00:35 +0000 (16:00 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Sat, 4 Nov 2017 13:48:28 +0000 (09:48 -0400)
commitd7eaa051265f06603e87070f785aadd8cc6f3f18
tree080c5ad6705b39c91df0ddee9c0658409c93130f
parentbd0570f1ee2d216fc6b21fbafc59878cdf98a866
drm/ttm: Downgrade pr_err to pr_debug for memory allocation failures

Memory allocation failure should generally be handled gracefully by
callers. In particular, with transparent hugepage support, attempts
to allocate huge pages can fail under memory pressure, but the callers
fall back to allocating individual pages instead. In that case, there
would be spurious

 [TTM] Unable to get page %u

error messages in dmesg.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_page_alloc.c
drivers/gpu/drm/ttm/ttm_page_alloc_dma.c