Received: by 10.192.165.148 with SMTP id m20csp1932602imm; Thu, 26 Apr 2018 04:23:19 -0700 (PDT) X-Google-Smtp-Source: AIpwx49lQUkE+w78WPiWdbkBrwd1xMz+s5nV98+kOLZhvQQOavp/mGAa8zOLqzSqxfvR7d6geSgM X-Received: by 10.167.129.85 with SMTP id d21mr31530681pfn.79.1524741799798; Thu, 26 Apr 2018 04:23:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524741799; cv=none; d=google.com; s=arc-20160816; b=c4cPo0olR2ghuOeo8rQkRyCGlZeVvFf709soymILjXC43UsPTgdjddfZffj+HbQKue OvQJZ6mHr2SKYMVsaxO3+ECUdYyRBlYSJNIZbmzYoGpBItBQZbvOuv/VAaaozyVNezqG DIEJWE273PRVerGvxZMY+7z0eRbo8LQwwFWurdICfKa2TiNLRizDCg1F3H1e1Rkh7PQo YOerujjJ1N1wFRGRHPsMvFfGdmQtg5TWzwFBnf0DvGJR5KCv8o/o5DDuCbH2+Vto5UhA Lfgj+dvkcgQSz94NCJ5Axg85TLuWtaQSj9hPVjh5eACkw/s3vzFD9PjU1uBsW9R630rA BGoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=CHdx7LshUTzAmb7hdaMN0BG1PYM4h3tuYxDTfHM1b5c=; b=OxGgvZxtHti9X5136HFmWTH6CnVZZxIL9sh3fhy/fGSXCW+F/Crj0iykr53W0zf/4g tlu1eT/lnagsLG1can2m8H6Nkpp+af94D6CzgXM6Ajd6ilYldl+hw0c/yDeqLPeCePmo Mn/+rH3dmPYPSo8MMRZ8uKOsRfuR4sM+OCRpwy1O8PFORaIlBZA9i6yrHhhD+4eSl7cr mwlH33pot6wM8zMQ98gPXCUKJF9TU2dGoGJZk5kzRUUeB5dQbo1PncBGpJqNmZ74bA/n plwOUwUBrjnVBsCCwe/c57LTeRgcTvtjoLJs8iz/kadTB+LAFiGd97Ug1y0Gc5j5JCCL kA+A== 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 o63si5629859pga.584.2018.04.26.04.23.04; Thu, 26 Apr 2018 04:23:19 -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 S1755764AbeDZLVq (ORCPT + 99 others); Thu, 26 Apr 2018 07:21:46 -0400 Received: from mail.skyhub.de ([5.9.137.197]:43906 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755363AbeDZLV0 (ORCPT ); Thu, 26 Apr 2018 07:21:26 -0400 X-Virus-Scanned: Nedap ESD1 at mail.skyhub.de Received: from mail.skyhub.de ([127.0.0.1]) by localhost (blast.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 1_5gEyfqB6qg; Thu, 26 Apr 2018 13:21:09 +0200 (CEST) Received: from pd.tnic (p200300EC2BC8F90010D6750E125BA95E.dip0.t-ipconnect.de [IPv6:2003:ec:2bc8:f900:10d6:750e:125b:a95e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 953D91EC020C; Thu, 26 Apr 2018 13:21:09 +0200 (CEST) Date: Thu, 26 Apr 2018 13:20:57 +0200 From: Borislav Petkov To: Alexandru Gagniuc Cc: linux-acpi@vger.kernel.org, linux-edac@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Tony Luck , 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: Re: [RFC PATCH v3 3/3] acpi: apei: Warn when GHES marks correctable errors as "fatal" Message-ID: <20180426112057.GB15009@pd.tnic> References: <20180416215903.7318-1-mr.nuke.me@gmail.com> <20180425203957.18224-1-mr.nuke.me@gmail.com> <20180425203957.18224-4-mr.nuke.me@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180425203957.18224-4-mr.nuke.me@gmail.com> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 25, 2018 at 03:39:51PM -0500, Alexandru Gagniuc wrote: > 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"); Pasting the same comment from last time since you missed it: "No, I don't want any of that crap issuing stuff in dmesg and then people opening bugs and running around and trying to replace hardware. We either can handle the error and log a normal record somewhere or we cannot and explode. The complaining about the FW doesn't bring shit." -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.