[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250903173856.GA1208089@bhelgaas>
Date: Wed, 3 Sep 2025 12:38:56 -0500
From: Bjorn Helgaas <helgaas@...nel.org>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: LKML <linux-kernel@...r.kernel.org>, Marc Zyngier <maz@...nel.org>,
Bjorn Helgaas <bhelgaas@...gle.com>
Subject: Re: [patch 2/2] PCI/MSI: Remove the conditional parent [un]mask logic
On Wed, Sep 03, 2025 at 04:04:48PM +0200, Thomas Gleixner wrote:
> Now that msi_lib_init_dev_msi_info() overwrites the irq_[un]mask()
> callbacks when the MSI_FLAG_PCI_MSI_MASK_PARENT flag is set by the parent
> domain, the conditional [un]mask logic is obsolete.
>
> Remove it.
>
> Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
> Cc: Bjorn Helgaas <bhelgaas@...gle.com>
Acked-by: Bjorn Helgaas <bhelgaas@...gle.com>
> ---
> drivers/pci/msi/irqdomain.c | 20 --------------------
> 1 file changed, 20 deletions(-)
>
> --- a/drivers/pci/msi/irqdomain.c
> +++ b/drivers/pci/msi/irqdomain.c
> @@ -170,22 +170,6 @@ static unsigned int cond_startup_parent(
> return 0;
> }
>
> -static __always_inline void cond_mask_parent(struct irq_data *data)
> -{
> - struct msi_domain_info *info = data->domain->host_data;
> -
> - if (unlikely(info->flags & MSI_FLAG_PCI_MSI_MASK_PARENT))
> - irq_chip_mask_parent(data);
> -}
> -
> -static __always_inline void cond_unmask_parent(struct irq_data *data)
> -{
> - struct msi_domain_info *info = data->domain->host_data;
> -
> - if (unlikely(info->flags & MSI_FLAG_PCI_MSI_MASK_PARENT))
> - irq_chip_unmask_parent(data);
> -}
> -
> static void pci_irq_shutdown_msi(struct irq_data *data)
> {
> struct msi_desc *desc = irq_data_get_msi_desc(data);
> @@ -208,14 +192,12 @@ static void pci_irq_mask_msi(struct irq_
> struct msi_desc *desc = irq_data_get_msi_desc(data);
>
> pci_msi_mask(desc, BIT(data->irq - desc->irq));
> - cond_mask_parent(data);
> }
>
> static void pci_irq_unmask_msi(struct irq_data *data)
> {
> struct msi_desc *desc = irq_data_get_msi_desc(data);
>
> - cond_unmask_parent(data);
> pci_msi_unmask(desc, BIT(data->irq - desc->irq));
> }
>
> @@ -268,12 +250,10 @@ static unsigned int pci_irq_startup_msix
> static void pci_irq_mask_msix(struct irq_data *data)
> {
> pci_msix_mask(irq_data_get_msi_desc(data));
> - cond_mask_parent(data);
> }
>
> static void pci_irq_unmask_msix(struct irq_data *data)
> {
> - cond_unmask_parent(data);
> pci_msix_unmask(irq_data_get_msi_desc(data));
> }
>
>
Powered by blists - more mailing lists