summaryrefslogtreecommitdiff
path: root/tools/intel_error_decode.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/intel_error_decode.c')
-rw-r--r--tools/intel_error_decode.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/intel_error_decode.c b/tools/intel_error_decode.c
index 2782bbbd..8585425b 100644
--- a/tools/intel_error_decode.c
+++ b/tools/intel_error_decode.c
@@ -315,6 +315,16 @@ read_data_file (FILE *file)
if (matched != 2) {
unsigned int reg;
+ /* display reg section is after the ringbuffers, don't mix them */
+ if (count) {
+ printf("%s (%s) at 0x%08x:\n",
+ buffer_type[is_batch],
+ ring_name,
+ gtt_offset);
+ intel_decode (data, count, gtt_offset, devid, 0);
+ count = 0;
+ }
+
printf("%s", line);
matched = sscanf (line, "PCI ID: 0x%04x\n", &reg);