Received: by 10.192.165.148 with SMTP id m20csp1164839imm; Wed, 25 Apr 2018 13:42:08 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+UgY4fxTV6T2sZEOzKknvtBs2VEaY5MUZFCz6WVJeIKdoI2rlZr9eDG17WMLWVjgXPCCK9 X-Received: by 2002:a17:902:bd03:: with SMTP id p3-v6mr30665827pls.236.1524688928026; Wed, 25 Apr 2018 13:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524688927; cv=none; d=google.com; s=arc-20160816; b=CYA5wGg3LJFtaOQlzu9xZ3LSueUP6qYkWbKjOFKZM1WRHaVonoHqNGyqEnjI3lPzae x7wdCWX1KTp9rASibVVsz5kozIuQoMaea4Dxixb+kjPUibTWjNJmS+Xtx2tL2AAZbd9r IqOWz8ObY/aAYYGV+C4umlwPuF0z3WFI0FigHssLBq9VH+73HUMWfAeAVk/iuGutxzuL KxmHkXUqLBMr2OZXksW6qwzR1dGjYmtQzNt4mUaZmxvZelMlF3kdJbTzXjpshBjEzUOU FfItT+JH4NI1BNTIprYBukiHP/xkS9bHRZYevGOxlMDeNoATePLZiqaSzW2I0u8Thrt2 BF/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=9K0MVqB99bTtNuDoN7tXdHes/412/42zKxNaMm5+sGI=; b=xAfcVNU4/7V5ZERLxBn48rXx2kWjMZEzhKBdFsfGs5XmydJq9c7Vn1rsH1vdwOTCCF nWMykvAqynRC3A4zewtBZt89KaZ/HT7wKSSp2gDslCnzl7j7boOd5yvCnO1E8El3NeQZ wA4U6FtLaYVv1rlTFz6M2epjkzX3CvfhCSrBvgG1+D60x1ZcmkYJDLHeDRpj3j8mc9nt V4vX7oCmlxphJjMFv60yTOBF/eCypDZrjyf/1c2+/d8gP5zGADUv99kdQmLH8k6c021B 2tapAelubZEavSbgIArey9OAIYH0RHuGF1zAKUZU02bUdOOtF0tUSe/9kzyI2ZW34by4 197w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WbCLnp+n; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v12-v6si18177410plg.180.2018.04.25.13.41.54; Wed, 25 Apr 2018 13:42:07 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WbCLnp+n; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751659AbeDYUkf (ORCPT + 99 others); Wed, 25 Apr 2018 16:40:35 -0400 Received: from mail-ot0-f195.google.com ([74.125.82.195]:37273 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751022AbeDYUka (ORCPT ); Wed, 25 Apr 2018 16:40:30 -0400 Received: by mail-ot0-f195.google.com with SMTP id 77-v6so20774983otd.4; Wed, 25 Apr 2018 13:40:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9K0MVqB99bTtNuDoN7tXdHes/412/42zKxNaMm5+sGI=; b=WbCLnp+ndHHTCP2ZOvN1crJ34nWxQ2nDcC0pFi5R1h2dHPUxTZErhTMl8/Men/OiJ5 bUjiYsfV6oA4T8KLvhVEnu+b3onwMbZ2yI5rXkgSbvPARkQHaFqZ8aoFIxQPPGwcMYba omFp3JhVP2HwAmoX7TDvfxvOAjApXBnJ+D+PMRaGDURDptqTZxQjI2IUy+ZOs5iEAqM8 HdOTWNW9CRhGj8T54bDOOZ2UH2zPxyAVIfxwL+M+k/o8/X1SBClzD9ji5qrlXmZiTha1 aHFZn5fhO8czjhxRaPC8g2OxKatxX9e5anhPbJIn0DPRrppHTod7lYc50XTqtNAvtAch 6bnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9K0MVqB99bTtNuDoN7tXdHes/412/42zKxNaMm5+sGI=; b=LhH/47KOvqHzXa+qRQ5Td3+h8us79qwd4yVV383e9w4yvgH8Phbb7rU/QxwMudhh9U 3PQuC3cK1RJT5ar4BLPiKoyuiZZu1pgti7eigGYrkbbAaYyh3xYBScGbK0+bzNIoT/Pa Z0NAUUaJpQIgNDF7+cD9yLwTJSAaiGc856kWFZzaLilNK3IZ6xKtDH06RQug1qOfuvZE A1dRud94k7ZzewSHLMJIhdsJv8RlycMq1ikdewx4D72sxfclu6JpMwgV5uwuP8kMxVQ5 gybvqbvnhyUCEPa6Sb9d2nSi9BKgHG2RyCGmWjFkq9nwnq8ZXohjEXIrsI0OdiRUDOKz OAkQ== X-Gm-Message-State: ALQs6tAW9X1lh+IMmWMUSc3Id8N9y7A3CDiHJldLccEDTgegbij4CAs9 Q6Mzqex8BX2mX02t4ukf1e+bJJHj X-Received: by 2002:a9d:53cd:: with SMTP id i13-v6mr13325784oth.181.1524688829153; Wed, 25 Apr 2018 13:40:29 -0700 (PDT) Received: from nuclearis2_1.lan (c-98-197-2-30.hsd1.tx.comcast.net. [98.197.2.30]) by smtp.gmail.com with ESMTPSA id o189-v6sm9729908oia.19.2018.04.25.13.40.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Apr 2018 13:40:28 -0700 (PDT) From: Alexandru Gagniuc To: linux-acpi@vger.kernel.org, linux-edac@vger.kernel.org Cc: Alexandru Gagniuc , "Rafael J. Wysocki" , Len Brown , Tony Luck , Borislav Petkov , Mauro Carvalho Chehab , Robert Moore , Erik Schmauss , Tyler Baicar , Will Deacon , James Morse , Shiju Jose , "Jonathan (Zhixiong) Zhang" , Dongjiu Geng , linux-kernel@vger.kernel.org, devel@acpica.org Subject: [RFC PATCH v3 3/3] acpi: apei: Warn when GHES marks correctable errors as "fatal" Date: Wed, 25 Apr 2018 15:39:51 -0500 Message-Id: <20180425203957.18224-4-mr.nuke.me@gmail.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180425203957.18224-1-mr.nuke.me@gmail.com> References: <20180416215903.7318-1-mr.nuke.me@gmail.com> <20180425203957.18224-1-mr.nuke.me@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There seems to be a culture amongst BIOS teams to want to crash the OS when an error can't be handled in firmware. Marking GHES errors as "fatal" is a very common way to do this. However, a number of errors reported by GHES may be fatal in the sense a device or link is lost, but are not fatal to the system. When there is a disagreement with firmware about the handleability of an error, print a warning message. Signed-off-by: Alexandru Gagniuc --- drivers/acpi/apei/ghes.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/acpi/apei/ghes.c b/drivers/acpi/apei/ghes.c index 8ccb9cc10fc8..34d0da692dd0 100644 --- a/drivers/acpi/apei/ghes.c +++ b/drivers/acpi/apei/ghes.c @@ -539,6 +539,12 @@ static void ghes_do_proc(struct ghes *ghes, sec_sev, err, gdata->error_data_length); } + + } + + if ((sev >= GHES_SEV_PANIC) && (ghes_actual_severity(ghes) < sev)) { + pr_warn("FIRMWARE BUG: Firmware sent fatal error that we were able to correct"); + pr_warn("BROKEN FIRMWARE: Complain to your hardware vendor"); } } -- 2.14.3