Browse Source

Do not decode DDR3 manufacturing data fields which have been left

blank.


git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5552 7894878c-1315-0410-8ee3-d5d059ff63e0
tags/v3.0.3
Jean Delvare 17 years ago
parent
commit
0eb91feeb7
  1. 15
      eeprom/decode-dimms

15
eeprom/decode-dimms

@ -1289,27 +1289,36 @@ sub manufacture_date($$)
sub decode_ddr3_mfg_data($)
{
my $bytes = shift;
my ($l, $temp);
prints "Manufacturer Data";
printl "Module Manufacturer",
manufacturer_ddr3($bytes->[117], $bytes->[118]);
if (spd_written(@{$bytes}[148..149])) {
printl "DRAM Manufacturer",
manufacturer_ddr3($bytes->[148], $bytes->[149]);
}
my $l = "Manufacturing Location";
if (spd_written($bytes->[119])) {
$l = "Manufacturing Location Code";
my $temp = (chr($bytes->[119]) =~ m/^[\w\d]$/) ? chr($bytes->[119])
: sprintf("0x%.2X", $bytes->[119]);
printl $l, $temp;
}
if (spd_written(@{$bytes}[120..121])) {
$l = "Manufacturing Date";
printl $l, manufacture_date($bytes->[120], $bytes->[121]);
}
if (spd_written(@{$bytes}[122..125])) {
$l = "Assembly Serial Number";
$temp = sprintf("0x%02X%02X%02X%02X\n", $bytes->[122], $bytes->[123],
$bytes->[124], $bytes->[125]);
printl $l, $temp;
}
$l = "Part Number";
$temp = "";
@ -1318,10 +1327,12 @@ sub decode_ddr3_mfg_data($)
};
printl $l, $temp;
$l = "Revision";
if (spd_written(@{$bytes}[146..147])) {
$l = "Revision Code";
$temp = sprintf("0x%02X%02X\n", $bytes->[146], $bytes->[147]);
printl $l, $temp;
}
}
# Parameter: EEPROM bytes 0-127 (using 64-98)
sub decode_manufacturing_information($)

Loading…
Cancel
Save