]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/i915/hsw: Fix workaround for server AUX channel clock divisor
authorJim Bride <jim.bride@linux.intel.com>
Wed, 27 May 2015 17:21:48 +0000 (10:21 -0700)
committerJiri Slaby <jslaby@suse.cz>
Tue, 23 Jun 2015 12:55:12 +0000 (14:55 +0200)
commit1dec7c0ba1c46a8a6008daf90afc05b5805582f1
treef3b9d16c33430ec6192c20e93407625c998dd959
parente7118bb3b03bec6cd9fb65621a41dfd9cd5a7d2b
drm/i915/hsw: Fix workaround for server AUX channel clock divisor

commit e058c945e03a629c99606452a6931f632dd28903 upstream.

According to the HSW b-spec we need to try clock divisors of 63
and 72, each 3 or more times, when attempting DP AUX channel
communication on a server chipset.  This actually wasn't happening
due to a short-circuit that only checked the DP_AUX_CH_CTL_DONE bit
in status rather than checking that the operation was done and
that DP_AUX_CH_CTL_TIME_OUT_ERROR was not set.

[v2] Implemented alternate solution suggested by Jani Nikula.

Signed-off-by: Jim Bride <jim.bride@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/gpu/drm/i915/intel_dp.c