]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/i915: Add fifo underrun reporting state to debugfs
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 May 2014 15:56:31 +0000 (17:56 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 26 May 2014 13:16:28 +0000 (15:16 +0200)
On platforms with shared interrupt enable bits (which are shared even
with the pipe CRC logic) there's some tricky corner cases. Add
information to make debugging those easier.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_debugfs.c

index 333dd12d62f43c193a2d589b27c6a749bdc93e6d..2e5f76a585ef0b8612e5a24af168b102c8e7969a 100644 (file)
@@ -2357,6 +2357,10 @@ static int i915_display_info(struct seq_file *m, void *unused)
                                   x, y, crtc->cursor_addr,
                                   yesno(active));
                }
+
+               seq_printf(m, "\tunderrun reporting: cpu=%s pch=%s \n",
+                          yesno(!crtc->cpu_fifo_underrun_disabled),
+                          yesno(!crtc->pch_fifo_underrun_disabled));
        }
 
        seq_printf(m, "\n");