mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
To: Nam Cao <namcao@linutronix.de>,
	Madhavan Srinivasan <maddy@linux.ibm.com>,
	LKML <linux-kernel@vger.kernel.org>,
	linuxppc-dev <linuxppc-dev@lists.ozlabs.org>,
	Gautam Menghani <gautam@linux.ibm.com>
Subject: Re: [bisected][mainline]Kernel OOPs at msi_desc_to_pci_dev
Date: Fri, 10 Oct 2025 09:53:13 +0530	[thread overview]
Message-ID: <72694ae5-f3ef-4da5-a5ac-b18236d9583c@linux.ibm.com> (raw)
In-Reply-To: <87wm55h8ep.fsf@yellow.woof>


On 08/10/25 6:12 pm, Nam Cao wrote:
> Venkat Rao Bagalkote <venkat88@linux.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@linux.ibm.com>


Regards,

Venkat.



      reply	other threads:[~2025-10-10  4:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-10-08 10:57 Venkat Rao Bagalkote
2025-10-08 12:42 ` Nam Cao
2025-10-10  4:23   ` Venkat Rao Bagalkote [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=72694ae5-f3ef-4da5-a5ac-b18236d9583c@linux.ibm.com \
    --to=venkat88@linux.ibm.com \
    --cc=gautam@linux.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=maddy@linux.ibm.com \
    --cc=namcao@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®