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: 971358 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42FKhX58cQz9sCR for ; Wed, 19 Sep 2018 09:58:52 +1000 (AEST) 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 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(-)