diff options
author | Stefan Tauner <stefan.tauner@gmx.at> | 2016-05-10 23:16:33 +0200 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2016-06-08 22:35:57 +0200 |
commit | 37fcd58ba6980222a5b51ea21ee266e5d34c04a2 (patch) | |
tree | eb3f51df9c6e9a6b5b2d078deffc0234f3b4eea7 /util/inteltool/inteltool.c | |
parent | 6a587343a96167c21d63ace1857ee2d55cdebfa0 (diff) |
inteltool: handle unsafe dumping of graphics registers
The current implementation from Vladimir simply dumps 1 MB of memory
contents starting at the base address of the second PCI device (which
most likely is the VGA controller on Intel systems). This locks up a
number of different systems, e.g. my Ibex Peak-based T410s.
This patch documents the issue and stops dumping the graphics registers
for the -a/--all parameter.
Change-Id: I581bdc63db60afaf4792bc11fbeed73aab57f63a
Signed-off-by: Stefan Tauner <stefan.tauner@gmx.at>
Reviewed-on: https://review.coreboot.org/14627
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'util/inteltool/inteltool.c')
-rw-r--r-- | util/inteltool/inteltool.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/util/inteltool/inteltool.c b/util/inteltool/inteltool.c index 6fa98920ff..063efb7053 100644 --- a/util/inteltool/inteltool.c +++ b/util/inteltool/inteltool.c @@ -220,7 +220,7 @@ void print_usage(const char *name) " -v | --version: print the version\n" " -h | --help: print this help\n\n" " -s | --spi: dump southbridge spi and bios_cntrl registers\n" - " -f | --gfx: dump graphics registers\n" + " -f | --gfx: dump graphics registers (UNSAFE: may hang system!)\n" " -g | --gpio: dump southbridge GPIO registers\n" " -G | --gpio-diffs: show GPIO differences from defaults\n" " -r | --rcba: dump southbridge RCBA registers\n" @@ -232,7 +232,7 @@ void print_usage(const char *name) " -P | --pciexpress: dump northbridge PCIEXBAR registers\n\n" " -M | --msrs: dump CPU MSRs\n" " -A | --ambs: dump AMB registers\n" - " -a | --all: dump all known registers\n" + " -a | --all: dump all known (safe) registers\n" "\n"); exit(1); } @@ -326,7 +326,6 @@ int main(int argc, char *argv[]) dump_coremsrs = 1; dump_ambs = 1; dump_spi = 1; - dump_gfx = 1; break; case 'A': dump_ambs = 1; |