linux/arch/powerpc/platforms/powernv
Shivaprasad G Bhat d96171d911 powerpc: pci-ioda: Fix the stale irq chip reference
The commit f0ac60e6e3 ("powerpc/powernv/pci: Switch to use
msi_create_parent_irq_domain()") removed the legacy MSI irq chip
pnv_pci_msi_irq_chip but left behind the static definition of it and
its reference in is_pnv_opal_msi().

The KVM IRQ bypass for vfio devices is broken because the
comparision in is_pnv_opal_msi() fails on the comparision with
stale unused variable showing the below errors in dmesg.

 kvmppc_set_passthru_irq_hv: Could not assign IRQ map for (X,Y)
 kvmppc_set_passthru_irq (irq X, gsi Y) fails: -2
 vfio-pci A:B:C.D irq bypass producer (eventfd Z) registration fails: -2

The patch removes the stale variable definition and fixes the
is_pnv_opal_msi() by comparing against the chip name prefix.

Fixes: f0ac60e6e3 ("powerpc/powernv/pci: Switch to use msi_create_parent_irq_domain()")
Cc: stable@kernel.org
Signed-off-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Tested-by: Gautam Menghani <gautam@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/178716225364.1437.6201568081502251835.stgit@linux.ibm.com
2026-09-05 11:11:39 +05:30
..
copy-paste.h
eeh-powernv.c powerpc: Stop using no_llseek 2024-09-05 22:30:14 +10:00
idle.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
Kconfig powerpc/powernv/pci: Switch to use msi_create_parent_irq_domain() 2025-09-06 17:33:19 +05:30
Makefile cxl: Remove driver 2025-03-16 22:04:27 +11:00
memtrace.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
ocxl.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
opal-async.c Convert remaining multi-line kmalloc_obj/flex GFP_KERNEL uses 2026-02-22 08:26:33 -08:00
opal-call.c powerpc/powernv/pci: Remove MVE code 2023-06-21 15:13:57 +10:00
opal-core.c powerpc: opal-core: pair alloc_pages_exact() with free_pages_exact() 2026-04-01 11:19:45 +03:00
opal-dump.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
opal-elog.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
opal-fadump.c powerpc/fadump: setup additional parameters for dump capture kernel 2024-05-10 16:36:10 +10:00
opal-fadump.h powerpc/fadump: Annotate endianness cast with __force 2023-10-19 17:16:20 +11:00
opal-flash.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
opal-hmi.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
opal-imc.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
opal-irqchip.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
opal-kmsg.c printk: Add a short description string to kmsg_dump() 2024-07-17 12:35:24 +02:00
opal-lpc.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
opal-memory-errors.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
opal-msglog.c sysfs: treewide: switch back to bin_attribute::read()/write() 2025-06-17 10:44:13 +02:00
opal-nvram.c
opal-power.c
opal-powercap.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
opal-prd.c powerpc: Switch back to struct platform_driver::remove() 2024-09-10 11:27:40 +10:00
opal-psr.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
opal-rtc.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
opal-secvar.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
opal-sensor-groups.c Convert more 'alloc_obj' cases to default GFP_KERNEL arguments 2026-02-21 20:03:00 -08:00
opal-sensor.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
opal-sysparam.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
opal-tracepoints.c powerpc: Move C prototypes out of asm-prototypes.h 2022-03-08 22:06:25 +11:00
opal-wrappers.S powerpc/64: provide a helper macro to load r2 with the kernel TOC 2022-09-28 19:22:12 +10:00
opal-xscom.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
opal.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
pci-ioda-tce.c KVM: PPC: Book3s: Retire H_PUT_TCE/etc real mode handlers 2022-05-19 00:44:01 +10:00
pci-ioda.c powerpc: pci-ioda: Fix the stale irq chip reference 2026-09-05 11:11:39 +05:30
pci-sriov.c PCI: Make pci_sriov_resource_alignment() pci_dev const 2026-06-23 12:08:51 -05:00
pci.c cxl: Remove driver 2025-03-16 22:04:27 +11:00
pci.h PCI: Make pci_sriov_resource_alignment() pci_dev const 2026-06-23 12:08:51 -05:00
powernv.h powerpc/powernv: wire up rng during setup_arch 2022-06-22 19:47:22 +10:00
rng.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
setup.c powerpc/powernv: Avoid strlen() in pnv_restart() 2026-07-31 17:06:44 +05:30
smp.c powerpc/xive: propagate IPI init errors to prevent use-after-free 2026-08-03 13:55:59 +05:30
subcore-asm.S
subcore.c powerpc: use sysfs_emit{_at} in sysfs show functions 2026-06-02 11:24:32 +05:30
subcore.h powerpc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers 2025-09-01 13:23:29 +05:30
ultravisor.c sysfs: treewide: switch back to bin_attribute::read()/write() 2025-06-17 10:44:13 +02:00
vas-debug.c
vas-fault.c powerpc: Fix all occurences of duplicate words 2022-07-25 12:05:15 +10:00
vas-trace.h
vas-window.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vas.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
vas.h powerpc/powernv/vas: Assign real address to rx_fifo in vas_rx_win_attr 2022-05-22 15:58:27 +10:00