From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7253C4332F for ; Wed, 16 Nov 2022 20:13:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233550AbiKPUNf (ORCPT ); Wed, 16 Nov 2022 15:13:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbiKPUNd (ORCPT ); Wed, 16 Nov 2022 15:13:33 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CA7227156; Wed, 16 Nov 2022 12:13:32 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id EBF4CB81EAA; Wed, 16 Nov 2022 20:13:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5BC94C433D6; Wed, 16 Nov 2022 20:13:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668629609; bh=lM4FyB0BKBw2VxE7mkOwnEHXctCOrTcE0BLfNPcwQFI=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=Gn9AMwI/HCd3z3N18CNIMIXLUaX+iRxHZkxbCnU6X3wXGB9R2OF7ILDQvu6TT2Hac obzoCW3tCPyWMt1OSgYUGi9u/PbbyNLXtEZ8fgIUnvKuAs0SgAkJFwO1nWX81RTu7w SCWfNxWoPzeSTktmHgYShI1VWU4fHeeK/1yh5jzX0ArYJNPVOeQR2jQUqPQFgoiu9C +QjHK9Tegoj+OcrjM9mSv1uvM4BJ7UiGe3eEz4u4v7AtqJ4teRXemS466AlHas6s/J e47fTwxQqjZSsvRYfSMUq7xNwvk090gLEVoerQnbyrU3IrbrxJ3YV6QGArKUL/zjhj RVoMHSL5fN8UA== Date: Wed, 16 Nov 2022 14:13:27 -0600 From: Bjorn Helgaas To: Thomas Gleixner Cc: LKML , x86@kernel.org, Joerg Roedel , Will Deacon , linux-pci@vger.kernel.org, Bjorn Helgaas , Lorenzo Pieralisi , Marc Zyngier , Greg Kroah-Hartman , Jason Gunthorpe , Dave Jiang , Alex Williamson , Kevin Tian , Dan Williams , Logan Gunthorpe , Ashok Raj , Jon Mason , Allen Hubbe , "Ahmed S. Darwish" , Reinette Chatre Subject: Re: [patch 14/33] PCI/MSI: Remove unused pci_dev_has_special_msi_domain() Message-ID: <20221116201327.GA1133644@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221111135206.064632154@linutronix.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 11, 2022 at 02:58:33PM +0100, Thomas Gleixner wrote: > 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 Acked-by: Bjorn Helgaas > --- > drivers/pci/msi/irqdomain.c | 21 --------------------- > include/linux/msi.h | 2 -- > 2 files changed, 23 deletions(-) > > --- a/drivers/pci/msi/irqdomain.c > +++ b/drivers/pci/msi/irqdomain.c > @@ -414,24 +414,3 @@ struct irq_domain *pci_msi_get_device_do > 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; > -} > --- a/include/linux/msi.h > +++ b/include/linux/msi.h > @@ -599,8 +599,6 @@ struct irq_domain *pci_msi_create_irq_do > 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); > - > #endif /* CONFIG_GENERIC_MSI_IRQ */ > > #endif /* LINUX_MSI_H */ >