From patchwork Tue Sep 18 23:58:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Keith Busch X-Patchwork-Id: 10605081 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 238CB161F for ; Tue, 18 Sep 2018 23:58:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0FAAE2BB9F for ; Tue, 18 Sep 2018 23:58:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 042B72BC0A; Tue, 18 Sep 2018 23:58:53 +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 7BE682BB9F for ; Tue, 18 Sep 2018 23:58:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727099AbeISFdx (ORCPT ); Wed, 19 Sep 2018 01:33:53 -0400 Received: from mga04.intel.com ([192.55.52.120]:7796 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726960AbeISFdx (ORCPT ); Wed, 19 Sep 2018 01:33:53 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Sep 2018 16:58:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,391,1531810800"; d="scan'208";a="74110566" Received: from unknown (HELO localhost.lm.intel.com) ([10.232.112.44]) by orsmga007.jf.intel.com with ESMTP; 18 Sep 2018 16:57:04 -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: [PATCH 00/12] error handling and pciehp maintenance Date: Tue, 18 Sep 2018 17:58:36 -0600 Message-Id: <20180918235848.26694-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 I ran into a lot of trouble testing error handling, and this series is just trying to simplify some things. The first 4 fix up aer_inject, and the rest are cleanup to make better use of kernel APIs. Keith Busch (12): PCI: Set PCI bus accessors to noinline PCI/AER: Covertly inject errors PCI/AER: Reuse existing service device lookup PCI/AER: Abstract AER interrupt handling PCI/AER: Remove dead code PCI/AER: Remove error source from aer struct PCI/AER: Use kfifo for tracking events PCI/AER: Use kfifo helper inserting locked elements PCI/AER: Don't read upstream ports below fatal errors PCI/AER: Use threaded IRQ for bottom half PCI/AER: Use managed resource allocations PCI/pciehp: Use device managed allocations drivers/pci/access.c | 4 +- drivers/pci/hotplug/pciehp_core.c | 14 +- drivers/pci/hotplug/pciehp_hpc.c | 48 ++---- drivers/pci/pcie/Kconfig | 2 +- drivers/pci/pcie/aer.c | 219 ++++++--------------------- drivers/pci/pcie/aer_inject.c | 306 ++++++++++++++++++++------------------ drivers/pci/pcie/portdrv.h | 4 - drivers/pci/pcie/portdrv_core.c | 1 + 8 files changed, 227 insertions(+), 371 deletions(-)