From patchwork Mon Aug 28 17:09:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tyler Baicar X-Patchwork-Id: 9925875 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3C8DF60311 for ; Mon, 28 Aug 2017 17:09:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FF3728765 for ; Mon, 28 Aug 2017 17:09:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1467A28766; Mon, 28 Aug 2017 17:09:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A83728766 for ; Mon, 28 Aug 2017 17:09:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751232AbdH1RJt (ORCPT ); Mon, 28 Aug 2017 13:09:49 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:50034 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750866AbdH1RJs (ORCPT ); Mon, 28 Aug 2017 13:09:48 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id DA72B6072E; Mon, 28 Aug 2017 17:09:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1503940187; bh=ymvNBwDZnaDaONCUNMIh/BOzyYcGHGWW8TCZx/tZGV8=; h=From:To:Cc:Subject:Date:From; b=X9pVO1smg0h6IO+C6OUkITY0FPT3doke8yhrpPD7DEwOgDLwZSSmxZvDx3mBdi+A2 VryJYU0yl8V9xlm56rnqAQwZ2e6piJ87qOkOTII/mQDF/lbeVhXouK7PCrk0hbei1v 5KUocEeDqC/5Z2FiA/yTvEVCFx19ZSnDB44yyvEI= Received: from tbaicar-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: tbaicar@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id DEAF3606B7; Mon, 28 Aug 2017 17:09:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1503940187; bh=ymvNBwDZnaDaONCUNMIh/BOzyYcGHGWW8TCZx/tZGV8=; h=From:To:Cc:Subject:Date:From; b=X9pVO1smg0h6IO+C6OUkITY0FPT3doke8yhrpPD7DEwOgDLwZSSmxZvDx3mBdi+A2 VryJYU0yl8V9xlm56rnqAQwZ2e6piJ87qOkOTII/mQDF/lbeVhXouK7PCrk0hbei1v 5KUocEeDqC/5Z2FiA/yTvEVCFx19ZSnDB44yyvEI= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DEAF3606B7 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 From: Tyler Baicar To: bhelgaas@google.com, jonathan.derrick@intel.com, keith.busch@intel.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Tyler Baicar Subject: [PATCH] PCI/AER: don't call recovery process for correctable errors Date: Mon, 28 Aug 2017 11:09:44 -0600 Message-Id: <1503940184-29423-1-git-send-email-tbaicar@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Correctable errors do not need any software intervention, so avoid calling into the software recovery process for correctable errors. Signed-off-by: Tyler Baicar --- drivers/pci/pcie/aer/aerdrv_core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index b1303b3..4765c11 100644 --- a/drivers/pci/pcie/aer/aerdrv_core.c +++ b/drivers/pci/pcie/aer/aerdrv_core.c @@ -626,7 +626,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); } }