]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm: only free pages rather than update global memory count together
authorRoger He <Hongbo.He@amd.com>
Thu, 11 Jan 2018 09:00:14 +0000 (17:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Jan 2018 20:35:27 +0000 (15:35 -0500)
commitc2919e0ed49a5a699051d0c6ebf220695d02971e
tree95c02547c4952b99089f47cf684140cdf6aafc31
parent005e32b71412a27a87bfb0a099dd33d3011fd29e
drm/ttm: only free pages rather than update global memory count together

if ttm_get_pages or ttm_mem_global_alloc_page fail, should not update
global memory count.

Signed-off-by: Roger He <Hongbo.He@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Tested-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Acked-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_page_alloc.c