From patchwork Tue Mar 30 15:11:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 12172929 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C2F58C433DB for ; Tue, 30 Mar 2021 15:14:03 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 373F061582 for ; Tue, 30 Mar 2021 15:14:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 373F061582 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=1Wj/FMhqe7taQiYZsugNyKhVbLT67ZyEfqZI+NzDiJ8=; b=D8KaDlEYlJLc1HUeiRHog91L5r ii6ujpF+IO/FdiDy6qPHLOGuUd83/cFKVNNH2EcQFPqwGdEX31SNfzNv2Xf0SC2NkJdiw7TDVBSMc S5KjdLIZfsWD9y7u4uTWZDwXRg14YskfClKrDhe4CIwELfEckkFFuxiakk0AKq7WwpDCObGKsahWH vXe/Mk5dBmzpowzA5brS4LZxmUROi5e95p0EuW1cLe3X5VtN1Jm6Rqk7lxOV4XA9KTEaU7RIi+GfP CT97Lvqo1qPwboxo/pGH06Rf0a19ndFBfn6znJjbiZJO3g6RwFpJFhA8d4bhOEWzCg+UL+13DIOTB jtEqJ8ig==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lRG2o-0046s1-TO; Tue, 30 Mar 2021 15:12:40 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lRG27-0046iE-Tu; Tue, 30 Mar 2021 15:12:00 +0000 Received: from disco-boy.misterjones.org (disco-boy.misterjones.org [51.254.78.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 35B3B619CD; Tue, 30 Mar 2021 15:11:52 +0000 (UTC) Received: from 78.163-31-62.static.virginmediabusiness.co.uk ([62.31.163.78] helo=why.lan) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lRG22-004i6i-4k; Tue, 30 Mar 2021 16:11:50 +0100 From: Marc Zyngier To: Lorenzo Pieralisi , Bjorn Helgaas Cc: Frank Wunderlich , Thierry Reding , Thomas Gleixner , Rob Herring , Will Deacon , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Michael Kelley , Wei Liu , Thierry Reding , Jonathan Hunter , Ryder Lee , Marek Vasut , Yoshihiro Shimoda , Michal Simek , Paul Walmsley , Bharat Kumar Gogada , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-hyperv@vger.kernel.org, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-renesas-soc@vger.kernel.org, kernel-team@android.com Subject: [PATCH v3 00/14] PCI/MSI: Getting rid of msi_controller, and other cleanups Date: Tue, 30 Mar 2021 16:11:31 +0100 Message-Id: <20210330151145.997953-1-maz@kernel.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 62.31.163.78 X-SA-Exim-Rcpt-To: lorenzo.pieralisi@arm.com, bhelgaas@google.com, frank-w@public-files.de, treding@nvidia.com, tglx@linutronix.de, robh@kernel.org, will@kernel.org, kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, mikelley@microsoft.com, wei.liu@kernel.org, thierry.reding@gmail.com, jonathanh@nvidia.com, ryder.lee@mediatek.com, marek.vasut+renesas@gmail.com, yoshihiro.shimoda.uh@renesas.com, michal.simek@xilinx.com, paul.walmsley@sifive.com, bharatku@xilinx.com, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-hyperv@vger.kernel.org, linux-tegra@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-renesas-soc@vger.kernel.org, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210330_161156_532072_B80C1B44 X-CRM114-Status: GOOD ( 13.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This is a respin of the series described at [1]. * From v2 [2]: - Fixed the Xilinx driver, thanks to Bharat for testing it - Dropped the no_msi attribute, and solely rely on msi_domain, which has the same effect for the only platform that was using it. - Fixed compilation on architectures that do not select the generic MSI support * From v1: - Extracted the changes dealing with the MSI capture address for rcar and xilinx and moved them to separate patches - Changed the rcar code to cope with c4e0fec2f7ee ("PCI: rcar: Always allocate MSI addresses in 32bit space") - Fixed rcar resume code - Reworked commit messages - Rebased onto v5.12-rc4 - Collected Acks, and TBs, with thanks. [1] https://lore.kernel.org/r/20210225151023.3642391-1-maz@kernel.org [2] https://lore.kernel.org/r/20210322184614.802565-1-maz@kernel.org Marc Zyngier (13): PCI: tegra: Convert to MSI domains PCI: rcar: Don't allocate extra memory for the MSI capture address PCI: rcar: Convert to MSI domains PCI: xilinx: Don't allocate extra memory for the MSI capture address PCI: xilinx: Convert to MSI domains PCI: hv: Drop msi_controller structure PCI/MSI: Drop use of msi_controller from core code PCI/MSI: Kill msi_controller structure PCI/MSI: Kill default_teardown_msi_irqs() PCI/MSI: Let PCI host bridges declare their reliance on MSI domains PCI/MSI: Make pci_host_common_probe() declare its reliance on MSI domains PCI/MSI: Document the various ways of ending up with NO_MSI PCI: Refactor HT advertising of NO_MSI flag Thomas Gleixner (1): PCI: mediatek: Advertise lack of built-in MSI handling drivers/pci/controller/Kconfig | 4 +- drivers/pci/controller/pci-host-common.c | 1 + drivers/pci/controller/pci-hyperv.c | 4 - drivers/pci/controller/pci-tegra.c | 343 ++++++++++++---------- drivers/pci/controller/pcie-mediatek.c | 4 + drivers/pci/controller/pcie-rcar-host.c | 356 +++++++++++------------ drivers/pci/controller/pcie-xilinx.c | 246 +++++++--------- drivers/pci/msi.c | 45 +-- drivers/pci/probe.c | 4 +- drivers/pci/quirks.c | 15 +- include/linux/msi.h | 17 +- include/linux/pci.h | 3 +- 12 files changed, 484 insertions(+), 558 deletions(-)