Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp475078ybr; Fri, 22 May 2020 11:01:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJA53ivkL1/OC2bt6vy9tsjnvCcebj7QdmdtGWLHHEPsNcDxDVtc0wscymRRB08cB5hRnV X-Received: by 2002:a05:6402:c0f:: with SMTP id co15mr3870073edb.286.1590170469680; Fri, 22 May 2020 11:01:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590170469; cv=none; d=google.com; s=arc-20160816; b=JCgboPInFQpSqMO9NfL+7sAig3eYu/CfcGvF56AjLVXNWVZsXKoMn3CcODPWG3phOG WZhuWaA17aDykksRvdGQOz+3mPdByiPY4hlo5Ry3almOSV+PZe7y/z3EtOWGD2sZJbEL K1nLENMhrsRwvPPMEgR6hyw4T7S5FZKtiQL7OQRxOpFuzhubFVVYPUWRJlDZaf9OKPoQ 5YO2W19e6tDOsPi7f2PvoUWIMLL8Hasy7tO8yPTWpAathVzd2svkvuo51bX3gf8CpqVQ tant+gPLtbeU82/TwHCNfTVKKn1md0zXd/EdWbM5Ckc4BGVHEl7d3utKFrxL0I3Pvrfr PE6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=PvpjuBQtOlAudoXQL+Fs7a3txtNLRy5lbl+AozmcQ9k=; b=BFQWZPcWb5reSMAx6eZ90qLWI5iN9VFfQzO2vsIgDTUwQI1XUkChPhzZLHt4LDXckW GhVBp4o4Iq8n8JK9/GND3XqOIFXxyCPBCzTDdFrLx+4rkmyN2qR2y/abulCJjRk0QGTI 2o9aXlCryuvscpjhfyP+o+h91MXBbWxWF/kXsjaoVq+YDInUCwTo67GOSln/7eo34Kxh 7we/V9Bck1Ifenx8QUBQrXYu60iOTjoSIzsy4h2VNj4X3+vgxmaeTKFa6bjovB8c0mkM 0CUGMMJ2relfIrbwN7UKPW20cg/EDq7rlhwG29S2HlSYhrYVvfBTyf+a2boilngV7nhP 1e5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jp24si5364601ejb.184.2020.05.22.11.00.46; Fri, 22 May 2020 11:01:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730920AbgEVR6i (ORCPT + 99 others); Fri, 22 May 2020 13:58:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730785AbgEVR6f (ORCPT ); Fri, 22 May 2020 13:58:35 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF4D3C061A0E; Fri, 22 May 2020 10:58:34 -0700 (PDT) Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jcBwD-0002Cy-Cs; Fri, 22 May 2020 19:58:29 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id C09111C0095; Fri, 22 May 2020 19:58:28 +0200 (CEST) Date: Fri, 22 May 2020 17:58:28 -0000 From: "tip-bot2 for Alexander Monakov" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: ras/core] EDAC/amd64: Add AMD family 17h model 60h PCI IDs Cc: Alexander Monakov , Borislav Petkov , Yazen Ghannam , x86 , LKML In-Reply-To: <20200510204842.2603-4-amonakov@ispras.ru> References: <20200510204842.2603-4-amonakov@ispras.ru> MIME-Version: 1.0 Message-ID: <159017030859.17951.14179903715581099157.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the ras/core branch of tip: Commit-ID: b6bea24d41519e8c31e4798f1c1a3f67e540c5d0 Gitweb: https://git.kernel.org/tip/b6bea24d41519e8c31e4798f1c1a3f67e540c5d0 Author: Alexander Monakov AuthorDate: Sun, 10 May 2020 20:48:42 Committer: Borislav Petkov CommitterDate: Fri, 22 May 2020 18:43:13 +02:00 EDAC/amd64: Add AMD family 17h model 60h PCI IDs Add support for AMD Renoir (4000-series Ryzen CPUs). Signed-off-by: Alexander Monakov Signed-off-by: Borislav Petkov Acked-by: Yazen Ghannam Link: https://lkml.kernel.org/r/20200510204842.2603-4-amonakov@ispras.ru --- drivers/edac/amd64_edac.c | 14 ++++++++++++++ drivers/edac/amd64_edac.h | 3 +++ 2 files changed, 17 insertions(+) diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c index 6bdc5bb..42024a8 100644 --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -2316,6 +2316,16 @@ static struct amd64_family_type family_types[] = { .dbam_to_cs = f17_addr_mask_to_cs_size, } }, + [F17_M60H_CPUS] = { + .ctl_name = "F17h_M60h", + .f0_id = PCI_DEVICE_ID_AMD_17H_M60H_DF_F0, + .f6_id = PCI_DEVICE_ID_AMD_17H_M60H_DF_F6, + .max_mcs = 2, + .ops = { + .early_channel_count = f17_early_channel_count, + .dbam_to_cs = f17_addr_mask_to_cs_size, + } + }, [F17_M70H_CPUS] = { .ctl_name = "F17h_M70h", .f0_id = PCI_DEVICE_ID_AMD_17H_M70H_DF_F0, @@ -3354,6 +3364,10 @@ static struct amd64_family_type *per_family_init(struct amd64_pvt *pvt) fam_type = &family_types[F17_M30H_CPUS]; pvt->ops = &family_types[F17_M30H_CPUS].ops; break; + } else if (pvt->model >= 0x60 && pvt->model <= 0x6f) { + fam_type = &family_types[F17_M60H_CPUS]; + pvt->ops = &family_types[F17_M60H_CPUS].ops; + break; } else if (pvt->model >= 0x70 && pvt->model <= 0x7f) { fam_type = &family_types[F17_M70H_CPUS]; pvt->ops = &family_types[F17_M70H_CPUS].ops; diff --git a/drivers/edac/amd64_edac.h b/drivers/edac/amd64_edac.h index abbf3c2..52b5d03 100644 --- a/drivers/edac/amd64_edac.h +++ b/drivers/edac/amd64_edac.h @@ -120,6 +120,8 @@ #define PCI_DEVICE_ID_AMD_17H_M10H_DF_F6 0x15ee #define PCI_DEVICE_ID_AMD_17H_M30H_DF_F0 0x1490 #define PCI_DEVICE_ID_AMD_17H_M30H_DF_F6 0x1496 +#define PCI_DEVICE_ID_AMD_17H_M60H_DF_F0 0x1448 +#define PCI_DEVICE_ID_AMD_17H_M60H_DF_F6 0x144e #define PCI_DEVICE_ID_AMD_17H_M70H_DF_F0 0x1440 #define PCI_DEVICE_ID_AMD_17H_M70H_DF_F6 0x1446 #define PCI_DEVICE_ID_AMD_19H_DF_F0 0x1650 @@ -293,6 +295,7 @@ enum amd_families { F17_CPUS, F17_M10H_CPUS, F17_M30H_CPUS, + F17_M60H_CPUS, F17_M70H_CPUS, F19_CPUS, NUM_FAMILIES,