linux/drivers/misc/ocxl
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
..
afu_irq.c powerpc, ocxl: Fix extraction of struct xive_irq_data 2025-10-13 09:40:55 +05:30
config.c ocxl: fix pci device refcount leak when calling get_function_0() 2022-11-23 19:49:22 +01:00
context.c misc: ocxl: context: Remove unnecessary (void*) conversions 2023-11-27 22:01:14 +11:00
core.c ocxl: simplify the return expression of free_function_dev() 2020-10-02 11:35:46 +02:00
file.c eventfd: simplify eventfd_signal() 2023-11-28 14:08:38 +01:00
Kconfig powerpc updates for 5.10 2020-10-16 12:21:15 -07:00
link.c misc: ocxl: link: Remove unnecessary (void*) conversions 2023-11-27 22:01:14 +11:00
main.c misc: ocxl: main: Remove unnecessary ‘0’ values from rc 2023-11-27 22:01:14 +11:00
Makefile ocxl: Provide global MMIO accessors for external drivers 2019-05-03 02:55:02 +10:00
mmio.c ocxl: Provide global MMIO accessors for external drivers 2019-05-03 02:55:02 +10:00
ocxl_internal.h ocxl: Remove the unused declarations in headr file 2024-09-11 16:03:20 +02:00
pasid.c
pci.c ocxl: Make ocxl_remove() static 2019-05-28 12:08:11 +10:00
sysfs.c Driver core changes for 6.17-rc1 2025-07-29 12:15:39 -07:00
trace.c ocxl: Add trace points 2018-01-24 11:42:59 +11:00
trace.h ocxl: Add new kernel traces 2020-12-04 01:01:30 +11:00