drm/ttm: roundup the shrink request to prevent skip huge pool
authorRoger He <Hongbo.He@amd.com>
Tue, 21 Nov 2017 08:47:16 +0000 (16:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Dec 2017 19:37:06 +0000 (14:37 -0500)
commit2bf257d662509553ae226239e7dc1c3d00636ca6
treed88ed49517820ed8634413a3d1875d1d5f5c6e3f
parentbae5c5b50b20b522002d6f9f6e9dbe1ae95152aa
drm/ttm: roundup the shrink request to prevent skip huge pool

e.g. shrink reqeust is less than 512, the logic will skip huge pool

Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Roger He <Hongbo.He@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_page_alloc.c