From 92b1f2c96eaf51a793a267fa66fa0cc0b960de11 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Tue, 18 Oct 2011 15:54:31 +0200 Subject: tools/decode: don't move around the display register section Signed-off-by: Daniel Vetter --- tools/intel_error_decode.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tools/intel_error_decode.c') 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", ®); -- cgit v1.2.3