Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3476239imu; Sun, 11 Nov 2018 15:59:46 -0800 (PST) X-Google-Smtp-Source: AJdET5dd5irVv7uBKgmnBSKc63JzfUG3YhYHozpND8Cyx9f0WmvvBcNKU+d/jGGjLv3HmR0cOVt2 X-Received: by 2002:a63:7f4f:: with SMTP id p15mr2085054pgn.296.1541980786904; Sun, 11 Nov 2018 15:59:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541980786; cv=none; d=google.com; s=arc-20160816; b=yDE6uxwDD/ZGNdv0x12AcOmXuAEXFly6cMHNdX4le10GShwL06mf0LEMftEbQ3IciG GqgXykCn45CruTtAaTf5fe17rsHmPB7VoCUPliwJs1+n7IZ+SkfZtori5VgY37SJPSLy 63h0mGNel72Es2Hz2wt0dGMY7vgHey2NvfYbE546Cg8/r11yqTLnOr/8AACjI3XbwixA XYf/lSby038mEzpy99PO4j5CpT7I5d3zlZl8cnbvgBOkz8s6jIf+1id3mHXLsbJ9VP2x 4N8tw0AUKxyNH3qmTbOTHgulqiUhs0yHwF03XV4XNAubebP0dM0QiJNm6v0wCV60peut xZGg== 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=hAJuGOh2j1k8bQKvzD+JtWdWVc+LU2F4b/xLv+hcfhc=; b=Jn/Fnp/viW9Og281bRQlsD71VXi/2WZe/OuwSMVao7ibUhJFKsS8cqaVJSdWyWZ1st d4c3cbvR0JfMKTX72uhYtWFhic/s3PWMDqW9BnZPzpczvqjl/1y5jFgxAMFuXvIPRQBD N6TfOS4cZ8HubPkjnimjSfWgTiP1lXN4PsbvCf3b/+P59woQPzFoO3eLblMhq83sQjBh xKzc3Zz13cfI9Xy5Chm8ASykSCtdbQQkHEHy6lNALB4jXoRtefz4ohaQRfqi3d+jb4co 9ahZuWNUvgwH/bmZ859CyCwAjkb1FZhWBfXjGKV2QsgPjKZt3Eo0OiUtQ95j7GxPaLUX I+oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RSPYPgNh; 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 b35-v6si16017057plh.326.2018.11.11.15.59.32; Sun, 11 Nov 2018 15:59:46 -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=RSPYPgNh; 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 S1732462AbeKLISI (ORCPT + 99 others); Mon, 12 Nov 2018 03:18:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:35336 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732359AbeKLISH (ORCPT ); Mon, 12 Nov 2018 03:18:07 -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 CC58E208A3; Sun, 11 Nov 2018 22:28:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541975291; bh=VEOzE84ohE+D+/9R34MS/TrPZnCFwfN95I6ofpQhtyg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RSPYPgNhCw9aYlDmCy1kQbAiFSPCk71aiJKq3OHGlIErOTOGpgf1bMAqS3C7xXrOv VJQtAOs7ICHQuFB2G32tSIlkwi2ep4n+6ub2kiePf6jJYgfyEYgilTkG04/ofvkwh6 2if/NFvActY0UwejNEGhgYVruM/npjVCi+WWub5I= 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.19 234/361] EDAC, amd64: Add Family 17h, models 10h-2fh support Date: Sun, 11 Nov 2018 14:19:41 -0800 Message-Id: <20181111221651.782850394@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181111221619.915519183@linuxfoundation.org> References: <20181111221619.915519183@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.19-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, };