]> 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)
commitdc94a8ebc8ea76b6565d1a740a6bcd7ef17f51b6
treec574f67ae52766620b226814af7b267cea53bbcd
parente47f113541f8c7473739632309b58826c30a0868
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