drm/i915/skl: Fix FF_SLICE_CS_CHICKEN2 offset
Subsystems (2)
PATCH 1/1 drm/i915/skl: Fix FF_SLICE_CS_CHICKEN2 offset
Robert noticed that the FF_SLICE_CS_CHICKEN2 offset was wrong. Ooops.
The problem was introduced in the original patch:
commit 2caa3b260aa6a3d015352c07d1bce1461825fa6c
Author: Damien Lespiau <[email protected]>
Date: Mon Feb 9 19:33:20 2015 +0000
drm/i915/skl: Implement WaDisableChickenBitTSGBarrierAckForFFSliceCS
--- drivers/gpu/drm/i915/i915_reg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/i915/i915_reg.h +1 -1
@@ -5718,7 +5718,7 @@ enum skl_disp_power_wells {#define HSW_NDE_RSTWRN_OPT 0x46408#define RESET_PCH_HANDSHAKE_ENABLE (1<<4) -#define FF_SLICE_CS_CHICKEN2 0x02e4 +#define FF_SLICE_CS_CHICKEN2 0x20e4#define GEN9_TSG_BARRIER_ACK_DISABLE (1<<8)/* GEN7 chicken */
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 8 lines · Damien Lespiau
Robert noticed that the
FF_SLICE_CS_CHICKEN2offset was wrong. Ooops.The problem was introduced in the original patch:
commit
2caa3b260aa6a3d015352c07d1bce1461825fa6c
Author: Damien Lespiau <[email protected]>
Date: Mon Feb 9 19:33:20 2015 +0000
Quoted 7 lines
drm/i915/skl: Implement WaDisableChickenBitTSGBarrierAckForFFSliceCS
Reported-by Robert Beckett <[email protected]>Cc Robert Beckett <[email protected]>Cc Nick Hoath <[email protected]>Signed-off-by Damien Lespiau <[email protected]>
FYI the code in skl_init_clock_gating() is also wrong since this is a masked register.
Quoted 24 lines
--- drivers/gpu/drm/i915/i915_reg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/i915/i915_reg.h +1
-1@@ -5718,7 +5718,7 @@ enum skl_disp_power_wells {#define HSW_NDE_RSTWRN_OPT 0x46408#define RESET_PCH_HANDSHAKE_ENABLE (1<<4) -#define FF_SLICE_CS_CHICKEN2 0x02e4 +#define FF_SLICE_CS_CHICKEN2 0x20e4#define GEN9_TSG_BARRIER_ACK_DISABLE (1<<8)/* GEN7 chicken */ Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 6 lines
Ville Syrjälä Intel OTC _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 1/1 drm/i915/skl: Fix WaDisableChickenBitTSGBarrierAckForFFSliceCS
Robert noticed that the FF_SLICE_CS_CHICKEN2 offset was wrong. Ooops.
Ville noticed that the write was wrong since FF_SLICE_CS_CHICKEN2 is a masked register. Re-oops.
A wonder if went through 2 people while having roughly a bug per line...
The problem was introduced in the original patch:
commit 2caa3b260aa6a3d015352c07d1bce1461825fa6c
Author: Damien Lespiau <[email protected]>
Date: Mon Feb 9 19:33:20 2015 +0000
drm/i915/skl: Implement WaDisableChickenBitTSGBarrierAckForFFSliceCS
v2: Also fix the register write (Ville)
--- drivers/gpu/drm/i915/i915_reg.h | 2 +- drivers/gpu/drm/i915/intel_pm.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/i915/i915_reg.h +1 -1
@@ -5718,7 +5718,7 @@ enum skl_disp_power_wells {#define HSW_NDE_RSTWRN_OPT 0x46408#define RESET_PCH_HANDSHAKE_ENABLE (1<<4) -#define FF_SLICE_CS_CHICKEN2 0x02e4 +#define FF_SLICE_CS_CHICKEN2 0x20e4#define GEN9_TSG_BARRIER_ACK_DISABLE (1<<8)/* GEN7 chicken */
drivers/gpu/drm/i915/intel_pm.c +1 -2
@@ -88,8 +88,7 @@ static void skl_init_clock_gating(struct drm_device *dev)/* WaDisableChickenBitTSGBarrierAckForFFSliceCS:skl */ I915_WRITE (FF_SLICE_CS_CHICKEN2 , -I915_READ (FF_SLICE_CS_CHICKEN2 ) | -GEN9_TSG_BARRIER_ACK_DISABLE ); +_MASKED_BIT_ENABLE (GEN9_TSG_BARRIER_ACK_DISABLE )); }if (INTEL_REVID (dev) <=SKL_REVID_E0 )
Signature · 6 lines
2.1.0 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH] drm/i915/skl: Fix WaDisableChickenBitTSGBarrierAckForFFSliceCS
Quoted 17 lines · Damien Lespiau
Robert noticed that the
FF_SLICE_CS_CHICKEN2offset was wrong. Ooops.Ville noticed that the write was wrong since
FF_SLICE_CS_CHICKEN2is a masked register. Re-oops.A wonder if went through 2 people while having roughly a bug per line...
The problem was introduced in the original patch:
commit
2caa3b260aa6a3d015352c07d1bce1461825fa6c
Author: Damien Lespiau <[email protected]>
Date: Mon Feb 9 19:33:20 2015 +0000drm/i915/skl: Implement WaDisableChickenBitTSGBarrierAckForFFSliceCS
v2: Also fix the register write (Ville)
Quoted 7 lines
Reported-by Robert Beckett <[email protected]>Reported-by Ville Syrjälä <[email protected]>Cc Robert Beckett <[email protected]>Cc Ville Syrjälä <[email protected]>Cc Nick Hoath <[email protected]>Signed-off-by Damien Lespiau <[email protected]>
Quoted 34 lines
--- drivers/gpu/drm/i915/i915_reg.h | 2 +- drivers/gpu/drm/i915/intel_pm.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/i915_reg.h +1
-1@@ -5718,7 +5718,7 @@ enum skl_disp_power_wells {#define HSW_NDE_RSTWRN_OPT 0x46408#define RESET_PCH_HANDSHAKE_ENABLE (1<<4) -#define FF_SLICE_CS_CHICKEN2 0x02e4 +#define FF_SLICE_CS_CHICKEN2 0x20e4#define GEN9_TSG_BARRIER_ACK_DISABLE (1<<8)/* GEN7 chicken */ drivers/gpu/drm/i915/intel_pm.c +1
-2@@ -88,8 +88,7 @@ static void skl_init_clock_gating(struct drm_device *dev)/* WaDisableChickenBitTSGBarrierAckForFFSliceCS:skl */ I915_WRITE (FF_SLICE_CS_CHICKEN2 , -I915_READ (FF_SLICE_CS_CHICKEN2 ) | -GEN9_TSG_BARRIER_ACK_DISABLE ); +_MASKED_BIT_ENABLE (GEN9_TSG_BARRIER_ACK_DISABLE )); }if (INTEL_REVID (dev) <=SKL_REVID_E0 )Signature · 1 line
2.1.0
Signature · 6 lines
Ville Syrjälä Intel OTC _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Daniel Vetter
AppliedRe: [PATCH] drm/i915/skl: Fix WaDisableChickenBitTSGBarrierAckForFFSliceCS
Quoted 24 lines · Ville Syrjälä
Quoted 23 lines · Damien Lespiau
Robert noticed that the
FF_SLICE_CS_CHICKEN2offset was wrong. Ooops.Ville noticed that the write was wrong since
FF_SLICE_CS_CHICKEN2is a masked register. Re-oops.A wonder if went through 2 people while having roughly a bug per line...
The problem was introduced in the original patch:
commit
2caa3b260aa6a3d015352c07d1bce1461825fa6c
Author: Damien Lespiau <[email protected]>
Date: Mon Feb 9 19:33:20 2015 +0000drm/i915/skl: Implement WaDisableChickenBitTSGBarrierAckForFFSliceCS
v2: Also fix the register write (Ville)
Reported-by Robert Beckett <[email protected]>Reported-by Ville Syrjälä <[email protected]>Cc Robert Beckett <[email protected]>Cc Ville Syrjälä <[email protected]>Cc Nick Hoath <[email protected]>
Quoted 3 lines
Quoted 1 line
Signed-off-by Damien Lespiau <[email protected]>Reviewed-by Ville Syrjälä <[email protected]>
Queued for -next, thanks for the patch.
-Daniel
Quoted 43 lines
Quoted 35 lines
--- drivers/gpu/drm/i915/i915_reg.h | 2 +- drivers/gpu/drm/i915/intel_pm.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)drivers/gpu/drm/i915/i915_reg.h +1
-1@@ -5718,7 +5718,7 @@ enum skl_disp_power_wells {#define HSW_NDE_RSTWRN_OPT 0x46408#define RESET_PCH_HANDSHAKE_ENABLE (1<<4) -#define FF_SLICE_CS_CHICKEN2 0x02e4 +#define FF_SLICE_CS_CHICKEN2 0x20e4#define GEN9_TSG_BARRIER_ACK_DISABLE (1<<8)/* GEN7 chicken */ drivers/gpu/drm/i915/intel_pm.c +1
-2@@ -88,8 +88,7 @@ static void skl_init_clock_gating(struct drm_device *dev)/* WaDisableChickenBitTSGBarrierAckForFFSliceCS:skl */ I915_WRITE (FF_SLICE_CS_CHICKEN2 , -I915_READ (FF_SLICE_CS_CHICKEN2 ) | -GEN9_TSG_BARRIER_ACK_DISABLE ); +_MASKED_BIT_ENABLE (GEN9_TSG_BARRIER_ACK_DISABLE )); }if (INTEL_REVID (dev) <=SKL_REVID_E0 )Signature · 1 line
2.1.0Signature · 6 lines
Ville Syrjälä Intel OTC _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH] drm/i915/skl: Fix WaDisableChickenBitTSGBarrierAckForFFSliceCS
In reply to Damien LespiauTask id: 6332 -------------------------------------Summary-------------------------------------
Platform Delta drm-intel-nightly Series Applied
PNV 276/276 276/276 ILK 302/302 302/302 SNB 316/316 316/316 IVB 342/342 342/342 BYT 286/286 286/286 BDW 321/321 321/321
-------------------------------------Detailed-------------------------------------
Platform Test drm-intel-nightly Series Applied
Note: You need to pay more attention to line start with '*'
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Task id: 6331 -------------------------------------Summary-------------------------------------
Platform Delta drm-intel-nightly Series Applied
PNV 276/276 276/276 ILK 302/302 302/302 SNB 316/316 316/316 IVB 342/342 342/342 BYT 286/286 286/286 BDW 321/321 321/321
-------------------------------------Detailed-------------------------------------
Platform Test drm-intel-nightly Series Applied
Note: You need to pay more attention to line start with '*'
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx