[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <72694ae5-f3ef-4da5-a5ac-b18236d9583c@linux.ibm.com>
Date: Fri, 10 Oct 2025 09:53:13 +0530
From: Venkat Rao Bagalkote <venkat88@...ux.ibm.com>
To: Nam Cao <namcao@...utronix.de>, Madhavan Srinivasan
 <maddy@...ux.ibm.com>,
        LKML <linux-kernel@...r.kernel.org>,
        linuxppc-dev <linuxppc-dev@...ts.ozlabs.org>,
        Gautam Menghani <gautam@...ux.ibm.com>
Subject: Re: [bisected][mainline]Kernel OOPs at msi_desc_to_pci_dev
On 08/10/25 6:12 pm, Nam Cao wrote:
> Venkat Rao Bagalkote <venkat88@...ux.ibm.com> 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 825f9432e03d..a82aaa786e9e 100644
> --- a/arch/powerpc/platforms/pseries/msi.c
> +++ b/arch/powerpc/platforms/pseries/msi.c
> @@ -443,8 +443,7 @@ static int pseries_msi_ops_prepare(struct irq_domain *domain, struct device *dev
>    */
>   static void pseries_msi_ops_teardown(struct irq_domain *domain, msi_alloc_info_t *arg)
>   {
> -	struct msi_desc *desc = arg->desc;
> -	struct pci_dev *pdev = msi_desc_to_pci_dev(desc);
> +	struct pci_dev *pdev = to_pci_dev(domain->dev);
>   
>   	rtas_disable_msi(pdev);
>   }
>
Thanks for the fix. This change fixes the reported issue. Please add 
below tag also, while sending out the patch.
Tested-by: Venkat Rao Bagalkote <venkat88@...ux.ibm.com>
Regards,
Venkat.
Powered by blists - more mailing lists
 
