drm/amdgpu: Fix size calculation when init onchip memory
authorxinhui pan <xinhui.pan@amd.com>
Fri, 23 Oct 2020 05:41:12 +0000 (13:41 +0800)
committerDave Airlie <airlied@redhat.com>
Wed, 25 Nov 2020 05:04:38 +0000 (15:04 +1000)
commit030c5b52d4c1225030891d25abfe376b6e239712
treec36221d2b61f27ec6cc4349bae87d6b765b18bf4
parent418baf2c28f3473039f2f7377760bd8f6897ae18
drm/amdgpu: Fix size calculation when init onchip memory

Size is page count here.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/1372
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit d836917da7e5ca9b33ef4d499972f1feeb519e00)
[airlied: from drm-next]
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c