]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Skip capturing an error state if we already have one
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 4 Jul 2016 07:48:33 +0000 (08:48 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Jul 2016 10:26:04 +0000 (11:26 +0100)
commit75c6fafcd0a212a0ce7b5f4c5a2a67af2c1994d7
tree5cba16ac31836b27380dc02bd0a1bac6aa324569
parent17032ea150ccf18614f00b5a53921aeba5bbcf15
drm/i915: Skip capturing an error state if we already have one

As we only ever keep the first error state around, we can avoid some
work that can be quite intrusive if we don't record the error the second
time around. This does move the race whereby the user could discard one
error state as the second is being captured, but that race exists in the
current code and we hope that recapturing error state is only done for
debugging.

Note that as we discard the error state for simulated errors, igt that
exercise error capture continue to function.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1467618513-4966-3-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/i915_gpu_error.c