From patchwork Tue Sep 18 23:56:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keith Busch X-Patchwork-Id: 10605059 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 812FE161F for ; Tue, 18 Sep 2018 23:55:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6DE3F2BD27 for ; Tue, 18 Sep 2018 23:55:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6103B2BD6F; Tue, 18 Sep 2018 23:55:30 +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 1364E2BD27 for ; Tue, 18 Sep 2018 23:55:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730644AbeISFaa (ORCPT ); Wed, 19 Sep 2018 01:30:30 -0400 Received: from mga02.intel.com ([134.134.136.20]:47633 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727818AbeISFa3 (ORCPT ); Wed, 19 Sep 2018 01:30:29 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Sep 2018 16:55:28 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,391,1531810800"; d="scan'208";a="74357506" Received: from unknown (HELO localhost.lm.intel.com) ([10.232.112.44]) by orsmga008.jf.intel.com with ESMTP; 18 Sep 2018 16:55:27 -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: [PATCHv3 00/10] PCI error handling Date: Tue, 18 Sep 2018 17:56:52 -0600 Message-Id: <20180918235702.26573-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 This version is reduced in scope from the previous. The more ambitious handling from the previous version exacerbates other pre-existing deadlocking issues that are taking some time to fix. This is mostly a reduced set from v2, but slightly reordered. There is one prep patch that fixes the bridges pci state when it is initially saved, and one AER patch that fixes a use-after free. Keith Busch (10): PCI/portdrv: Use subsys_init for service drivers PCI/portdrv: Restore pci state on slot reset PCI/AER: Take reference on error devices 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 drivers/pci/hotplug/pciehp.h | 6 - drivers/pci/hotplug/pciehp_core.c | 2 +- drivers/pci/hotplug/pciehp_hpc.c | 22 +-- drivers/pci/pci.c | 66 ++++++++- drivers/pci/pci.h | 66 ++++++++- drivers/pci/pcie/aer.c | 19 ++- drivers/pci/pcie/dpc.c | 10 +- drivers/pci/pcie/err.c | 276 ++++++++++---------------------------- drivers/pci/pcie/pme.c | 2 +- drivers/pci/pcie/portdrv_pci.c | 8 ++ drivers/pci/probe.c | 1 + drivers/pci/slot.c | 2 +- include/linux/pci.h | 1 + 13 files changed, 220 insertions(+), 261 deletions(-)