drm/i915: Limit i915_ring_test_irq debugfs to actual rings
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Jun 2016 13:35:05 +0000 (14:35 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 4 Jul 2016 09:32:57 +0000 (10:32 +0100)
commit3a122c27673691f99120dcaf36bccaa471bfb0df
tree021412a6e4e5c35116feb255a7893ad91a4b14ea
parent556ab7a6dea55b20269ab5093b90585c924ad340
drm/i915: Limit i915_ring_test_irq debugfs to actual rings

For simplicity in testing, only report known rings in the mask. This
allows userspace to try and trigger a missed irq on every ring and do a
comparison between i915_ring_test_irq and i915_ring_missed_irq to see if
any rings failed.

v2: Move the debug message to after the rings are selected (so that the
message accurately reflects reality)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1466170505-8048-1-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/i915_debugfs.c