diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-01-09 16:07:49 -0500 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-01-11 17:16:56 -0500 |
commit | a779e5abda0367aa9d53c0931d9687743afe503d (patch) | |
tree | 3cbccb434e44d5c1c4cbacebd4e611872f4b1503 /drivers/gpu/drm/i915/i915_debugfs.c | |
parent | 0a58705b2fc3fa29525cf2fdae3d4276a5771280 (diff) |
drm/i915: Record AGP memory type upon error
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index a7c194a837a3..73914d841856 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c | |||
@@ -624,6 +624,15 @@ static const char *ring_str(int ring) | |||
624 | } | 624 | } |
625 | } | 625 | } |
626 | 626 | ||
627 | static const char *agp_type_str(int type) | ||
628 | { | ||
629 | switch (type) { | ||
630 | case 0: return " uncached"; | ||
631 | case 1: return " snooped"; | ||
632 | default: return ""; | ||
633 | } | ||
634 | } | ||
635 | |||
627 | static const char *pin_flag(int pinned) | 636 | static const char *pin_flag(int pinned) |
628 | { | 637 | { |
629 | if (pinned > 0) | 638 | if (pinned > 0) |
@@ -662,7 +671,7 @@ static void print_error_buffers(struct seq_file *m, | |||
662 | seq_printf(m, "%s [%d]:\n", name, count); | 671 | seq_printf(m, "%s [%d]:\n", name, count); |
663 | 672 | ||
664 | while (count--) { | 673 | while (count--) { |
665 | seq_printf(m, " %08x %8zd %04x %04x %08x%s%s%s%s%s", | 674 | seq_printf(m, " %08x %8zd %04x %04x %08x%s%s%s%s%s%s", |
666 | err->gtt_offset, | 675 | err->gtt_offset, |
667 | err->size, | 676 | err->size, |
668 | err->read_domains, | 677 | err->read_domains, |
@@ -672,7 +681,8 @@ static void print_error_buffers(struct seq_file *m, | |||
672 | tiling_flag(err->tiling), | 681 | tiling_flag(err->tiling), |
673 | dirty_flag(err->dirty), | 682 | dirty_flag(err->dirty), |
674 | purgeable_flag(err->purgeable), | 683 | purgeable_flag(err->purgeable), |
675 | ring_str(err->ring)); | 684 | ring_str(err->ring), |
685 | agp_type_str(err->agp_type)); | ||
676 | 686 | ||
677 | if (err->name) | 687 | if (err->name) |
678 | seq_printf(m, " (name: %d)", err->name); | 688 | seq_printf(m, " (name: %d)", err->name); |