Date: Thu, 29 Jun 2023 15:44:58 +0000 From: Sha Faisal <sfaisal@juniper.net> To: "andrew@fubar.geek.nz" <andrew@fubar.geek.nz> Cc: "freebsd-arm@FreeBSD.org" <freebsd-arm@freebsd.org>, Steve Kiernan <stevek@juniper.net>, Mahesh Vardhamanaiah <maheshmv@juniper.net>, Amit Verma <amitv@juniper.net> Subject: Re: Kernel crash before login prompt Message-ID: <BYAPR05MB6677FCD23054EF4D9CA0E4EAB725A@BYAPR05MB6677.namprd05.prod.outlook.com> In-Reply-To: <1327534fa4a1da584a3a38b194999595@fubar.geek.nz> References: <BYAPR05MB66779D6947C5BE371C8EA3B3B724A@BYAPR05MB6677.namprd05.prod.outlook.com> <BYAPR05MB6677A86EDDAEDBE5E0DD6266B724A@BYAPR05MB6677.namprd05.prod.outlook.com> <E03D720A-B18B-45C6-9BD6-7CA6FDA83560@fubar.geek.nz> <BYAPR05MB6677E63414F88873FF17174BB724A@BYAPR05MB6677.namprd05.prod.outlook.com> <6537067F-670A-4B52-87FA-FF2DBAD68120@fubar.geek.nz> <BYAPR05MB667764EF552E113B08FD1222B725A@BYAPR05MB6677.namprd05.prod.outlook.com> <d12ce5cd719f9e1c2f4c5f53b89e0265@fubar.geek.nz> <BYAPR05MB6677AED54B7EA054E7B8C170B725A@BYAPR05MB6677.namprd05.prod.outlook.com> <1327534fa4a1da584a3a38b194999595@fubar.geek.nz>
next in thread | previous in thread | raw e-mail | index | archive | help
--_000_BYAPR05MB6677FCD23054EF4D9CA0E4EAB725ABYAPR05MB6677namp_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable The SoC has 4 CPU=92s, but we have restricted it to only one by disabling o= ther 3. So the cpu value should be 0, I can confirm, with a print, because we are n= ot getting the function frame for the functions calling __mtx_lock_spin_fla= gs Regards Faisal Juniper Business Use Only From: andrew@fubar.geek.nz <andrew@fubar.geek.nz> Date: Thursday, 29 June 2023 at 20:49 To: Sha Faisal <sfaisal@juniper.net> Cc: freebsd-arm@FreeBSD.org <freebsd-arm@freebsd.org>, Steve Kiernan <steve= k@juniper.net>, Mahesh Vardhamanaiah <maheshmv@juniper.net>, Amit Verma <am= itv@juniper.net> Subject: Re: Kernel crash before login prompt [External Email. Be cautious of content] On 2023-06-29 16:03, Sha Faisal wrote: > Hello Andrew, > > The addr2line for the address points to, > > [sfaisal@svl-bsdx-02 /b/sfaisal/stable_main/src]$ addr2line -e > ../obj/arm64/juniper/kernels/JNPR-ARM64-WIT/kernel/kernel.full -f > 0xffff0000002244dc > > sched_add > > /b/sfaisal/stable_main/src/sys/kern/sched_ule.c:1309 > > Sched_setcpu is the exact function which calls > TDQ_LOCK(__mtx_lock_spin_flags) , and sched_setcpu is an inline called > from sched_add() What cpu is being passed in to sched_setcpu? Andrew --_000_BYAPR05MB6677FCD23054EF4D9CA0E4EAB725ABYAPR05MB6677namp_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable <html xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:sc= hemas-microsoft-com:office:word" xmlns:m=3D"http://schemas.microsoft.com/of= fice/2004/12/omml" xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1= 252"> <meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)"> <style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; font-size:10.0pt; font-family:"Calibri",sans-serif;} span.EmailStyle19 {mso-style-type:personal-reply; font-family:"Calibri",sans-serif; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt; mso-ligatures:none;} @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt;} div.WordSection1 {page:WordSection1;} --></style> </head> <body lang=3D"EN-IN" link=3D"#0563C1" vlink=3D"#954F72" style=3D"word-wrap:= break-word"> <div class=3D"WordSection1"> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;mso-fareast-language= :EN-US">The SoC has 4 CPU=92s, but we have restricted it to only one by dis= abling other 3.<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;mso-fareast-language= :EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;mso-fareast-language= :EN-US">So the cpu value should be 0, I can confirm, with a print, because = we are not getting the function frame for the functions calling __mtx_lock_= spin_flags<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;mso-fareast-language= :EN-US"><o:p> </o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;mso-fareast-language= :EN-US">Regards<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;mso-fareast-language= :EN-US">Faisal<o:p></o:p></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;mso-fareast-language= :EN-US"><o:p> </o:p></span></p> <div id=3D"mail-editor-reference-message-container"> <div> <div style=3D"border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm = 0cm 0cm"> <p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><b><span style=3D"fon= t-size:12.0pt;color:black"><br> </p> <p style=3D"font-family:Calibri;font-size:7pt;color:#000000;margin:15pt;fon= t-style:normal;font-weight:normal;text-decoration:none;" align=3D"Center"> Juniper Business Use Only<br> </p> From: </span></b><span style=3D"font-size:12.0pt;color:black">andrew@fubar.= geek.nz <andrew@fubar.geek.nz><br> <b>Date: </b>Thursday, 29 June 2023 at 20:49<br> <b>To: </b>Sha Faisal <sfaisal@juniper.net><br> <b>Cc: </b>freebsd-arm@FreeBSD.org <freebsd-arm@freebsd.org>, Steve K= iernan <stevek@juniper.net>, Mahesh Vardhamanaiah <maheshmv@junipe= r.net>, Amit Verma <amitv@juniper.net><br> <b>Subject: </b>Re: Kernel crash before login prompt<o:p></o:p></span> <p></p> </div> <div> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt">[External Email. Be= cautious of content]<br> <br> <br> On 2023-06-29 16:03, Sha Faisal wrote:<br> > Hello Andrew,<br> ><br> > The addr2line for the address points to,<br> ><br> > [sfaisal@svl-bsdx-02 /b/sfaisal/stable_main/src]$ addr2line -e<br> > ../obj/arm64/juniper/kernels/JNPR-ARM64-WIT/kernel/kernel.full -f<br> > 0xffff0000002244dc<br> ><br> > sched_add<br> ><br> > /b/sfaisal/stable_main/src/sys/kern/sched_ule.c:1309<br> ><br> > Sched_setcpu is the exact function which calls<br> > TDQ_LOCK(__mtx_lock_spin_flags) , and sched_setcpu is an inline called= <br> > from sched_add()<br> <br> What cpu is being passed in to sched_setcpu?<br> <br> Andrew<o:p></o:p></span></p> </div> </div> </div> </div> </body> </html> --_000_BYAPR05MB6677FCD23054EF4D9CA0E4EAB725ABYAPR05MB6677namp_--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi? <BYAPR05MB6677FCD23054EF4D9CA0E4EAB725A>