Skip to contentSkip to conversation

drm/i915: Document that we are implementing WaDisableBackToBackFlipFix

PATCH In review Damien Lespiau 4 participants 6 messages Oct 4, 2012 – Oct 8, 2012

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

PATCH 1/2 drm/i915: Document that we are implementing WaDisableBackToBackFlipFix

From: Damien Lespiau <[email protected]>

For the next person that checks these kind of things, without having to dig up the register definition.

---
 drivers/gpu/drm/i915/intel_pm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpu/drm/i915/intel_pm.c +2 -0
index 62fe848..3d219ec 100644
@@ -3541,6 +3541,7 @@ static void ivybridge_init_clock_gating(struct drm_device *dev)
 	I915_WRITE(_3D_CHICKEN3,
 		   _MASKED_BIT_ENABLE(_3D_CHICKEN_SF_DISABLE_OBJEND_CULL));
 
+	/* WaDisableBackToBackFlipFix */
 	I915_WRITE(IVB_CHICKEN3,
 		   CHICKEN3_DGMG_REQ_OUT_FIX_DISABLE |
 		   CHICKEN3_DGMG_DONE_FIX_DISABLE);
@@ -3621,6 +3622,7 @@ static void valleyview_init_clock_gating(struct drm_device *dev)
 	I915_WRITE(_3D_CHICKEN3,
 		   _MASKED_BIT_ENABLE(_3D_CHICKEN_SF_DISABLE_OBJEND_CULL));
 
+	/* WaDisableBackToBackFlipFix */
 	I915_WRITE(IVB_CHICKEN3,
 		   CHICKEN3_DGMG_REQ_OUT_FIX_DISABLE |
 		   CHICKEN3_DGMG_DONE_FIX_DISABLE);
Signature · 1 line
1.7.7.5
#1 lore raw

PATCH 2/2 drm/i915: Remove the WaDisableBackToBackFlipFix w/a for Haswell

From: Damien Lespiau <[email protected]>

This workaround is only valid for IVB and VLV and the write triggers an error on HSW.

---
 drivers/gpu/drm/i915/intel_pm.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/intel_pm.c +0 -4
index 3d219ec..d0403e8 100644
@@ -3479,10 +3479,6 @@ static void haswell_init_clock_gating(struct drm_device *dev)
 	I915_WRITE(_3D_CHICKEN3,
 		   _MASKED_BIT_ENABLE(_3D_CHICKEN_SF_DISABLE_OBJEND_CULL));
 
-	I915_WRITE(IVB_CHICKEN3,
-		   CHICKEN3_DGMG_REQ_OUT_FIX_DISABLE |
-		   CHICKEN3_DGMG_DONE_FIX_DISABLE);
-
 	/* Apply the WaDisableRHWOOptimizationForRenderHang workaround. */
 	I915_WRITE(GEN7_COMMON_SLICE_CHICKEN1,
 		   GEN7_CSC1_RHWO_OPT_DISABLE_IN_RCC);
Signature · 1 line
1.7.7.5
Reviewed-by on v1 2/2
#2 lore raw

Re: [PATCH 2/2] drm/i915: Remove the WaDisableBackToBackFlipFix w/a for Haswell

2012/10/4 Damien Lespiau <[email protected]>:

Quoted 4 lines

From: Damien Lespiau <[email protected]>

This workaround is only valid for IVB and VLV and the write triggers an error on HSW.

In other words: the register does not exist anymore.

It would be nice if we could volunteer someone to check the other workarounds on the same function. The registers may exist but the WAs may not be needed anymore.

Quoted 29 lines
---
 drivers/gpu/drm/i915/intel_pm.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/gpu/drm/i915/intel_pm.c +0 -5
index 3d219ec..d0403e8 100644
@@ -3479,10 +3479,6 @@ static void haswell_init_clock_gating(struct drm_device *dev)
        I915_WRITE(_3D_CHICKEN3,
                   _MASKED_BIT_ENABLE(_3D_CHICKEN_SF_DISABLE_OBJEND_CULL));
 
-       I915_WRITE(IVB_CHICKEN3,
-                  CHICKEN3_DGMG_REQ_OUT_FIX_DISABLE |
-                  CHICKEN3_DGMG_DONE_FIX_DISABLE);
-
        /* Apply the WaDisableRHWOOptimizationForRenderHang workaround. */
        I915_WRITE(GEN7_COMMON_SLICE_CHICKEN1,
                   GEN7_CSC1_RHWO_OPT_DISABLE_IN_RCC);
--

1.7.7.5

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Signature · 1 line
Paulo Zanoni
#3 lore raw

Re: [PATCH 2/2] drm/i915: Remove the WaDisableBackToBackFlipFix w/a for Haswell

Quoted 3 lines · Paulo Zanoni

It would be nice if we could volunteer someone to check the other workarounds on the same function. The registers may exist but the WAs may not be needed anymore.

I've done a pass this morning and with the new patch posted list, I think we're good.

Signature · 1 line
Damien
Reviewed-by on v1 1/2
#4 lore raw
In reply to Damien Lespiau

2012/10/4 Damien Lespiau <[email protected]>:

Quoted 6 lines

From: Damien Lespiau <[email protected]>

For the next person that checks these kind of things, without having to dig up the register definition.

Quoted 31 lines
---
 drivers/gpu/drm/i915/intel_pm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpu/drm/i915/intel_pm.c +2 -1
index 62fe848..3d219ec 100644
@@ -3541,6 +3541,7 @@ static void ivybridge_init_clock_gating(struct drm_device *dev)
        I915_WRITE(_3D_CHICKEN3,
                   _MASKED_BIT_ENABLE(_3D_CHICKEN_SF_DISABLE_OBJEND_CULL));
 
+       /* WaDisableBackToBackFlipFix */
        I915_WRITE(IVB_CHICKEN3,
                   CHICKEN3_DGMG_REQ_OUT_FIX_DISABLE |
                   CHICKEN3_DGMG_DONE_FIX_DISABLE);
@@ -3621,6 +3622,7 @@ static void valleyview_init_clock_gating(struct drm_device *dev)
        I915_WRITE(_3D_CHICKEN3,
                   _MASKED_BIT_ENABLE(_3D_CHICKEN_SF_DISABLE_OBJEND_CULL));
 
+       /* WaDisableBackToBackFlipFix */
        I915_WRITE(IVB_CHICKEN3,
                   CHICKEN3_DGMG_REQ_OUT_FIX_DISABLE |
                   CHICKEN3_DGMG_DONE_FIX_DISABLE);
--

1.7.7.5

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Signature · 1 line
Paulo Zanoni
#5 lore raw
Quoted 9 lines · Paulo Zanoni

2012/10/4 Damien Lespiau <[email protected]>:

Quoted 6 lines

From: Damien Lespiau <[email protected]>

For the next person that checks these kind of things, without having to dig up the register definition.

Both patches merged into dinq, thanks.
-Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch