diff options
author | Christian König <christian.koenig@amd.com> | 2016-09-25 05:54:00 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-09-27 13:00:49 -0400 |
commit | d7a4ac667eab23307e82100cbceb781936a4500f (patch) | |
tree | f201589d08c168e888de3c2d5740a7a4265ba082 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
parent | 3374dcebb827307bc9487dcf4a7b61b8e6004b28 (diff) |
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 <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Tom StDenis <Tom.StDenis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 1 |
1 files changed, 1 insertions, 0 deletions
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, | |||
1000 | AMDGPU_GPU_PAGE_SIZE); | 1000 | AMDGPU_GPU_PAGE_SIZE); |
1001 | pte[i] |= flags; | 1001 | pte[i] |= flags; |
1002 | } | 1002 | } |
1003 | addr = 0; | ||
1003 | } | 1004 | } |
1004 | 1005 | ||
1005 | r = amdgpu_sync_fence(adev, &job->sync, exclusive); | 1006 | r = amdgpu_sync_fence(adev, &job->sync, exclusive); |