drm/ttm: max_cpages is in unit of native page
authorMonk Liu <Monk.Liu@amd.com>
Fri, 1 Dec 2017 10:23:56 +0000 (18:23 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Dec 2017 19:48:52 +0000 (14:48 -0500)
commita8d25a8629e79ae891cdb81f0d706422e20203fa
treef7094d9ef9747a174818fdf73a9f743e6cbcc317
parent0aaa59f5256eb2d23f487c3e2c870c7bc0d043de
drm/ttm: max_cpages is in unit of native page

fix calculation.

Signed-off-by: Monk Liu <Monk.Liu@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_page_alloc.c