Re: [Intel-gfx] [PATCH 3/3] drm/i915: Cache HPLL frequency on VLV/CHV

2014-11-06 Thread Daniel Vetter
On Thu, Nov 06, 2014 at 04:02:10PM +0200, Imre Deak wrote: > On Tue, 2014-10-07 at 17:41 +0300, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > We need the HPLL frequency when calculating cdclk. Currently we read > > that out from the hardware every single time, which isn't g

Re: [Intel-gfx] [PATCH 3/3] drm/i915: Cache HPLL frequency on VLV/CHV

2014-11-06 Thread Imre Deak
On Tue, 2014-10-07 at 17:41 +0300, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > 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

[Intel-gfx] [PATCH 3/3] drm/i915: Cache HPLL frequency on VLV/CHV

2014-10-07 Thread ville . syrjala
From: Ville Syrjälä 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 Syr