From patchwork Thu Sep 20 16:27:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keith Busch X-Patchwork-Id: 10608097 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7EC92913 for ; Thu, 20 Sep 2018 16:26:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E3652E00F for ; Thu, 20 Sep 2018 16:26:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6271A2E0E0; Thu, 20 Sep 2018 16:26:28 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 48BC72E0B9 for ; Thu, 20 Sep 2018 16:26:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728106AbeITWKm (ORCPT ); Thu, 20 Sep 2018 18:10:42 -0400 Received: from mga07.intel.com ([134.134.136.100]:21034 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727676AbeITWKm (ORCPT ); Thu, 20 Sep 2018 18:10:42 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Sep 2018 09:26:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,281,1534834800"; d="scan'208";a="258918154" Received: from unknown (HELO localhost.lm.intel.com) ([10.232.112.44]) by orsmga005.jf.intel.com with ESMTP; 20 Sep 2018 09:26:24 -0700 From: Keith Busch To: Linux PCI , Bjorn Helgaas Cc: Benjamin Herrenschmidt , Sinan Kaya , Thomas Tai , poza@codeaurora.org, Lukas Wunner , Christoph Hellwig , Mika Westerberg , Keith Busch Subject: [PATCHv4 00/12] pci error handling fixes Date: Thu, 20 Sep 2018 10:27:05 -0600 Message-Id: <20180920162717.31066-1-keith.busch@intel.com> X-Mailer: git-send-email 2.13.6 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 Changes since v3 are: Initialize port services directly from port driver (suggested by Bjorn) Updated changelogs to match local style Added documentation update for ERR_FATAL behavior Included DPC save/restore state fix that was missing from previous Included AER upstream port fix that was mistakenly added to a different patch set Keith Busch (12): PCI: portdrv: Initialize service drivers directly PCI: portdrv: Restore pci state on slot reset PCI: DPC: Save and restore control state PCI: AER: Take reference on error devices PCI: AER: Don't read upstream ports below fatal errors PCI: ERR: Use slot reset if available PCI: ERR: Handle fatal error recovery PCI: ERR: Always use the first downstream port PCI: ERR: Simplify broadcast callouts PCI: ERR: Report current recovery status for udev PCI: Unify device inaccessible PCI: Make link active reporting detection generic Documentation/PCI/pci-error-recovery.txt | 35 ++-- drivers/pci/hotplug/pciehp.h | 6 - drivers/pci/hotplug/pciehp_core.c | 3 +- drivers/pci/hotplug/pciehp_hpc.c | 22 +-- drivers/pci/pci.c | 68 +++++++- drivers/pci/pci.h | 74 ++++++++- drivers/pci/pcie/aer.c | 25 +-- drivers/pci/pcie/dpc.c | 72 ++++++-- drivers/pci/pcie/err.c | 276 ++++++++----------------------- drivers/pci/pcie/pme.c | 3 +- drivers/pci/pcie/portdrv.h | 24 +++ drivers/pci/pcie/portdrv_pci.c | 17 ++ drivers/pci/probe.c | 1 + drivers/pci/slot.c | 2 +- include/linux/pci.h | 1 + 15 files changed, 331 insertions(+), 298 deletions(-) Reviewed-by: Sinan Kaya