Message ID | 20221121083210.309161925@linutronix.de |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1626286wrr; Mon, 21 Nov 2022 06:37:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf6RF7FsGb9kRuq9PvIsoE+sYC0/6WpeFQHOQPcxVxjb5qXal44BfP2PqcnsOR3n0UC4vpab X-Received: by 2002:a17:902:dac2:b0:188:f5c7:4d23 with SMTP id q2-20020a170902dac200b00188f5c74d23mr374865plx.125.1669041444712; Mon, 21 Nov 2022 06:37:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669041444; cv=none; d=google.com; s=arc-20160816; b=q1f2DCfbjwzPl2ZXwuufARmzrC/EGSr1bWsxm82sQlVPwq00+BHB19LxEgxyCgoJDC qjJGuWkQlOunM9VpX0htUYIIdsbCyOAzDZD6iRIpwGo0Buqyy8eNpBb6/MoNh0Vsnf5J Hz/k5X3dvfswZHbdLrDbLhYPm9Cob2NYcYu3sD8ASWFUJnt97bVe2vVJEaKsgaPUhTTH iwEtuK0pAmmE6kUoEeS3abDsjc52XwIk0ZDW5r+joP39ZqzDcnaBpOGAqrGkxozqNoiw 9IAxFqX3SstVtVv2Htx4p0E22saUYcg75U98aqlNRHLwk7r4r1hiaTljRVKmJ/ca0c9R ii9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:subject:cc:to:from:dkim-signature :dkim-signature:message-id; bh=aeVS1xacxwxWzGD0v18Me3HgOgexsApC7p6cn2xAhEk=; b=v/jKlEfE9qjGiyuQEqFLMyMu+/RnciA5VAvEsYhsyer+P5F6udAklWJdTgrS3yxrb4 g5d6c7giSHvhP6UnZxl7W///AzmW16NE76cmug88l+GUeJfgMKhlXeSdnCOJmo5BIkvY fMd6m0SAVOCq6kpwsDbfpj620DACcJVcpwjaoiPesujsYKON4XcZNEyifHPktNIgy5Lw rye8uAVyL3jGvtrteFgJ8RyyKQG8eAi0MVogG2HDc41Ewm3ShWjqTwoYBftC+XzHD7+W d9YT7QNuJv9QwlJo+lQhFv6PjZgh9zsCRi9O3XR24329RfcbiwjQtbb6cYDsPVb1vfhj TNrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=lofUDJ9O; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h18-20020a656392000000b00476c94abbc5si11618674pgv.681.2022.11.21.06.37.11; Mon, 21 Nov 2022 06:37:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=lofUDJ9O; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231148AbiKUOgs (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Mon, 21 Nov 2022 09:36:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231178AbiKUOgh (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 21 Nov 2022 09:36:37 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E49CAC80D2; Mon, 21 Nov 2022 06:36:20 -0800 (PST) Message-ID: <20221121083210.309161925@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669041378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=aeVS1xacxwxWzGD0v18Me3HgOgexsApC7p6cn2xAhEk=; b=lofUDJ9O/nZz0k6fNAZ5NFeGqe9fbm5HeVBRv81VAuBIzpm+zwDSsijHP6Pwld+WcEarBv Wj94MoM3jjvc6+2/KXudDLt68C6Jjq1ZrucXFXfveOAVWecy4fAP9VdVxeHNTKwQZi3Z7I tbGqAiy2I8ruKMdRwVFVmlZg8glZhGpRVRvrXuxsccADjPhgQNy54SC64njSWH8GrLLNuk GzYa6/WgJLjZLw5Go6GlPcPkEYV01ZTTn/ULwz3Bz6zNmssaByyaV0oqej0cv5N0elBDjq 0TEzhvRmaYpim9OUHxqcVr3GTOFMkDAfFdywzMtH9XJnRGpOD5dBZeIbYSO3Ew== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669041378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc; bh=aeVS1xacxwxWzGD0v18Me3HgOgexsApC7p6cn2xAhEk=; b=3T5CmnFjnYJS8aCSoVNJPljzLjVE/GF+Aqn9EgyA3N2hdXzAW8XLuXhHUyw+L8NVZC4270 70ysEOpvYZAjMbAQ== From: Thomas Gleixner <tglx@linutronix.de> To: LKML <linux-kernel@vger.kernel.org> Cc: x86@kernel.org, Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>, linux-pci@vger.kernel.org, Bjorn Helgaas <bhelgaas@google.com>, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, Marc Zyngier <maz@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Jason Gunthorpe <jgg@mellanox.com>, Dave Jiang <dave.jiang@intel.com>, Alex Williamson <alex.williamson@redhat.com>, Kevin Tian <kevin.tian@intel.com>, Dan Williams <dan.j.williams@intel.com>, Logan Gunthorpe <logang@deltatee.com>, Ashok Raj <ashok.raj@intel.com>, Jon Mason <jdmason@kudzu.us>, Allen Hubbe <allenbh@gmail.com> Subject: [patch V2 00/21] genirq, PCI/MSI: Support for per device MSI and PCI/IMS - Part 2 API rework Date: Mon, 21 Nov 2022 15:36:18 +0100 (CET) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750116801880102459?= X-GMAIL-MSGID: =?utf-8?q?1750116801880102459?= |
Series |
genirq, PCI/MSI: Support for per device MSI and PCI/IMS - Part 2 API rework
|
|
Message
Thomas Gleixner
Nov. 21, 2022, 2:36 p.m. UTC
This is V2 of the second part of effort to provide support for per device MSI interrupt domains. Version 1 of this second part can be found here: https://lore.kernel.org/all/20221111132706.104870257@linutronix.de The first part is available here: https://lore.kernel.org/all/20221111120501.026511281@linutronix.de and has been merged into: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq/core This part on top of the tip irq/core branch is also available here: git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git devmsi-v2-part2 This part is the main preparation step for per device MSI domains: 1) Introduce irqdomain pointer storage space in device::msi::data and related helpers. 2) Convert interfaces to handle multiple per device MSI domains based on a domain ID 3) Provide new interfaces for allocation/free which are domain ID based and provide range allocation/free which is a prerequisite for post MSI-X enable alloc/free. 4) Switch all existing call sites of msi allocation/free interfaces over to the new interfaces 5) Remove the old interfaces Changes vs. V1: - Split the kernel doc changes from the rename (Jason) - Rename msi_ctrl_valid() to msi_ctrl_range_valid() (Kevin) - Fix the off by one vs. MSI_MAX_INDEX (Kevin) - Update changelogs and comments (Bjorn, Jason, Kevin) - Fix the kernel robot fallout from randconfig builds - Picked up Reviewed/Acked-by tags where appropriate Thanks, tglx --- arch/x86/kernel/apic/msi.c | 5 drivers/base/platform-msi.c | 4 drivers/bus/fsl-mc/fsl-mc-msi.c | 25 - drivers/irqchip/irq-gic.c | 4 drivers/pci/msi/irqdomain.c | 4 drivers/pci/msi/msi.c | 4 drivers/soc/ti/ti_sci_inta_msi.c | 12 include/linux/irqdomain.h | 112 ++++---- include/linux/msi.h | 125 +++++++-- include/linux/msi_api.h | 35 ++ kernel/irq/chip.c | 8 kernel/irq/msi.c | 541 +++++++++++++++++++++++++++++---------- 12 files changed, 631 insertions(+), 248 deletions(-)
Comments
> From: Thomas Gleixner <tglx@linutronix.de> > Sent: Monday, November 21, 2022 10:36 PM > > This is V2 of the second part of effort to provide support for per device > MSI interrupt domains. > for the entire series: Reviewed-by: Kevin Tian <kevin.tian@intel.com>