Re: [bisected][mainline]Kernel OOPs at msi_desc_to_pci_dev

2025-10-08 Thread Nam Cao
Venkat Rao Bagalkote writes: > IBM CI has reported a kernel crash while running module load and unload > testing on lpfc driver. Thanks for the report. I trust the below patch should fix the issue? diff --git a/arch/powerpc/platforms/pseries/msi.c b/arch/powerpc/platforms/pseries/msi.c index

Re: [PATCH] genirq/msi: Remove msi_post_free()

2025-09-23 Thread Nam Cao
Nam Cao writes: > The only user of msi_post_free() - powerpc/pseries - has been changed to > use msi_teardown(). > > Remove this unused callback. > > Signed-off-by: Nam Cao > --- > This patch depends on the powerpc/series conversion patch, which is > current

[PATCH] genirq/msi: Remove msi_post_free()

2025-09-15 Thread Nam Cao
The only user of msi_post_free() - powerpc/pseries - has been changed to use msi_teardown(). Remove this unused callback. Signed-off-by: Nam Cao --- This patch depends on the powerpc/series conversion patch, which is currently in powerpc tree: https://lore.kernel.org/lkml

[PATCH v2 0/3] powerpc: Cleanup and convert to MSI parent domain

2025-08-11 Thread Nam Cao
have to implement MSI parent domain functionality instead. This series: - Untangle XIVE driver from Powernv and Pseries drivers - Convert the Powernv and Pseries drivers to implement MSI parent domain functionality v2: Fix up boot issue with NVMe Nam Cao (3): powerpc/xive: Untangle

[PATCH v2 2/3] powerpc/powernv/pci: Switch to use msi_create_parent_irq_domain()

2025-08-11 Thread Nam Cao
Move away from the legacy MSI domain setup, switch to use msi_create_parent_irq_domain(). Signed-off-by: Nam Cao --- v2: no change --- arch/powerpc/platforms/powernv/Kconfig| 1 + arch/powerpc/platforms/powernv/pci-ioda.c | 75 ++- 2 files changed, 35 insertions(+), 41

[PATCH v2 1/3] powerpc/xive: Untangle xive from child interrupt controller drivers

2025-08-11 Thread Nam Cao
p_data and untangle the child drivers. Signed-off-by: Nam Cao --- v2: no change --- arch/powerpc/include/asm/xive.h | 1 - arch/powerpc/platforms/powernv/pci-ioda.c | 21 +--- arch/powerpc/platforms/pseries/msi.c | 18 +-- arch/powerpc/sysdev/xive/common.c

[PATCH v2 3/3] powerpc/pseries/msi: Switch to msi_create_parent_irq_domain()

2025-08-11 Thread Nam Cao
Move away from the legacy MSI domain setup, switch to use msi_create_parent_irq_domain(). Signed-off-by: Nam Cao --- v2: Use msi_teardown() instead of msi_post_free() to fix boot issue with NVMe --- arch/powerpc/include/asm/pci-bridge.h | 2 - arch/powerpc/platforms/pseries/Kconfig | 1

[PATCH 2/2] powerpc/powernv/pci: Fix underflow and leak issue

2025-08-04 Thread Nam Cao
- One interrupt is not be freed - If "i" is zero, "i - 1" wraps around Correct the number of freed interrupts to "i". Fixes: 0fcfe2247e75 ("powerpc/powernv/pci: Add MSI domains") Signed-off-by: Nam Cao Cc: sta...@vger.kernel.org --- arch/powerpc/platf

[PATCH 1/2] powerpc/pseries/msi: Fix potential underflow and leak issue

2025-08-04 Thread Nam Cao
- One interrupt is not be freed - If "i" is zero, "i - 1" wraps around Correct the number of freed interrupts to 'i'. Fixes: a5f3d2c17b07 ("powerpc/pseries/pci: Add MSI domains") Signed-off-by: Nam Cao Cc: sta...@vger.kernel.org --- arch/powerpc/

[PATCH 0/2] powerpc: Fix integer underflow & leak

2025-08-04 Thread Nam Cao
that series. However, that bug triggered another existing bug, causing the reported end results. Nam Cao (2): powerpc/pseries/msi: Fix potential underflow and leak issue powerpc/powernv/pci: Fix underflow and leak issue arch/powerpc/platforms/powernv/pci-ioda.c | 2 +- arch/powerpc/platf

Re: [PATCH 0/3] powerpc: Cleanup and convert to MSI parent domain

2025-07-22 Thread Nam Cao
> On Tue, Jul 22, 2025 at 02:05:55PM +0530, Gautam Menghani wrote: > > I am seeing a boot failure after applying this series on top of the pci > > tree [1]. Note that this error was seen on a system where I have a > > dedicated NVME. Systems without dedicated disk boot fine > > Thanks for the repo

Re: [PATCH 0/3] powerpc: Cleanup and convert to MSI parent domain

2025-07-22 Thread Nam Cao
On Tue, Jul 22, 2025 at 02:05:55PM +0530, Gautam Menghani wrote: > I am seeing a boot failure after applying this series on top of the pci > tree [1]. Note that this error was seen on a system where I have a > dedicated NVME. Systems without dedicated disk boot fine Thanks for the report. Using Q

[PATCH 1/3] powerpc/xive: Untangle xive from child interrupt controller drivers

2025-06-26 Thread Nam Cao
p_data and untangle the child drivers. Signed-off-by: Nam Cao --- arch/powerpc/include/asm/xive.h | 1 - arch/powerpc/platforms/powernv/pci-ioda.c | 21 +--- arch/powerpc/platforms/pseries/msi.c | 18 +-- arch/powerpc/sysdev/xive/common.c | 63 +++---

[PATCH 3/3] powerpc/pseries/msi: Switch to msi_create_parent_irq_domain()

2025-06-26 Thread Nam Cao
Move away from the legacy MSI domain setup, switch to use msi_create_parent_irq_domain(). Signed-off-by: Nam Cao --- arch/powerpc/include/asm/pci-bridge.h | 2 - arch/powerpc/platforms/pseries/Kconfig | 1 + arch/powerpc/platforms/pseries/msi.c | 106 ++--- 3 files

[PATCH 2/3] powerpc/powernv/pci: Switch to use msi_create_parent_irq_domain()

2025-06-26 Thread Nam Cao
Move away from the legacy MSI domain setup, switch to use msi_create_parent_irq_domain(). Signed-off-by: Nam Cao --- arch/powerpc/platforms/powernv/Kconfig| 1 + arch/powerpc/platforms/powernv/pci-ioda.c | 75 ++- 2 files changed, 35 insertions(+), 41 deletions(-) diff

[PATCH 0/3] powerpc: Cleanup and convert to MSI parent domain

2025-06-26 Thread Nam Cao
have to implement MSI parent domain functionality instead. This series: - Untangle XIVE driver from Powernv and Pseries drivers - Convert the Powernv and Pseries drivers to implement MSI parent domain functionality Nam Cao (3): powerpc/xive: Untangle xive from child interrupt