diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-01-05 10:25:57 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-02-19 14:17:14 -0500 |
commit | b1d128689f9c602a3dbea37b47a27a568d55754d (patch) | |
tree | 6e7f5703c0ed9a28b140017fc3fc3bd0504a9cc4 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |
parent | 73c732405fddfe16b122c77de83397289463b557 (diff) |
drm/amdgpu: adjust HDP write queue flushing for tlb invalidation
Separate tlb invalidation and hdp flushing and move the HDP
flush to the caller.
Reviewed-by: Christian König <christian.koenig@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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index 5afbc5e714d0..df0f99741b73 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | |||
@@ -856,6 +856,7 @@ restart: | |||
856 | if (vm->use_cpu_for_update) { | 856 | if (vm->use_cpu_for_update) { |
857 | /* Flush HDP */ | 857 | /* Flush HDP */ |
858 | mb(); | 858 | mb(); |
859 | amdgpu_asic_flush_hdp(adev); | ||
859 | amdgpu_gart_flush_gpu_tlb(adev, 0); | 860 | amdgpu_gart_flush_gpu_tlb(adev, 0); |
860 | } else if (params.ib->length_dw == 0) { | 861 | } else if (params.ib->length_dw == 0) { |
861 | amdgpu_job_free(job); | 862 | amdgpu_job_free(job); |
@@ -1457,6 +1458,7 @@ int amdgpu_vm_bo_update(struct amdgpu_device *adev, | |||
1457 | if (vm->use_cpu_for_update) { | 1458 | if (vm->use_cpu_for_update) { |
1458 | /* Flush HDP */ | 1459 | /* Flush HDP */ |
1459 | mb(); | 1460 | mb(); |
1461 | amdgpu_asic_flush_hdp(adev); | ||
1460 | amdgpu_gart_flush_gpu_tlb(adev, 0); | 1462 | amdgpu_gart_flush_gpu_tlb(adev, 0); |
1461 | } | 1463 | } |
1462 | 1464 | ||