From patchwork Mon Dec 5 21:41:49 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: 29956 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp2487516wrr; Mon, 5 Dec 2022 13:45:04 -0800 (PST) X-Google-Smtp-Source: AA0mqf6lWC9aES/kAcpUd5pG2HH7BMi3SrltkcU3i6J2NATmuEJ9SU+EtsW0K1MmSL6S30fQi2GZ X-Received: by 2002:a17:906:382:b0:7bc:87b8:e6de with SMTP id b2-20020a170906038200b007bc87b8e6demr39417313eja.256.1670276704189; Mon, 05 Dec 2022 13:45:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670276704; cv=none; d=google.com; s=arc-20160816; b=b5bJzST+B8PHlgIYyty8ZSPYDEaSMUO2JVTUa5IM5uJX4k6NjpQf0JHlVckUwQhESz eCulzPivLKBqfj1evPV/CJUbfDmG7GiBgDQroXd7nC41nvjD87WTaKoStTBk+StAIxUR UyLfV/wXty5/E1onUWFLuDK/VzV+tRLk0GuenGEvNGwj/fmCukHRMCQWv5EfKlCIvUsu hpXkrrg09KGjG3spXRv8XHaFme664AqVNVc6QsX1Lg8kl6G4f4IGQQjnUTepSPYt7dfp CBxUIKON11CgoDySiU5xMZBQYq/pizhyrNjHcAOkSEQDL7RSiDj/KloUsiQ+DtEuX4/x KigQ== 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=knMmphUkQsCh8lT0S7PyLkvDtZ7Z89NiEkPUYScFw0s=; b=JVj/jsCOuD1MvRCbdEZTehOWuZgM4PDYQA6AymiUgheHcjgHVdNQPGWnt2WCOlp0/S fClCmgufJy3aFiFjclLbsiP8aHbaxzbQPIcgp7lM1Z9sH3mTaZeO4P2g+GLBnwl7vJDy SDugFNa/ncpqYN6inpQs5UNIYAHnozARTRI9Zo31+rmAspBXp6K3yPa45XU/asWqkIQH eVOmUW3ezgqbXJgWQbp38OdM71a+O6OGM93blYb+ieFaLtIF8ZVMeQZelhWsv0i/DpUp y9W7ET1CuCNS1LHAq11ykRGBJNBG08wslc9PhnXl8bsjwdRqAF2mtTm0jJ2lb3WMmVBs 90gQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=3SdbN2dj; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=mq6donQr; 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 wz3-20020a170906fe4300b007add6be8c86si965797ejb.762.2022.12.05.13.44.40; Mon, 05 Dec 2022 13:45:04 -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=3SdbN2dj; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=mq6donQr; 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 S234012AbiLEVnY (ORCPT + 99 others); Mon, 5 Dec 2022 16:43:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233889AbiLEVlz (ORCPT ); Mon, 5 Dec 2022 16:41:55 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 454AB2CCB9; Mon, 5 Dec 2022 13:41:54 -0800 (PST) Date: Mon, 05 Dec 2022 21:41:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1670276509; 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=knMmphUkQsCh8lT0S7PyLkvDtZ7Z89NiEkPUYScFw0s=; b=3SdbN2djru/YVylSvUI7yd6iwoEoKQ1X69+Bx6OLVYnW6k9zTG7oSl9AZwIzonaSuE4Ca7 V7qw3+3CZOJBRxHddoxhCES0DhlVjtyGYh4jYmjlfPwOHcpxUbQ63XRzMiqzWT1UlaK1B4 M7E2w1AhH9MzCV6Chxa4IuR2ZiG/v4Hk0KX2/sabhQ1PeYhlLnEWia3acSe99SK30XxiO0 AnrNxC13xDqImdsyrvN5UP587YwreuFKXJv2uVEuC8zXQKdYTSXAtZDhq4jqQbCmWl1O7q GNmdRSwfrp7kyoLyPOMxA879wTAQzl7uFL07OpmHDI9hOBzWtJooi9Gvhxo4EA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1670276509; 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=knMmphUkQsCh8lT0S7PyLkvDtZ7Z89NiEkPUYScFw0s=; b=mq6donQrGHYQCmEjKwhU5We8j2NZWtLvaH2t/kWWCE2jlD/PKyKPuT3XLNgVEEzM6ODr9V bYkCgn//QtwRr5Dw== 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: <167027650914.4906.9915486053866371987.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?1750422416455956642?= X-GMAIL-MSGID: =?utf-8?q?1751412064954405670?= The following commit has been merged into the irq/core branch of tip: Commit-ID: 45c0402457c1ed2f07ee32dc129ae710e0dc288c Gitweb: https://git.kernel.org/tip/45c0402457c1ed2f07ee32dc129ae710e0dc288c Author: Thomas Gleixner AuthorDate: Fri, 25 Nov 2022 00:26:07 +01:00 Committer: Thomas Gleixner CommitterDate: Mon, 05 Dec 2022 22:22:33 +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) {