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)
commit767601d100a53e653233aebca7c262ce0addfa99
tree080c5ad6705b39c91df0ddee9c0658409c93130f
parente1fc12c5d9ad06a2a74e97a91f1b0c5f4c723b50
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