OSDN Git Service

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)
commit9483ce7c6ed5980fcc45643d391b17317b40406a
tree95c02547c4952b99089f47cf684140cdf6aafc31
parent83fbb788a49c11477d42ca323cf16c109d426d70
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