Commit c990b4c3 authored by Chris Wilson's avatar Chris Wilson

drm/i915: Only include active engines in the capture state

Skip printing out idle engines that did not contribute to the GPU hang.
As the number of engines gets ever larger, we have increasing noise in
the error state where typically there is only one guilty request on one
engine that we need to inspect.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190808144511.32269-1-chris@chris-wilson.co.uk
parent c7302f20
This diff is collapsed.
...@@ -81,7 +81,8 @@ struct i915_gpu_state { ...@@ -81,7 +81,8 @@ struct i915_gpu_state {
struct intel_display_error_state *display; struct intel_display_error_state *display;
struct drm_i915_error_engine { struct drm_i915_error_engine {
int engine_id; const struct intel_engine_cs *engine;
/* Software tracked state */ /* Software tracked state */
bool idle; bool idle;
unsigned long hangcheck_timestamp; unsigned long hangcheck_timestamp;
...@@ -158,7 +159,9 @@ struct i915_gpu_state { ...@@ -158,7 +159,9 @@ struct i915_gpu_state {
u32 pp_dir_base; u32 pp_dir_base;
}; };
} vm_info; } vm_info;
} engine[I915_NUM_ENGINES];
struct drm_i915_error_engine *next;
} *engine;
struct scatterlist *sgl, *fit; struct scatterlist *sgl, *fit;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment