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)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 2 Mar 2012 18:39:39 +0000 (19:39 +0100)
commitfa37d39e4c6622d80bd8061d600701bcea1d6870
tree3d7af86d6c36d375588f3b982ee05bbd3205a403
parentb2dbf316f32b44d174445f868a39b37e4608541e
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>
drivers/gpu/drm/i915/intel_display.c