]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
powerpc/xics: Drop unmask of MSIs at startup
authorCédric Le Goater <clg@kaod.org>
Thu, 1 Jul 2021 13:27:41 +0000 (15:27 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 10 Aug 2021 13:15:00 +0000 (23:15 +1000)
That was a workaround in the XICS domain because of the lack of MSI
domain. This is now handled.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210701132750.1475580-24-clg@kaod.org
arch/powerpc/sysdev/xics/ics-opal.c
arch/powerpc/sysdev/xics/ics-rtas.c

index bf26cae1b982f44c11a9d56c8a93c4240bbed26d..c4d95d8beb6fe73aec687d13ee8765a3f5e8f350 100644 (file)
@@ -62,17 +62,6 @@ static void ics_opal_unmask_irq(struct irq_data *d)
 
 static unsigned int ics_opal_startup(struct irq_data *d)
 {
-#ifdef CONFIG_PCI_MSI
-       /*
-        * The generic MSI code returns with the interrupt disabled on the
-        * card, using the MSI mask bits. Firmware doesn't appear to unmask
-        * at that level, so we do it here by hand.
-        */
-       if (irq_data_get_msi_desc(d))
-               pci_msi_unmask_irq(d);
-#endif
-
-       /* unmask it */
        ics_opal_unmask_irq(d);
        return 0;
 }
index b50c6341682e26fb04ac2f85373c569978b5c270..b9da317b7a2d75f91788e4780576b94e6e3d284a 100644 (file)
@@ -57,15 +57,6 @@ static void ics_rtas_unmask_irq(struct irq_data *d)
 
 static unsigned int ics_rtas_startup(struct irq_data *d)
 {
-#ifdef CONFIG_PCI_MSI
-       /*
-        * The generic MSI code returns with the interrupt disabled on the
-        * card, using the MSI mask bits. Firmware doesn't appear to unmask
-        * at that level, so we do it here by hand.
-        */
-       if (irq_data_get_msi_desc(d))
-               pci_msi_unmask_irq(d);
-#endif
        /* unmask it */
        ics_rtas_unmask_irq(d);
        return 0;