[PATCH v3 3/6] drm/i915/gen8: Add WaDisableCtxRestoreArbitration workaround

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In Indirect and Per context w/a batch buffer,
+WaDisableCtxRestoreArbitration

Signed-off-by: Rafael Barbalho <rafael.barbalho@xxxxxxxxx>
Signed-off-by: Arun Siluvery <arun.siluvery@xxxxxxxxxxxxxxx>
---
 drivers/gpu/drm/i915/intel_lrc.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c
index 68df878..a71eb81 100644
--- a/drivers/gpu/drm/i915/intel_lrc.c
+++ b/drivers/gpu/drm/i915/intel_lrc.c
@@ -1098,9 +1098,10 @@ static int gen8_init_indirectctx_bb(struct intel_engine_cs *ring)
 		return -EINVAL;
 	}
 
-	/* FIXME: fill unused locations with NOOPs.
-	 * Replace these instructions with WA
-	 */
+	/* WaDisableCtxRestoreArbitration:bdw,chv */
+	cmd[index++] = MI_ARB_ON_OFF | MI_ARB_DISABLE;
+
+	/* padding */
         while (index < end)
 		cmd[index++] = MI_NOOP;
 
@@ -1135,9 +1136,10 @@ static int gen8_init_perctx_bb(struct intel_engine_cs *ring)
 		return -EINVAL;
 	}
 
-	/* FIXME: fill unused locations with NOOPs.
-	 * Replace these instructions with WA
-	 */
+	/* WaDisableCtxRestoreArbitration:bdw,chv */
+	cmd[index++] = MI_ARB_ON_OFF | MI_ARB_ENABLE;
+
+	/* padding */
         while (index < end)
 		cmd[index++] = MI_NOOP;
 
-- 
2.3.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx





[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux