aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c
diff options
context:
space:
mode:
authorEric Huang <[email protected]>2021-06-02 19:05:20 +0000
committerAlex Deucher <[email protected]>2021-06-04 20:02:38 +0000
commit810085ddb7b76c1cc5059a1feb3b1250eceacf23 (patch)
tree64918b4dc5f46a6ddb8ddf04d39d1631db21d2e2 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c
parentdrm/amd/pm: Use generic BACO function for smu11 ASICs (diff)
downloadkernel-810085ddb7b76c1cc5059a1feb3b1250eceacf23.tar.gz
kernel-810085ddb7b76c1cc5059a1feb3b1250eceacf23.zip
drm/amdgpu: Don't flush/invalidate HDP for APUs and A+A
Integrate two generic functions to determine if HDP flush is needed for all Asics. Signed-off-by: Eric Huang <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c
index 03a44be50dd7..e3fbf0f10add 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c
@@ -110,7 +110,7 @@ static int amdgpu_vm_cpu_commit(struct amdgpu_vm_update_params *p,
{
/* Flush HDP */
mb();
- amdgpu_asic_flush_hdp(p->adev, NULL);
+ amdgpu_device_flush_hdp(p->adev, NULL);
return 0;
}