From patchwork Mon Dec 5 18:25:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 29876 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2419516wrr; Mon, 5 Dec 2022 10:50:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf5BqOCbWtASar6OkXI6tltb4oY+d8pW9szBnWV9MvdFi8ke8I6NylTRRBin/U593+FW7Qzz X-Received: by 2002:a17:906:805:b0:78d:8267:3379 with SMTP id e5-20020a170906080500b0078d82673379mr69446463ejd.415.1670266226512; Mon, 05 Dec 2022 10:50:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670266226; cv=none; d=google.com; s=arc-20160816; b=roOeTcUNStuHri+JGpioNO2KNI2BEljMtYAKTw5D0pWnIngEMduxLd3SDgn1htkwIz VJ7o8cm6JcVOnsL4MzjkKPWRUFDtq8hSjERTnHBH5nvhEQRJ6D7pki4hoakAiD8u3Zwz oY2tV2vlEXV0z6klQHPs7t8+8rwnmy1emOU+B/R7IHBSaZD0uCsSeGhhVWl+oP832lnD cd1f7o7L9V5MO61WYSUx/cU8Hl06nhOr5OJ/ckcwlQSk8rpmKD5A8+wYVaN7DTybrIiT ViMJg6eEHMtljgZNY+wG+o5Ysnbm0arSLHXh/j178NB/ideTR9uWlvhsF1swGLKrHX/p +Quw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=Ll5Tfh0jN7hL4lzT0LphqWaSeJDo0M/Khv3l0BgvD70=; b=EyTA/BPt5K3E95mrGFpiOPDDBUWzhacyOxejBKUmDrYHLtoPNqBOHCYsO7YeZmbGnz bLNLONgohldkrVZmOjFcxTqp7a1qb/TQSJvSl2UzeUopq4kePIpDsOh4G6FS13ayWkxE bLBoSw9LWJSZ7fO785K/RSol8zU0QzbHwjPZdaX9WqpD0k0L6tsxpT7Jhet2VPQhMn8T owbhm6IEy2Q7oLr8Y2fNiBza9piqzkd4oKrcz2Ocy8pmwAciZeU4hZsc5eVKnVX58wF7 q3PEnT/ZrRvWKxU2tNvoboHK7FpZLCl0nAqWuoNvaoeFyby+reo62lU0vRvDMU42qKGr MfbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=mJmWNHci; dkim=neutral (no key) header.i=@linutronix.de header.b=Qpc6PipJ; 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 dt14-20020a170907728e00b007acbaeed9besi12636614ejc.398.2022.12.05.10.50.01; Mon, 05 Dec 2022 10:50:26 -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=mJmWNHci; dkim=neutral (no key) header.i=@linutronix.de header.b=Qpc6PipJ; 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 S233438AbiLES3D (ORCPT + 99 others); Mon, 5 Dec 2022 13:29:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232629AbiLESZX (ORCPT ); Mon, 5 Dec 2022 13:25:23 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6D312125E; Mon, 5 Dec 2022 10:25:22 -0800 (PST) Date: Mon, 05 Dec 2022 18:25:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1670264721; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ll5Tfh0jN7hL4lzT0LphqWaSeJDo0M/Khv3l0BgvD70=; b=mJmWNHci6nZwmG3aoRkhsKAaXwLx92YbpdSv7E2s5DdTFDr3RI65NoJ6jTf9DGbI0mo8n0 mFXW8r8jmcTfygg59Gsb4T9skPBLykV8MFbsBOzdETTIpGJq4W7PdjnYstGARGNf4Kuvwt RZ9/88c48xOXCSCIfcxRE4upXnj3FUFg9uI5kovzerhibVZQ3LoVj/mFvyhMUAP4oEz+QL KEBLFJlMrTXvBVR8c9Cpa6gt91X82Oy66ZMdeAqTXr+y+kfjDDtJMZWm85+TwZNfMBJS4J I4Ndz3xk1IwAAWlOldryg80HDWLZGEDG8gYcw5VTatn4bGPSH6VFy6/xIkFFCQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1670264721; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ll5Tfh0jN7hL4lzT0LphqWaSeJDo0M/Khv3l0BgvD70=; b=Qpc6PipJ2ycrnOXiS8Oaw20RHh9mZ9eRC2L0yYutPFQz4xcnRobTwPVmaTt2V3Fs9qfGtF 9+nmADLd5fmYvKBA== From: "tip-bot2 for Thomas Gleixner" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] genirq/irqdomain: Provide IRQ_DOMAIN_FLAG_MSI_DEVICE Cc: Thomas Gleixner , Kevin Tian , Marc Zyngier , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221124230313.747627287@linutronix.de> References: <20221124230313.747627287@linutronix.de> MIME-Version: 1.0 Message-ID: <167026472108.4906.9293890145686822773.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750421816799917036?= X-GMAIL-MSGID: =?utf-8?q?1751401078859869231?= The following commit has been merged into the irq/core branch of tip: Commit-ID: e71c5d0bb1885b73c746b634895b85d135ce2c87 Gitweb: https://git.kernel.org/tip/e71c5d0bb1885b73c746b634895b85d135ce2c87 Author: Thomas Gleixner AuthorDate: Fri, 25 Nov 2022 00:24:17 +01:00 Committer: Thomas Gleixner CommitterDate: Mon, 05 Dec 2022 19:20:58 +01:00 genirq/irqdomain: Provide IRQ_DOMAIN_FLAG_MSI_DEVICE Similar to marking parent MSI domains it's required to identify per device domains. Add flag and helpers. Signed-off-by: Thomas Gleixner Reviewed-by: Kevin Tian Acked-by: Marc Zyngier Link: https://lore.kernel.org/r/20221124230313.747627287@linutronix.de --- include/linux/irqdomain.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h index f837db9..24b7668 100644 --- a/include/linux/irqdomain.h +++ b/include/linux/irqdomain.h @@ -192,6 +192,9 @@ enum { /* Irq domain is a MSI parent domain */ IRQ_DOMAIN_FLAG_MSI_PARENT = (1 << 8), + /* Irq domain is a MSI device domain */ + IRQ_DOMAIN_FLAG_MSI_DEVICE = (1 << 9), + /* * Flags starting from IRQ_DOMAIN_FLAG_NONCORE are reserved * for implementation specific purposes and ignored by the @@ -559,6 +562,11 @@ static inline bool irq_domain_is_msi_parent(struct irq_domain *domain) return domain->flags & IRQ_DOMAIN_FLAG_MSI_PARENT; } +static inline bool irq_domain_is_msi_device(struct irq_domain *domain) +{ + return domain->flags & IRQ_DOMAIN_FLAG_MSI_DEVICE; +} + #else /* CONFIG_IRQ_DOMAIN_HIERARCHY */ static inline int irq_domain_alloc_irqs(struct irq_domain *domain, unsigned int nr_irqs, int node, void *arg) @@ -610,6 +618,11 @@ static inline bool irq_domain_is_msi_parent(struct irq_domain *domain) return false; } +static inline bool irq_domain_is_msi_device(struct irq_domain *domain) +{ + return false; +} + #endif /* CONFIG_IRQ_DOMAIN_HIERARCHY */ #else /* CONFIG_IRQ_DOMAIN */