Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3428609imu; Sun, 11 Nov 2018 14:53:55 -0800 (PST) X-Google-Smtp-Source: AJdET5cCkMtrD18Rt2vo+zxUkueG6fX9IbDcShi1UIAP1WjhwhBUa2skhWvQ0KLpqYtgc5TApN9q X-Received: by 2002:a63:83c1:: with SMTP id h184mr15351213pge.437.1541976835529; Sun, 11 Nov 2018 14:53:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541976835; cv=none; d=google.com; s=arc-20160816; b=noHaDUIv621TCVPujTxBv/H9FBtAv3CXSAwXjiEnjaIhZ/RVG45audgKQkWet/DgfO g+V5PQjIQK+2Imn8qxsYEfrPKN3T+r7sEFoNwywlwrgZoXHvroSwBiNUbn4cQLtUnl19 mJ66gqN9NqH6aPHOwOw7AgL8I3c8mXGz0Dctrpt6HzBy6UMvbEoDPHYjOeIThfT2MqhL AZYpya+MhrSVO//dYzGU76nzo0vs7hL4foBP5g+BVSRvoQ5nA1ZwISo/Gond71uG/krC yaXLsj8eZPdwB7bU24wSNh+TIyDZcsG/KnXOgD3YQQygtA15ht9j/CWCrrK2QsVG89fq UGAQ== 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:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=XdaYKlTYfdwbTKRdeO5+UQlc3csBXjSPUGVDOuS2bNo=; b=gh+8gOqHW7+Cl+41oUwF7QvvLKb6mGiZe4KqNtSK2K0SOeT8+1dAx+ssCbW+z57VFe vS2MN5pmDzh6hvGY8lYfCrmnpy9xguDAPKVbq4dMhyJcrHmfgmW0gK3h1AnwtxoJ3aSA Ctj2u9xTH39RDvi+qsBt9AHdA4ejfzXgRIrIBDhuLPbQ8Lh3Begdfw4UwtW2VDbbpevK lHKZBPYzG2cb0RIqNLK7Slqs72loALTM76NGKLoSBCgUbCQVpw1tIOBI5EjsORbwmKMh H0pboI3ezndtYSbqIHTzuy6/fRsYofu92AmOTijZ0JhgchNJ2TRoFuqESh1CqcO07ho3 bvcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IkWJ1hc5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w6-v6si16223234pfn.212.2018.11.11.14.53.40; Sun, 11 Nov 2018 14:53:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=IkWJ1hc5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404042AbeKLIXB (ORCPT + 99 others); Mon, 12 Nov 2018 03:23:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:54772 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404018AbeKLIW7 (ORCPT ); Mon, 12 Nov 2018 03:22:59 -0500 Received: from localhost (unknown [206.108.79.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 77BDF2241B; Sun, 11 Nov 2018 22:33:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975582; bh=pprReBp+h0AlROTN9kPzpFKNz5sH9HmiA8x4V8EknY4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IkWJ1hc5mdJ5gophawZ7knO5hNaOXDhgxsySrla2wSQMXUg8y8ywb1/kyOuVwanrO nHn/cVBaWH7pkZ/6cuB+CJmtOLoLelMwRhyaK54X32akZ79nlxmwtK8/NQNx2CpyOR K+uqpfsYCFAYVqUzg8kbYBbeSkrtXQF0pb+KcfjI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Jin , Yazen Ghannam , Borislav Petkov Subject: [PATCH 4.14 142/222] EDAC, amd64: Add Family 17h, models 10h-2fh support Date: Sun, 11 Nov 2018 14:23:59 -0800 Message-Id: <20181111221700.201959496@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221647.665769131@linuxfoundation.org> References: <20181111221647.665769131@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Michael Jin commit 8960de4a5ca7980ed1e19e7ca5a774d3b7a55c38 upstream. Add new device IDs for family 17h, models 10h-2fh. This is required by amd64_edac_mod in order to properly detect PCI device functions 0 and 6. Signed-off-by: Michael Jin Reviewed-by: Yazen Ghannam Cc: Link: http://lkml.kernel.org/r/20180816192840.31166-1-mikhail.jin@gmail.com Signed-off-by: Borislav Petkov Signed-off-by: Greg Kroah-Hartman --- drivers/edac/amd64_edac.c | 14 ++++++++++++++ drivers/edac/amd64_edac.h | 3 +++ 2 files changed, 17 insertions(+) --- a/drivers/edac/amd64_edac.c +++ b/drivers/edac/amd64_edac.c @@ -2200,6 +2200,15 @@ static struct amd64_family_type family_t .dbam_to_cs = f17_base_addr_to_cs_size, } }, + [F17_M10H_CPUS] = { + .ctl_name = "F17h_M10h", + .f0_id = PCI_DEVICE_ID_AMD_17H_M10H_DF_F0, + .f6_id = PCI_DEVICE_ID_AMD_17H_M10H_DF_F6, + .ops = { + .early_channel_count = f17_early_channel_count, + .dbam_to_cs = f17_base_addr_to_cs_size, + } + }, }; /* @@ -3188,6 +3197,11 @@ static struct amd64_family_type *per_fam break; case 0x17: + if (pvt->model >= 0x10 && pvt->model <= 0x2f) { + fam_type = &family_types[F17_M10H_CPUS]; + pvt->ops = &family_types[F17_M10H_CPUS].ops; + break; + } fam_type = &family_types[F17_CPUS]; pvt->ops = &family_types[F17_CPUS].ops; break; --- a/drivers/edac/amd64_edac.h +++ b/drivers/edac/amd64_edac.h @@ -115,6 +115,8 @@ #define PCI_DEVICE_ID_AMD_16H_M30H_NB_F2 0x1582 #define PCI_DEVICE_ID_AMD_17H_DF_F0 0x1460 #define PCI_DEVICE_ID_AMD_17H_DF_F6 0x1466 +#define PCI_DEVICE_ID_AMD_17H_M10H_DF_F0 0x15e8 +#define PCI_DEVICE_ID_AMD_17H_M10H_DF_F6 0x15ee /* * Function 1 - Address Map @@ -281,6 +283,7 @@ enum amd_families { F16_CPUS, F16_M30H_CPUS, F17_CPUS, + F17_M10H_CPUS, NUM_FAMILIES, };