mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
drm/i915/selftests: Fixup recursive MI_BB_START for gen3
There's no magic bit0 in MI_BB_START for gen3, it's the same dword length parameter as elsewhere and needs to be zero. v2: Same bug in both live_requests and live_hanghcheck. References: https://bugs.freedesktop.org/show_bug.cgi?id=107132 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20180705154756.5533-1-chris@chris-wilson.co.uk Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
This commit is contained in:
parent
f0d759f038
commit
bb9e8755a4
2 changed files with 2 additions and 5 deletions
|
|
@ -594,11 +594,8 @@ static struct i915_vma *recursive_batch(struct drm_i915_private *i915)
|
|||
} else if (gen >= 6) {
|
||||
*cmd++ = MI_BATCH_BUFFER_START | 1 << 8;
|
||||
*cmd++ = lower_32_bits(vma->node.start);
|
||||
} else if (gen >= 4) {
|
||||
*cmd++ = MI_BATCH_BUFFER_START | MI_BATCH_GTT;
|
||||
*cmd++ = lower_32_bits(vma->node.start);
|
||||
} else {
|
||||
*cmd++ = MI_BATCH_BUFFER_START | MI_BATCH_GTT | 1;
|
||||
*cmd++ = MI_BATCH_BUFFER_START | MI_BATCH_GTT;
|
||||
*cmd++ = lower_32_bits(vma->node.start);
|
||||
}
|
||||
*cmd++ = MI_BATCH_BUFFER_END; /* terminate early in case of error */
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ static int emit_recurse_batch(struct hang *h,
|
|||
batch += 1024 / sizeof(*batch);
|
||||
|
||||
*batch++ = MI_ARB_CHECK;
|
||||
*batch++ = MI_BATCH_BUFFER_START | 2 << 6 | 1;
|
||||
*batch++ = MI_BATCH_BUFFER_START | 2 << 6;
|
||||
*batch++ = lower_32_bits(vma->node.start);
|
||||
}
|
||||
*batch++ = MI_BATCH_BUFFER_END; /* not reached */
|
||||
|
|
|
|||
Loading…
Reference in a new issue