[PATCH] drm/i915: Set bb offset to default
Mika Kuoppala
mika.kuoppala at linux.intel.com
Mon Apr 27 13:01:53 UTC 2020
Force bb offset to default value.
Signed-off-by: Mika Kuoppala <mika.kuoppala at linux.intel.com>
---
drivers/gpu/drm/i915/gt/intel_lrc.c | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.c b/drivers/gpu/drm/i915/gt/intel_lrc.c
index 93a1b73ad96b..45be843f2fe6 100644
--- a/drivers/gpu/drm/i915/gt/intel_lrc.c
+++ b/drivers/gpu/drm/i915/gt/intel_lrc.c
@@ -3336,11 +3336,22 @@ gen12_emit_cmd_buf_wa(const struct intel_context *ce, u32 *cs)
return cs;
}
+static u32 *
+gen12_emit_bb_offset_wa(const struct intel_context *ce, u32 *cs)
+{
+ *cs++ = MI_LOAD_REGISTER_IMM(1);
+ *cs++ = 0x2158;
+ *cs++ = 0x01;
+
+ return cs;
+}
+
static u32 *
gen12_emit_indirect_ctx_rcs(const struct intel_context *ce, u32 *cs)
{
cs = gen12_emit_timestamp_wa(ce, cs);
cs = gen12_emit_cmd_buf_wa(ce, cs);
+ cs = gen12_emit_bb_offset_wa(ce, cs);
cs = gen12_emit_restore_scratch(ce, cs);
return cs;
--
2.17.1
More information about the Intel-gfx-trybot
mailing list