From patchwork Fri Nov 27 16:18:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paoloni, Gabriele" X-Patchwork-Id: 11936601 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, LOTS_OF_MONEY,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D6CDC3E8C5 for ; Fri, 27 Nov 2020 16:18:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DB9D721534 for ; Fri, 27 Nov 2020 16:18:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730603AbgK0QSZ (ORCPT ); Fri, 27 Nov 2020 11:18:25 -0500 Received: from mga09.intel.com ([134.134.136.24]:46780 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730324AbgK0QSZ (ORCPT ); Fri, 27 Nov 2020 11:18:25 -0500 IronPort-SDR: x0y67RIEi1s+LRD2SuyAMOuGErhkRJFSYNb6Mqt2n2cfN1QkikNt23jSK9GiU6kIjQoygCXUnt dJFLUrmEqtNQ== X-IronPort-AV: E=McAfee;i="6000,8403,9818"; a="172567140" X-IronPort-AV: E=Sophos;i="5.78,375,1599548400"; d="scan'208";a="172567140" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2020 08:18:23 -0800 IronPort-SDR: T/NWv4uCOBGKnlk2FygWraXekl408JsHQNbQYeOPsnFR037rmidmuwBhpKYYyBXX6kEtHakYr8 esiAIiCl+mpQ== X-IronPort-AV: E=Sophos;i="5.78,375,1599548400"; d="scan'208";a="548095098" Received: from paolonig001.ir.intel.com ([163.33.183.93]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2020 08:18:21 -0800 From: Gabriele Paoloni To: tony.luck@intel.com, bp@alien8.de, tglx@linutronix.de, mingo@redhat.com, x86@kernel.org, hpa@zytor.com, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Cc: gabriele.paoloni@intel.com, linux-safety@lists.elisa.tech Subject: [PATCH v2 0/5] x86/MCE: some minor fixes Date: Fri, 27 Nov 2020 16:18:14 +0000 Message-Id: <20201127161819.3106432-1-gabriele.paoloni@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org During the safety analysis that was done in the context of the ELISA project by the safety architecture working group some incorrectnesses were spotted. This patchset proposes some fixes. Changes since v1: - fixed grammar - improved readibility of patch1 and Cc'd for stable - kill_it flag renamed to kill_current_task Signed-off-by: Gabriele Paoloni Reviewed-by: Tony Luck Gabriele Paoloni (5): x86/mce: do not overwrite no_way_out if mce_end() fails x86/mce: move the mce_panic() call and 'kill_it' assignments to the right places x86/mce: for LMCE panic only if mca_cfg.tolerant < 3 x86/mce: remove redundant call to irq_work_queue() x86/mce: rename kill_it as kill_current_task arch/x86/kernel/cpu/mce/core.c | 39 +++++++++++++++------------------- 1 file changed, 17 insertions(+), 22 deletions(-)