OSDN Git Service

drm/amdgpu: fix usable gart size calculation
authorNirmoy Das <nirmoy.das@amd.com>
Thu, 12 Nov 2020 17:36:01 +0000 (18:36 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Nov 2020 17:17:06 +0000 (12:17 -0500)
commitb3fcde184e5047debe5d4e07396b5bb054aa1159
tree5b8fae2290f2fa62ee05de6082473c56ab1dcc64
parent1331e6304f5d924a8dee18064f56f13c890cb009
drm/amdgpu: fix usable gart size calculation

amdgpu_do_test_moves() is failing because of wrong
usable gart size calculation and throwing:

[drm:amdgpu_do_test_moves [amdgpu]] *ERROR* 0000000020bdc9f3 bind failed

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_test.c