aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2017-12-05 07:45:17 +0100
committerJean Delvare <jdelvare@suse.de>2017-12-05 07:45:17 +0100
commit9ae51c4a4f8e1e1836470ac7e5fec9c7f6df8ce6 (patch)
tree6a8e6aaa8f866cdbdefca4e50f59086dae90e774
parent56149a6f847933aa6c51392bfe9d513cbc0e443d (diff)
downloadi2c-tools-9ae51c4a4f8e1e1836470ac7e5fec9c7f6df8ce6.tar.gz
decode-dimms: Decode misc parameters of DDR4
Print some additional information for DDR4 SDRAM memory modules.
-rw-r--r--CHANGES1
-rwxr-xr-xeeprom/decode-dimms29
2 files changed, 30 insertions, 0 deletions
diff --git a/CHANGES b/CHANGES
index 6b7a914..c0d2e2b 100644
--- a/CHANGES
+++ b/CHANGES
@@ -5,6 +5,7 @@ master
tools: Fix potential buffer overflows in i2cbusses
decode-dimms: Add preliminary DDR4 support
Decode size and timings of DDR4
+ Decode misc parameters of DDR4
4.0 (2017-10-30)
tools: Fix build with recent compilers (gcc 4.6+)
diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms
index dc193c1..2779ae4 100755
--- a/eeprom/decode-dimms
+++ b/eeprom/decode-dimms
@@ -1886,6 +1886,35 @@ sub decode_ddr4_sdram($)
printl_cond($twtr, "Minimum Write to Read Time (tWTR_S)", tns3($twtr));
$twtr = ((($bytes->[43] & 0xf0) << 4) + $bytes->[45]) * $mtb / 1000;
printl_cond($twtr, "Minimum Write to Read Time (tWTR_L)", tns3($twtr));
+
+# miscellaneous stuff
+ prints("Other Information");
+
+ my $package_type = ($bytes->[6] & 0x80) == 0x00 ? "Monolithic" :
+ $signal_loading == 0x01 ? "Multi-load stack" :
+ $signal_loading == 0x02 ? "3DS" : "Unknown";
+ $package_type .= sprintf(" (%u dies)", $die_count) if $die_count >= 2;
+ printl("Package Type", $package_type);
+
+ my @mac = ("Untested",
+ "700 K", "600 K", "500 K", "400 K", "300 K", "200 K",
+ undef, "Unlimited");
+ my $mac = $bytes->[7] & 0x0f;
+ printl_cond(defined $mac[$mac], "Maximum Activate Count", $mac[$mac]);
+
+ my $ppr = $bytes->[9] >> 6;
+ printl("Post Package Repair",
+ $ppr == 0x00 ? "Not supported" :
+ $ppr == 0x01 ? "One row per bank group" : "Unknown");
+ printl_cond($ppr != 0x00, "Soft PPR", $bytes->[9] & 0x20 ?
+ "Supported" : "Not Supported");
+
+ printl("Module Nominal Voltage",
+ $bytes->[11] & 0x01 ? "1.2 V" :
+ $bytes->[11] & 0x02 ? "Unknown (1.2 V endurant)" : "Unknown");
+
+ printl("Thermal Sensor",
+ $bytes->[14] & 0x80 ? "TSE2004 compliant" : "No");
}
# Parameter: EEPROM bytes 0-127 (using 4-5)