UPSTREAM: drm/i915: Replace WARN inside I915_READ64_2x32 with retry loop

Since we may conceivably encounter situations where the upper part of the
64bit register changes between reads, for example when a timestamp
counter overflows, change the WARN into a retry loop.

BUG=chromium:911825
TEST=boot caroline, chell, run login_LoginSuccess, graphics_SanAngeles, cheets_StartAndroid

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michał Winiarski <michal.winiarski@intel.com>
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
(cherry picked from commit ee0a227b7ac6e75f28e10269f81c7ec6eb600952)
Signed-off-by: Chiou, Cooper <cooper.chiou@intel.com>

Change-Id: I3f035627f4c9c172f83407853c8f8ac094f9c51f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/1601799
Tested-by: Cooper Chiou <cooper.chiou@intel.com>
Auto-Submit: Cooper Chiou <cooper.chiou@intel.com>
Commit-Queue: Cooper Chiou <cooper.chiou@intel.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
1 file changed