linux/arch/powerpc/sysdev
Nam Cao 2743cf75f7 powerpc, ocxl: Fix extraction of struct xive_irq_data
Commit cc0cc23bab ("powerpc/xive: Untangle xive from child interrupt
controller drivers") changed xive_irq_data to be stashed to chip_data
instead of handler_data. However, multiple places are still attempting to
read xive_irq_data from handler_data and get a NULL pointer deference bug.

Update them to read xive_irq_data from chip_data.

Non-XIVE files which touch xive_irq_data seem quite strange to me,
especially the ocxl driver. I think there ought to be an alternative
platform-independent solution, instead of touching XIVE's data directly.
Therefore, I think this whole thing should be cleaned up. But perhaps I
just misunderstand something. In any case, this cleanup would not be
trivial; for now, just get things working again.

Fixes: cc0cc23bab ("powerpc/xive: Untangle xive from child interrupt controller drivers")
Reported-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Closes: https://lore.kernel.org/linuxppc-dev/68e48df8.170a0220.4b4b0.217d@mx.google.com/
Signed-off-by: Nam Cao <namcao@linutronix.de>
Reviewed-by: Ganesh Goudar <ganeshgr@linux.ibm.com>
Acked-by: Andrew Donnellan <ajd@linux.ibm.com>  # ocxl
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20251008081359.1382699-1-namcao@linutronix.de
2025-10-13 09:40:55 +05:30
..
ge powerpc: Switch to irq_find_mapping() 2025-05-16 21:06:12 +02:00
xics irqdomain: Rename irq_set_default_host() to irq_set_default_domain() 2025-04-04 16:39:10 +02:00
xive powerpc, ocxl: Fix extraction of struct xive_irq_data 2025-10-13 09:40:55 +05:30
6xx-suspend.S
Kconfig powerpc: Replace CONFIG_4xx with CONFIG_44x 2024-06-28 22:28:48 +10:00
Makefile powerpc: Remove PPC_PMI and driver 2025-02-26 21:15:07 +05:30
cpm2.c powerpc/cpm2: Remove cpm2_map() and cpm2_unmap() 2023-08-16 23:54:47 +10:00
cpm2_pic.c powerpc: Switch to irq_find_mapping() 2025-05-16 21:06:12 +02:00
cpm2_pic.h
cpm_common.c powerpc/cpm2: Drop legacy-of-mm-gpiochip.h header 2025-09-06 16:05:26 +05:30
cpm_gpio.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
dart.h
dart_iommu.c powerpc/dart: Drop unnecessary call to kmemleak_no_scan() 2024-04-29 23:51:16 +10:00
dcr-low.S powerpc: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-16 23:54:48 +10:00
dcr.c powerpc: Remove DCR_MMIO and the DCR generic layer 2025-02-26 21:15:08 +05:30
ehv_pic.c powerpc: Switch to irq_find_mapping() 2025-05-16 21:06:12 +02:00
fsl_gtm.c powerpc: Fix kernel-doc comments in fsl_gtm.c 2024-05-07 23:16:13 +10:00
fsl_lbc.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
fsl_mpic_err.c powerpc/sysdev: Add __init attribute to eligible functions 2021-12-23 22:33:12 +11:00
fsl_mpic_timer_wakeup.c powerpc: sysdev: use lock guard for mutex 2025-06-23 09:57:11 +05:30
fsl_msi.c powerpc: Use dev_fwnode() 2025-08-20 13:53:10 +05:30
fsl_msi.h
fsl_pci.c powerpc/fsl-pci: Use PCI_HEADER_TYPE_MASK instead of literal 2023-12-01 15:00:54 -06:00
fsl_pci.h powerpc/fsl_pci: Make fsl_add_bridge() static 2023-08-18 17:03:13 +10:00
fsl_pmc.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
fsl_rcpm.c
fsl_rio.c powerpc/85xx: Mark some functions static and add missing includes to fix no previous prototype error 2023-08-23 15:55:21 +10:00
fsl_rio.h
fsl_rmu.c powerpc/85xx: Mark some functions static and add missing includes to fix no previous prototype error 2023-08-23 15:55:21 +10:00
fsl_soc.c TTY/Serial driver changes for 6.6-rc1 2023-09-01 09:38:00 -07:00
fsl_soc.h
grackle.c powerpc/32: Drop unused grackle_set_stg() 2023-11-27 22:01:15 +11:00
i8259.c powerpc: Switch to irq_domain_create_*() 2025-05-16 21:06:11 +02:00
indirect_pci.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
ipic.c powerpc: Switch to irq_find_mapping() 2025-05-16 21:06:12 +02:00
ipic.h
mmio_nvram.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
mpc5xxx_clocks.c powerpc/mpc5xxx: Add missing fwnode_handle_put() 2023-08-25 08:39:30 +10:00
mpic.c A set of cleanups for the generic interrupt subsystem: 2025-05-27 08:07:32 -07:00
mpic.h powerpc/pasemi: Add __init attribute to eligible functions 2021-12-23 22:33:14 +11:00
mpic_msgr.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
mpic_msi.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
mpic_timer.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
mpic_u3msi.c powerpc/msi: Fix deassociation of MSI descriptors 2022-12-17 10:58:48 +00:00
msi_bitmap.c mm/memblock: add memblock_alloc_or_panic interface 2025-01-25 20:22:38 -08:00
of_rtc.c powerpc: Explicitly include correct DT includes 2023-08-02 22:22:19 +10:00
rtc_cmos_setup.c powerpc: add missing MODULE_DESCRIPTION() macros 2024-07-04 22:39:20 +10:00
tsi108_dev.c powerpc: Use of_address_to_resource() 2023-04-04 22:11:03 +10:00
tsi108_pci.c powerpc: Switch to irq_domain_create_*() 2025-05-16 21:06:11 +02:00
udbg_memcons.c powerpc: udbg_memcons: mark functions static 2024-02-06 21:17:44 +11:00