Skip to content

Commit

Permalink
drm/i915: Show cursor size in debugfs/i915_display_info
Browse files Browse the repository at this point in the history
Inlcude the pipe-size and cursor-size in debugfs.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
  • Loading branch information
Chris Wilson authored and Jani Nikula committed Jul 4, 2014
1 parent 5e59f71 commit 57127ef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/gpu/drm/i915/i915_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2356,17 +2356,17 @@ static int i915_display_info(struct seq_file *m, void *unused)
bool active;
int x, y;

seq_printf(m, "CRTC %d: pipe: %c, active: %s\n",
seq_printf(m, "CRTC %d: pipe: %c, active=%s (size=%dx%d)\n",
crtc->base.base.id, pipe_name(crtc->pipe),
yesno(crtc->active));
yesno(crtc->active), crtc->config.pipe_src_w, crtc->config.pipe_src_h);
if (crtc->active) {
intel_crtc_info(m, crtc);

active = cursor_position(dev, crtc->pipe, &x, &y);
seq_printf(m, "\tcursor visible? %s, position (%d, %d), addr 0x%08x, active? %s\n",
seq_printf(m, "\tcursor visible? %s, position (%d, %d), size %dx%d, addr 0x%08x, active? %s\n",
yesno(crtc->cursor_base),
x, y, crtc->cursor_addr,
yesno(active));
x, y, crtc->cursor_width, crtc->cursor_height,
crtc->cursor_addr, yesno(active));
}

seq_printf(m, "\tunderrun reporting: cpu=%s pch=%s \n",
Expand Down

0 comments on commit 57127ef

Please sign in to comment.