[coreboot-gerrit] Patch set updated for coreboot: inteltool: handle unsafe dumping of graphics registers

Stefan Tauner (stefan.tauner@gmx.at) gerrit at coreboot.org
Tue May 10 22:30:13 CEST 2016


Stefan Tauner (stefan.tauner at gmx.at) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/14627

-gerrit

commit c10ab5075b9f2448cbf1983b982e0505dbe0a810
Author: Stefan Tauner <stefan.tauner at gmx.at>
Date:   Thu May 5 17:54:10 2016 +0200

    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 at gmx.at>
---
 util/inteltool/inteltool.8 | 3 ++-
 util/inteltool/inteltool.c | 5 ++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/util/inteltool/inteltool.8 b/util/inteltool/inteltool.8
index f496475..49aafc3 100644
--- a/util/inteltool/inteltool.8
+++ b/util/inteltool/inteltool.8
@@ -35,7 +35,8 @@ Dump I/O Controller Hub (ICH) southbridge RCBA registers.
 Dump I/O Controller Hub (ICH) southbridge SPI registers and bios control.
 .TP
 .B "\-f, \-\-gfx"
-Dump graphics registers.
+.RB "Dump graphics registers. " \
+"Due to unknown reasons this might lock up some systems after a few seconds."
 .TP
 .B "\-p, \-\-pmbase"
 Dump I/O Controller Hub (ICH) southbridge PMBASE registers.
diff --git a/util/inteltool/inteltool.c b/util/inteltool/inteltool.c
index 6fa9892..1b719ca 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 (may lock up machine!)\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;



More information about the coreboot-gerrit mailing list