drm/i915: Use a mask when applying WaProgramL3SqcReg1Default
authorOscar Mateo <oscar.mateo@intel.com>
Tue, 17 Oct 2017 20:25:45 +0000 (13:25 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 17 Oct 2017 22:21:11 +0000 (23:21 +0100)
commit930a784d02339be437fec07b3bb7213bde0ed53b
tree03eaa4e9678b4cadc6e8827cae045454dfff8f21
parentd6242aeb48d741eb7c1559cdb95d368de04466bd
drm/i915: Use a mask when applying WaProgramL3SqcReg1Default

Otherwise we are blasting other bits in GEN8_L3SQCREG1 that might be important
(although we probably aren't at the moment because 0 seems to be the default
for all the other bits).

v2: Extra parentheses (Michel)

Fixes: 050fc46 ("drm/i915:bxt: implement WaProgramL3SqcReg1DefaultForPerf")
Fixes: 450174f ("drm/i915/chv: Tune L3 SQC credits based on actual latencies")
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>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Reviewed-by: Michel Thierry <michel.thierry@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1508271945-14961-1-git-send-email-oscar.mateo@intel.com
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_engine_cs.c
drivers/gpu/drm/i915/intel_pm.c