]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: set TTM_OPT_FLAG_FORCE_ALLOC in ttm_bo_force_list_clean
authorRoger He <Hongbo.He@amd.com>
Tue, 6 Feb 2018 07:00:06 +0000 (15:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Feb 2018 04:09:34 +0000 (23:09 -0500)
commita4ec2e808beeba7b9654128f1f1953600444d012
treecbccf3285198012acb99894cfa1b874c4b131e15
parent558e29c69877e89f716ad3f7652d1b9c4b45e7c7
drm/ttm: set TTM_OPT_FLAG_FORCE_ALLOC in ttm_bo_force_list_clean

Because ttm_bo_force_list_clean() is only called on two occasions:
1. By ttm_bo_evict_mm() during suspend.
2. By ttm_bo_clean_mm() when the driver unloads.
On both cases we absolutely don't want any memory allocation failure.

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.c