Received: by 10.223.164.202 with SMTP id h10csp358997wrb; Mon, 13 Nov 2017 07:35:52 -0800 (PST) X-Google-Smtp-Source: AGs4zMbK5Z+mGRciGRQSPtuhBBqupNvc2AWlVku8Y+kVlwS6kdaU51gSyhuIhwVZIAb6xMukP3cd X-Received: by 10.98.58.29 with SMTP id h29mr7852818pfa.121.1510587352234; Mon, 13 Nov 2017 07:35:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510587352; cv=none; d=google.com; s=arc-20160816; b=mkQwzKxmWIhZzpHuNnZMqhaL44k5KgtzCNimWq++4dCorh+NfvPCzE3Z5Z+P2jmwco g5PUt9/Eo3shozpTI2mlFskFmk4nuWRg1RyXgu/0jZJeBiricHm9q0rOPk6evU7pi5FR MmatM4eVtQqr7sRUaKSdE5igYzd0/27xYbYDxktzni3soS9hLauHaHtsw/4y8o4YAvbd Gm6GdGVvjz0G5Zrh8VuNFfMuM6epoOZxzLsLqdtn6Vzr7jgZVbCXKOTyBiWm80oNVceq zbxUaHI9ACfuk0kx6N/Rs094TJn3ufEekJaB4hK9EL2bw4j3LCiaEzrHzpHFwqrsixG0 hNwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dmarc-filter:dkim-signature :dkim-signature:arc-authentication-results; bh=PvfXaZXzu9t/kZxowcV96c6luBHshj62OuMQh+wRKlE=; b=bBSmP4ehQRKdeX+0UAtK1durM13ZfBuzJubsz+4EjcW2wud+KnKNn+maR3MM02DTvL GqMYK1t8sr7xmQFe7Mva86IxU1zsa/+knKvXfi0EyAHcveZ0Ljo4yn2UV9IT68xn8BQT ayTHRq/0u3zgYwlQewL711nYf9HhaNFhitaP1DSZJdTBz7iPmvniUVOKq65ZNeTxJGND W/Omx1e9HyP70C3DJEw0p1D73Ml6MFqKt5PoS9XeH7VAb2Z/+FGgm8kXozl2b74KeQHI k2NuQz2oJshHRa+AY+0KE7RyrInG+Z59YuLyMK+QqjnSb58gtL4s5VGepJtKvOmKTUep Camw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=nAmIxMN4; dkim=pass header.i=@codeaurora.org header.s=default header.b=SqJQZq3P; 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 z19si15971637pff.195.2017.11.13.07.35.39; Mon, 13 Nov 2017 07:35:52 -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=@codeaurora.org header.s=default header.b=nAmIxMN4; dkim=pass header.i=@codeaurora.org header.s=default header.b=SqJQZq3P; 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 S1753202AbdKMPfD (ORCPT + 88 others); Mon, 13 Nov 2017 10:35:03 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:33682 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751605AbdKMPfC (ORCPT ); Mon, 13 Nov 2017 10:35:02 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id AB3DB6081B; Mon, 13 Nov 2017 15:35:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1510587301; bh=5vMZHFHSwQ+w0KxAuMxPyED+euUCQF9GlLHBjNqY9BA=; h=Subject:To:References:From:Date:In-Reply-To:From; b=nAmIxMN4E/Bdqw/klR20MJcbmQV2G93AzjfJBUfO+uQDpzggSqZgRXZsLQQWEUle1 aBm7UdwKMBffLaLk6onB4lfz4olQ9fLd9iHvQOitCpw0Ze31pp1ytQpp7AIR4CHbZz klCowlYE9T4nPdfofHqYTYIlKIXtbg0XKBS/QYnQ= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [10.235.228.46] (global_nat1_iad_fw.qualcomm.com [129.46.232.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: tbaicar@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id D4F3560313; Mon, 13 Nov 2017 15:34:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1510587300; bh=5vMZHFHSwQ+w0KxAuMxPyED+euUCQF9GlLHBjNqY9BA=; h=Subject:To:References:From:Date:In-Reply-To:From; b=SqJQZq3PqWegpSixVZXo0yjoX+BWEV0CsbA/ZHY3d9QLzMN5ndGxK07bWcvzA3/2J wAVoOXLDT6I90tOxgai50dXbx39Gv1ZhN/sE3FDM7wGsGvOjIxKvEMq1YItONGXM4c MYVjmoaLnodC8Bdrc405E9EWW1f89agGtosFdH7k= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org D4F3560313 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=tbaicar@codeaurora.org Subject: Re: [PATCH V3 2/2] acpi: apei: call into AER handling regardless of severity To: Dongdong Liu , rjw@rjwysocki.net, tony.luck@intel.com, bp@alien8.de, bp@suse.de, will.deacon@arm.com, james.morse@arm.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Helgaas References: <1510168392-30114-1-git-send-email-tbaicar@codeaurora.org> <1510168392-30114-3-git-send-email-tbaicar@codeaurora.org> From: Tyler Baicar Message-ID: Date: Mon, 13 Nov 2017 10:34:58 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/13/2017 7:36 AM, Dongdong Liu wrote: > > 在 2017/11/9 3:13, Tyler Baicar 写道: >> Currently the GHES code only calls into the AER driver for >> recoverable type errors. This is incorrect because errors of >> other severities do not get logged by the AER driver and do not >> get exposed to user space via the AER trace event. So, call >> into the AER driver for PCIe errors regardless of the severity > > It will also call do_recovery() regardless of the severity for AER correctable > errors. > Correctable errors include those error conditions where hardware can recover > without any loss of information. > Hardware corrects these errors and software intervention is not required. > So we'd better modify the code as below. > diff --git a/drivers/pci/pcie/aer/aerdrv_core.c > b/drivers/pci/pcie/aer/aerdrv_core.c > index 7448052..a7f77549 100644 > --- a/drivers/pci/pcie/aer/aerdrv_core.c > +++ b/drivers/pci/pcie/aer/aerdrv_core.c > @@ -633,7 +633,8 @@ static void aer_recover_work_func(struct work_struct *work) >                         continue; >                 } >                 cper_print_aer(pdev, entry.severity, entry.regs); > -           do_recovery(pdev, entry.severity); > +         if(entry.severity != AER_CORRECTABLE) > +                 do_recovery(pdev, entry.severity); >                 pci_dev_put(pdev); >         } >  } Hello Dongdong, Yes, I have a patch for this that needs to be picked up. https://lkml.org/lkml/2017/8/28/848 Thanks, Tyler -- Qualcomm Datacenter Technologies, Inc. as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project. From 1583954444323732921@xxx Mon Nov 13 12:37:51 +0000 2017 X-GM-THRID: 1583526487899117441 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread