From: Christian König Date: Sun, 25 Sep 2016 09:54:00 +0000 (+0200) Subject: drm/amdgpu: fix addr handling in amdgpu_vm_bo_update_mapping X-Git-Tag: MMI-PSA29.97-13-9~6932^2~11^2~29 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d7a4ac667eab23307e82100cbceb781936a4500f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git drm/amdgpu: fix addr handling in amdgpu_vm_bo_update_mapping Otherwise we will look at the wrong place in the IB when GART mappings are split into smaller updates. Signed-off-by: Christian König Reviewed-by: Alex Deucher Acked-by: Tom StDenis Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index bd5af328154f..c4985a727620 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -1000,6 +1000,7 @@ static int amdgpu_vm_bo_update_mapping(struct amdgpu_device *adev, AMDGPU_GPU_PAGE_SIZE); pte[i] |= flags; } + addr = 0; } r = amdgpu_sync_fence(adev, &job->sync, exclusive);