]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Aug 2015 03:52:09 +0000 (20:52 -0700)
commit7f62822ffdb19561d89f9da7956d125f95300eed
treee33a8c4584269803ae50a7ab3b44132dc3c788ab
parent57689a9f86b856fcdfd3102cb95b7e930856524a
drm/i915: Replace WARN inside I915_READ64_2x32 with retry loop

commit ee0a227b7ac6e75f28e10269f81c7ec6eb600952 upstream.

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>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/i915_drv.h