Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6362497rwb; Mon, 5 Dec 2022 11:11:29 -0800 (PST) X-Google-Smtp-Source: AA0mqf4NA6yx5Lcbhikjq9CM6c7HaA7pzRIlKhShGd938BiHoyIIvxJSLUIc+zNVswsY8Us0E9zB X-Received: by 2002:aa7:9159:0:b0:572:24c7:34da with SMTP id 25-20020aa79159000000b0057224c734damr67051425pfi.73.1670267489308; Mon, 05 Dec 2022 11:11:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670267489; cv=none; d=google.com; s=arc-20160816; b=Le5DhCf21Saz1dgpsh6iIcVDkduWZEyTLbbIbVCD5eVKgTATflSMDkLHq0NlpbcjVr kMib7soaH8+pkDOQYFzqDHdlShMmGAvkOQXjvwxok6bjro7yAihc/YRqSSq5EayEWL3j frQ8T/KqaNW8K0GRlWUWV9OS98UBaHAnkB+RtSNqC0+w/YOwfQQdH2Ro7a63t/dKXVYE ebj0QUD/SzkgPl/ZFQ8EXJiomOG1mp88OmIMFLzx+6T1ZclsbO5c/c1Bz/Z7Yvu+SLEW Qe1Ts9V2cTeiJ/4kRvhazSKWKIbq0nogxlfreUWNejEL0Spquxo0j3+ZUs20OPJb++07 BP0w== 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=TwC+1zL/D6a/X+VYAXT8U8US/8yhBkTIPfnDVmQDisI=; b=t4ctCIESnMeNpcaJXBEZ3VoYpjzFG9K/e87i76JiDDp90iAwjSt7tCo6VmteeqBJwL yMbq2eroz4dN0s2tddEG2eQBK0TLJQ3vBjsTYvIZ/XKUdWJAUpCXPnmL9jRoCzuBG6Jz tyg0x9srdTR9VVoRLK8Qrj+7M59NCAVrF13gIMYI9iXUefe9k+sy/DY1VjipUCrJIWhZ rkWp+ArMyFj7uaF9ldpCkEq36VK3gj6BxyAqhbIDx//TWNFum1FKne5gt46seF7mN8sS o1rYsESKTi4c+kbaCTpoBfyetUrKiKbAascepQY5n7VQVvogjKPvO6ct7yRZ0jQF0ada qaNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=dgJEBm62; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k18-20020a170902c41200b001871fb0906esi16821476plk.585.2022.12.05.11.11.18; Mon, 05 Dec 2022 11:11:29 -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=dgJEBm62; 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 S233302AbiLES0d (ORCPT + 81 others); Mon, 5 Dec 2022 13:26:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232285AbiLESZS (ORCPT ); Mon, 5 Dec 2022 13:25:18 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58F7520BC1; Mon, 5 Dec 2022 10:25:17 -0800 (PST) Date: Mon, 05 Dec 2022 18:25:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1670264714; 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=TwC+1zL/D6a/X+VYAXT8U8US/8yhBkTIPfnDVmQDisI=; b=dgJEBm62Tc+cKl3nkVm+kMKNWjA6/8mxnTbxzXPmRbhRv5pxw6xT3+dCy17X7RUysyFGmP w/51cI0Et8YUG2CgtX089vrQ7UHRfoNzbBNCSfdoN2P8VxS1iHilZdq9hNfGlIWBGfanHC wzB0xAtrsFgSjjUoVPKhA69Fj560xj5t3zloWkmec0V3DflMuyLsD8KR60w+mNM+QkK0JZ /F2RtVVM/Ewa0xVeXfBkPTkOUU4ecPltoyJcG7Ckgy92ZDMRHSQAjkM3e2Gwb6TccG1DRO 09EvxLKnY1MrZ+nX8B1yw7R4SnyhgQt0fcjLlWe6JvbUpTEPi4bBA3QVlDbFIg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1670264714; 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=TwC+1zL/D6a/X+VYAXT8U8US/8yhBkTIPfnDVmQDisI=; b=LpPZn1dpRMb6IW7u++xkSDLEld2S/wydBHmYQ/fjerFNeF9e/L3gjXElSFgElh4VFF42UI iTSTRU+6rRb5hOAg== 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] PCI/MSI: Remove unused pci_dev_has_special_msi_domain() Cc: Thomas Gleixner , Kevin Tian , Bjorn Helgaas , Marc Zyngier , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221124232326.093093200@linutronix.de> References: <20221124232326.093093200@linutronix.de> MIME-Version: 1.0 Message-ID: <167026471428.4906.7281447313923412213.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 The following commit has been merged into the irq/core branch of tip: Commit-ID: 96bd2f29f00a60245042f4c0ed85c3e27940d821 Gitweb: https://git.kernel.org/tip/96bd2f29f00a60245042f4c0ed85c3e27940d821 Author: Thomas Gleixner AuthorDate: Fri, 25 Nov 2022 00:26:07 +01:00 Committer: Thomas Gleixner CommitterDate: Mon, 05 Dec 2022 19:21:02 +01:00 PCI/MSI: Remove unused pci_dev_has_special_msi_domain() The check for special MSI domains like VMD which prevents the interrupt remapping code to overwrite device::msi::domain is not longer required and has been replaced by an x86 specific version which is aware of MSI parent domains. Remove it. Signed-off-by: Thomas Gleixner Reviewed-by: Kevin Tian Acked-by: Bjorn Helgaas Acked-by: Marc Zyngier Link: https://lore.kernel.org/r/20221124232326.093093200@linutronix.de --- drivers/pci/msi/irqdomain.c | 21 --------------------- include/linux/msi.h | 1 - 2 files changed, 22 deletions(-) diff --git a/drivers/pci/msi/irqdomain.c b/drivers/pci/msi/irqdomain.c index be3d50f..4736403 100644 --- a/drivers/pci/msi/irqdomain.c +++ b/drivers/pci/msi/irqdomain.c @@ -414,24 +414,3 @@ struct irq_domain *pci_msi_get_device_domain(struct pci_dev *pdev) DOMAIN_BUS_PCI_MSI); return dom; } - -/** - * pci_dev_has_special_msi_domain - Check whether the device is handled by - * a non-standard PCI-MSI domain - * @pdev: The PCI device to check. - * - * Returns: True if the device irqdomain or the bus irqdomain is - * non-standard PCI/MSI. - */ -bool pci_dev_has_special_msi_domain(struct pci_dev *pdev) -{ - struct irq_domain *dom = dev_get_msi_domain(&pdev->dev); - - if (!dom) - dom = dev_get_msi_domain(&pdev->bus->dev); - - if (!dom) - return true; - - return dom->bus_token != DOMAIN_BUS_PCI_MSI; -} diff --git a/include/linux/msi.h b/include/linux/msi.h index b4ab005..b5dda4b 100644 --- a/include/linux/msi.h +++ b/include/linux/msi.h @@ -617,7 +617,6 @@ struct irq_domain *pci_msi_create_irq_domain(struct fwnode_handle *fwnode, struct irq_domain *parent); u32 pci_msi_domain_get_msi_rid(struct irq_domain *domain, struct pci_dev *pdev); struct irq_domain *pci_msi_get_device_domain(struct pci_dev *pdev); -bool pci_dev_has_special_msi_domain(struct pci_dev *pdev); #else /* CONFIG_PCI_MSI */ static inline struct irq_domain *pci_msi_get_device_domain(struct pci_dev *pdev) {