]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbab1a6ff99ceb83425312fa90d9f9e5abee9670e
treec36221d2b61f27ec6cc4349bae87d6b765b18bf4
parent40553dea78f7e9ff35aa9c37540f0b960193749a
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