drm/i915: Simplify checking of GPU reset_counter in display pageflips
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 13 Apr 2016 16:35:04 +0000 (17:35 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Apr 2016 09:45:40 +0000 (10:45 +0100)
commit7f1847ebf48b2e5753691cc9e2a404c260383933
treec88adb924b99893b8e29e4461721fbc73efe2fc6
parentc19ae989b0245ed011fe403b7c4a216e35765c0f
drm/i915: Simplify checking of GPU reset_counter in display pageflips

If we, when we store the reset_counter for the operation, we ensure that
it is not in a wedged or in the middle of a reset, we can then assert that
if any reset occurs the reset_counter must change. Later we can just
compare the operation's reset epoch against the current counter to see
if we need to abort the operation (to handle the hang).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1460565315-7748-5-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_display.c