summaryrefslogtreecommitdiff
path: root/tools/intel_error_decode.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-12-23 19:44:14 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2010-12-23 19:44:14 +0000
commit4f20844247e72811c2f3655e24cb45dc920340d6 (patch)
treed7cc8342dd3287352bb4077eaed5d0abc7138dbf /tools/intel_error_decode.c
parentf19a1942c2a3da4b65dff029ecfd9d20a132765d (diff)
error decode: print out class of chipset in the error report
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tools/intel_error_decode.c')
-rw-r--r--tools/intel_error_decode.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/intel_error_decode.c b/tools/intel_error_decode.c
index f85b8651..d6e8ba68 100644
--- a/tools/intel_error_decode.c
+++ b/tools/intel_error_decode.c
@@ -256,8 +256,16 @@ read_data_file (FILE *file)
printf("%s", line);
matched = sscanf (line, "PCI ID: 0x%04x\n", &reg);
- if (matched == 1)
+ if (matched == 1) {
devid = reg;
+ if (IS_965(devid)) {
+ printf("Detected i965+ chipset\n");
+ } else if (IS_9XX(devid)) {
+ printf("Detected i9xx chipset\n");
+ } else {
+ printf("Detected i8xx chipset\n");
+ }
+ }
matched = sscanf (line, " ACTHD: 0x%08x\n", &reg);
if (matched == 1)