]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: add bit flag TTM_OPT_FLAG_FORCE_ALLOC
authorRoger He <Hongbo.He@amd.com>
Wed, 17 Jan 2018 07:07:23 +0000 (15:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Feb 2018 04:09:34 +0000 (23:09 -0500)
commita09b60cf73437ce1db64b629d58e7f4188436396
tree4b07e45dd6f1a35d502b67d722df4edc6aadae51
parentc3d9dc0300f1229e98a1a47c55569ff983af817a
drm/ttm: add bit flag TTM_OPT_FLAG_FORCE_ALLOC

set TTM_OPT_FLAG_FORCE_ALLOC when we are servicing for page
fault routine.

for ttm_mem_global_reserve if in page fault routine, allow the gtt
pages reservation always. because page fault routing already grabbed
system memory and the allowance of this exception is harmless.
Otherwise, it will trigger OOM killer.

will be used later.

v2: set the FORCE_ALLOC always
v3: minor refine

Signed-off-by: Roger He <Hongbo.He@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo_vm.c
include/drm/ttm/ttm_bo_api.h