drm/i915: Replace WARN inside I915_READ64_2x32 with retry loop
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Jul 2015 08:50:42 +0000 (09:50 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 29 Jul 2015 08:22:18 +0000 (10:22 +0200)
commitee0a227b7ac6e75f28e10269f81c7ec6eb600952
treeebc6781b38245103564217e51a1453249306b233
parentcbfe8fa6cd672011c755c3cd85c9ffd4e2d10a6f
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.

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>
drivers/gpu/drm/i915/i915_drv.h