From patchwork Sun Jun 23 15:18:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 13708649 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1B222C2BBCA for ; Sun, 23 Jun 2024 15:19:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Date:Subject:Cc:To:From: Message-ID:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=q10A9DWqiyptuaW4Rf+dYljBY7wq73II4IxfKeIflRc=; b=oX9i7Iy/cAw3e6A9BNWHGDaq2B rL5s9xNbEzEbs/EE4N/DBsvZYNS5wHELWdXznOQFEUIvSYTtlkkYI6NC+NeUJB5rihSjhQdWaTZfK jK3KbX9QRkJSShAMOYA5zbxgJk4xQ/XuwVyuW0Bgsf/PXhtWN4nBxaijU5qEiNEBM4mmD62evIxRW XEXuJpoOUfowZzgp47HQdgWRu6YlI1hTJoUcI3O3VO426Nm+t+LzUaMBGmdDvTVDcpHA61xd4fgrz cWTGv814dsK15pwJmDkfKudX0TgfRx34hg1EpZsJ6wDqLRsSjag32i2WxJa7kxa7LRyIPnKNtFECP 7va94QFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLOzL-0000000EGEg-1hoR; Sun, 23 Jun 2024 15:18:44 +0000 Received: from galois.linutronix.de ([193.142.43.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sLOzC-0000000EGB5-3xWZ for linux-arm-kernel@lists.infradead.org; Sun, 23 Jun 2024 15:18:37 +0000 Message-ID: <20240623142137.448898081@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1719155911; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=q10A9DWqiyptuaW4Rf+dYljBY7wq73II4IxfKeIflRc=; b=kSBtklkRyIjyLwyeJ3tfP16k5aJV3XtOxMpKxnzYrvFKoGiGNhOCS01404vg7e0FrXBshM KuVq64uK2WlBDqvLQD+rvqWX5RrlasNRp6f8sl6R+qO7UN85m3BqU89hBS3JyLhS7qlbVg IxB5LWG9grfuTQglZF+r3iCxMduJ05Fp8ejPqasrbyly7EmspkMeE4vRPPpWtisnWc9BRF CabkgIwTZ04G18/kEBC3vcRqAyS1zlws1YQnu55rR3f2V3V0tHCCX1oaHrFiJVQGCnqhet Ydv0L1951t6CH5KYnIWaWly4Az6z7hQoaScR828UzzdSzKQru9mkhcP//x+vMQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1719155911; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=q10A9DWqiyptuaW4Rf+dYljBY7wq73II4IxfKeIflRc=; b=a9w2SopRGLgqagbABXHibYKOVyGMyUccKrtPr7rAK2CmLaQKG6XtzbZrmrqfVDd4z6Eq7v K9ViLlxfqRpwn4AQ== From: Thomas Gleixner To: LKML Cc: linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, maz@kernel.org, tglx@linutronix.de, anna-maria@linutronix.de, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, bhelgaas@google.com, rdunlap@infradead.org, vidyas@nvidia.com, ilpo.jarvinen@linux.intel.com, apatel@ventanamicro.com, kevin.tian@intel.com, nipun.gupta@amd.com, den@valinux.co.jp, andrew@lunn.ch, gregory.clement@bootlin.com, sebastian.hesselbarth@gmail.com, gregkh@linuxfoundation.org, rafael@kernel.org, alex.williamson@redhat.com, will@kernel.org, lorenzo.pieralisi@arm.com, jgg@mellanox.com, ammarfaizi2@gnuweeb.org, robin.murphy@arm.com, lpieralisi@kernel.org, nm@ti.com, kristo@kernel.org, vkoul@kernel.org, okaya@kernel.org, agross@kernel.org, andersson@kernel.org, mark.rutland@arm.com, shameerali.kolothum.thodi@huawei.com, yuzenghui@huawei.com, shivamurthy.shastri@linutronix.de Subject: [patch V4 00/21] genirq, irqchip: Convert ARM MSI handling to per device MSI domains Date: Sun, 23 Jun 2024 17:18:31 +0200 (CEST) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240623_081835_212674_CCA5CB11 X-CRM114-Status: GOOD ( 13.17 ) 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 version 4 of the series to convert ARM MSI handling over to per device MSI domains. Version 3 can be found here: https://lore.kernel.org/lkml/20240614102403.13610-1-shivamurthy.shastri@linutronix.de The conversion aims to replace the existing platform MSI mechanism and enables ARM to support the future PCI/IMS mechanism. The infrastructure to replace the platform MSI mechanism is already upstream and in use by RISC-V and has been tested on various ARM platforms during the V2 development. Changes vs. V3: - Fix the conversion of the GIC V3 MBI driver - Marc - Dropped a few stray MSI_FLAG_PCI_MSI_MASK_PARENT flags - Dropped the trivial cleanup patches as they have been merged - Picked up tags The series is only lightly tested due to lack of hardware, so we rely on the people who have access to affected machines to help with testing. If there are no major objections raised or testing fallout reported, I'm aiming this series for the next merge window. The series is also available from git: git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git devmsi-arm-v4 Thanks, tglx --- b/drivers/base/platform-msi.c | 350 -------------------------- b/drivers/irqchip/Kconfig | 8 b/drivers/irqchip/Makefile | 4 b/drivers/irqchip/irq-gic-common.h | 3 b/drivers/irqchip/irq-gic-v2m.c | 80 +---- b/drivers/irqchip/irq-gic-v3-its-msi-parent.c | 210 +++++++++++++++ b/drivers/irqchip/irq-gic-v3-its.c | 5 b/drivers/irqchip/irq-gic-v3-mbi.c | 130 +++------ b/drivers/irqchip/irq-imx-mu-msi.c | 48 +-- b/drivers/irqchip/irq-mbigen.c | 96 ++----- b/drivers/irqchip/irq-msi-lib.c | 135 ++++++++++ b/drivers/irqchip/irq-msi-lib.h | 27 ++ b/drivers/irqchip/irq-mvebu-gicp.c | 44 +-- b/drivers/irqchip/irq-mvebu-icu.c | 275 ++++++++------------ b/drivers/irqchip/irq-mvebu-odmi.c | 37 +- b/drivers/irqchip/irq-mvebu-sei.c | 52 +-- b/drivers/pci/msi/irqdomain.c | 21 + b/include/linux/msi.h | 52 --- b/kernel/irq/msi.c | 95 +------ drivers/irqchip/irq-gic-v3-its-pci-msi.c | 202 --------------- drivers/irqchip/irq-gic-v3-its-platform-msi.c | 163 ------------ 21 files changed, 738 insertions(+), 1299 deletions(-)