[Intel-gfx] [PATCH v2 13/16] drm/i915: mark rings which were waiting when hang happened
Mika Kuoppala
mika.kuoppala at linux.intel.com
Thu Mar 14 16:52:14 CET 2013
For guilty batchbuffer analysis later on on ring resets,
mark all waiting rings so that we can skip them when
trying to find a true culprit for the gpu hang.
Signed-off-by: Mika Kuoppala <mika.kuoppala at intel.com>
---
drivers/gpu/drm/i915/i915_irq.c | 3 ++-
drivers/gpu/drm/i915/intel_ringbuffer.h | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index 5e91e94..7d13259 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -1889,7 +1889,8 @@ void i915_hangcheck_elapsed(unsigned long data)
ring->hangcheck_score++;
/* Kick ring */
- i915_hangcheck_ring_hung(ring);
+ ring->hangcheck_was_waiting =
+ !i915_hangcheck_ring_hung(ring);
} else {
ring->hangcheck_score = 0;
}
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h
index 97b8f37..573b0ef 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.h
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.h
@@ -139,6 +139,7 @@ struct intel_ring_buffer {
u32 hangcheck_seqno;
int hangcheck_score;
+ bool hangcheck_was_waiting;
void *private;
};
--
1.7.9.5
More information about the Intel-gfx
mailing list