Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3765355imu; Mon, 7 Jan 2019 09:03:30 -0800 (PST) X-Google-Smtp-Source: AFSGD/XynIIHxLLCLGXFTGqM8E9F3IlZZejuk8qSo/sNVro3i2G/0A+zNiqLVMZzVsrbD8ozXFIF X-Received: by 2002:a62:4c5:: with SMTP id 188mr64514366pfe.130.1546880610673; Mon, 07 Jan 2019 09:03:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546880610; cv=none; d=google.com; s=arc-20160816; b=dhPyfJFkx0x63yf6nX/ZmzikEFU+hvSWqKuKvpFx8SLBOZqDEUM4W9gPjXyEamO8LB 653RGG4nCuOp9mPT533kH++GB1JM8Y20Odm+Z05s1e5rdStpystzfoA+SAaPeU/ed1n3 26IgU9LvJWWDTwBlTpv+wf7XRj/e8NQDbJsmBZaD68JVhn74iTiYi2jjB7DpAyjaVEam MrcCrWA1sOuDwWtsbIiGpkzl3pd1noV90ika20W8gLO8BpWMJiQW9bvI8He1oVqlAfYH pQD5x1/vhvLp3HIbbOgLlt+fAjsA2LkI8cFrjNA1VacH0yn3ckaPUFSpQlgTJghez17L Corg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:from:dkim-signature; bh=5pzuNh+iwBFYmpNg9y63ZGBkNRjUdqu+eZIArYPBeu4=; b=dAlDJSkLugIahjAkDTjttemrCHh7qay0LO+T3ZCoAaGo9yq2MjKu4B+sprJNDCU+hZ h8a+KvyJ5akS1n8xw580sIghGLXPeEjCyfAvxc5/8Q4uQ2G6DDXIOdvWcAMGbHnWtxeB 5HMaEtZJKUF9sxOZYZFk2rkhKTVwDjsYVOmvHFRAknJcoeSl3upvt3ZsFog4Awe+y0A8 hh00uK2DyTZDlsvqWfpIZlzzywLpQ38gDS8o5PCcLQrDi1zYpSGljb65NQGTboc99Ddy ia0SpkC2BB0b3mdThrWVEgo6HltjIxDJ7gQYErnfAb97nA3uzumE7YSrg1IA5Yedl6Ai LCFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=cV2oLGDF; 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 r196si8468851pgr.311.2019.01.07.09.03.14; Mon, 07 Jan 2019 09:03:30 -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=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=cV2oLGDF; 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 S1726844AbfAGKh1 (ORCPT + 99 others); Mon, 7 Jan 2019 05:37:27 -0500 Received: from mail-eopbgr820042.outbound.protection.outlook.com ([40.107.82.42]:13506 "EHLO NAM01-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726601AbfAGKhY (ORCPT ); Mon, 7 Jan 2019 05:37:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5pzuNh+iwBFYmpNg9y63ZGBkNRjUdqu+eZIArYPBeu4=; b=cV2oLGDFTStFeHg9JOR0f2kRni3qsyjZEmoSODSWH4+fi1UxAZizTcM5UnAB+XVTtLCEwhjkfF/GFVmKtf1yrjrpv+Yjtl/XwsQMEp3ojHUxQ5zUQNNQJLJTjGZVIdPyy2AgmN/ZYl/oJjsNxpruKRY21x2S9jbWnUAlRTNHDHI= Received: from MN2PR12MB3248.namprd12.prod.outlook.com (20.179.82.219) by MN2PR12MB3391.namprd12.prod.outlook.com (20.178.242.210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1495.7; Mon, 7 Jan 2019 10:37:18 +0000 Received: from MN2PR12MB3248.namprd12.prod.outlook.com ([fe80::c0b8:71fb:e1f0:d13a]) by MN2PR12MB3248.namprd12.prod.outlook.com ([fe80::c0b8:71fb:e1f0:d13a%3]) with mapi id 15.20.1495.011; Mon, 7 Jan 2019 10:37:18 +0000 From: "S, Shirish" CC: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H . Peter Anvin" , "maintainer : X86 ARCHITECTURE" , Tony Luck , Vishal Verma , "open list : X86 ARCHITECTURE" , "S, Shirish" Subject: [PATCH 1/2] x86/mce/amd: Extend "Disable error thresholding bank 4" to more models Thread-Topic: [PATCH 1/2] x86/mce/amd: Extend "Disable error thresholding bank 4" to more models Thread-Index: AQHUpnT248JJI+5Ktk6P4uPYiZ1p9w== Date: Mon, 7 Jan 2019 10:37:17 +0000 Message-ID: <1546857399-2926-2-git-send-email-shirish.s@amd.com> References: <1546857399-2926-1-git-send-email-shirish.s@amd.com> In-Reply-To: <1546857399-2926-1-git-send-email-shirish.s@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BM1PR01CA0120.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:40::14) To MN2PR12MB3248.namprd12.prod.outlook.com (2603:10b6:208:103::27) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Shirish.S@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.156.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;MN2PR12MB3391;20:xccfeGXE1QEQaxR6O+W6mCgp0w25YlEATR1twpbXSrpG5t2EmHK0x98KD3S1Gf9hiVi5zefNVOT4ea11YaZiKkRYvYU1ulNlkf86+jh+8qSDxwglMyIdiKe9VAb/JjrQhfeXqYPvnQbcNEncoDL6L/dkp2UvcjOjZfNa/+3gGb3b87ahvfmizlaDk8HUH6KqKGUR0Mq9bTwSEnBIsUefCjJ1RiUsOqon2QiWxO/SZexRIIDIkDx2cAKyQbuymF27 x-ms-office365-filtering-correlation-id: 1da9c452-b037-4735-6987-08d6748c1891 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:MN2PR12MB3391; x-ms-traffictypediagnostic: MN2PR12MB3391: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(8220060)(2401047)(8121501046)(3231475)(944501520)(52105112)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(201708071742011)(7699051)(76991095);SRVR:MN2PR12MB3391;BCL:0;PCL:0;RULEID:;SRVR:MN2PR12MB3391; x-forefront-prvs: 0910AAF391 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(376002)(366004)(346002)(39860400002)(396003)(136003)(189003)(199004)(2906002)(81156014)(8936002)(36756003)(26005)(14454004)(316002)(3846002)(99286004)(54906003)(72206003)(68736007)(486006)(476003)(478600001)(66066001)(86362001)(109986005)(6436002)(6116002)(5660300001)(6512007)(4326008)(2616005)(53936002)(105586002)(59246006)(106356001)(71190400001)(71200400001)(6486002)(76176011)(52116002)(6506007)(102836004)(386003)(256004)(14444005)(97736004)(7736002)(305945005)(8676002)(81166006)(25786009)(1671002)(186003)(11346002)(446003)(15650500001)(170073001);DIR:OUT;SFP:1101;SCL:1;SRVR:MN2PR12MB3391;H:MN2PR12MB3248.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: L209YuWmk/clSdLKjIJ/Vv6xmWjr3Ewtb13s97nrb61MWEzZaRnAOk5GgkU78a+mGJEx+nexWV7/4JcgwazWVk37V8HS+tSZoi7M/K4pEFkZGvPqQ63I1VhIpjauI6tSJmtd5WZb5WtG82UOtsaTOH6JXvtifTrHuuK5tZ7GTWrdGNcg7aF9kNUKc6jBuEEAWComKd3jh14v2h8SAiujEznO/vuYaOVFCctufW3MvzmHGjfoRIDzyFQj3RYwWMkasOpEPHXszzVbYs3Zxfco915y7hUQdwgB6F2V+weUf1kBBj8WzCdS2m/XwOeQpcmD spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1da9c452-b037-4735-6987-08d6748c1891 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jan 2019 10:37:17.9573 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3391 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The below patch added this quirk only for the first generation of family 15 processors, over time its noticed that its required for later generations too. "575203b4747c x86, MCE, AMD: Disable error thresholding bank 4 on some models" This patch extends the quirk to make it applicable till 7th Generation, so as to address the below warning at boot: "[Firmware Bug]: cpu 0, invalid threshold interrupt offset ..." Signed-off-by: Shirish S --- arch/x86/kernel/cpu/mce/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/mce/core.c b/arch/x86/kernel/cpu/mce/core.= c index 672c722..051b536 100644 --- a/arch/x86/kernel/cpu/mce/core.c +++ b/arch/x86/kernel/cpu/mce/core.c @@ -1616,7 +1616,7 @@ static int __mcheck_cpu_apply_quirks(struct cpuinfo_x= 86 *c) * they're not supported there. */ if (c->x86 =3D=3D 0x15 && - (c->x86_model >=3D 0x10 && c->x86_model <=3D 0x1f)) { + (c->x86_model >=3D 0x10 && c->x86_model <=3D 0x7f)) { int i; u64 hwcr; bool need_toggle; --=20 2.7.4