From patchwork Fri Mar 10 08:34:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Quan Nguyen X-Patchwork-Id: 6394 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp754974wrd; Fri, 10 Mar 2023 00:43:09 -0800 (PST) X-Google-Smtp-Source: AK7set/BY8BPvYezhFEVl6/2DQwGOd4reA5a/1SmPNrR6rpIk3QRNSYEvGF06AiltJpZ9lwvNsJY X-Received: by 2002:a05:6a20:c701:b0:cc:d7ec:b7c with SMTP id hi1-20020a056a20c70100b000ccd7ec0b7cmr23869698pzb.4.1678437789329; Fri, 10 Mar 2023 00:43:09 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1678437789; cv=pass; d=google.com; s=arc-20160816; b=xKiPsNyZd976X6B2sLvWJxHMuTg4X/T3Jb/BftTGVHIRPc3S1xKx4jOg5UMH9HHY8S OJRGU+KHsf/+Q0ucfO+IHzO2DoAioyM7dJFTTME5mlrTq+dZwCxfiFftv7jghzgrjMpK peMNo1UmcThFX+M5eWOUjNAYRiUbg7FpbXaHU9/+rw2nHodXddAogylsjxxb8vbsDoQJ X3YRUAr7Li5dZWXaSM9RfbR2eiNTCpxu8ID81nsH+8PJysul8+MCGogAXP6JEmgnTNI2 Aj2dGDsZeX/1Z6l557uKAzoX2m9KFv5ZVQI3s38TjsdMpGCE2t4ajd6cqWwicoUoQdxB t4rg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=iD8NFs1zDxZyBtLA/afxwbUoMFXo/dKOemehX2Pp+0o=; b=0WLW8m9CM4nMrSrkFTbTQQhSfWDGjcEFAMGvwGkItkpwSXKhZz/SjiXizl3segGqyj rRLP6SrdADMh248fT6ZLqJvgvuvzyxfYgdtBhNDNlNRDStKNOmUrymKhxXLFmWkQLKDl URS1eXZpaeMMp9zTXK3cRGF91AIG2pw98UfavovdH3iOo4NFiUeJ6eWkbWfyefZIMWjK kZUXcspWw58BJHuuXC3n+uH91HIHmeZBdMl1o+jwQLzRfM6sMpmZz7d8Cgq24hMZ5OeD rpkh3EX8T1ATTZNeS13PI3iOhDYNcf5v1nsm0sbcOUGOT3u4sPdReoIVc4GNZzgNVN0/ nyGg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=Y7u+zcz6; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w2-20020aa79542000000b005a8b2a0385bsi1444472pfq.241.2023.03.10.00.42.54; Fri, 10 Mar 2023 00:43:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=Y7u+zcz6; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229659AbjCJIfQ (ORCPT + 99 others); Fri, 10 Mar 2023 03:35:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230036AbjCJIfJ (ORCPT ); Fri, 10 Mar 2023 03:35:09 -0500 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2092.outbound.protection.outlook.com [40.107.92.92]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 433E35D454 for ; Fri, 10 Mar 2023 00:35:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fqCJ6NP7ra/4ZiaTaSBWadn3r17VaNkU9CHTZqo3NcxK81f0pnSKp0ZLMQ0v/R/7Au8JGU5x8FvFB5UjrFKC6MWSOl9vPdZ9SbppDIcVdjSBJh1woNJ59XGrytTJBhhxkIpaPoUgvYvm0frDS/6fayymrPn5aPay4qEnQ6zk8wEYhtcZqPArzsaIpUlPKfq2PNejmRFiRGsuZhDwrmOQaHNaX1hZwUoc04yi+s7D3NyGyDKeX4KsmHAuepv0VpMbXNj4jOfS8PaPWGJHcez8hvYk9DoHhFSDhEZS/16pvjmHrWcOS2rBfzItnq9ou0zvxqMCrfrBwLRIEpXChxQR1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=iD8NFs1zDxZyBtLA/afxwbUoMFXo/dKOemehX2Pp+0o=; b=LhvGkP68pRZHzjSxHU6bqkzGLzdgCxqeAyhortKB+MmgIvpXPnG7anIQi8iqt1+uYxVWmLa2Igoc9diUV7Da7MfS+Zg7xRn2UFX1aIppSJTJVECv/DmjuLZ3EL9u6W+Bp/qcaWAe13N4MFKa9fy+BrC+9JKqWEYXv+2iBQq9SHXmgYlN9Hy0ln8aWR6sdXmjvCDGLxtnlBVlSF1s1GuT39DYnzS7jLJJDlUcgmgkMWpIofRHnsNfg8JbdQnocKwzGXYplsYmmYxgUM3Znyh+S8RNB2r6t5In+gNdKRKlNA5hElMhTKTdmGwiGjc0pXsAHUpNxtxxTJeb7rLI5CgtyQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iD8NFs1zDxZyBtLA/afxwbUoMFXo/dKOemehX2Pp+0o=; b=Y7u+zcz6GCyBqapx2TypFUBRK27BnzDopgn24D3LDOYHX+C8IlGBNNLL4Rz3beAsi8aqEW9igXr/DcyenuQ7effD2mU/f4c1xc2TaTnyuZGr//YnT5zvUrgRlqT+uVMXtCCgaZXIBSSHo7wGTjkYmFcqZNspQN5IhuWiYKSJXkg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from SN4PR01MB7455.prod.exchangelabs.com (2603:10b6:806:202::11) by MN2PR01MB5917.prod.exchangelabs.com (2603:10b6:208:194::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.19; Fri, 10 Mar 2023 08:35:03 +0000 Received: from SN4PR01MB7455.prod.exchangelabs.com ([fe80::ff57:42f9:7d6d:de10]) by SN4PR01MB7455.prod.exchangelabs.com ([fe80::ff57:42f9:7d6d:de10%3]) with mapi id 15.20.6134.028; Fri, 10 Mar 2023 08:35:03 +0000 From: Quan Nguyen To: Quan Nguyen , Arnd Bergmann , Greg Kroah-Hartman , Paul Menzel , Joel Stanley , Andrew Jeffery , linux-kernel@vger.kernel.org, openbmc@lists.ozlabs.org, Open Source Submission Cc: Phong Vo , Thang Nguyen Subject: [PATCH v3 0/2] Add DIMM 2x refresh event and failure syndrome Date: Fri, 10 Mar 2023 15:34:14 +0700 Message-Id: <20230310083416.3670980-1-quan@os.amperecomputing.com> X-Mailer: git-send-email 2.35.1 X-ClientProxiedBy: SI1PR02CA0055.apcprd02.prod.outlook.com (2603:1096:4:1f5::16) To SN4PR01MB7455.prod.exchangelabs.com (2603:10b6:806:202::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN4PR01MB7455:EE_|MN2PR01MB5917:EE_ X-MS-Office365-Filtering-Correlation-Id: d7e3c361-bb22-43de-5a94-08db214257bc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DhDtH5BtXZyqeJeAAbWcHZ266+6fFd+htLwmWM6CIAX4Yw4jc8Ydjb4T+orbZRQnB3kAWcaBBmEgWyip/DIs32T0sKYfnbPRwdfP3LQg6PKla2n5KyZl8F+6ZXMowIxPgdTfc6LqlVv3SqkCWzAEHsvcyfiwP8ewM41K9vak35vxZ3GEJQyEdOFjFZ64T0ZdittW4HCQy7B8yTfYvNhVIiiaSx4Ndz3Zrk5HFbOo/MsoO93S/9dBtqL3fU1qWDCKLh9KIy1dT4IJHxvAvLpNsMwF5RG90dyh95gFflJOHXFJpZEKc2JH2E9gk0YVORZB59xguI/+22zyEKdA5tjvh+p0ITJHys3S98M4z69UWqb7/Sd/ahrFjp7fq79ZVOFQjtlAPGVbxX25u9CCrZVc1CJ8upNupqqfgQFQOjS1BKoGSV878wIoeP8duY1OCwvQAeOfqzZZ5rJV5jxwYiYE+nR3QxoYGq76TfRnLGfyVF1+vOl9F40goKwO1Y+6BGk9echFu/gAvxt3+EKd/fEy+CXkbF9hMN5azwJrGmWjgMrnDF5arQzsbWSU8sXRo6PjDYg9w3rNwj39EDQscNhcg0nMpBn2NKLJvuD3wgoSJxFivolqzjW/6kmiuDrXxMBoIbwDWw8ZxE0Zr4ret4iwoJhCTEaB63+PnbqqAFHFT4w54442vI+nqEaPsfMMTuXf X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN4PR01MB7455.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230025)(4636009)(376002)(346002)(136003)(366004)(396003)(39850400004)(451199018)(54906003)(110136005)(6506007)(38350700002)(38100700002)(86362001)(1076003)(2616005)(6512007)(26005)(107886003)(83380400001)(6666004)(186003)(316002)(52116002)(966005)(5660300002)(478600001)(6486002)(41300700001)(4744005)(66556008)(8936002)(2906002)(4326008)(8676002)(66946007)(66476007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GPDByYQ+zif2EXkdTW8BdUfsYtvBNY9Dqz6KkshzzCB0nF3iz1zbWeFNFSK6/UstjawuCP3YKKVrzT6hmBfB5RYJhQOIl+Ynwa7Xd12ieJx9qI+bn7SsvRYCqxso+aoBNaTDwAVadBb57i7vAIZtOaQ+3/nU80zvnOIT5U0RB3LRN8YBtRRs7cBgPkZYuQQ38GqxAuX4MSYR32clxVa3AIi/Rr109Vrn4L+ItmQFQU1vzh9s+U2/b3PKECpSiX56uXv+LujHSeyv2qcFiLxwkcCcXYD+oCmZ6ZWM8ZDTSQvlLcN2SOGmu27DgdSYzq49994SUzRHY7vBjF6QWq6PtemuFYAcZSxmn1RtnBAXNI/CPwAFCmTRXkgVOBSVVTnl0QnCR2a9+gwh4bHKlAC930fjUaseaL4vlJXCvA5xmYC6ODR/iFzWQK+hXD+WB+PLWkisKujy29rPcDGuAzATa57+QGh3U2L2j58b6/M2urZsZobEZydPIQFCX1T9NfEnnCbFAJhnF4yOkOMqDGNHiiMS6R51/vL3p0UJjqQzuslAQYSEsaTL2gQ1mkIlaF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uQM8LMuvuQRPPJI= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: d7e3c361-bb22-43de-5a94-08db214257bc X-MS-Exchange-CrossTenant-AuthSource: SN4PR01MB7455.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2023 08:35:03.1263 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wJHbRo2UUU4dUs4zUAcVa4NGwxkksEPM/Tn8hWyjzV2zAT0q9EaKXUgOgztWoG79BV0K21+S8JxkENKwyxuaP9IJZq2GREicpreN8FEtc/Y= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR01MB5917 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759969583550103470?= X-GMAIL-MSGID: =?utf-8?q?1759969583550103470?= Adds event_dimm_2x_refresh sysfs to report doubling of DIMM refresh rate on high temperature condition and event_dimm[0-15]_syndrome sysfs to report the DDR failure syndrome to BMC when DIMM training failed. Discussion for v2: https://lore.kernel.org/lkml/20230228092010.1863419-1-quan@os.amperecomputing.com/ v3: + Corrected kernel version to 6.4 [Greg] v2: + Change "to initialized" to "to initialize" [Paul] + Corrected kernel version to 6.3 [Greg,Paul] + Corrected variables type to 'unsigned int" [Paul] Quan Nguyen (2): misc: smpro-errmon: Add DIMM 2x Refresh rate event misc: smpro-errmon: Add dimm training failure syndrome .../sysfs-bus-platform-devices-ampere-smpro | 19 ++++- drivers/misc/smpro-errmon.c | 82 +++++++++++++++++++ 2 files changed, 98 insertions(+), 3 deletions(-)