drm/i915: Add ECOBITS_SNB_BIT
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 4 Apr 2013 12:13:40 +0000 (15:13 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 18 Apr 2013 07:43:18 +0000 (09:43 +0200)
GAC_ECO_BITS has a bit similar to GAM_ECOCHK's ECOCHK_SNB_BIT. Add
the define, and enable it on SNB.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_reg.h

index 11143b4982fc80326acda7ebbebcbbcce02a212e..a336c4d609a2d1f4c0650c095cf4d8e77d325e9f 100644 (file)
@@ -106,7 +106,8 @@ static int gen6_ppgtt_enable(struct drm_device *dev)
                uint32_t ecochk, gab_ctl, ecobits;
 
                ecobits = I915_READ(GAC_ECO_BITS);
-               I915_WRITE(GAC_ECO_BITS, ecobits | ECOBITS_PPGTT_CACHE64B);
+               I915_WRITE(GAC_ECO_BITS, ecobits | ECOBITS_SNB_BIT |
+                                        ECOBITS_PPGTT_CACHE64B);
 
                gab_ctl = I915_READ(GAB_CTL);
                I915_WRITE(GAB_CTL, gab_ctl | GAB_CTL_CONT_AFTER_PAGEFAULT);
index 0e4b7fb7d6913c44ef8fc56e7fa616ea68fe6867..96b361f9a32dcd1c49d4523ce1a47ad82adf915a 100644 (file)
 #define   ECOCHK_PPGTT_CACHE4B         (0x0<<3)
 
 #define GAC_ECO_BITS                   0x14090
+#define   ECOBITS_SNB_BIT              (1<<13)
 #define   ECOBITS_PPGTT_CACHE64B       (3<<8)
 #define   ECOBITS_PPGTT_CACHE4B                (0<<8)