aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2019-01-09 15:00:55 +0100
committerJean Delvare <jdelvare@suse.de>2019-01-09 15:00:55 +0100
commit2e36fa9ff559bfc9a685ad758e618bd1c1f601f6 (patch)
treed3ade1beea958225d32ded7f04b4cbaa623a5d8c
parent9b9e9043db1ea59de9f77ea1fd55f118df9912eb (diff)
downloadi2c-tools-2e36fa9ff559bfc9a685ad758e618bd1c1f601f6.tar.gz
decode-dimms: Print SPD revision for DDR3 too
Print the SPD revision of DDR3 modules as we do for all other modules. Signed-off-by: Jean Delvare <jdelvare@suse.de>
-rw-r--r--CHANGES3
-rwxr-xr-xeeprom/decode-dimms6
2 files changed, 8 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 104adf8..dcc6a38 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
i2c-tools CHANGES
-----------------
+master
+ decode-dimms: Print SPD revision for DDR3 too
+
4.1 (2018-11-30)
Makefile: Make STRIP, DESTDIR and PREFIX overridable
tools: Fix potential buffer overflows in i2cbusses
diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms
index e8835e3..eb92e6e 100755
--- a/eeprom/decode-dimms
+++ b/eeprom/decode-dimms
@@ -1551,7 +1551,7 @@ use constant DDR3_REGISTERED => 2;
use constant DDR3_CLOCKED => 3;
use constant DDR3_LOAD_REDUCED => 4;
-# Parameter: EEPROM bytes 0-127 (using 3-76)
+# Parameter: EEPROM bytes 0-127 (using 1-68)
sub decode_ddr3_sdram($)
{
my $bytes = shift;
@@ -1577,6 +1577,10 @@ sub decode_ddr3_sdram($)
{ type => "32b-SO-DIMM", width => "67.6 mm", family => DDR3_UNBUFFERED },
);
+# SPD revision
+ printl_cond($bytes->[1] != 0xff, "SPD Revision",
+ ($bytes->[1] >> 4) . "." . ($bytes->[1] & 0xf));
+
printl("Module Type", ($bytes->[3] <= $#module_types) ?
$module_types[$bytes->[3]]->{type} :
sprintf("Reserved (0x%.2X)", $bytes->[3]));