]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dp: wait for previous AUX channel activity to clear
authorJesse Barnes <jbarnes@virtuousgeek.org>
Mon, 1 Aug 2011 22:02:20 +0000 (15:02 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 1 Aug 2011 22:24:18 +0000 (15:24 -0700)
commitb52c7321736605898e7a3038134b3fca6602f5fd
tree6bc213dfd279525f0400524ac31641ed8fa7e172
parent9bb5fba3c42a6cd4ff24780c0cda5547abb880b6
drm/i915/dp: wait for previous AUX channel activity to clear

Before initiating a new read or write on the DP AUX channel, wait for
any outstanding activity to complete.  This may happen during normal
retry behavior.  If the wait fails (i.e. after 1ms the AUX channel is
still busy) dump a backtrace to make the caller easier to spot.

v2: use msleep instead, and timeout after 3ms (only ever saw 1 retry
    with msleep in testing)
v3: fix backtrace check to trigger if the 3ms wait times out

Fixes https://bugs.freedesktop.org/show_bug.cgi?id=38136.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
drivers/gpu/drm/i915/intel_dp.c