Received: by 10.213.65.68 with SMTP id h4csp730274imn; Wed, 28 Mar 2018 11:41:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Ep2zdWcA3EeTXLvkN0Da6omyuV/Jra7RjV4m39adpkDq0ktCsVhlTao/SvAfu9pZdpARi X-Received: by 10.98.236.86 with SMTP id k83mr3858944pfh.84.1522262501896; Wed, 28 Mar 2018 11:41:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522262501; cv=none; d=google.com; s=arc-20160816; b=WHb0NFQMcA1m6d/pJsOXPdjxRCWvDrnXwsycAlyycu/NwDPBfmaVN+X+sAnNugsszs KFvE9QghPQjjTt368FB9bZ6fm0hmVRMQLswHBjRL85nQE6Pt2LWUlEttkzsIdwB9ezZe 1K7lrQ3YPNPgmqwR3L4NUD6DSv47rWaYxQ+1kCl9YFYZwRjX3UajypBPwY0D3Jl+BBQn ogqADFZdg7JzKf2WB3kjuPAM08hx9eVDnOICvtCSGyeg7BdExct3N7GUqZquO147LADv AgCftsnVJtNre42WV1af7ZEXEc1wpZp5YMH96WhyRz+N+bHeIYaxkQOjuEhoXEoamzKr UtNA== 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:arc-authentication-results; bh=r8PWj4Jcg80PeWLQ4cGRh0IRkq38mvufqToDsJ3PxyM=; b=uvjljZuX/AECMFtnHfgLOT6NHS82VN64we5UjfdFTH+2BzrjetwHcNQqTX3If5lb9K SZ/NOJnGLYCfboiynwZP8ymayUSiodCUa3Tck527ihYB721itk/S3rBYLyTKIBMOaLlV Ha0cA393bR9UVcxc/9wFTe7I1swtr4EJatD4aZf5Zp/ujN4aXlgAENSa+mzRKW8aY0fP oC+EweN2WUZ1ILSpjqL5l2ax40g9A1gKqvWRRGPB5t59wAOgXjHy/hsZAvmyi6Ev0ltj yi3LGRyjP3uyN+bPQFP4kB1+5ULfMy9kJvzMKsyjwV2GVEA8BtWE0FijZ9GehMmYy26Z XZXQ== 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 b126si2827612pgc.476.2018.03.28.11.41.27; Wed, 28 Mar 2018 11:41:41 -0700 (PDT) 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 S1753107AbeC1SkB (ORCPT + 99 others); Wed, 28 Mar 2018 14:40:01 -0400 Received: from terminus.zytor.com ([198.137.202.136]:33919 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753050AbeC1SkA (ORCPT ); Wed, 28 Mar 2018 14:40:00 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w2SIdoMj1156730; Wed, 28 Mar 2018 11:39:50 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w2SIdm7i1156727; Wed, 28 Mar 2018 11:39:48 -0700 Date: Wed, 28 Mar 2018 11:39:48 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Yazen Ghannam Message-ID: Cc: yazen.ghannam@amd.com, Yazen.Ghannam@amd.com, mingo@kernel.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, hpa@zytor.com Reply-To: hpa@zytor.com, tglx@linutronix.de, yazen.ghannam@amd.com, mingo@kernel.org, Yazen.Ghannam@amd.com, linux-kernel@vger.kernel.org In-Reply-To: <20180326191526.64314-1-Yazen.Ghannam@amd.com> References: <20180326191526.64314-1-Yazen.Ghannam@amd.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:ras/core] Revert "x86/mce/AMD: Collect error info even if valid bits are not set" Git-Commit-ID: e2efacb6a54ab54626da3507be1008d0040492cc 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=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) 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: e2efacb6a54ab54626da3507be1008d0040492cc Gitweb: https://git.kernel.org/tip/e2efacb6a54ab54626da3507be1008d0040492cc Author: Yazen Ghannam AuthorDate: Mon, 26 Mar 2018 14:15:25 -0500 Committer: Thomas Gleixner CommitDate: Wed, 28 Mar 2018 20:34:59 +0200 Revert "x86/mce/AMD: Collect error info even if valid bits are not set" This reverts commit 4b1e84276a6172980c5bf39aa091ba13e90d6dad. Software uses the valid bits to decide if the values can be used for further processing or other actions. So setting the valid bits will have software act on values that it shouldn't be acting on. The recommendation to save all the register values does not mean that the values are always valid. Signed-off-by: Yazen Ghannam Signed-off-by: Thomas Gleixner Cc: tony.luck@intel.com Cc: Yazen Ghannam Cc: bp@suse.de Cc: linux-edac@vger.kernel.org Link: https://lkml.kernel.org/r/20180326191526.64314-1-Yazen.Ghannam@amd.com --- arch/x86/kernel/cpu/mcheck/mce.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c index 21962c48dad7..3c1eec17312b 100644 --- a/arch/x86/kernel/cpu/mcheck/mce.c +++ b/arch/x86/kernel/cpu/mcheck/mce.c @@ -446,20 +446,6 @@ static inline void mce_gather_info(struct mce *m, struct pt_regs *regs) if (mca_cfg.rip_msr) m->ip = mce_rdmsrl(mca_cfg.rip_msr); } - - /* - * Error handlers should save the values in MCA_ADDR, MCA_MISC0, and - * MCA_SYND even if MCA_STATUS[AddrV], MCA_STATUS[MiscV], and - * MCA_STATUS[SyndV] are zero. - */ - if (m->cpuvendor == X86_VENDOR_AMD) { - u64 status = MCI_STATUS_ADDRV | MCI_STATUS_MISCV; - - if (mce_flags.smca) - status |= MCI_STATUS_SYNDV; - - m->status |= status; - } } int mce_available(struct cpuinfo_x86 *c)