reg_dumper: change and fix behavior when using dump files
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 15 Feb 2012 18:04:00 +0000 (16:04 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 15 Feb 2012 23:01:30 +0000 (00:01 +0100)
commitecad594e0254648a3bf2d995569afd18dbb75ec2
tree27398a3859c565930c6f6e386f6e80e31acb4d86
parentad87b06fd6a5af4836562c1d318ca06a918d5466
reg_dumper: change and fix behavior when using dump files

Before this patch, handling dump files was wrong:
- when HAS_PCH_SPLIT was specified, intel_reg_dumper segfaulted inside
  intel_check_pch()
- the "devid" variable was used but not set
- there was no way to specify the device id of the machine used to
  generate the dump file

This patch fixes this behavior with the following changes:
- the HAS_PCH_SPLIT variable is gone
- there is now a '-d' argument that can be used to specify the device id
  used to interpret the results
- when a dump file is used but the '-d' argument is not provided, an
  Ironlake machine is assumed

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
man/intel_reg_dumper.man
tools/intel_reg_dumper.c