]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/gpu/drm/i915/i915_drv.h
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>
Mon, 5 May 2014 07:09:12 +0000 (09:09 +0200)
commit650ad970a39f8b6164fe8613edc150f585315289
tree3b29225315457f3ebe99e90fad5fd936434fb0c8
parent4e80519e31b76cb6bd9d62eee95d6555bce1bc10
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