Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1001750imm; Fri, 11 May 2018 09:32:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrq5gotqZwT3Qxpqeqrmw53VeP46gMRjOeWbdbXZEeyADnhCGfJ4NYxmSFzwUiDlb3jvXWI X-Received: by 2002:a17:902:7406:: with SMTP id g6-v6mr5953084pll.237.1526056349619; Fri, 11 May 2018 09:32:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526056349; cv=none; d=google.com; s=arc-20160816; b=yQhO9hKiESbnGfMwVpPr37ETQJUAniAY/isQ4Qm3u14SEYYlgCU86l2caBsKKPHo9c /sH+c8ONz/NlLjXqO7T+5tiSsPHNMvUxhrD5jw+TyT+KBwXDkgRIUEbfyUBECErezNQk bAOtu7livE40mPNOT2mgs0dE4HnuLuoGcSBHJ5X2EmkiMRYbHjhoDg6nx45VZ2wEHgvx 9kQmpLylSf01ppf+R/bZePqklR8T4pRzjhd3uDFlzenacTIjCtzuoIIUE3u9wyf3pX8N Sdk/1aU2/nqXgqhQk/C9vvGxBEwQF8lZwlg3+J744FoequMXwXhJKYoqEdsJyL2LSXXh hAfQ== 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=kXOzf8im5rJbUzXbFfweT/sBh9KqPwGKNtckKE0Bs1g=; b=UiUsa5q/vkn9LS8QnaHzpQM3hadWSmxvp2NbmQkaTjcPYVdttk88509BdvCHr5BntU ceHZv9JvpflKD1tmV0BYrlf+N0lP07RwDyjk7Nt198f1/bUiB18ptPbIfydil726f6ZE HoVomcqtX7IhWGPhsLN0oNq7Hvj9uqNIdCH0FQcMA98EI7bHEbgxINSmjF4R5DUND6Yd KeTPv6Ua9yJP2hHJ86KQDi3C2xjxrOvxQ9vrOECBB0HMtfZ0XOiZ2+OF7UC6++upXkBV pUdcNYg7k10fLPvAUohenHcYdOExXhXKvleWMz2UmIo0s+D66q3ypKkBv6ua8yLc4vGp tP9Q== 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 1-v6si3300857plk.521.2018.05.11.09.32.14; Fri, 11 May 2018 09:32:29 -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 S1752142AbeEKQaT (ORCPT + 99 others); Fri, 11 May 2018 12:30:19 -0400 Received: from mail.skyhub.de ([5.9.137.197]:58666 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750950AbeEKQaR (ORCPT ); Fri, 11 May 2018 12:30:17 -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 nHNdHXn-9BFe; Fri, 11 May 2018 18:29:59 +0200 (CEST) Received: from pd.tnic (p200300EC2BCAC2007194A577202112A7.dip0.t-ipconnect.de [IPv6:2003:ec:2bca:c200:7194:a577:2021:12a7]) (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 183681EC0609; Fri, 11 May 2018 18:29:59 +0200 (CEST) Date: Fri, 11 May 2018 18:29:51 +0200 From: Borislav Petkov To: "Alex G." Cc: alex_gagniuc@dellteam.com, austin_bolen@dell.com, shyam_iyer@dell.com, "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-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, devel@acpica.org Subject: Re: [RFC PATCH v4 3/3] acpi: apei: Do not panic() on PCIe errors reported through GHES Message-ID: <20180511162951.GH12705@pd.tnic> References: <20180430212836.7807-1-mr.nuke.me@gmail.com> <20180430213358.8319-1-mr.nuke.me@gmail.com> <20180430213358.8319-3-mr.nuke.me@gmail.com> <20180511154039.GD12705@pd.tnic> <8e3c0cc6-9c5c-85ce-650c-8f498f5907da@gmail.com> <20180511160253.GF12705@pd.tnic> <45b7be09-c9b3-8006-6ea0-36b4ff38607c@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <45b7be09-c9b3-8006-6ea0-36b4ff38607c@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 Fri, May 11, 2018 at 11:12:25AM -0500, Alex G. wrote: > > I think *you* didn't get it: IS_ENABLED(CONFIG_ACPI_APEI_PCIEAER) is not > > enough of a check to confirm that there actually *is* an AER driver to > > handle the errors. If you really want to make sure the driver is loaded > > and functioning, then you need an explicit registering mechanism or some > > other way of checking it really is there and handling errors. > > config ACPI_APEI_PCIEAER > bool "APEI PCIe AER logging/recovering support" > depends on ACPI_APEI && PCIEAER > help > PCIe AER errors may be reported via APEI firmware first mode. > Turn on this option to enable the corresponding support. > > PCIAER is not modularizable. QED QED my ass. Read the f*ck my email again: the presence of the *code* is not enough of a check to confirm the error has been handled. aer_recover_work_func() can fail as that kfifo_put() in aer_recover_queue() can too. You need an *actual* confirmation that the error has been handled properly and *only* *then* not panic the system. Otherwise you are potentially leaving those errors unhandled. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.