diff --git a/CHANGES b/CHANGES index e4d172c..c97ddbc 100644 --- a/CHANGES +++ b/CHANGES @@ -7,6 +7,7 @@ SVN HEAD Don't choke when no EEPROM is found Update manufacturer IDs Remove duplicate "ns" in SDR timings + Fix decoding of SDR SPD revision i2c-dev.h: Minimize differences with kernel flavor Move SMBus helper functions to include/i2c/smbus.h i2c-stub-from-dump: Be more tolerant on input dump format diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms index ec47e88..e28bbfd 100755 --- a/eeprom/decode-dimms +++ b/eeprom/decode-dimms @@ -597,7 +597,9 @@ sub decode_sdr_sdram($) my $temp; # SPD revision - printl("SPD Revision", $bytes->[62]); + # Starting with SPD revision 1.2, this byte is encoded in BCD + printl("SPD Revision", $bytes->[62] < 0x12 ? $bytes->[62] : + ($bytes->[62] >> 4) . "." . ($bytes->[62] & 0xf)); #size computation