summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-01-15 13:20:57 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2019-01-15 15:09:08 +0100
commitdecd29e6b5fe08e20fade72100e2d4a85dc5f766 (patch)
tree0ecf9d00d592a46842333ebf7acd050dc001a475 /drivers
parentdrm/i915/perf: Annotate i915_perf.wakeref for keneldoc (diff)
downloadlinux-decd29e6b5fe08e20fade72100e2d4a85dc5f766.tar.xz
linux-decd29e6b5fe08e20fade72100e2d4a85dc5f766.zip
drm/i915: Only dump GPU state on set-wedged if interesting
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@chris-wilson.co.uk> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com> Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190115122057.1677-1-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 61037e7292ee..d35dd3d6d3b6 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -3178,7 +3178,7 @@ void i915_gem_set_wedged(struct drm_i915_private *i915)
GEM_TRACE("start\n");
- 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)