drm/i915: Stop showing seqno info from debugfs/i915_interrupt_info
Since the seqno information shown from i915_interrupt_info is just a small subset of i915_engine_info, remove it. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20171209104418.4223-2-chris@chris-wilson.co.uk
This commit is contained in:
@@ -664,25 +664,6 @@ static int i915_gem_batch_pool_info(struct seq_file *m, void *data)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void i915_ring_seqno_info(struct seq_file *m,
|
|
||||||
struct intel_engine_cs *engine)
|
|
||||||
{
|
|
||||||
struct intel_breadcrumbs *b = &engine->breadcrumbs;
|
|
||||||
struct rb_node *rb;
|
|
||||||
|
|
||||||
seq_printf(m, "Current sequence (%s): %x\n",
|
|
||||||
engine->name, intel_engine_get_seqno(engine));
|
|
||||||
|
|
||||||
spin_lock_irq(&b->rb_lock);
|
|
||||||
for (rb = rb_first(&b->waiters); rb; rb = rb_next(rb)) {
|
|
||||||
struct intel_wait *w = rb_entry(rb, typeof(*w), node);
|
|
||||||
|
|
||||||
seq_printf(m, "Waiting (%s): %s [%d] on %x\n",
|
|
||||||
engine->name, w->tsk->comm, w->tsk->pid, w->seqno);
|
|
||||||
}
|
|
||||||
spin_unlock_irq(&b->rb_lock);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int i915_interrupt_info(struct seq_file *m, void *data)
|
static int i915_interrupt_info(struct seq_file *m, void *data)
|
||||||
{
|
{
|
||||||
struct drm_i915_private *dev_priv = node_to_i915(m->private);
|
struct drm_i915_private *dev_priv = node_to_i915(m->private);
|
||||||
@@ -883,13 +864,12 @@ static int i915_interrupt_info(struct seq_file *m, void *data)
|
|||||||
seq_printf(m, "Graphics Interrupt mask: %08x\n",
|
seq_printf(m, "Graphics Interrupt mask: %08x\n",
|
||||||
I915_READ(GTIMR));
|
I915_READ(GTIMR));
|
||||||
}
|
}
|
||||||
for_each_engine(engine, dev_priv, id) {
|
if (INTEL_GEN(dev_priv) >= 6) {
|
||||||
if (INTEL_GEN(dev_priv) >= 6) {
|
for_each_engine(engine, dev_priv, id) {
|
||||||
seq_printf(m,
|
seq_printf(m,
|
||||||
"Graphics Interrupt mask (%s): %08x\n",
|
"Graphics Interrupt mask (%s): %08x\n",
|
||||||
engine->name, I915_READ_IMR(engine));
|
engine->name, I915_READ_IMR(engine));
|
||||||
}
|
}
|
||||||
i915_ring_seqno_info(m, engine);
|
|
||||||
}
|
}
|
||||||
intel_runtime_pm_put(dev_priv);
|
intel_runtime_pm_put(dev_priv);
|
||||||
|
|
||||||
|
|||||||
@@ -1840,6 +1840,10 @@ void intel_engine_dump(struct intel_engine_cs *engine,
|
|||||||
}
|
}
|
||||||
spin_unlock_irq(&b->rb_lock);
|
spin_unlock_irq(&b->rb_lock);
|
||||||
|
|
||||||
|
if (INTEL_GEN(dev_priv) >= 6) {
|
||||||
|
drm_printf(m, "\tRING_IMR: %08x\n", I915_READ_IMR(engine));
|
||||||
|
}
|
||||||
|
|
||||||
drm_printf(m, "IRQ? 0x%lx (breadcrumbs? %s) (execlists? %s)\n",
|
drm_printf(m, "IRQ? 0x%lx (breadcrumbs? %s) (execlists? %s)\n",
|
||||||
engine->irq_posted,
|
engine->irq_posted,
|
||||||
yesno(test_bit(ENGINE_IRQ_BREADCRUMB,
|
yesno(test_bit(ENGINE_IRQ_BREADCRUMB,
|
||||||
|
|||||||
Reference in New Issue
Block a user