]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: reinit GT power save during resume
authorImre Deak <imre.deak@intel.com>
Tue, 22 Apr 2014 17:21:07 +0000 (20:21 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 25 Apr 2014 13:43:27 +0000 (15:43 +0200)
commit65563dd887bf8aaca1c5848c436d5eec1f387a40
tree6a14d7f7a4f13227e390f36874ed544d2b0d859e
parent81173fc4da204bd2e3dc189285fbed164eee1385
drm/i915: reinit GT power save during resume

During runtime suspend there can be a last pending rps.work, so make
sure it's canceled. Note that in the runtime suspend callback we can't
get any RPS interrupts since it's called only after the GPU goes idle
and we set the minimum RPS frequency. The next possibility for an RPS
interrupt is only after getting an RPM ref (for example because of a new
GPU command) and calling the RPM resume callback.

v2:
- patch introduced in v2 of the patchset
v3:
- Change the order of canceling the rps.work and disabling interrupts to
  avoid the race between interrupt disabling and the the rps.work. Race
  spotted by Ville.

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