drm/i915: Mask PM/RPS interrupt generation based on activity
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 28 Mar 2014 08:03:34 +0000 (08:03 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 31 Mar 2014 08:46:35 +0000 (10:46 +0200)
commit2876ce734417b1893d48e86c9ade9100e1fcc297
treee076de8373d6cd6eca60fc3b5553ff92826d328f
parenteb64cad1c13a22cd4f3b061720c71f35e44eec20
drm/i915: Mask PM/RPS interrupt generation based on activity

The speculation is that we can conserve more power by masking off
the interrupts at source (PMINTRMSK) rather than filtering them by the
up/down thresholds (RPINTLIM). We can select which events we know will
be active based on the current frequency versus our imposed range, i.e.
if at minimum, we know we will not want to generate any more
down-interrupts and vice versa.

v2: We only need the TIMEOUT when above min frequency.
v3: Tweak VLV at the same time

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Deepak S <deepak.s@linux.intel.com>
Reviewed-by:Deepak S <deepak.s@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c