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)
commitd60c4473b6f54876cb7e6bdb7fefee8ccb0d626f
treefcc5b97da7ffc2bffc9732c169d8101234b70f1c
parent0d8f94912a2e204a0faeac30f4d29f14aa05ee89
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
This page took 0.028988 seconds and 5 git commands to generate.