drm/i915: Cache HPLL frequency on VLV/CHV
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 7 Oct 2014 14:41:22 +0000 (17:41 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 7 Nov 2014 17:42:21 +0000 (18:42 +0100)
commit6bcda4f0dfcbe78349b5b283af892913299c8b2a
treed88c95daa535ab2656a2ea20f92027aaa0a420ce
parent9500986159d9017f9277f9e42a1f9b13b5e0e666
drm/i915: Cache HPLL frequency on VLV/CHV

We need the HPLL frequency when calculating cdclk. Currently we read
that out from the hardware every single time, which isn't going to fly
very well if the device is runtime suspended. So cache the HPLL
frequency in dev_priv and use the cached value.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reference: https://bugs.freedesktop.org/show_bug.cgi?id=82939
Reviewed-by: Imre Deak <imre.deak@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
This page took 0.038172 seconds and 5 git commands to generate.