From cea0000657a2dde506df91ecce6b18ac2d7224db Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Fri, 5 Apr 2019 20:11:00 +0200 Subject: [PATCH] decode-dimms: Print primary bus width for DDR3 and DDR4 Also make bus width extension conditional for DDR3, as was already done for DDR4. --- eeprom/decode-dimms | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eeprom/decode-dimms b/eeprom/decode-dimms index 9d80b75..d7758b1 100755 --- a/eeprom/decode-dimms +++ b/eeprom/decode-dimms @@ -1636,7 +1636,8 @@ sub decode_ddr3_sdram($) printl("SDRAM Device Width", (1 << (($bytes->[7] & 7) + 2))." bits"); - printl("Bus Width Extension", ($bytes->[8] & 24)." bits"); + printl("Primary Bus Width", (8 << ($bytes->[8] & 7))." bits"); + printl_cond($bytes->[8] & 24, "Bus Width Extension", ($bytes->[8] & 24)." bits"); my $taa; my $trcd; @@ -1898,6 +1899,7 @@ sub decode_ddr4_sdram($) printl("Ranks", $ranks); printl_cond($ranks > 1, "Rank Mix", $bytes->[12] & 0x40 ? "Asymmetrical" : "Symmetrical"); + printl("Primary Bus Width", (8 << ($bytes->[13] & 7))." bits"); printl_cond($bytes->[13] & 0x18, "Bus Width Extension", ($bytes->[13] & 0x18)." bits"); my $taa;