]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: vlv: factor out vlv_force_gfx_clock and check for pending force-off
authorImre Deak <imre.deak@intel.com>
Fri, 18 Apr 2014 13:35:02 +0000 (16:35 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 25 Apr 2014 14:02:24 +0000 (16:02 +0200)
commit460de0eb9142b075bc09d1b625750c35adc6820e
treeeb1afbb734fb69f5b7e718ff84fb0bd8ac7d1e71
parent87bd35112d6aa8899598fd31d2db16c4c2f0e03a
drm/i915: vlv: factor out vlv_force_gfx_clock and check for pending force-off

This will be needed by the VLV runtime PM helpers too, so factor it out.

Also add a safety check for the case where the previous force-off is
still pending, since I'm not sure if Punit can handle a new setting
while the previous one hasn't settled yet.

v2:
- unchanged
v3:
- add a note to the commit message about the safety check (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
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_pm.c