summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois Cartegnie <fcvlcdev@free.fr>2019-06-14 12:55:18 +0000
committerJean Delvare <jdelvare@suse.de>2019-06-19 17:26:17 +0200
commit5df0e20136ea75e44c087d7fe774225296f5a23e (patch)
tree75828bae193a428472afa80e9fab40015645c8ea
parent78edfefbcc7990958e48568d5c2f67cb7c9d835b (diff)
downloadi2c-tools-git-5df0e20136ea75e44c087d7fe774225296f5a23e.tar.gz
decode-dimms: display MAC from DDR3 SPD
JEDEC Standard No. 21-C, Annex K, Release 6 Byte 41 is specified, the lower part containing the MAC value, identical as DDR4.
-rwxr-xr-xeeprom/decode-dimms6
1 files changed, 6 insertions, 0 deletions
diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms
index b976442..9cbb751 100755
--- a/eeprom/decode-dimms
+++ b/eeprom/decode-dimms
@@ -1735,6 +1735,12 @@ sub decode_ddr3_sdram($)
($bytes->[32] & 128) ? "Yes" : "No");
printl("SDRAM Device Type", ddr3_device_type($bytes->[33]));
+ my @mac = ("Untested",
+ "700 K", "600 K", "500 K", "400 K", "300 K", "200 K",
+ undef, "Unlimited");
+ my $mac = $bytes->[41] & 0x0f;
+ printl_cond(defined $mac[$mac], "Maximum Activate Count (MAC)", $mac[$mac]);
+
# Following bytes are type-specific, so don't continue if type
# isn't known.
return if $bytes->[3] == 0 || $bytes->[3] > $#module_types;