Re: FreeBSD-15 kernel panic when the amdtemp device is in the kernel

2023-09-03 Thread Gary Jennejohn
On Sun, 03 Sep 2023 15:17:36 +0200 "Herbert J. Skuhra" wrote: [SNIP] > Probably best to file a PR: https://bugs.freebsd.org/bugzilla/ > Bugzilla 273543 -- Gary Jennejohn

Re: FreeBSD-15 kernel panic when the amdtemp device is in the kernel

2023-09-03 Thread Herbert J. Skuhra
On Sat, 02 Sep 2023 18:02:03 +0200, Gary Jennejohn wrote: > > On Sat, 02 Sep 2023 15:36:36 +0200 > "Herbert J. Skuhra" wrote: > > > On Fri, 01 Sep 2023 18:05:34 +0200, Gary Jennejohn wrote: > > > > > > On Fri, 1 Sep 2023 14:43:21 + > > > Gary Jennejohn wrote: > > > > > > > A git-bisect is

Re: FreeBSD-15 kernel panic when the amdtemp device is in the kernel

2023-09-02 Thread Gary Jennejohn
On Sat, 02 Sep 2023 15:36:36 +0200 "Herbert J. Skuhra" wrote: > On Fri, 01 Sep 2023 18:05:34 +0200, Gary Jennejohn wrote: > > > > On Fri, 1 Sep 2023 14:43:21 + > > Gary Jennejohn wrote: > > > > > A git-bisect is probably required. > > > > > > > I did a bisect and the result was commit > >

Re: FreeBSD-15 kernel panic when the amdtemp device is in the kernel

2023-09-02 Thread Herbert J. Skuhra
On Fri, 01 Sep 2023 18:05:34 +0200, Gary Jennejohn wrote: > > On Fri, 1 Sep 2023 14:43:21 + > Gary Jennejohn wrote: > > > A git-bisect is probably required. > > > > I did a bisect and the result was commit > 9a7add6d01f3c5f7eba811e794cf860d2bce131d. > > However, that can't be correct

Re: FreeBSD-15 kernel panic when the amdtemp device is in the kernel

2023-09-02 Thread Gary Jennejohn
On Fri, 1 Sep 2023 16:00:03 -0600 Warner Losh wrote: > I think that the problem is that admsmn has probed, but not attached (or > failed to attach for some reason), so we find the device, but it's not > initialized yet, so when we call amdsmn_read, it tries to lock a mutex > that's not yet

Re: FreeBSD-15 kernel panic when the amdtemp device is in the kernel

2023-09-01 Thread Warner Losh
I think that the problem is that admsmn has probed, but not attached (or failed to attach for some reason), so we find the device, but it's not initialized yet, so when we call amdsmn_read, it tries to lock a mutex that's not yet initialized. Not sure why this is happening, or why loading it as

Re: FreeBSD-15 kernel panic when the amdtemp device is in the kernel

2023-09-01 Thread Gary Jennejohn
On Fri, 01 Sep 2023 17:14:02 +0200 "Herbert J. Skuhra" wrote: > On Fri, 01 Sep 2023 16:04:41 +0200, Gary Jennejohn wrote: > > > > On Fri, 01 Sep 2023 14:15:20 +0200 > > "Herbert J. Skuhra" wrote: > > > > > On Fri, 01 Sep 2023 13:03:14 +0200, Gary Jennejohn wrote: > > > > > > > > I have a laptop

Re: FreeBSD-15 kernel panic when the amdtemp device is in the kernel

2023-09-01 Thread Gary Jennejohn
On Fri, 1 Sep 2023 14:43:21 + Gary Jennejohn wrote: > A git-bisect is probably required. > I did a bisect and the result was commit 9a7add6d01f3c5f7eba811e794cf860d2bce131d. However, that can't be correct because this commit was made on Mon Jul 17 19:29:20 2023 and my FBSD-14 kernel from

Re: FreeBSD-15 kernel panic when the amdtemp device is in the kernel

2023-09-01 Thread Herbert J. Skuhra
On Fri, 01 Sep 2023 16:04:41 +0200, Gary Jennejohn wrote: > > On Fri, 01 Sep 2023 14:15:20 +0200 > "Herbert J. Skuhra" wrote: > > > On Fri, 01 Sep 2023 13:03:14 +0200, Gary Jennejohn wrote: > > > > > > I have a laptop wioth a AMD Ryzen 5 and a tower with a AMD Ryzen 7 3700X. > > > > > > These

Re: FreeBSD-15 kernel panic when the amdtemp device is in the kernel

2023-09-01 Thread Gary Jennejohn
On Fri, 1 Sep 2023 14:23:36 + Gary Jennejohn wrote: > Now that I look at the date of my FreeBSD-14 kernel I see that it's from > August 13, so this commit is perhaps not the cause of my FreeBSD-15 > kernel panicking at boot time, since FBSD-14 boots OK. > > Nonetheless, amdtemp or maybe

Re: FreeBSD-15 kernel panic when the amdtemp device is in the kernel

2023-09-01 Thread Gary Jennejohn
On Fri, 1 Sep 2023 11:03:14 + Gary Jennejohn wrote: > I have a laptop wioth a AMD Ryzen 5 and a tower with a AMD Ryzen 7 3700X. > > These are respectively Zen 1 and Zen 2 CPUs. > > I built a kernel on both computers using the FreeBSD-15 source tree. > > If I include the amdtemp device in my

Re: FreeBSD-15 kernel panic when the amdtemp device is in the kernel

2023-09-01 Thread Gary Jennejohn
On Fri, 01 Sep 2023 14:15:20 +0200 "Herbert J. Skuhra" wrote: > On Fri, 01 Sep 2023 13:03:14 +0200, Gary Jennejohn wrote: > > > > I have a laptop wioth a AMD Ryzen 5 and a tower with a AMD Ryzen 7 3700X. > > > > These are respectively Zen 1 and Zen 2 CPUs. > > > > I built a kernel on both

Re: FreeBSD-15 kernel panic when the amdtemp device is in the kernel

2023-09-01 Thread Warner Losh
On Fri, Sep 1, 2023, 5:03 AM Gary Jennejohn wrote: > I have a laptop wioth a AMD Ryzen 5 and a tower with a AMD Ryzen 7 3700X. > > These are respectively Zen 1 and Zen 2 CPUs. > > I built a kernel on both computers using the FreeBSD-15 source tree. > > If I include the amdtemp device in my

Re: FreeBSD-15 kernel panic when the amdtemp device is in the kernel

2023-09-01 Thread Herbert J. Skuhra
On Fri, 01 Sep 2023 13:03:14 +0200, Gary Jennejohn wrote: > > I have a laptop wioth a AMD Ryzen 5 and a tower with a AMD Ryzen 7 3700X. > > These are respectively Zen 1 and Zen 2 CPUs. > > I built a kernel on both computers using the FreeBSD-15 source tree. > > If I include the amdtemp device

FreeBSD-15 kernel panic when the amdtemp device is in the kernel

2023-09-01 Thread Gary Jennejohn
I have a laptop wioth a AMD Ryzen 5 and a tower with a AMD Ryzen 7 3700X. These are respectively Zen 1 and Zen 2 CPUs. I built a kernel on both computers using the FreeBSD-15 source tree. If I include the amdtemp device in my kernel file BOTH computers end up with a kernel panic while trying to