]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: vlv: cache current CD clock rate
authorImre Deak <imre.deak@intel.com>
Thu, 27 Mar 2014 15:45:10 +0000 (17:45 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 1 Apr 2014 20:58:18 +0000 (22:58 +0200)
commit47bd632f3f8b4a2062d7333c7dfcf786472e151d
treefcc5b97da7ffc2bffc9732c169d8101234b70f1c
parent44a2ae959b5d8676b89d07e8bdd045bebe8d2bec
drm/i915: vlv: cache current CD clock rate

Instead of reading out the CD clock rate from the HW at each modeset, do
this only during driver init and resume and use the cached value during
modeset. This moves things towards a state where the sw and hw side
setup is separated. It's also needed for VLV RPM, where we don't put
device into D0 state until modeset_global_resources is called and thus
can't access any display/gfx registers.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Antti Koskipää <antti.koskipaa@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h
drivers/gpu/drm/i915/intel_pm.c