]> 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)
commited4d5495e30fcea016dfdf3bf451f5b433ca20f0
tree080c5ad6705b39c91df0ddee9c0658409c93130f
parenta057a4f12a3d7fef9b15c423fab6f0a40c6ad430
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