Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp18686007ybl; Fri, 3 Jan 2020 07:09:06 -0800 (PST) X-Google-Smtp-Source: APXvYqzzY9oRaDbIIRHwZQ6cGTJAZ+3AAuqBJISR6yZGPIcxsTrRPjttmCeED+7WkMT9RBYx4/Ac X-Received: by 2002:a9d:708f:: with SMTP id l15mr88115670otj.229.1578064145928; Fri, 03 Jan 2020 07:09:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578064145; cv=none; d=google.com; s=arc-20160816; b=PKuDne/LJEhmnkiRsFpKqA/srdF7nAupld/XwnUuJgC9uuu2MFoiUM/Hb+Z3TRBiFh 5ZlZ9AClqa6Jlfr5DGlNK3FP+1Cp4H3Cj983l3Bpzb/8mUOEdTIcCCyyLwKG4DvWr/VB DahI7RCWWbUcOWU2alEvhP1caPZICutzO0+mdfrJQmj1j4Rvs0wW5LbnKkV0MTC0X0nC PBViZfZJK4e/l2v6LJBvR3h0rYuNGci0VaXE+nlcJnl66tMi+orxuL/qDY+xQpbR2r0c LF+PKcmpeXDq+/a7eL02zj7/9EMjIvB/7fL5q07pQ6RKkih2+TbPCUu3QLzSqYC4+ocj xgJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:dkim-signature; bh=iScVvzy4kldAidXvB46y5RqTW5IdFH/pNIveRmCeq3Q=; b=DNNq2IGdEl69UbABv8olgN88Ql/DcGKHD8UsDxkyM/JkLJPR59RA41F27NctXm/N6q TP/dVoZ3Qe+sUqXj0r65CoBVReeKlXnyxSw6j1AH8CqMi6fCbeWP9XOajkN9LK0CtuO3 z1s9WBYClhwb34qhq5fsxcm44PVaOhcklwPlYfWxd61c9QZamw/JX299RzZniEsMv3In ye/TXt98gM+tQFrUmp0OrxmomUopKJ8hPNpZhsl+3VOXAg+1Kxnyob6ecA8K7VTNEXE2 g7VlMdXVXVK0zb69MLE3IjenUBimblY/BbZMY07AozpdRd3pYqy9TdW05h9cmCOHpMfF GT1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.de header.s=amazon201209 header.b=FTTDI0rC; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z62si28886594oiz.271.2020.01.03.07.08.54; Fri, 03 Jan 2020 07:09:05 -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=@amazon.de header.s=amazon201209 header.b=FTTDI0rC; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727981AbgACPIF (ORCPT + 99 others); Fri, 3 Jan 2020 10:08:05 -0500 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:64874 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727762AbgACPID (ORCPT ); Fri, 3 Jan 2020 10:08:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.de; i=@amazon.de; q=dns/txt; s=amazon201209; t=1578064083; x=1609600083; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=iScVvzy4kldAidXvB46y5RqTW5IdFH/pNIveRmCeq3Q=; b=FTTDI0rCgGp+OrKxBHgUzBwNeOgX2d3me+ujoJNbodbZSgAtuqZe+s58 hPJiThkNWXGG14Zb1Pk2J0o+bSGaNKO5Hg/cj53RwnYG5qj73aNPEBrRM UJACxdhnME44e0sE/suXQAeiMW4Ib7CKa7xx4IgTTw2cFtI2BmHK6riqW c=; IronPort-SDR: F9CLz6y3IrEhyxpRN784UtvWMqWOfXnbUcR98YjCf+RgGtuAUdx/g2PjEgAKVmUDqflDaEAe56 qDocL2B+R9DQ== X-IronPort-AV: E=Sophos;i="5.69,390,1571702400"; d="scan'208";a="11421828" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1e-27fb8269.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP; 03 Jan 2020 15:07:44 +0000 Received: from u7588a65da6b65f.ant.amazon.com (iad7-ws-svc-lb50-vlan3.amazon.com [10.0.93.214]) by email-inbound-relay-1e-27fb8269.us-east-1.amazon.com (Postfix) with ESMTPS id 41B93A05E2; Fri, 3 Jan 2020 15:07:39 +0000 (UTC) Received: from u7588a65da6b65f.ant.amazon.com (localhost [127.0.0.1]) by u7588a65da6b65f.ant.amazon.com (8.15.2/8.15.2/Debian-3) with ESMTPS id 003F7b23020436 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 3 Jan 2020 16:07:37 +0100 Received: (from jschoenh@localhost) by u7588a65da6b65f.ant.amazon.com (8.15.2/8.15.2/Submit) id 003F7ah5020431; Fri, 3 Jan 2020 16:07:36 +0100 From: =?UTF-8?q?Jan=20H=2E=20Sch=C3=B6nherr?= To: Borislav Petkov Cc: =?UTF-8?q?Jan=20H=2E=20Sch=C3=B6nherr?= , Yazen Ghannam , linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, Tony Luck , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org Subject: [PATCH v2 0/6] x86/mce: Various fixes and cleanups for MCE handling Date: Fri, 3 Jan 2020 16:07:16 +0100 Message-Id: <20200103150722.20313-1-jschoenh@amazon.de> X-Mailer: git-send-email 2.22.0.3.gb49bb57c8208.dirty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Boris. This is the 2nd iteration of a smallish series with some fixes/cleanups for the handling of MCEs. It should apply cleanly to your ras/core branch. The first iteration can be found here: https://lore.kernel.org/linux-edac/20191217073414.GB28788@zn.tnic/T/ Changes v1 -> v2: - dropped patches 3, 5, 6 as you already cherry-picked them into ras/core or ras/urgent (this renumbers patch 4 in v1 to patch 3 in v2); - addressed remaining comments on patches 1-3; - added patch 5 as per Yazen's comment that the SRAO notifier shall not be used on AMD for now; - added patch 4 as a prerequisite for the given realization of patch 5; - added patch 6 as an example, what else can be done due to patch 4. See individual patches 1-3 for more detailed comments on changes. I'm not yet convinced, that patch 6 is an entirely good idea. I've still included it for discussion. If we end up not doing something like it, we can as well rewrite patch 5 to be just another "if" within srao_decode_notifier()/uc_decode_notifier(). Regards Jan Jan H. Schönherr (6): x86/mce: Take action on UCNA/Deferred errors again x86/mce: Make mce=nobootlog work again x86/mce: Fix use of uninitialized MCE message string x86/mce: Allow a variable number of internal MCE decode notifiers x86/mce: Do not take action on SRAO/Deferred errors on AMD for now x86/mce: Dynamically register default MCE handler arch/x86/include/asm/mce.h | 2 +- arch/x86/kernel/cpu/mce/core.c | 145 ++++++++++++++++++--------------- 2 files changed, 81 insertions(+), 66 deletions(-) -- 2.22.0.3.gb49bb57c8208.dirty