Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2756667pxk; Tue, 15 Sep 2020 01:11:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQ6JAPAenq/eHnZuameK7aYC+9JQAySWEcLZDh/fm0BVgaJT6E+x/7PI9kgMaFJl0OGbU+ X-Received: by 2002:a17:906:14c9:: with SMTP id y9mr19651147ejc.523.1600157510468; Tue, 15 Sep 2020 01:11:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600157510; cv=none; d=google.com; s=arc-20160816; b=QM9kmPmDBT1id/obhRNqBnS4D/NsYjTjNZdLDyVwAbyQfv8MCkGqkdbZqXAkfM6gSn MTVahIBIXA30o2PtO/HNfOuR1a4Ni7oTZE0xJdiwND2sDnYfPoxnNX0FuGaJLNBbIzq+ sqdi31h86i3j7tw6x0NAb5TqmN5ubqU0YQ/bAzIMT5Rjq9jLLNrOm8vd0ASamQD0Dgcu pfnYRJP5sagEz+ITukUg+bSTPkp5zDrgVzJuGipd4OPZNOaYUgEzWn0Szxw+GPtBKo1R nbXoYfVgAEdxXHTUQxVjz+Pfcl/9OiPeRTAujF07SfqRCiA2EbMvJTRj1JR0uFpdlflj S+uw== 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 :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=0tAluLr+hpcUW2KTiV7mUpAEJ4g/emUKb1LOH131BW0=; b=erWeGQvMGUZwFCgUzhKXSCbUq5ka2c5PcFvN44GjgiKY8kz75zB1U13wn3/tPHHHC6 CmerkWIFCsGlyVPgzRcU0CbbWVM6spdjB+fvXkKRslEj/TSWbg9/rq1uPTLIh4uNIbzI EG3Z9ipUCQghiCO4KRrw63Evqev+pNbgir25ZYJDdNu9KVMT5QIqqykqJBB3llaclpWU DclLhyPEmSFQd8Hr5Ns2BLNVUwCud2hR3VCLQxnk/SnvMr02lX+Uv/Hzka2p0uKRTJaD xStIi1EgxalWN6nRwlcD1aEpLQN8Jq9HKpaIAK0p2cgOgnB7vigvSYx+chGAlHZQUgIa WJDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=MwlNkD4I; dkim=neutral (no key) header.i=@vger.kernel.org; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q14si8425763ejc.297.2020.09.15.01.11.27; Tue, 15 Sep 2020 01:11:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=MwlNkD4I; dkim=neutral (no key) header.i=@vger.kernel.org; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726095AbgIOIJS (ORCPT + 99 others); Tue, 15 Sep 2020 04:09:18 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:40320 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726122AbgIOIHy (ORCPT ); Tue, 15 Sep 2020 04:07:54 -0400 Date: Tue, 15 Sep 2020 08:07:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1600157272; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0tAluLr+hpcUW2KTiV7mUpAEJ4g/emUKb1LOH131BW0=; b=MwlNkD4I5JhQqf/0psL3bq1bCr5hjazHBcHm0PLo4urMkhVc+KpbqSnY5XXMvkOR7TwESJ R/J0bG96hMoIshetnp5qoA7UtxgZ6eFoGKqPWbGLZu7/8tpH47RIKlPMapiG9FVWyI1RKv DNPhj5BasIEM2bioVKOmR9TRJEVF1fl8NXjDX2h8G+I2jHFsMiyCfjNPXP7Tfj9O7aksVc /kP+qiJ96kda9SGjgDL2fvn6QKBm/Z8orPeIpDt0buIguerBqgncyzZb6rEfIii/jg/CTh IryDvI4BZVMqsMKRO2jp8JlqDlN+gJy4RwCEzgPimxU1vdAvPEulsGWkGQpD+Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1600157272; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0tAluLr+hpcUW2KTiV7mUpAEJ4g/emUKb1LOH131BW0=; b=HUB6mMNPfG+UhllbD5asGr/MXLztplujnjcJN4NH/vMzAvsBGGBmC8VIRNRa3RzpEWDvAW 6ZX7v7AXupEoY8CA== From: "tip-bot2 for Smita Koralahalli" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: ras/core] x86/mce/dev-mcelog: Do not update kflags on AMD systems Cc: Smita Koralahalli , Borislav Petkov , x86 , LKML In-Reply-To: <20200903234531.162484-3-Smita.KoralahalliChannabasappa@amd.com> References: <20200903234531.162484-3-Smita.KoralahalliChannabasappa@amd.com> MIME-Version: 1.0 Message-ID: <160015727115.15536.4953630545422945759.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the ras/core branch of tip: Commit-ID: dc0592b73715c8e84ad8ebbc50c6057d5e203aac Gitweb: https://git.kernel.org/tip/dc0592b73715c8e84ad8ebbc50c6057d5e203aac Author: Smita Koralahalli AuthorDate: Thu, 03 Sep 2020 18:45:31 -05:00 Committer: Borislav Petkov CommitterDate: Tue, 15 Sep 2020 10:04:51 +02:00 x86/mce/dev-mcelog: Do not update kflags on AMD systems The mcelog utility is not commonly used on AMD systems. Therefore, errors logged only by the dev_mce_log() notifier will be missed. This may occur if the EDAC modules are not loaded, in which case it's preferable to print the error record by the default notifier. However, the mce->kflags set by dev_mce_log() notifier makes the default notifier skip over the errors assuming they are processed by dev_mce_log(). Do not update kflags in the dev_mce_log() notifier on AMD systems. Signed-off-by: Smita Koralahalli Signed-off-by: Borislav Petkov Link: https://lkml.kernel.org/r/20200903234531.162484-3-Smita.KoralahalliChannabasappa@amd.com --- arch/x86/kernel/cpu/mce/dev-mcelog.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/cpu/mce/dev-mcelog.c b/arch/x86/kernel/cpu/mce/dev-mcelog.c index 03e5105..100fbee 100644 --- a/arch/x86/kernel/cpu/mce/dev-mcelog.c +++ b/arch/x86/kernel/cpu/mce/dev-mcelog.c @@ -67,7 +67,9 @@ static int dev_mce_log(struct notifier_block *nb, unsigned long val, unlock: mutex_unlock(&mce_chrdev_read_mutex); - mce->kflags |= MCE_HANDLED_MCELOG; + if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD) + mce->kflags |= MCE_HANDLED_MCELOG; + return NOTIFY_OK; }