Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1741360imm; Wed, 6 Jun 2018 23:01:33 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLO0U59XxlHjCePn8PR/8qA3+I7TZdTfFe8doGNST1tgv8qGrJinLOrnX7N0THtRcTF+1yU X-Received: by 2002:a17:902:5597:: with SMTP id g23-v6mr577528pli.99.1528351292996; Wed, 06 Jun 2018 23:01:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528351292; cv=none; d=google.com; s=arc-20160816; b=Db6udOgD7Mc/as8azmmD6idJfnJD2LZbp+Er0caz1GP1ITNwPhyjRrBcRhgHXVEmy6 8nKeizasVhMdaUgYq/NdglyKaKVZs5EFRPjvXztwa7yCGEuaLjIVegjqSrA7gY9uYc1g EXVa8ZrPsHWDimfevazVOxa0ahV9eOGEulHh1vn1GVzCr+qR9lzZVMVkSdqCO+/DySg9 PCcgUdFN0ZBI2G+a995bxzndgb3nRQZYWQG0WUWx0O6WLNmKfJcRA857gFpduReD4mOL YihUMWG3vwtqZ3S7wuo/T0J5VBdTf0u36gTMzCcAwUW/FI1YxbGc+rtZ1ZMJAVdHtYZ2 npSw== 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:arc-authentication-results; bh=7zs6zRUXUy0K8HmctsmNNtR+86c70DbvBbYWru4aKfQ=; b=Zr00pYjBhCz+Yig1eE5q5T99CyYp1lGQpys8VtTujAY6zGWp6Rcw74/zwau3b9JWLp w0kkZmJa0RJReEoFx0tFZDNgvKwzqKw4gsK6Z2xfXe5jvnxbt3qnEscBKNqqF7iFIU5c gTH2rfY2rQh/d6ccR2CqwmTrlJ4Pmu+lha6bYvEP03Vp9xbUFVJp+RQ/QTlSIkw7VfrC RHoRYqvJg1/MLEzCBCZZnOl/RI+lYsHtGt7v9dzy4GZ4arLgbMQvpA3UUwIVVvIKluCp TBnKeooCJsTFM1Qz6BXizd9A/A4Ec0dOR+U7ymzlkGyCIPoJgf7Bq+jX8wbmQuWuQgzF jSWA== 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 8-v6si53595486plc.444.2018.06.06.23.01.18; Wed, 06 Jun 2018 23:01:32 -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 S1753004AbeFGGAn (ORCPT + 99 others); Thu, 7 Jun 2018 02:00:43 -0400 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:20156 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751513AbeFGGAi (ORCPT ); Thu, 7 Jun 2018 02:00:38 -0400 X-IronPort-AV: E=Sophos;i="5.49,486,1520924400"; d="scan'208";a="4326796" Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-02.qualcomm.com with ESMTP; 06 Jun 2018 23:00:38 -0700 Received: from westreach.qualcomm.com ([10.228.196.125]) by ironmsg02-sd.qualcomm.com with ESMTP; 06 Jun 2018 23:00:36 -0700 Received: by westreach.qualcomm.com (Postfix, from userid 467151) id D61681F2C; Thu, 7 Jun 2018 02:00:35 -0400 (EDT) From: Oza Pawandeep To: Bjorn Helgaas , Philippe Ombredanne , Thomas Gleixner , Greg Kroah-Hartman , Kate Stewart , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Dongdong Liu , Keith Busch , Wei Zhang , Sinan Kaya , Timur Tabi Cc: Oza Pawandeep Subject: [PATCH NEXT 3/6] PCI/ERR: Cleanup ERR_FATAL of error broadcast Date: Thu, 7 Jun 2018 02:00:31 -0400 Message-Id: <1528351234-26914-3-git-send-email-poza@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528351234-26914-1-git-send-email-poza@codeaurora.org> References: <1528351234-26914-1-git-send-email-poza@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ERR_FATAL is handled by resetting the Link in software, skipping the driver pci_error_handlers callbacks, removing the devices from the PCI subsystem, and re-enumerating, so now no more ERR_FATAL handling is required inside pci_broadcast_error_message() Signed-off-by: Oza Pawandeep diff --git a/drivers/pci/pcie/err.c b/drivers/pci/pcie/err.c index 00d2875..3998ed7 100644 --- a/drivers/pci/pcie/err.c +++ b/drivers/pci/pcie/err.c @@ -259,15 +259,10 @@ static pci_ers_result_t broadcast_error_message(struct pci_dev *dev, /* * If the error is reported by an end point, we think this * error is related to the upstream link of the end point. + * The error is non fatal so the bus is ok, just invoke + * the callback for the function that logged the error. */ - if (state == pci_channel_io_normal) - /* - * the error is non fatal so the bus is ok, just invoke - * the callback for the function that logged the error. - */ - cb(dev, &result_data); - else - pci_walk_bus(dev->bus, cb, &result_data); + cb(dev, &result_data); } return result_data.result; -- 2.7.4