UPSTREAM: drm/amdgpu: cond_exec only for schedule with a job

issue:
under SR-IOV sometimes the iB test will fail on
gfx ring

fix:
with cond_exec inserted in RB the gfx engine would
skip part packets if RLCV issue PREEMPT on gfx engine
if gfx engine is prior to COND_EXEC packet, this is
okay for regular command from UMD, but for the ib test
since the whole dma format doesn't support PREEMPT
so must remove the COND_EXEC from it.

Signed-off-by: Monk Liu <[email protected]>
Reviewed-by: Christian Knig <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
(cherry picked from commit 113890ee99575a5340ab8729b207e48aaac2eb06)

BUG=b:111106006,b:111209695
TEST=suspend_stress_test

Change-Id: I6564f275ab098256845339bac109eade80b226b2
Signed-off-by: Pratik Vishwakarma <[email protected]>
Reviewed-on: https://chromium-review.googlesource.com/1134932
Reviewed-by: Stéphane Marchesin <[email protected]>
1 file changed