]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Read czclk from CCK on vlv/chv
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 24 Sep 2015 20:29:18 +0000 (23:29 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 30 Sep 2015 08:20:37 +0000 (10:20 +0200)
commitd0637e5f6432fb5829b7962561015bf51a2e78e7
treec574f67ae52766620b226814af7b267cea53bbcd
parent63125eefc3f383f44431944fa910848beb4782c5
drm/i915: Read czclk from CCK on vlv/chv

As with the cdclk, read out czclk from CCK as well. This gives us the
real current value and avoids having to decode fuses and whatnot.

Also store it in kHz under dev_priv like we do for cdlck since it's not
just an rps related clock, and having it in kHz is more
standard/convenient for some things.

Imre also pointed out that we currently fail to read czclk on VLV, which
means the PFI credit programming isn't working as expected.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
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/i915_reg.h
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_pm.c