[PATCH 40/43] drm/i915: Only dump GPU state on set-wedged if interesting

Chris Wilson chris at chris-wilson.co.uk
Tue Jan 1 20:00:41 UTC 2019


As we may frequently mark the device as wedged to flush requests off it
during the normal course of events, quite often we have a large state
dump that is of no interest. Don't bother dumping it all if the engines
are all idle.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/i915_reset.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_reset.c b/drivers/gpu/drm/i915/i915_reset.c
index b89d5a395056..eb566802ec75 100644
--- a/drivers/gpu/drm/i915/i915_reset.c
+++ b/drivers/gpu/drm/i915/i915_reset.c
@@ -774,7 +774,7 @@ void i915_gem_set_wedged(struct drm_i915_private *i915)
 		return;
 	}
 
-	if (GEM_SHOW_DEBUG()) {
+	if (GEM_SHOW_DEBUG() && !intel_engines_are_idle(i915)) {
 		struct drm_printer p = drm_debug_printer(__func__);
 
 		for_each_engine(engine, i915, id)
-- 
2.20.1



More information about the Intel-gfx-trybot mailing list