CHERRY-PICK: drm/i915: Retry reading the PCH FDI receiver ISR
authorSean Paul <seanpaul@chromium.org>
Fri, 2 Mar 2012 17:53:39 +0000 (12:53 -0500)
committerOlof Johansson <olof@lixom.net>
Fri, 1 Jun 2012 06:53:32 +0000 (23:53 -0700)
commit5a3e1a304a9ee5e760875fb8595ff367a0c1cf9f
tree8c6b95231c696bbab8828e6727321e7116eeeafd
parent812e56a0bb1c776ba8335b6d8a8889c0759cf990
CHERRY-PICK: drm/i915: Retry reading the PCH FDI receiver ISR

According to the PRM (Vol3P2), the PCH FDI receiver ISR read for bit lock
should be retried at least once. This patch retries the read 5 times
with a small delay in between reads. I've had reports of display corruption
on resume with "FDI train 1 fail!", so I'm hoping that adding this retry
will mitigate the issue.

Signed-off-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
(cherry picked from commit fa37d39e4c6622d80bd8061d600701bcea1d6870)

BUG=chrome-os-partner:7439
TEST=Tested on lumpy with auto suspend/resume script

Change-Id: I8eb18050ddaadd91c5a2a06f4b664f5a3ea65c7f
Reviewed-on: https://gerrit.chromium.org/gerrit/17238
Tested-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Grant Grundler <grundler@chromium.org>
Commit-Ready: Sean Paul <seanpaul@chromium.org>
drivers/gpu/drm/i915/intel_display.c