diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-10-18 15:54:31 +0200 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2011-10-18 15:54:31 +0200 |
commit | 92b1f2c96eaf51a793a267fa66fa0cc0b960de11 (patch) | |
tree | 906060ced246b782fcfbabd48a41f481fc2fc0b4 /tools | |
parent | 6ed89f47ecefb334be6fd8a80d8e6f26ddc059f6 (diff) |
tools/decode: don't move around the display register section
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/intel_error_decode.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/intel_error_decode.c b/tools/intel_error_decode.c index 2782bbb..8585425 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", ®); |