Message ID | 20221121091327.108540195@linutronix.de |
---|---|
State | New |
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 q4csp1627982wrr; Mon, 21 Nov 2022 06:40:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf4tkyk8UlBsG0kxIzTlMVB3pIuQ/CU1z08mbCR/rwnICx4sg4tKwA4G1+vOoA3d6KYMS2e3 X-Received: by 2002:a63:f64c:0:b0:476:f43d:5514 with SMTP id u12-20020a63f64c000000b00476f43d5514mr7808524pgj.236.1669041625128; Mon, 21 Nov 2022 06:40:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669041625; cv=none; d=google.com; s=arc-20160816; b=wcarhRVsM9LMkEaB23ZcLTPj7vqVuDQ79agb/Oy8BcHS/kUie7NUmsYzysLlUlXXwo pyAUL/REzVG4moQx9cZATHwWsK+0HMkBSjrRkYpJY8wwdSSfDtRL4wPnfjOs+EYj2A5L YxV5In45u+ZMzHJcUY6zrDvUnG6f2TpZmoBzl+hAY/v6my0rwXlEG95f/QdOaVdrl9bj VSxGUNg9KNOpQt4m8qQf4P7ihU+xfHNL1zo22KTk2w3qtEVtuAOMLPe56P/SHMDK+zN4 V2SThRfAg6hf5mwdO9xf8Ygalj4iyc0COY9ZbNhO06MbJrLoimBe5wxez+U0nU1+La1j p4YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:mime-version:references:subject:cc:to:from :dkim-signature:dkim-signature:message-id; bh=XOCTiVJYLOJ/gUiXKzxrtpKOfabpzthMbAvZS4RWDg4=; b=oV/wQFSvVtcEgqokMLvXM9RINJOmS80jdBMO9XuB+dYSkJ6vhiPVP3S5OK35J7AFB+ Uxd6gxEk51B1fl3IwWoqrgkQFuQ2epn62u9bc84zOzuO7WKe0cB1aY5zg0NzVqFBDkYO kMsgMWFTMq71RZSvzBulKr4bJHRg/SCCs1YMti4Y+soIgYO6Occ/dE9O7kKF8FG9fgk5 CBVCNxtee5YaFMule0YMPtkZHkxi89Cw2XL0HLObYLR4ny5Z+3a9rGphmTIlpAbf9UCj ahTQ5t+ty6SkY3e27G1+0YNws7dOf5lLq9fIAiVc8aElfifOfkX/S0M6jBy8fXT4yLyv /3eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=tKqf0m8+; 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 g5-20020a63f405000000b0047015d155b9si11266810pgi.459.2022.11.21.06.40.11; Mon, 21 Nov 2022 06:40:25 -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=tKqf0m8+; 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 S231804AbiKUOjm (ORCPT <rfc822;cjcooper78@gmail.com> + 99 others); Mon, 21 Nov 2022 09:39:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231637AbiKUOiC (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 21 Nov 2022 09:38:02 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59A4978B0B; Mon, 21 Nov 2022 06:38:01 -0800 (PST) Message-ID: <20221121091327.108540195@linutronix.de> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669041480; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=XOCTiVJYLOJ/gUiXKzxrtpKOfabpzthMbAvZS4RWDg4=; b=tKqf0m8+CVNR9w1aNa5wKoLGZB3ikf7efE4j9jUxS7j1nYsWeatkQNndBZ0Y14Tf2u7fi5 vz8v3ZT9/OA+5zzkZEcuUl0TMje5pRsx1ZTvKXjeLBm4J7tY+oMH1flZVvfFNoOblu2bVe N0nAAHLUIPJXGdSfHakNa3+oqgpDREDgrc9pBc+1kdlvSt8ZtTAAejFuGQA5kWsyzA+Szb tAfugd+Qzh/c266P266lk4sUvh67D3HFD5HpHig9atEVOcfbFIp2IsG37AC3drl0zh9Iyj wtNhtd+uEOMEAGarcoszNTfmub9bRUTZY3ehAeZrJnBAnXfCBwE8T7MTnBrFDw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669041480; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: references:references; bh=XOCTiVJYLOJ/gUiXKzxrtpKOfabpzthMbAvZS4RWDg4=; b=lKKF1NQKQeMvpAgwrorbz6RFxVwDyRuSuAVcVbiS8c5MvcWmYdtt7cCy8hDnBooxZ/cH7V lD/MqMoRmMQglGDw== 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 11/33] genirq/msi: Provide BUS_DEVICE_PCI_MSI[X] References: <20221121083657.157152924@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Date: Mon, 21 Nov 2022 15:37:59 +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?1750116991149269289?= X-GMAIL-MSGID: =?utf-8?q?1750116991149269289?= |
Series |
genirq, PCI/MSI: Support for per device MSI and PCI/IMS - Part 3 implementation
|
|
Commit Message
Thomas Gleixner
Nov. 21, 2022, 2:37 p.m. UTC
Provide new bus tokens for the upcoming per device PCI/MSI and PCI/MSIX
interrupt domains.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
include/linux/irqdomain_defs.h | 2 ++
kernel/irq/msi.c | 4 ++++
2 files changed, 6 insertions(+)
--- a/include/linux/irqdomain_defs.h +++ b/include/linux/irqdomain_defs.h @@ -21,6 +21,8 @@ enum irq_domain_bus_token { DOMAIN_BUS_TI_SCI_INTA_MSI, DOMAIN_BUS_WAKEUP, DOMAIN_BUS_VMD_MSI, + DOMAIN_BUS_PCI_DEVICE_MSI, + DOMAIN_BUS_PCI_DEVICE_MSIX, }; #endif /* _LINUX_IRQDOMAIN_DEFS_H */ --- a/kernel/irq/msi.c +++ b/kernel/irq/msi.c @@ -1147,6 +1147,8 @@ static bool msi_check_reservation_mode(s switch(domain->bus_token) { case DOMAIN_BUS_PCI_MSI: + case DOMAIN_BUS_PCI_DEVICE_MSI: + case DOMAIN_BUS_PCI_DEVICE_MSIX: case DOMAIN_BUS_VMD_MSI: break; default: @@ -1172,6 +1174,8 @@ static int msi_handle_pci_fail(struct ir { switch(domain->bus_token) { case DOMAIN_BUS_PCI_MSI: + case DOMAIN_BUS_PCI_DEVICE_MSI: + case DOMAIN_BUS_PCI_DEVICE_MSIX: case DOMAIN_BUS_VMD_MSI: if (IS_ENABLED(CONFIG_PCI_MSI)) break;