]> 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)
commitca6f069242fecca669eb4501b179694ab8eebe8c
treefcc5b97da7ffc2bffc9732c169d8101234b70f1c
parent630fc1fb4e5ab632e1eb235a80023fd73ba6c746
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