[PATCH] decode-dimms: Print SPD revision for DDR3 too

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Print the SPD revision of DDR3 modules as we do for all other
modules.

Signed-off-by: Jean Delvare <jdelvare@xxxxxxx>
---
 eeprom/decode-dimms |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

--- i2c-tools.orig/eeprom/decode-dimms	2018-11-23 10:01:03.224570923 +0100
+++ i2c-tools/eeprom/decode-dimms	2018-12-07 10:10:23.174000313 +0100
@@ -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]));


-- 
Jean Delvare
SUSE L3 Support



[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux