Browse Source

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>
tags/v4.2
Jean Delvare 7 years ago
parent
commit
2e36fa9ff5
  1. 3
      CHANGES
  2. 6
      eeprom/decode-dimms

3
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

6
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]));

Loading…
Cancel
Save