]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Disable GMBUS clock gating around GMBUS transfers on gen9+
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 21 Dec 2017 20:24:32 +0000 (22:24 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 22 Dec 2017 12:23:14 +0000 (14:23 +0200)
commitcdc3aabd1cbc2ea92f4ab9646beaf7ad8f1aef1a
tree36f3bcdb8b12ab730302e4ac1fccbd0b4b2bc872
parent0d8846e32afb0ed338849953ec7c9b53e1ec0a8b
drm/i915: Disable GMBUS clock gating around GMBUS transfers on gen9+

Gen9+ need to disable GMBUS clock gating when doing multi part
transfers. Otherwise clock gating will kick in when GMBUS is in
the WAIT state and presumably that will corrupt the transfer.
This is documented as Display WA #0868.

Apparently older hardware doesn't allow clock gating in the WAIT
state and thus are unaffected by this problem.

v2: Limit the PCH w/a to gen9 and gen10 only (DK)
    Actually change it to check the PCH type instead since
    it's the PCH that actually contains the GMBUS hardware

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> #v1
Link: https://patchwork.freedesktop.org/patch/msgid/20171221202432.17373-1-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_i2c.c