[Intel-gfx] [PATCH] drm/i915: clear error registers after error capture

Lionel Landwerlin lionel.g.landwerlin at intel.com
Thu Aug 30 10:52:28 UTC 2018


We need to clear the register in order to get correct value after the
next potential hang.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
 drivers/gpu/drm/i915/i915_gpu_error.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_gpu_error.c b/drivers/gpu/drm/i915/i915_gpu_error.c
index afd70deae7ef..1cc9cde41328 100644
--- a/drivers/gpu/drm/i915/i915_gpu_error.c
+++ b/drivers/gpu/drm/i915/i915_gpu_error.c
@@ -1768,6 +1768,8 @@ static int capture(void *data)
 
 	error->epoch = capture_find_epoch(error);
 
+	i915_check_and_clear_faults(error->i915);
+
 	return 0;
 }
 
-- 
2.18.0



More information about the Intel-gfx mailing list