Date: Wed, 17 Sep 2025 09:30:48 +0100 From: Nuno Teixeira <eduardo@freebsd.org> To: Mark Millard <marklmi@yahoo.com> Cc: Cy Schubert <Cy.Schubert@cschubert.com>, dev-commits-src-main@freebsd.org, "obiwac@freebsd.org" <obiwac@freebsd.org> Subject: Re: git: e779891327b1 - main - sys/power: Sleep type reporting by PM backends Message-ID: <CAFDf7ULjiC1hjTFc5z41OfvKabBkV3kxTGK1af3-AZjC9G23Ew@mail.gmail.com> In-Reply-To: <6DF1A387-06ED-482F-8FCB-66CA6373B04D@yahoo.com> References: <6DF1A387-06ED-482F-8FCB-66CA6373B04D.ref@yahoo.com> <6DF1A387-06ED-482F-8FCB-66CA6373B04D@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000006a9081063efb0e9f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Mark, I see that crash too on upgrade from yesterday 2025-09-16 on reboot. I used bectl to put me back to latest working main, 2025-09-06. Thanks, Mark Millard <marklmi@yahoo.com> escreveu (quarta, 17/09/2025 =C3=A0(s) 06:= 32): > Cy Schubert <Cy.Schubert_at_cschubert.com> wrote on > Date: Tue, 16 Sep 2025 05:02:39 UTC : > > > In message <202509142159.58ELx5Rg054606@gitrepo.freebsd.org>, Aymeric > Wibo writ > > es: > > > The branch main has been updated by obiwac: > > > > > > URL: > https://cgit.FreeBSD.org/src/commit/?id=3De779891327b1d9b9ab10ba482e59f49= 8 > > > 790505a7 > > > > > > commit e779891327b1d9b9ab10ba482e59f498790505a7 > > > Author: Aymeric Wibo <obiwac@FreeBSD.org> > > > AuthorDate: 2025-09-14 21:58:13 +0000 > > > Commit: Aymeric Wibo <obiwac@FreeBSD.org> > > > CommitDate: 2025-09-14 21:58:15 +0000 > > > > > > sys/power: Sleep type reporting by PM backends > > > > > > Allow PM backends to report supported sleep types when registering > > > through `power_pm_register`. Expose this information through > > > `kern.power.supported_stype` sysctl, and set defaults for > > > `power_standby/suspend/hibernate_stype` based on this. > > > > > > Implement this in ACPI PM backend. > > > > > > Reviewed by: mckusick (mentor), markj > > > Approved by: mckusick (mentor), markj > > > Sponsored by: The FreeBSD Foundation > > > Differential Revision: https://reviews.freebsd.org/D52044 > > > --- > > . . . > > > > > > > > > > One of this series of ACPI commits has broken power management on my > machines. > > One of which managed to capture a dump from a kernel panic after > poweroff(8) > > was issued. > > This is mostly a "me too" with poorer quality > data collection. The context here is an AMD > 7950X3D based desktop system, using the builtin > video for the console, no video card present. > The crash was too late for the USB keyboard to > work, I had to plug in a PS2 keyboard. But it > was also, apparently, too late for a dump to > then work. > > It was from a "shutdown -r now" just after a > pkgbase'd upgrade of the world. (Previous reboot > was for updating the kernel, so the below does > identify the kernel that was in operation.) > The pkgbase materials (old and new) were from > official distributions. > > # uname -apKU > FreeBSD 7950X3D-ZFS 16.0-CURRENT FreeBSD 16.0-CURRENT > main-n280397-5da388d93917 GENERIC-NODEBUG amd64 amd64 1600000 1600000 > > Expect "typos" and such from the conversion to > text from the cell phone image: > > QUOTE > Fatal trap 12: page fault while in kernel mode > cpuid =3D 0; apic id =3D 00 > fault virtual address=3D 0x88 > fault code=3D supervisor read data, page not present > instruction pointer=3D0x20:0xffffffff80bb7464 > stack pointer=3D0x28:0xfffffe027d40dab0 > frame pointer=3D0x28:0xfffffe027d40dab0 > code segment=3Dbase Ox0, limit Oxfffff, type Ox1b > =3D DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags=3D interrupt enabled, resume, IOPL =3D 0 > current process=3D 1 (init) > rdi: 0000000000000000 rsi: ffffffff804be800 rdx: fffffe827d40dbb0 > rcx: 0000000000000000 r8: 0000000000000075 r9: 0000000000000000 > rax: 0000000000000005 rbx: fffff8010b33d440 rbp: fffffe027d40dab0 > r10: cacacacacacacaca r11: 000000005f42535f r12: fffff8010b33d440 > r13: 0000000000000000 r14: 0866966600000005 r15: 0000000066860009 > trap number=3D 12 > panic: page fault > cpuid =3D 0 > time =3D 1758083117 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame > 0xfffffe027d40d800 > vpanic() at vpanic+0x136/frame 0xfffffe027d40d930 > panic() at panic+0x43/frame 0xfffffe027d40d990 > trap_pfault() at trap_pfault+0x3c9/frame 0xfffffe027d40d9e0 > calltrap() at calltrap+0x8/frame 0xfffffe027d40d9e0 > -- trap 0xc, rip =3D 0xffffffff80bb7464, rsp =3D 0xfffffe027d40dab0, rbp = =3D > 0xfffffe027d40dab0 =E2=80=94-- > device_get_softc() at device_get_softc+0x4/frame 0xfffffe027d40dab0 > acpi_wake_prep() at acpi_wake_prep+0x65/frame 0xfffffe027d4adbf0 > AcpiNsWalkNamespace() at AcpiNsWalkNamespace+0x10b/frame 0xfffffe027d40dc= 50 > AcpiWalkNamespace() at AcpiWalkNamespace+=C4=90x95/frame 0xfffffe027d40dc= b0 > acpi_shutdoun() at acpi_shutdoun+0x64/frame 0xfffffe027d40dce0 > bus_generic_shutdoun() at bus_generic_shutdown+0x16/frame > 0xfffffe027d40dd00 > bus_generic_shutdoun() at bus_generic_shutdown+0x16/frame > 0xfffffe027d40dd20 > root_bus_module_handler() at root_bus_module_handler+0x126/frame > =C2=A9xfffffe027d40dd40 > module_shutdown() at module_shutdown+0x6c/frame 0xfffffe027d40dd60 > kern_reboot() at kern_reboot+0x6b7/frame 0xfffffe027d40ddb0 > sys_rebooto at sys_reboot+0x413/frame 0xfffffe027d40de00 > amd64_syscall() at amd64_syscal1+0x126/frame @xfffffe027d40df30 > fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe027d40df3= 0 > -- syscall (55, FreeBSD ELF64, reboot), rip =3D 0x2941ba, rsp =3D 0x8210f= 0aca, > rbp =3D 0x8210f0bb0 -=3D- > END QUOTE > > (kgdb) disass device_get_softc > Dump of assembler code for function device_get_softc: > 0xffffffff80bb7460 <+0>: push %rbp > 0xffffffff80bb7461 <+1>: mov %rsp,%rbp > 0xffffffff80bb7464 <+4>: mov 0x88(%rdi),%rax > 0xffffffff80bb746b <+11>: pop %rbp > 0xffffffff80bb746c <+12>: ret > End of assembler dump. > > Given "fault virtual address=3D 0x88": %rdi=3D=3D0, matching > the register value listing. > > Dump of assembler code for function acpi_wake_prep: > 0xffffffff804c45e0 <+0>: push %rbp > 0xffffffff804c45e1 <+1>: mov %rsp,%rbp > 0xffffffff804c45e4 <+4>: push %r15 > 0xffffffff804c45e6 <+6>: push %r14 > 0xffffffff804c45e8 <+8>: push %r13 > 0xffffffff804c45ea <+10>: push %r12 > 0xffffffff804c45ec <+12>: push %rbx > 0xffffffff804c45ed <+13>: sub $0x108,%rsp > 0xffffffff804c45f4 <+20>: mov %rdi,%rbx > 0xffffffff804c45f7 <+23>: mov (%rdx),%r14d > 0xffffffff804c45fa <+26>: cmpb $0x0,0x14fde37(%rip) # > 0xffffffff819c2438 <AcpiGbl_SystemAwakeAndRunning> > 0xffffffff804c4601 <+33>: je 0xffffffff804c46c4 > <acpi_wake_prep+228> > 0xffffffff804c4607 <+39>: lea -0x128(%rbp),%rsi > 0xffffffff804c460e <+46>: mov %rbx,%rdi > 0xffffffff804c4611 <+49>: call 0xffffffff804c0210 <acpi_parse_prw= > > 0xffffffff804c4616 <+54>: test %eax,%eax > 0xffffffff804c4618 <+56>: jne 0xffffffff804c49d9 > <acpi_wake_prep+1017> > 0xffffffff804c461e <+62>: movq $0x0,-0x40(%rbp) > 0xffffffff804c4626 <+70>: lea -0x40(%rbp),%rdx > 0xffffffff804c462a <+74>: mov %rbx,%rdi > 0xffffffff804c462d <+77>: mov $0xffffffff804be800,%rsi > 0xffffffff804c4634 <+84>: call 0xffffffff80402530 <AcpiGetData> > 0xffffffff804c4639 <+89>: mov -0x40(%rbp),%r15 > 0xffffffff804c463d <+93>: mov %r15,%rdi > 0xffffffff804c4640 <+96>: call 0xffffffff80bb7460 > <device_get_softc> > . . . > > > =3D=3D=3D > Mark Millard > marklmi at yahoo.com > > > --=20 Nuno Teixeira FreeBSD UNIX: <eduardo@FreeBSD.org> Web: https://FreeBSD.org --0000000000006a9081063efb0e9f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div>Hello Mark,<br><br></div>I see that crash too on= upgrade from yesterday 2025-09-16 on reboot.<br></div><div>I used bectl to= put me back to latest working main, 2025-09-06.</div><div><br></div><div>T= hanks,</div></div><br><div class=3D"gmail_quote gmail_quote_container"><div= dir=3D"ltr" class=3D"gmail_attr">Mark Millard <<a href=3D"mailto:marklm= i@yahoo.com">marklmi@yahoo.com</a>> escreveu (quarta, 17/09/2025 =C3=A0(= s) 06:32):<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0= px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Cy Sc= hubert <<a href=3D"http://Cy.Schubert_at_cschubert.com" rel=3D"noreferre= r" target=3D"_blank">Cy.Schubert_at_cschubert.com</a>> wrote on<br> Date: Tue, 16 Sep 2025 05:02:39 UTC :<br> <br> > In message <<a href=3D"mailto:202509142159.58ELx5Rg054606@gitrepo.f= reebsd.org" target=3D"_blank">202509142159.58ELx5Rg054606@gitrepo.freebsd.o= rg</a>>, Aymeric Wibo writ<br> > es:<br> > > The branch main has been updated by obiwac:<br> > ><br> > > URL: <a href=3D"https://cgit.FreeBSD.org/src/commit/?id=3De779891= 327b1d9b9ab10ba482e59f498" rel=3D"noreferrer" target=3D"_blank">https://cgi= t.FreeBSD.org/src/commit/?id=3De779891327b1d9b9ab10ba482e59f498</a><br> > > 790505a7<br> > ><br> > > commit e779891327b1d9b9ab10ba482e59f498790505a7<br> > > Author: Aymeric Wibo <obiwac@FreeBSD.org><br> > > AuthorDate: 2025-09-14 21:58:13 +0000<br> > > Commit: Aymeric Wibo <obiwac@FreeBSD.org><br> > > CommitDate: 2025-09-14 21:58:15 +0000<br> > ><br> > > sys/power: Sleep type reporting by PM backends<br> > > <br> > > Allow PM backends to report supported sleep types when registerin= g<br> > > through `power_pm_register`. Expose this information through<br> > > `kern.power.supported_stype` sysctl, and set defaults for<br> > > `power_standby/suspend/hibernate_stype` based on this.<br> > > <br> > > Implement this in ACPI PM backend.<br> > > <br> > > Reviewed by: mckusick (mentor), markj<br> > > Approved by: mckusick (mentor), markj<br> > > Sponsored by: The FreeBSD Foundation<br> > > Differential Revision: <a href=3D"https://reviews.freebsd.org/D52= 044" rel=3D"noreferrer" target=3D"_blank">https://reviews.freebsd.org/D5204= 4</a><br> > > ---<br> > . . .<br> > > <br> > ><br> > <br> > One of this series of ACPI commits has broken power management on my m= achines.<br> > One of which managed to capture a dump from a kernel panic after power= off(8)<br> > was issued.<br> <br> This is mostly a "me too" with poorer quality<br> data collection. The context here is an AMD<br> 7950X3D based desktop system, using the builtin<br> video for the console, no video card present.<br> The crash was too late for the USB keyboard to<br> work, I had to plug in a PS2 keyboard. But it<br> was also, apparently, too late for a dump to<br> then work.<br> <br> It was from a "shutdown -r now" just after a<br> pkgbase'd upgrade of the world. (Previous reboot<br> was for updating the kernel, so the below does<br> identify the kernel that was in operation.)<br> The pkgbase materials (old and new) were from<br> official distributions.<br> <br> # uname -apKU<br> FreeBSD 7950X3D-ZFS 16.0-CURRENT FreeBSD 16.0-CURRENT main-n280397-5da388d9= 3917 GENERIC-NODEBUG amd64 amd64 1600000 1600000<br> <br> Expect "typos" and such from the conversion to<br> text from the cell phone image:<br> <br> QUOTE<br> Fatal trap 12: page fault while in kernel mode<br> cpuid =3D 0; apic id =3D 00<br> fault virtual address=3D 0x88<br> fault code=3D supervisor read data, page not present<br> instruction pointer=3D0x20:0xffffffff80bb7464<br> stack pointer=3D0x28:0xfffffe027d40dab0<br> frame pointer=3D0x28:0xfffffe027d40dab0<br> code segment=3Dbase Ox0, limit Oxfffff, type Ox1b<br> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =3D DPL 0, pres 1, long 1, def32 = 0, gran 1<br> processor eflags=3D interrupt enabled, resume, IOPL =3D 0<br> current process=3D 1 (init)<br> rdi: 0000000000000000 rsi: ffffffff804be800 rdx: fffffe827d40dbb0<br> rcx: 0000000000000000=C2=A0 r8: 0000000000000075=C2=A0 r9: 0000000000000000= <br> rax: 0000000000000005 rbx: fffff8010b33d440 rbp: fffffe027d40dab0<br> r10: cacacacacacacaca r11: 000000005f42535f r12: fffff8010b33d440<br> r13: 0000000000000000 r14: 0866966600000005 r15: 0000000066860009<br> trap number=3D 12<br> panic: page fault<br> cpuid =3D 0<br> time =3D 1758083117<br> KDB: stack backtrace:<br> db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe027d40d= 800<br> vpanic() at vpanic+0x136/frame 0xfffffe027d40d930<br> panic() at panic+0x43/frame 0xfffffe027d40d990<br> trap_pfault() at trap_pfault+0x3c9/frame 0xfffffe027d40d9e0<br> calltrap() at calltrap+0x8/frame 0xfffffe027d40d9e0<br> -- trap 0xc, rip =3D 0xffffffff80bb7464, rsp =3D 0xfffffe027d40dab0, rbp = =3D 0xfffffe027d40dab0 =E2=80=94--<br> device_get_softc() at device_get_softc+0x4/frame 0xfffffe027d40dab0<br> acpi_wake_prep() at acpi_wake_prep+0x65/frame 0xfffffe027d4adbf0<br> AcpiNsWalkNamespace() at AcpiNsWalkNamespace+0x10b/frame 0xfffffe027d40dc50= <br> AcpiWalkNamespace() at AcpiWalkNamespace+=C4=90x95/frame 0xfffffe027d40dcb0= <br> acpi_shutdoun() at acpi_shutdoun+0x64/frame 0xfffffe027d40dce0<br> bus_generic_shutdoun() at bus_generic_shutdown+0x16/frame 0xfffffe027d40dd0= 0<br> bus_generic_shutdoun() at bus_generic_shutdown+0x16/frame 0xfffffe027d40dd2= 0<br> root_bus_module_handler() at root_bus_module_handler+0x126/frame =C2=A9xfff= ffe027d40dd40<br> module_shutdown() at module_shutdown+0x6c/frame 0xfffffe027d40dd60<br> kern_reboot() at kern_reboot+0x6b7/frame 0xfffffe027d40ddb0 <br> sys_rebooto at sys_reboot+0x413/frame 0xfffffe027d40de00<br> amd64_syscall() at amd64_syscal1+0x126/frame @xfffffe027d40df30<br> fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe027d40df30<= br> -- syscall (55, FreeBSD ELF64, reboot), rip =3D 0x2941ba, rsp =3D 0x8210f0a= ca, rbp =3D 0x8210f0bb0 -=3D-<br> END QUOTE<br> <br> (kgdb) disass device_get_softc<br> Dump of assembler code for function device_get_softc:<br> =C2=A0 =C2=A00xffffffff80bb7460 <+0>:=C2=A0 =C2=A0 =C2=A0push=C2=A0 = =C2=A0%rbp<br> =C2=A0 =C2=A00xffffffff80bb7461 <+1>:=C2=A0 =C2=A0 =C2=A0mov=C2=A0 = =C2=A0 %rsp,%rbp<br> =C2=A0 =C2=A00xffffffff80bb7464 <+4>:=C2=A0 =C2=A0 =C2=A0mov=C2=A0 = =C2=A0 0x88(%rdi),%rax<br> =C2=A0 =C2=A00xffffffff80bb746b <+11>:=C2=A0 =C2=A0 pop=C2=A0 =C2=A0 = %rbp<br> =C2=A0 =C2=A00xffffffff80bb746c <+12>:=C2=A0 =C2=A0 ret<br> End of assembler dump.<br> <br> Given "fault virtual address=3D 0x88": %rdi=3D=3D0, matching<br> the register value listing.<br> <br> Dump of assembler code for function acpi_wake_prep:<br> =C2=A0 =C2=A00xffffffff804c45e0 <+0>:=C2=A0 =C2=A0 =C2=A0push=C2=A0 = =C2=A0%rbp<br> =C2=A0 =C2=A00xffffffff804c45e1 <+1>:=C2=A0 =C2=A0 =C2=A0mov=C2=A0 = =C2=A0 %rsp,%rbp<br> =C2=A0 =C2=A00xffffffff804c45e4 <+4>:=C2=A0 =C2=A0 =C2=A0push=C2=A0 = =C2=A0%r15<br> =C2=A0 =C2=A00xffffffff804c45e6 <+6>:=C2=A0 =C2=A0 =C2=A0push=C2=A0 = =C2=A0%r14<br> =C2=A0 =C2=A00xffffffff804c45e8 <+8>:=C2=A0 =C2=A0 =C2=A0push=C2=A0 = =C2=A0%r13<br> =C2=A0 =C2=A00xffffffff804c45ea <+10>:=C2=A0 =C2=A0 push=C2=A0 =C2=A0= %r12<br> =C2=A0 =C2=A00xffffffff804c45ec <+12>:=C2=A0 =C2=A0 push=C2=A0 =C2=A0= %rbx<br> =C2=A0 =C2=A00xffffffff804c45ed <+13>:=C2=A0 =C2=A0 sub=C2=A0 =C2=A0 = $0x108,%rsp<br> =C2=A0 =C2=A00xffffffff804c45f4 <+20>:=C2=A0 =C2=A0 mov=C2=A0 =C2=A0 = %rdi,%rbx<br> =C2=A0 =C2=A00xffffffff804c45f7 <+23>:=C2=A0 =C2=A0 mov=C2=A0 =C2=A0 = (%rdx),%r14d<br> =C2=A0 =C2=A00xffffffff804c45fa <+26>:=C2=A0 =C2=A0 cmpb=C2=A0 =C2=A0= $0x0,0x14fde37(%rip)=C2=A0 =C2=A0 =C2=A0 =C2=A0 # 0xffffffff819c2438 <Ac= piGbl_SystemAwakeAndRunning><br> =C2=A0 =C2=A00xffffffff804c4601 <+33>:=C2=A0 =C2=A0 je=C2=A0 =C2=A0 = =C2=A00xffffffff804c46c4 <acpi_wake_prep+228><br> =C2=A0 =C2=A00xffffffff804c4607 <+39>:=C2=A0 =C2=A0 lea=C2=A0 =C2=A0 = -0x128(%rbp),%rsi<br> =C2=A0 =C2=A00xffffffff804c460e <+46>:=C2=A0 =C2=A0 mov=C2=A0 =C2=A0 = %rbx,%rdi<br> =C2=A0 =C2=A00xffffffff804c4611 <+49>:=C2=A0 =C2=A0 call=C2=A0 =C2=A0= 0xffffffff804c0210 <acpi_parse_prw><br> =C2=A0 =C2=A00xffffffff804c4616 <+54>:=C2=A0 =C2=A0 test=C2=A0 =C2=A0= %eax,%eax<br> =C2=A0 =C2=A00xffffffff804c4618 <+56>:=C2=A0 =C2=A0 jne=C2=A0 =C2=A0 = 0xffffffff804c49d9 <acpi_wake_prep+1017><br> =C2=A0 =C2=A00xffffffff804c461e <+62>:=C2=A0 =C2=A0 movq=C2=A0 =C2=A0= $0x0,-0x40(%rbp)<br> =C2=A0 =C2=A00xffffffff804c4626 <+70>:=C2=A0 =C2=A0 lea=C2=A0 =C2=A0 = -0x40(%rbp),%rdx<br> =C2=A0 =C2=A00xffffffff804c462a <+74>:=C2=A0 =C2=A0 mov=C2=A0 =C2=A0 = %rbx,%rdi<br> =C2=A0 =C2=A00xffffffff804c462d <+77>:=C2=A0 =C2=A0 mov=C2=A0 =C2=A0 = $0xffffffff804be800,%rsi<br> =C2=A0 =C2=A00xffffffff804c4634 <+84>:=C2=A0 =C2=A0 call=C2=A0 =C2=A0= 0xffffffff80402530 <AcpiGetData><br> =C2=A0 =C2=A00xffffffff804c4639 <+89>:=C2=A0 =C2=A0 mov=C2=A0 =C2=A0 = -0x40(%rbp),%r15<br> =C2=A0 =C2=A00xffffffff804c463d <+93>:=C2=A0 =C2=A0 mov=C2=A0 =C2=A0 = %r15,%rdi<br> =C2=A0 =C2=A00xffffffff804c4640 <+96>:=C2=A0 =C2=A0 call=C2=A0 =C2=A0= 0xffffffff80bb7460 <device_get_softc><br> . . .<br> <br> <br> =3D=3D=3D<br> Mark Millard<br> marklmi at <a href=3D"http://yahoo.com" rel=3D"noreferrer" target=3D"_blank= ">yahoo.com</a><br> <br> <br> </blockquote></div><div><br clear=3D"all"></div><br><span class=3D"gmail_si= gnature_prefix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature"><d= iv dir=3D"ltr"><div><font color=3D"#888888">Nuno Teixeira</font></div><div>= <div><font color=3D"#888888"> FreeBSD UNIX:=C2=A0 <eduardo@FreeBSD.org>=C2=A0 =C2=A0Web:=C2=A0 <a h= ref=3D"https://FreeBSD.org" rel=3D"noreferrer" target=3D"_blank">https://Fr= eeBSD.org</a><br></font></div></div></div></div> --0000000000006a9081063efb0e9f--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7ULjiC1hjTFc5z41OfvKabBkV3kxTGK1af3-AZjC9G23Ew>