aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2018-02-02 15:05:40 -0500
committerAlex Deucher <alexander.deucher@amd.com>2018-02-19 14:19:20 -0500
commite61736daa9b2890c895b9e3e56ee639f36de83b7 (patch)
tree34fb453b06bd19e94c28bf5fa4127f1864e3b16f /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parente5197a4c3dbff322efe1f70e23453318554d1598 (diff)
drm/amdgpu: clear the shadow fence as well
It also needs to be initialized. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@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.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index b43098f02a40..18ce47608bf1 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -336,6 +336,11 @@ static int amdgpu_vm_clear_bo(struct amdgpu_device *adev,
336 336
337 amdgpu_bo_fence(bo, fence, true); 337 amdgpu_bo_fence(bo, fence, true);
338 dma_fence_put(fence); 338 dma_fence_put(fence);
339
340 if (bo->shadow)
341 return amdgpu_vm_clear_bo(adev, vm, bo->shadow,
342 level, pte_support_ats);
343
339 return 0; 344 return 0;
340 345
341error_free: 346error_free: