Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1639287imu; Wed, 9 Jan 2019 23:56:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN5QGmujfovCGYwJ6hCH7ywKy7gILNqeCT2ROsBRfQ7ILy1HaZNkooPJLswNt53NuRHbStTt X-Received: by 2002:a65:6491:: with SMTP id e17mr8349901pgv.418.1547106974728; Wed, 09 Jan 2019 23:56:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547106974; cv=none; d=google.com; s=arc-20160816; b=y/TARf8+k57RmkfZLCUOdt3149R9iXcoE+4fi5tzGsezxPSx4R8Q0COp44WHp4hTRl RoONZ5UnTWukltCAZA3+rGIn+uh9CdCgQCNhrwZiPoJ0hOwaitGrRrWAOw1Vs9fbHBO1 VPl/Vh1I6A/+r+ec9fZXohkQcYfkrZZKQtJ2XGvGOAO4XB427mJvLu8sKtUCyXbl23Rx 7J2uuJ1OTxm3xqYK6L+cswYkJgTqwLLP+ShTSi82083o3Nqwsww1PbzLjO4TCLWPOv8q G46dQOTr5NK3WDXvyOYzmO0eiLaeE41RGT7g3IyiqzsDdMuJoziOqUNT4FEcH51Z7/b7 XRIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=5ogtu2k4YpJiOhnV5Ky3VddFsXcLWMx6llEq06QESUw=; b=NOJqQl4anLMvsJWj/M6tsciH/cl1WAqX2IPh5R8PuWqpPeguxWLQ7WttzAmJKNSm+4 ei62fVsR/WHPcrUBkNtGazWybkIjSY/WS72st162DY7ZUvpwMY4Rdg3BLs5SroHTeXVI +Yxz+9k1Of3XUcyX/27IWEEThoBSWGaG6AyqMXjUgjmBOLTeHlVIK1zojAjKNaEugLyN 0fFJ/gRe714keSbIHurICq2Yu0j45xVuo8Pz1kP4aS8SJMb2bs47NkqIoOf2iGswZRcE lGmZP/H38ojQ/BsEJtMPvrDus2BrdHnDOjbKgwRHRhvpLTFqhNP+PH8wBg/38HAIQcPd s8ng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=tUhk0f2w; 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 d127si32220pfg.255.2019.01.09.23.56.00; Wed, 09 Jan 2019 23:56:14 -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=tUhk0f2w; 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 S1727568AbfAJHyp (ORCPT + 99 others); Thu, 10 Jan 2019 02:54:45 -0500 Received: from mail-eopbgr710046.outbound.protection.outlook.com ([40.107.71.46]:18653 "EHLO NAM05-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726137AbfAJHyo (ORCPT ); Thu, 10 Jan 2019 02:54:44 -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=5ogtu2k4YpJiOhnV5Ky3VddFsXcLWMx6llEq06QESUw=; b=tUhk0f2wISNzdor5ngQr71ub2FbCrPJzk62W3mrWPflcR4vhfSJaUOMjYk8Uzd4B2RKMhCZ6wKzKX2V9jxz/A2dzQ68xpYNsKW+PIYuSgDQO2QmPvi9w6wsCQ4usolUi3Rus27svxHV03ZmmkHzszONYNCMG/jMwmk8gwkEgtYM= Received: from BYAPR12MB3237.namprd12.prod.outlook.com (20.179.93.25) by BYAPR12MB2664.namprd12.prod.outlook.com (20.176.255.217) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1495.7; Thu, 10 Jan 2019 07:54:40 +0000 Received: from BYAPR12MB3237.namprd12.prod.outlook.com ([fe80::a96e:ffd:3bd6:c5f5]) by BYAPR12MB3237.namprd12.prod.outlook.com ([fe80::a96e:ffd:3bd6:c5f5%4]) with mapi id 15.20.1516.015; Thu, 10 Jan 2019 07:54:40 +0000 From: "S, Shirish" To: --cc=Borislav Petkov CC: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , "maintainer : X86 ARCHITECTURE" , Tony Luck , Vishal Verma , "open list : X86 ARCHITECTURE" , "S, Shirish" Subject: [PATCH 1/3] x86/mce/amd: apply MC4_MISC thresholding to all models of family 15 Thread-Topic: [PATCH 1/3] x86/mce/amd: apply MC4_MISC thresholding to all models of family 15 Thread-Index: AQHUqLm9VyZ2s0LQ8UGK0duiB3IR+Q== Date: Thu, 10 Jan 2019 07:54:40 +0000 Message-ID: <1547106849-3476-2-git-send-email-shirish.s@amd.com> References: <1547106849-3476-1-git-send-email-shirish.s@amd.com> In-Reply-To: <1547106849-3476-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: BMXPR01CA0008.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::18) To BYAPR12MB3237.namprd12.prod.outlook.com (2603:10b6:a03:136::25) 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;BYAPR12MB2664;20:skYV+ic/lhyDYQNqH5yijBt8Q2lpDsXg/AM9ePCWFWiEgL3uisN6n+7dDPaMdCkWHQhcfFxKw+x6QPNCKyNJdiz+gq/Yy/AG3QQrG3RosoJV5qS+X19KVlrYMPkfRKEEdhWxBK0mwKWKHxgAzW97zqHmH0PAuXjkUiIqZ0reH86BTjs/yMesYILIHAbmKZczsctCi652CJsyFdAE8wKLFHlwqNulvdmJvs9+QjrUft2teCi83j4V3zKU7HVJJ24Y x-ms-office365-filtering-correlation-id: e0927a46-b03d-4e89-9b5b-08d676d0e000 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:BYAPR12MB2664; x-ms-traffictypediagnostic: BYAPR12MB2664: x-microsoft-antispam-prvs: x-forefront-prvs: 0913EA1D60 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(346002)(376002)(39860400002)(366004)(136003)(189003)(199004)(54534003)(102836004)(6512007)(186003)(386003)(97736004)(66066001)(72206003)(6506007)(68736007)(86362001)(575784001)(26005)(6116002)(81166006)(478600001)(316002)(52116002)(81156014)(486006)(54906003)(25786009)(76176011)(2906002)(3846002)(99286004)(53936002)(105586002)(6916009)(2616005)(256004)(4326008)(71190400001)(71200400001)(36756003)(446003)(7736002)(6436002)(305945005)(14454004)(5660300001)(106356001)(11346002)(6486002)(8936002)(8676002)(476003)(4744005);DIR:OUT;SFP:1101;SCL:1;SRVR:BYAPR12MB2664;H:BYAPR12MB3237.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: qJKOkuDjJYxDdldAz54gmLRNXdRShdb1nHBbPyWjW2Ic/lkeEkhMmP+TYJY3qtp/8d5kO4hQ0g9UZQrnMW5A6BaM+rSGvh6zZMcIomcYlC7UNCVolTt01/t6lF//3ZSRAH/WfXmp7XX4MLZ0lgLoTzL/tumb6ruqEgnvUNOueKpW5hvRyZPvAXnOR+RmTFF/knkTnZtvBt/UKjA/bZ0bpGhrZyy3PX23BBPX9wZXim/YxkaG9Yu2MFrDO+TB08okwXFyc1cjo6j5GmHoCz387/0SnuT1fkSKABX+fTYmDXXuq3CR3shBDnrdrdhUQfR8 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: e0927a46-b03d-4e89-9b5b-08d676d0e000 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Jan 2019 07:54:40.7133 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB2664 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Its evident from various forums and logs that MC4_MISC thresholding is not supported for the family 15 processors, hence skip the x86_model check while applying quirk. Changelog[v2]: - reword commit message to adhere to coding standards - remove check of model range Signed-off-by: Shirish S --- arch/x86/kernel/cpu/mce/core.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/cpu/mce/core.c b/arch/x86/kernel/cpu/mce/core.= c index 672c722..d0c5416 100644 --- a/arch/x86/kernel/cpu/mce/core.c +++ b/arch/x86/kernel/cpu/mce/core.c @@ -1612,11 +1612,10 @@ static int __mcheck_cpu_apply_quirks(struct cpuinfo= _x86 *c) mce_flags.overflow_recov =3D 1; =20 /* - * Turn off MC4_MISC thresholding banks on those models since + * Turn off MC4_MISC thresholding banks on all models since * they're not supported there. */ - if (c->x86 =3D=3D 0x15 && - (c->x86_model >=3D 0x10 && c->x86_model <=3D 0x1f)) { + if (c->x86 =3D=3D 0x15) { int i; u64 hwcr; bool need_toggle; --=20 2.7.4