From patchwork Fri Jun 14 12:58:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francois Cartegnie X-Patchwork-Id: 1115960 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=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=free.fr Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 45QLJH2BqLz9sBp for ; Fri, 14 Jun 2019 22:58:23 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727682AbfFNM6W (ORCPT ); Fri, 14 Jun 2019 08:58:22 -0400 Received: from smtp3-g21.free.fr ([212.27.42.3]:19632 "EHLO smtp3-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726874AbfFNM6W (ORCPT ); Fri, 14 Jun 2019 08:58:22 -0400 Received: from localhost.localdomain (unknown [87.90.123.9]) (Authenticated sender: fcartegnie) by smtp3-g21.free.fr (Postfix) with ESMTPSA id 92FFC13F846; Fri, 14 Jun 2019 14:58:17 +0200 (CEST) From: Francois Cartegnie To: linux-i2c@vger.kernel.org Cc: Francois Cartegnie Subject: [PATCH] decode-dimms: display MAC from DDR3 SPD Date: Fri, 14 Jun 2019 14:58:14 +0200 Message-Id: <20190614125814.22260-1-fcvlcdev@free.fr> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-i2c-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org 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..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");