Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915: vlv: fix RPS interrupt mask setting

This typo may lead to missed RPS interrupts and as a result a too
low or too high frequency for the current workload. The interrupt mask
will be set properly at a subsequent GPU idle event, but can get
corrupted again at the next RPS up/down event.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>

authored by

Imre Deak and committed by
Daniel Vetter
09c87db8 f6d51948

+1 -1
+1 -1
drivers/gpu/drm/i915/intel_pm.c
··· 3159 3159 if (val != dev_priv->rps.cur_freq) 3160 3160 vlv_punit_write(dev_priv, PUNIT_REG_GPU_FREQ_REQ, val); 3161 3161 3162 - I915_WRITE(GEN6_PMINTRMSK, val); 3162 + I915_WRITE(GEN6_PMINTRMSK, gen6_rps_pm_mask(dev_priv, val)); 3163 3163 3164 3164 dev_priv->rps.cur_freq = val; 3165 3165 trace_intel_gpu_freq_change(vlv_gpu_freq(dev_priv, val));