drm/amdgpu: drop double HDP flush in the VM code
authorChristian König <christian.koenig@amd.com>
Wed, 3 Apr 2019 12:11:53 +0000 (14:11 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Sep 2019 20:30:27 +0000 (15:30 -0500)
Already done in the CPU based backend code.

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

index 479c5fb..cb9e60a 100644 (file)
@@ -1739,12 +1739,6 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev, struct amdgpu_bo_va *bo_va,
                        return r;
        }
 
-       if (vm->use_cpu_for_update) {
-               /* Flush HDP */
-               mb();
-               amdgpu_asic_flush_hdp(adev, NULL);
-       }
-
        /* If the BO is not in its preferred location add it back to
         * the evicted list so that it gets validated again on the
         * next command submission.