Re: C2 state not recognized on Thinkpad T420s when on AC

2022-02-11 Thread Jan Stary
On Feb 11 12:17:35, h...@stare.cz wrote: > > > > the same scenario: cold start the machine on AC, > > > > plug AC out, in, out, in. > > > So here's a revised diff that tries to make it safe for ACPI to notify us > > that a CPU's _CST has changed while that cpu is entering idle. Revert the > > p

Re: C2 state not recognized on Thinkpad T420s when on AC

2022-02-11 Thread Jan Stary
> > > the same scenario: cold start the machine on AC, > > > plug AC out, in, out, in. > So here's a revised diff that tries to make it safe for ACPI to notify us > that a CPU's _CST has changed while that cpu is entering idle. Revert the > previous diff before trying to apply this one. Please

Re: C2 state not recognized on Thinkpad T420s when on AC

2022-02-11 Thread Mark Kettenis
> Date: Thu, 10 Feb 2022 23:46:43 -0800 > From: guent...@openbsd.org > > On Thu, 10 Feb 2022, Jan Stary wrote: > > > > When you build a kernel with this, do please add ACPI_DEBUG to your > > > > kernel > > > > config, so we can see more details about what the firmware is telling > > > > us. > >

Re: C2 state not recognized on Thinkpad T420s when on AC

2022-02-10 Thread guenther
On Thu, 10 Feb 2022, Jan Stary wrote: > > > When you build a kernel with this, do please add ACPI_DEBUG to your > > > kernel > > > config, so we can see more details about what the firmware is telling us. > > > > Full dmesg below, without ACPI_DEBUG. > > > > Also below, full /var/log/messages w

Re: C2 state not recognized on Thinkpad T420s when on AC

2022-02-10 Thread Stuart Henderson
On 2022/02/10 12:27, Stuart Henderson wrote: > On 2022/02/10 11:03, Jan Stary wrote: > > (Is there a way to increase that buffer, > > so that dmesg.boot would hold everything?) > > yes, MSGBUFSIZE in sys/param.h > to be more correct, /sys/arch/$ARCH/include/param.h

Re: C2 state not recognized on Thinkpad T420s when on AC

2022-02-10 Thread Stuart Henderson
On 2022/02/10 11:03, Jan Stary wrote: > (Is there a way to increase that buffer, > so that dmesg.boot would hold everything?) yes, MSGBUFSIZE in sys/param.h

Re: C2 state not recognized on Thinkpad T420s when on AC

2022-02-09 Thread guenther
On Tue, 8 Feb 2022, h...@stare.cz wrote: > >Synopsis: C2 state not recognized on Thinkpad T420s when on AC > >Category:system > >Environment: > System : OpenBSD 7.0 > Details : OpenBSD 7.0-current (GENERIC.MP) #0: Sun Feb