Skip to content

Commit f1d3d34

Browse files
Damien Lespiaudanvet
authored andcommitted
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 2caa3b2 Author: Damien Lespiau <damien.lespiau@intel.com> Date: Mon Feb 9 19:33:20 2015 +0000 drm/i915/skl: Implement WaDisableChickenBitTSGBarrierAckForFFSliceCS v2: Also fix the register write (Ville) Reported-by: Robert Beckett <robert.beckett@intel.com> Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Robert Beckett <robert.beckett@intel.com> Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Cc: Nick Hoath <nicholas.hoath@intel.com> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
1 parent 22e02c0 commit f1d3d34

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

drivers/gpu/drm/i915/i915_reg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5718,7 +5718,7 @@ enum skl_disp_power_wells {
57185718
#define HSW_NDE_RSTWRN_OPT 0x46408
57195719
#define RESET_PCH_HANDSHAKE_ENABLE (1<<4)
57205720

5721-
#define FF_SLICE_CS_CHICKEN2 0x02e4
5721+
#define FF_SLICE_CS_CHICKEN2 0x20e4
57225722
#define GEN9_TSG_BARRIER_ACK_DISABLE (1<<8)
57235723

57245724
/* GEN7 chicken */

drivers/gpu/drm/i915/intel_pm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@ static void skl_init_clock_gating(struct drm_device *dev)
8888

8989
/* WaDisableChickenBitTSGBarrierAckForFFSliceCS:skl */
9090
I915_WRITE(FF_SLICE_CS_CHICKEN2,
91-
I915_READ(FF_SLICE_CS_CHICKEN2) |
92-
GEN9_TSG_BARRIER_ACK_DISABLE);
91+
_MASKED_BIT_ENABLE(GEN9_TSG_BARRIER_ACK_DISABLE));
9392
}
9493

9594
if (INTEL_REVID(dev) <= SKL_REVID_E0)

0 commit comments

Comments
 (0)