aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
diff options
context:
space:
mode:
authorMonk Liu <Monk.Liu@amd.com>2017-01-17 21:37:34 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-01-27 11:13:37 -0500
commit79bbbf8bfe646d63a52dcb1f8272a27adbcae097 (patch)
tree759aa53ec2af01489b915ed042b51c57962f3364 /drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
parent714fbf80392248170c2e67cd77062e2cab0d8a82 (diff)
drm/amdgpu:Preamble is forbid to be ignored in SRIOV
SR-IOV requires the preamble. Signed-off-by: Monk Liu <Monk.Liu@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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
index 38dded50ae8a..5329ac93e43d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
@@ -193,7 +193,8 @@ int amdgpu_ib_schedule(struct amdgpu_ring *ring, unsigned num_ibs,
193 /* drop preamble IBs if we don't have a context switch */ 193 /* drop preamble IBs if we don't have a context switch */
194 if ((ib->flags & AMDGPU_IB_FLAG_PREAMBLE) && 194 if ((ib->flags & AMDGPU_IB_FLAG_PREAMBLE) &&
195 skip_preamble && 195 skip_preamble &&
196 !(status & AMDGPU_PREAMBLE_IB_PRESENT_FIRST)) 196 !(status & AMDGPU_PREAMBLE_IB_PRESENT_FIRST) &&
197 !amdgpu_sriov_vf(adev)) /* for SRIOV preemption, Preamble CE ib must be inserted anyway */
197 continue; 198 continue;
198 199
199 amdgpu_ring_emit_ib(ring, ib, job ? job->vm_id : 0, 200 amdgpu_ring_emit_ib(ring, ib, job ? job->vm_id : 0,