Author: ward
Date: 2009-10-28 20:41:52 +0100 (Wed, 28 Oct 2009)
New Revision: 4886
Added:
trunk/coreboot-v2/util/amdtools/
trunk/coreboot-v2/util/amdtools/README
trunk/coreboot-v2/util/amdtools/example_input/
trunk/coreboot-v2/util/amdtools/example_input/coreboot-48G-667MHz-memsettings
trunk/coreboot-v2/util/amdtools/example_input/coreboot-48G-667MHz-memsettings-20090909h
trunk/coreboot-v2/util/amdtools/example_input/lspci-cb-48G-667MHz-18.2-20090909e
trunk/coreboot-v2/util/amdtools/example_input/lspci-prop-48G-667MHz-18.2
trunk/coreboot-v2/util/amdtools/k8-compare-pci-space.pl
trunk/coreboot-v2/util/amdtools/k8-interpret-extended-memory-settings.pl
trunk/coreboot-v2/util/amdtools/k8-read-mem-settings.sh
trunk/coreboot-v2/util/amdtools/parse-bkdg.pl
Log:
Add an initial version of some tools to compare (extended) K8 memory settings.
This generates (dirty) html with interpreted differences between PCI dumps,
based on the K8 socket F bkdg.
Signed-off-by: Ward Vandewege w...@gnu.org
Acked-by: Stepan Reinauer ste...@coresystems.de
Added: trunk/coreboot-v2/util/amdtools/README
===
--- trunk/coreboot-v2/util/amdtools/README (rev 0)
+++ trunk/coreboot-v2/util/amdtools/README 2009-10-28 19:41:52 UTC (rev
4886)
@@ -0,0 +1,32 @@
+
+
+This is a set of tools to compare (extended) K8 memory settings.
+
+Before you can use them, you need to massage the relevant BKDG sections into
+useable data. Here's how.
+
+First, you need to acquire a copy of the K8 BKDG. Go here:
+
+ Rev F:
http://www.amd.com/us-en/assets/content_type/white_papers_and_tech_docs/32559.pdf
+
+Then make sure pdftotext is installed (it's in the poppler-utils package on
Debian/Ubuntu).
+
+Now run the bkdg through pdftotext:
+
+ pdftotext -layout 32559.pdf 32559.txt
+
+Now extract sections 4.5.15 - 4.5.19 from the file, and save it separately,
say as bkdg-raw.data.
+
+Finally run the txt file through the parse-bkdg.pl script like so:
+
+ parse-bkdg.pl bkdg-raw.data bkdg.data
+
+Now we have the bkdg.data file that is used by the other scripts.
+
+If you want to test the scripts without doing all this work, you can use some
+sample input files from the 'example_input/' directory.
+
+--
+Ward Vandewege, 2009-10-28.
+w...@jhvc.com
+
Added:
trunk/coreboot-v2/util/amdtools/example_input/coreboot-48G-667MHz-memsettings
===
---
trunk/coreboot-v2/util/amdtools/example_input/coreboot-48G-667MHz-memsettings
(rev 0)
+++
trunk/coreboot-v2/util/amdtools/example_input/coreboot-48G-667MHz-memsettings
2009-10-28 19:41:52 UTC (rev 4886)
@@ -0,0 +1,96 @@
+0:18.2 98.l: 8000
+0:18.2 9C.l: 00111222
+0:18.2 98.l: 8001
+0:18.2 9C.l: 16171715
+0:18.2 98.l: 8002
+0:18.2 9C.l: 1716131a
+0:18.2 98.l: 8003
+0:18.2 9C.l: 0019
+0:18.2 98.l: 8004
+0:18.2 9C.l: 002f
+0:18.2 98.l: 8005
+0:18.2 9C.l: 18191918
+0:18.2 98.l: 8006
+0:18.2 9C.l: 16161917
+0:18.2 98.l: 8007
+0:18.2 9C.l: 0017
+0:18.2 98.l: 8020
+0:18.2 9C.l: 00111222
+0:18.2 98.l: 8021
+0:18.2 9C.l:
+0:18.2 98.l: 8022
+0:18.2 9C.l:
+0:18.2 98.l: 8023
+0:18.2 9C.l:
+0:18.2 98.l: 8024
+0:18.2 9C.l:
+0:18.2 98.l: 8025
+0:18.2 9C.l: 2f2f2f2f
+0:18.2 98.l: 8026
+0:18.2 9C.l: 2f2f2f2f
+0:18.2 98.l: 8027
+0:18.2 9C.l:
+0:18.2 98.l: 8010
+0:18.2 9C.l:
+0:18.2 98.l: 8013
+0:18.2 9C.l:
+0:18.2 98.l: 8016
+0:18.2 9C.l: 003f
+0:18.2 98.l: 8019
+0:18.2 9C.l: 0046
+0:18.2 98.l: 8030
+0:18.2 9C.l:
+0:18.2 98.l: 8033
+0:18.2 9C.l:
+0:18.2 98.l: 8036
+0:18.2 9C.l: 0053
+0:18.2 98.l: 8039
+0:18.2 9C.l: 0053
+0:19.2 98.l: 8000
+0:19.2 9C.l: 00111222
+0:19.2 98.l: 8001
+0:19.2 9C.l: 15151515
+0:19.2 98.l: 8002
+0:19.2 9C.l: 15151515
+0:19.2 98.l: 8003
+0:19.2 9C.l: 0015
+0:19.2 98.l: 8004
+0:19.2 9C.l: 002f
+0:19.2 98.l: 8005
+0:19.2 9C.l: 19181918
+0:19.2 98.l: 8006
+0:19.2 9C.l: 191a1817
+0:19.2 98.l: 8007
+0:19.2 9C.l: 0017
+0:19.2 98.l: 8020
+0:19.2 9C.l: 00111222
+0:19.2 98.l: 8021
+0:19.2 9C.l:
+0:19.2 98.l: 8022
+0:19.2 9C.l:
+0:19.2 98.l: 8023
+0:19.2 9C.l:
+0:19.2 98.l: 8024
+0:19.2 9C.l:
+0:19.2 98.l: 8025
+0:19.2 9C.l: 2f2f2f2f
+0:19.2 98.l: 8026
+0:19.2 9C.l: 2f2f2f2f
+0:19.2 98.l: 8027
+0:19.2 9C.l:
+0:19.2 98.l: 8010
+0:19.2 9C.l:
+0:19.2 98.l: 8013
+0:19.2 9C.l:
+0:19.2 98.l: 8016
+0:19.2 9C.l: 003b
+0:19.2 98.l: 8019
+0:19.2 9C.l: 0047
+0:19.2 98.l: 8030
+0:19.2 9C.l:
+0:19.2 98.l: 8033
+0:19.2 9C.l:
+0:19.2 98.l: 8036
+0:19.2 9C.l: 0053
+0:19.2 98.l: 8039
+0:19.2 9C.l: 0053