diff options
author | Chunming Zhou <David1.Zhou@amd.com> | 2016-03-02 22:38:48 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-03-08 11:01:41 -0500 |
commit | 11afbde85eeba1ccb0a459c49444aaf9032e9755 (patch) | |
tree | 979f56b3677a65b3d10148fe602d98448228aaad /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
parent | 5c55db83b759b079ead93aa0767fc97048b1f899 (diff) |
drm/amdgpu: add hdp_invalidate function
It's called after emitting ibs.
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
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_ib.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c index db14a7bbb8f4..4e978e7aa1b8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |||
@@ -178,6 +178,11 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs, | |||
178 | ring->current_ctx = ctx; | 178 | ring->current_ctx = ctx; |
179 | } | 179 | } |
180 | 180 | ||
181 | if (vm) { | ||
182 | if (ring->funcs->emit_hdp_invalidate) | ||
183 | amdgpu_ring_emit_hdp_invalidate(ring); | ||
184 | } | ||
185 | |||
181 | r = amdgpu_fence_emit(ring, owner, &ib->fence); | 186 | r = amdgpu_fence_emit(ring, owner, &ib->fence); |
182 | if (r) { | 187 | if (r) { |
183 | dev_err(adev->dev, "failed to emit fence (%d)\n", r); | 188 | dev_err(adev->dev, "failed to emit fence (%d)\n", r); |