From 5df0e20136ea75e44c087d7fe774225296f5a23e Mon Sep 17 00:00:00 2001 From: Francois Cartegnie Date: Fri, 14 Jun 2019 12:55:18 +0000 Subject: [PATCH] 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. --- eeprom/decode-dimms | 6 ++++++ 1 file changed, 6 insertions(+) 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;