aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2017-02-17 09:04:31 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-03-29 23:53:25 -0400
commitc5cb934ebd4cfc007f81e0a36c504f33fa5b8361 (patch)
treedac0da313b3eaab7de607b082398db354aa8eaf9 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
parent7ca85295d8cc280ea79cf6250c47363b7fd92f92 (diff)
drm/amdgpu: disable HDP flushes on APUs
We completely bypass the HDP now. 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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
index e02a70dd37b5..e357e42c10c7 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
@@ -172,7 +172,11 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs,
172 } 172 }
173 } 173 }
174 174
175 if (ring->funcs->emit_hdp_flush) 175 if (ring->funcs->emit_hdp_flush
176#ifdef CONFIG_X86_64
177 && !(adev->flags & AMD_IS_APU)
178#endif
179 )
176 amdgpu_ring_emit_hdp_flush(ring); 180 amdgpu_ring_emit_hdp_flush(ring);
177 181
178 skip_preamble = ring->current_ctx == fence_ctx; 182 skip_preamble = ring->current_ctx == fence_ctx;
@@ -202,7 +206,11 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs,
202 need_ctx_switch = false; 206 need_ctx_switch = false;
203 } 207 }
204 208
205 if (ring->funcs->emit_hdp_invalidate) 209 if (ring->funcs->emit_hdp_invalidate
210#ifdef CONFIG_X86_64
211 && !(adev->flags & AMD_IS_APU)
212#endif
213 )
206 amdgpu_ring_emit_hdp_invalidate(ring); 214 amdgpu_ring_emit_hdp_invalidate(ring);
207 215
208 r = amdgpu_fence_emit(ring, f); 216 r = amdgpu_fence_emit(ring, f);