drm/i915: Remove Gen9 WAs with no effect
authorOscar Mateo <oscar.mateo@intel.com>
Wed, 8 Nov 2017 23:59:44 +0000 (15:59 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 12 Nov 2017 14:34:05 +0000 (14:34 +0000)
GEN8_CONFIG0 (0xD00) is a protected by a lock (bit 31) which is set by
the BIOS, so there is no way we can enable the three chicken bits
mandated by the WA (the BIOS should be doing it instead).

v2: Rebased
v3: Standalone patch

References: b033bb6d5d3a ("drm/i915/gen9: Enable must set chicken bits in config0 reg")
Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1510185589-9100-2-git-send-email-oscar.mateo@intel.com
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_pm.c

index 6ef33422f7629f564ceaca5a460668bf30afca01..4e92db28af9c88ca7c1be22393e17e4d7a87ef3d 100644 (file)
@@ -355,9 +355,6 @@ static inline bool i915_mmio_reg_valid(i915_reg_t reg)
 #define   ECOCHK_PPGTT_WT_HSW          (0x2<<3)
 #define   ECOCHK_PPGTT_WB_HSW          (0x3<<3)
 
-#define GEN8_CONFIG0                   _MMIO(0xD00)
-#define  GEN9_DEFAULT_FIXES            (1 << 3 | 1 << 2 | 1 << 1)
-
 #define GAC_ECO_BITS                   _MMIO(0x14090)
 #define   ECOBITS_SNB_BIT              (1<<13)
 #define   ECOBITS_PPGTT_CACHE64B       (3<<8)
index c1a56809f143166820588b446a3c79cf04ab953e..8e7f02e6008aae8a124ee0e607114f4a7682e1bd 100644 (file)
@@ -75,9 +75,6 @@ static void gen9_init_clock_gating(struct drm_i915_private *dev_priv)
        I915_WRITE(CHICKEN_PAR1_1,
                   I915_READ(CHICKEN_PAR1_1) | SKL_EDP_PSR_FIX_RDWRAP);
 
-       I915_WRITE(GEN8_CONFIG0,
-                  I915_READ(GEN8_CONFIG0) | GEN9_DEFAULT_FIXES);
-
        /* WaEnableChickenDCPR:skl,bxt,kbl,glk,cfl */
        I915_WRITE(GEN8_CHICKEN_DCPR_1,
                   I915_READ(GEN8_CHICKEN_DCPR_1) | MASK_WAKEMEM);