From patchwork Fri Jan 14 07:58:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Roese X-Patchwork-Id: 1579926 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=23.128.96.18; helo=vger.kernel.org; envelope-from=linux-pci-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by bilbo.ozlabs.org (Postfix) with ESMTP id 4JZtwM1ZTVz9sCD for ; Fri, 14 Jan 2022 18:58:43 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234234AbiANH6k (ORCPT ); Fri, 14 Jan 2022 02:58:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbiANH6k (ORCPT ); Fri, 14 Jan 2022 02:58:40 -0500 Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [IPv6:2001:67c:2050:1::465:204]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 579B1C061574 for ; Thu, 13 Jan 2022 23:58:40 -0800 (PST) Received: from smtp202.mailbox.org (unknown [91.198.250.118]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4JZtwG03C9zQlCP for ; Fri, 14 Jan 2022 08:58:38 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de From: Stefan Roese To: linux-pci@vger.kernel.org Subject: [PATCH v4 0/2] Add support to register platform service IRQ Date: Fri, 14 Jan 2022 08:58:32 +0100 Message-Id: <20220114075834.1938409-1-sr@denx.de> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Some platforms have dedicated IRQ lines for platform-specific System Errors like AER/PME etc. The root complex on these platform will use these seperate IRQ lines to report AER/PME etc., interrupts and will not generate MSI/MSI-X/INTx interrupts for these services. These patches will add new method for these kind of platforms to register the platform IRQ number with respective PCIe services. Changes in v4 (Stefan): - Remove 2nd check for PCI_EXP_TYPE_ROOT_PORT - Change init_platform_service_irqs() from void to return int Changes in v3 (Stefan): - Restructure patches from 4 patches in v2 to now 2 patches in v3 - Rename of functions names - init_platform_service_irqs() now uses "struct pci_dev *" instead of "struct pci_host_bridge *" - pcie_init_platform_service_irqs() is called before pcie_init_service_irqs() - Use more PCIe spec terminology as suggested by Bjorn (hopefully enough, I don't have the spec at hand) Bharat Kumar Gogada (2): PCI/portdrv: Add option to setup IRQs for platform-specific Service Errors PCI: xilinx-nwl: Add method to init_platform_service_irqs hook drivers/pci/controller/pcie-xilinx-nwl.c | 18 +++++++++++ drivers/pci/pcie/portdrv_core.c | 39 +++++++++++++++++++++++- include/linux/pci.h | 2 ++ 3 files changed, 58 insertions(+), 1 deletion(-)