Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1286537imu; Wed, 16 Jan 2019 16:26:13 -0800 (PST) X-Google-Smtp-Source: ALg8bN5+2g729ChoZAJzd576bFKei1DU/1aM5Qz8PPO4XZhrlFbT4CVCiOxXrxjIYsN6G+HRsWhl X-Received: by 2002:a62:3603:: with SMTP id d3mr13070687pfa.146.1547684772902; Wed, 16 Jan 2019 16:26:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547684772; cv=none; d=google.com; s=arc-20160816; b=M6695D1E4Z4uwTQNUVXlfWHyx0AkTKfTZmanHs7SW6LCHlBjVSiwThurSe+Acb2BX9 elE9DP+2iQyyeVoolrSTNJO8HL6kz+bczgTELUmGIP1M0v1KnEDuA/uUnI+F3f6zZCK4 7DTW7XC6FaOfqrMOWsIB+1iQA/ZI3UEI06WqMSp3WEdz0x4TVv4QB5HfPrJK9r1bdl8A xwhx4mJ2VCN4upkpcMcIkeV2JALOCagyRoqbg6iawh5NjIhyR+4JwG6/1kIq306HkxpZ byfyXPdPVxIfHw8cp2BM/3kB5Qc9oG19uLM8oEQYKIX1lMP9SKuokZjQiQjSkGZhwCHd KC4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=Y+tEO1ua5qsYvB+//iYPVPkddU3EVSvoNT9mxX5TPn0=; b=Q9nIa+xsuZD+r/P0U/tvlXgpeHEfwF6Rg2XIBIjN93Utc3Q0B9YCmISZ6P+0dnZqTW qCyt6e1ypzXAUWs/WfE3Qxfy8JeyZ5N0ZGbcngLyQwhPWzsGnzX7kP6R9yPK4ehE/9Gu 8y1CQIzy5yqD8VzVKYh9JTFI/Z1SyW/oDjwplyyfWOaG0FTyLcq+cJkXSM+u/3D9Y7/0 pmlD7inv/wHHe/hQZ2CtPatVrseXLx8jD43CiCsNDMWUy/xnOQuk3z5EGkUXcHwGDNhs 0/iX7DyHvkmUYXkadUEih6+0jZCu2NPuNXPPLUgPRpjxjz/ah5j/lxbhKW2csjkjfOJk YK4w== ARC-Authentication-Results: i=1; mx.google.com; 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 26si7034665pgu.190.2019.01.16.16.25.56; Wed, 16 Jan 2019 16:26:12 -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; 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 S1731098AbfAPTbN (ORCPT + 99 others); Wed, 16 Jan 2019 14:31:13 -0500 Received: from terminus.zytor.com ([198.137.202.136]:57139 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730951AbfAPTbM (ORCPT ); Wed, 16 Jan 2019 14:31:12 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x0GJUtM3397585 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 16 Jan 2019 11:30:55 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x0GJUs2r397582; Wed, 16 Jan 2019 11:30:54 -0800 Date: Wed, 16 Jan 2019 11:30:54 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Shirish S Message-ID: Cc: tony.luck@intel.com, shirish.s@amd.com, bp@suse.de, linux-kernel@vger.kernel.org, vishal.l.verma@intel.com, mingo@redhat.com, x86@kernel.org, tglx@linutronix.de, Shirish.S@amd.com, hpa@zytor.com, mingo@kernel.org Reply-To: Shirish.S@amd.com, tglx@linutronix.de, x86@kernel.org, mingo@kernel.org, hpa@zytor.com, bp@suse.de, shirish.s@amd.com, tony.luck@intel.com, mingo@redhat.com, linux-kernel@vger.kernel.org, vishal.l.verma@intel.com In-Reply-To: <1547106849-3476-2-git-send-email-shirish.s@amd.com> References: <1547106849-3476-2-git-send-email-shirish.s@amd.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:ras/core] x86/MCE/AMD: Turn off MC4_MISC thresholding on all family 0x15 models Git-Commit-ID: c95b323dcd3598dd7ef5005d6723c1ba3b801093 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=0.3 required=5.0 tests=ALL_TRUSTED,BAYES_00, DATE_IN_FUTURE_12_24 autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: c95b323dcd3598dd7ef5005d6723c1ba3b801093 Gitweb: https://git.kernel.org/tip/c95b323dcd3598dd7ef5005d6723c1ba3b801093 Author: Shirish S AuthorDate: Thu, 10 Jan 2019 07:54:40 +0000 Committer: Borislav Petkov CommitDate: Tue, 15 Jan 2019 18:11:38 +0100 x86/MCE/AMD: Turn off MC4_MISC thresholding on all family 0x15 models MC4_MISC thresholding is not supported on all family 0x15 processors, hence skip the x86_model check when applying the quirk. [ bp: massage commit message. ] Signed-off-by: Shirish S Signed-off-by: Borislav Petkov Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Tony Luck Cc: Vishal Verma Cc: x86-ml Link: https://lkml.kernel.org/r/1547106849-3476-2-git-send-email-shirish.s@amd.com --- 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 672c7225cb1b..d0c54160b439 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 = 1; /* - * 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 == 0x15 && - (c->x86_model >= 0x10 && c->x86_model <= 0x1f)) { + if (c->x86 == 0x15) { int i; u64 hwcr; bool need_toggle;