Skip to contentSkip to conversation

drm/i915: Add some L3 registers to the parser whitelist

PATCH Applied [email protected] 2 participants 2 messages Jun 17, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/i915: Add some L3 registers to the parser whitelist

From: Brad Volkin <[email protected]>

Beignet needs these in order to program the L3 cache config for OpenCL workloads, particularly when using SLM.

---
 drivers/gpu/drm/i915/i915_cmd_parser.c | 3 +++
 drivers/gpu/drm/i915/i915_reg.h        | 2 ++
 2 files changed, 5 insertions(+)
drivers/gpu/drm/i915/i915_cmd_parser.c +3 -0
index 9d79543..dea99d9 100644
@@ -426,6 +426,9 @@ static const u32 gen7_render_regs[] = {
 	GEN7_SO_WRITE_OFFSET(1),
 	GEN7_SO_WRITE_OFFSET(2),
 	GEN7_SO_WRITE_OFFSET(3),
+	GEN7_L3SQCREG1,
+	GEN7_L3CNTLREG2,
+	GEN7_L3CNTLREG3,
 };
 
 static const u32 gen7_blt_regs[] = {
drivers/gpu/drm/i915/i915_reg.h +2 -0
index e1fb0f2..3488567 100644
@@ -4670,6 +4670,8 @@ enum punit_power_well {
 #define GEN7_L3CNTLREG1				0xB01C
 #define  GEN7_WA_FOR_GEN7_L3_CONTROL			0x3C47FF8C
 #define  GEN7_L3AGDIS				(1<<19)
+#define GEN7_L3CNTLREG2				0xB020
+#define GEN7_L3CNTLREG3				0xB024
 
 #define GEN7_L3_CHICKEN_MODE_REGISTER		0xB030
 #define  GEN7_WA_L3_CHICKEN_MODE				0x20000000
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 6 lines · On Tue, Jun 17, 2014 at 02:10:34PM -0700, [email protected] wrote:

From: Brad Volkin <[email protected]>

Beignet needs these in order to program the L3 cache config for OpenCL workloads, particularly when using SLM.

Queued for -next, thanks for the patch.
-Daniel

Quoted 39 lines
---
 drivers/gpu/drm/i915/i915_cmd_parser.c | 3 +++
 drivers/gpu/drm/i915/i915_reg.h        | 2 ++
 2 files changed, 5 insertions(+)
drivers/gpu/drm/i915/i915_cmd_parser.c +3 -0
index 9d79543..dea99d9 100644
@@ -426,6 +426,9 @@ static const u32 gen7_render_regs[] = {
 	GEN7_SO_WRITE_OFFSET(1),
 	GEN7_SO_WRITE_OFFSET(2),
 	GEN7_SO_WRITE_OFFSET(3),
+	GEN7_L3SQCREG1,
+	GEN7_L3CNTLREG2,
+	GEN7_L3CNTLREG3,
 };
 
 static const u32 gen7_blt_regs[] = {
drivers/gpu/drm/i915/i915_reg.h +2 -0
index e1fb0f2..3488567 100644
@@ -4670,6 +4670,8 @@ enum punit_power_well {
 #define GEN7_L3CNTLREG1				0xB01C
 #define  GEN7_WA_FOR_GEN7_L3_CONTROL			0x3C47FF8C
 #define  GEN7_L3AGDIS				(1<<19)
+#define GEN7_L3CNTLREG2				0xB020
+#define GEN7_L3CNTLREG3				0xB024
 
 #define GEN7_L3_CHICKEN_MODE_REGISTER		0xB030
 #define  GEN7_WA_L3_CHICKEN_MODE				0x20000000
Signature · 6 lines
1.8.3.2

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch