diff options
author | monk.liu <monk.liu@amd.com> | 2015-07-17 05:10:09 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-07-29 16:06:17 -0400 |
commit | e722b71a540362eebdbae060430dc5b06b990c38 (patch) | |
tree | cb851ad9e4ed397afeb224d47fbc1ff4d8697699 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |
parent | 93323131d66db68802e646204c0562cddc81a651 (diff) |
drm/amdgpu: hdp_flush is not needed for inside IB
hdp flush is not needed for IBs that dispatched from kernel inside
because there is no video memory host access
Signed-off-by: monk.liu <monk.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c index 52dff75aac6f..bc0fac618a3f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | |||
@@ -180,16 +180,16 @@ int amdgpu_ib_schedule(struct amdgpu_device *adev, unsigned num_ibs, | |||
180 | if (vm) { | 180 | if (vm) { |
181 | /* do context switch */ | 181 | /* do context switch */ |
182 | amdgpu_vm_flush(ring, vm, ib->sync.last_vm_update); | 182 | amdgpu_vm_flush(ring, vm, ib->sync.last_vm_update); |
183 | } | ||
184 | 183 | ||
185 | if (vm && ring->funcs->emit_gds_switch) | 184 | if (ring->funcs->emit_gds_switch) |
186 | amdgpu_ring_emit_gds_switch(ring, ib->vm->ids[ring->idx].id, | 185 | amdgpu_ring_emit_gds_switch(ring, ib->vm->ids[ring->idx].id, |
187 | ib->gds_base, ib->gds_size, | 186 | ib->gds_base, ib->gds_size, |
188 | ib->gws_base, ib->gws_size, | 187 | ib->gws_base, ib->gws_size, |
189 | ib->oa_base, ib->oa_size); | 188 | ib->oa_base, ib->oa_size); |
190 | 189 | ||
191 | if (ring->funcs->emit_hdp_flush) | 190 | if (ring->funcs->emit_hdp_flush) |
192 | amdgpu_ring_emit_hdp_flush(ring); | 191 | amdgpu_ring_emit_hdp_flush(ring); |
192 | } | ||
193 | 193 | ||
194 | old_ctx = ring->current_ctx; | 194 | old_ctx = ring->current_ctx; |
195 | for (i = 0; i < num_ibs; ++i) { | 195 | for (i = 0; i < num_ibs; ++i) { |