From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6141136B for ; Fri, 10 Oct 2025 04:23:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.163.158.5 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760070219; cv=none; b=AkKkMI8AIqPBWJcT9+XNe5pZWZ37VkNN1MwKEf4C4FkneADc85ph6R7uoV5gXzoVwjveuKB0uwFcgjRTWuI49q21Y/xMb3VtQpHtur/j1Ee+9z2089Ulm2+zAbsOADwc5BGvFsQLasSkvpd3k73WoNHEw9zXTJpO+tYFfAq+ksQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760070219; c=relaxed/simple; bh=n6RsdAyftAlN87tnAMgw//jh+cc1BMgT0p7KlyZ57QA=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=bFPHawTw3/T/HOODsdxhEVTb+XLLFpvadxP+ZyPd285KvPmUjl7fWY2Po7UxaA+ZByYFgHAAqYPWt6B+sUjuBItd2OZqZr+nxDuo+2mEEy2IwyUDeAxl9P6oEpsM25xhAq5dc3QdiId3zrkrsHZqeBBFcbnb0sjzTWPLEj41LoY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com; spf=pass smtp.mailfrom=linux.ibm.com; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b=kq7XAPTx; arc=none smtp.client-ip=148.163.158.5 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.ibm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ibm.com header.i=@ibm.com header.b="kq7XAPTx" Received: from pps.filterd (m0360072.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 599IHucF002809; Fri, 10 Oct 2025 04:23:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=pp1; bh=8mBBfh OUT8M6yrO90Duy0AJBqEiKRHoVuX608C0++mI=; b=kq7XAPTxSbppsUv27Pe7cd UtpRys4EbdvN7Dg5lb5D0O+D7dvJSWVxgUMsf3cYe31K1fqi7g2Rrmqkog5ocfOG qTFy4QjOeyBY7xQcbuTQvs8NgIJfWxpT8qg3ZfS0/HsoFmKoaSIY/GLJGvVE5UQR NSjbVKIE0YGm/bZrSWOkDVkOmG02LXdBZYF1tOM13EjBeO9P4OYbepjEybw5fZ0j V44qdjiQZH3YNfvhQdKsEc5veg0KVLFTw1FOIX+qmerSMb3hnGT4An3hpratIo5Z UAieZITgaJop+cYw+W4LDRxB6O55itdGtCSBhIkYpWDMp3i8NnqjIRqLkTSAZDzg == Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 49nv870fs9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Oct 2025 04:23:18 +0000 (GMT) Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.18.1.2/8.18.1.2) with ESMTP id 59A31Kns026015; Fri, 10 Oct 2025 04:23:17 GMT Received: from smtprelay07.dal12v.mail.ibm.com ([172.16.1.9]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 49nvamr31r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 10 Oct 2025 04:23:17 +0000 Received: from smtpav05.dal12v.mail.ibm.com (smtpav05.dal12v.mail.ibm.com [10.241.53.104]) by smtprelay07.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 59A4NG1I27919090 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 10 Oct 2025 04:23:16 GMT Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8E49F58065; Fri, 10 Oct 2025 04:23:16 +0000 (GMT) Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0CD6958052; Fri, 10 Oct 2025 04:23:15 +0000 (GMT) Received: from [9.61.240.51] (unknown [9.61.240.51]) by smtpav05.dal12v.mail.ibm.com (Postfix) with ESMTP; Fri, 10 Oct 2025 04:23:14 +0000 (GMT) Message-ID: <72694ae5-f3ef-4da5-a5ac-b18236d9583c@linux.ibm.com> Date: Fri, 10 Oct 2025 09:53:13 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [bisected][mainline]Kernel OOPs at msi_desc_to_pci_dev To: Nam Cao , Madhavan Srinivasan , LKML , linuxppc-dev , Gautam Menghani References: <878d7651-433a-46fe-a28b-1b7e893fcbe0@linux.ibm.com> <87wm55h8ep.fsf@yellow.woof> Content-Language: en-GB From: Venkat Rao Bagalkote In-Reply-To: <87wm55h8ep.fsf@yellow.woof> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: CVYy3NYgwX7N4bgbJ4yKHTBIwFj0eEe- X-Proofpoint-ORIG-GUID: CVYy3NYgwX7N4bgbJ4yKHTBIwFj0eEe- X-Authority-Analysis: v=2.4 cv=MKNtWcZl c=1 sm=1 tr=0 ts=68e88a36 cx=c_pps a=aDMHemPKRhS1OARIsFnwRA==:117 a=aDMHemPKRhS1OARIsFnwRA==:17 a=IkcTkHD0fZMA:10 a=x6icFKpwvdMA:10 a=VnNF1IyMAAAA:8 a=ZJ7TM_y2-Z2NVvSBRrsA:9 a=QEXdDO2ut3YA:10 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUxMDA4MDEyMSBTYWx0ZWRfX3kfu4vM4FKS3 inIkwG2cH33mSGhKqpLj5fcAGnZH3L1eBCIRS+tvIUDLM1/dIUWn+Jr3QjfgLlkCW2I3Bv+Lu3L couripZXvEeieh4q0IMfONrH6viy4wb0dB6c7pH2GaIKCiFMNACNCKo+ELlHsAY+76TmRwSIBnb dTFmWGofqa5L6CUXDVkAWDmA5cLyQuU8xoYrdKaFW+6qhChKftDE0/aPJRVKRukh1Ec06YTYpxe 6pxcPaZcQ7YObarxpXD0eY3CsqDgRInLTd7zPHnXJplMsvds5cq7rjsiEkFpkbOtoItneTPrOIP mkd7aBySEcKF/p6CFoK3UyrH3MHkmMKznrcf8pTqViSRTm5DiRx2QjQSNul6FteJqwgcXCaYTrb LBaQZZVnMVVMJv9ZxxeD1U7iwN10vw== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1117,Hydra:6.1.9,FMLib:17.12.80.40 definitions=2025-10-10_01,2025-10-06_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 phishscore=0 malwarescore=0 bulkscore=0 spamscore=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2510020000 definitions=main-2510080121 On 08/10/25 6:12 pm, Nam Cao wrote: > 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 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 Regards, Venkat.