]> 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)
commit6481d5ed076e69db83ca75e751ad492a6fb669a7
tree36f3bcdb8b12ab730302e4ac1fccbd0b4b2bc872
parentad8059cf2e33042be31b09d44fd3e61ac9c50219
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