From patchwork Sun Nov 19 12:34:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Delvare X-Patchwork-Id: 839315 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-i2c-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3yfrry1WR5z9rvt for ; Sun, 19 Nov 2017 23:34:42 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750817AbdKSMel (ORCPT ); Sun, 19 Nov 2017 07:34:41 -0500 Received: from mx2.suse.de ([195.135.220.15]:48189 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750807AbdKSMel (ORCPT ); Sun, 19 Nov 2017 07:34:41 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id C2E48AAB9 for ; Sun, 19 Nov 2017 12:34:39 +0000 (UTC) Date: Sun, 19 Nov 2017 13:34:38 +0100 From: Jean Delvare To: Linux I2C Subject: [PATCH 3/6] decode-dimms: Decode misc parameters of DDR4 Message-ID: <20171119133438.6bb65fc6@endymion> In-Reply-To: <20171119133309.67d4c596@endymion> References: <20171119133309.67d4c596@endymion> Organization: SUSE Linux X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.31; x86_64-suse-linux-gnu) MIME-Version: 1.0 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Print some additional information for DDR4 SDRAM memory modules. --- eeprom/decode-dimms | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) --- i2c-tools.orig/eeprom/decode-dimms 2017-11-17 11:24:29.028405403 +0100 +++ i2c-tools/eeprom/decode-dimms 2017-11-17 11:25:15.453970328 +0100 @@ -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)