diff mbox series

decode-dimms: display MAC from DDR3 SPD

Message ID 20190614125518.22128-1-fcvlcdev@free.fr
State Superseded
Headers show
Series decode-dimms: display MAC from DDR3 SPD | expand

Commit Message

Francois Cartegnie June 14, 2019, 12:55 p.m. UTC
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 mbox series

Patch

diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms
index b976442..2c33f0b 100755
--- a/eeprom/decode-dimms
+++ b/eeprom/decode-dimms
@@ -1703,6 +1703,12 @@  sub decode_ddr3_sdram($)
 		tns3($bytes->[27] * $mtb));
 	printl("Minimum Four Activate Window Delay (tFAW)",
 		tns3(((($bytes->[28] & 15) << 8) + $bytes->[29]) * $mtb));
+# other information
+        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 Active Count (MAC)", $mac[$mac]);
 
 # miscellaneous stuff
 	prints("Optional Features");