Re: 7.0 GENERIC.MP#256: Unpredictable and unrecoverable freezing

2022-01-15 Thread Jonathan Gray
On Sat, Jan 15, 2022 at 01:36:55PM -0500, Agnosto Dvonik wrote: > Synopsis:   Unpredictable and unrecoverable freezing > Category:   kernel panic > Environment: >     System  : OpenBSD 7.0 >     Details : OpenBSD 7.0-current (GENERIC.MP) #256: Fri Jan 14 > 22:30:45 MST 2022

Re: ThinkPad X1 Carbon gen9 - suspend and hibernate not working

2022-01-15 Thread Mark Kettenis
> From: "Theo de Raadt" > Date: Sat, 15 Jan 2022 10:03:07 -0700 > > Additionally, the /boot code must be able to see that the disk contains > a hibernate signature, and this may not work if your swap partition > is at such a far into the disk. > > #size offset fstype

Re: ThinkPad X1 Carbon gen9 - suspend and hibernate not working

2022-01-15 Thread Mike Larkin
On Sat, Jan 15, 2022 at 09:00:44PM +, Mikolaj Kucharski wrote: > On Sat, Jan 15, 2022 at 12:36:06PM -0800, Mike Larkin wrote: > > On Sat, Jan 15, 2022 at 07:50:34PM +0100, Stefan Sperling wrote: > > > On Sat, Jan 15, 2022 at 10:03:07AM -0700, Theo de Raadt wrote: > > > > Additionally, the

Re: ThinkPad X1 Carbon gen9 - suspend and hibernate not working

2022-01-15 Thread Mikolaj Kucharski
On Sat, Jan 15, 2022 at 12:36:06PM -0800, Mike Larkin wrote: > On Sat, Jan 15, 2022 at 07:50:34PM +0100, Stefan Sperling wrote: > > On Sat, Jan 15, 2022 at 10:03:07AM -0700, Theo de Raadt wrote: > > > Additionally, the /boot code must be able to see that the disk contains > > > a hibernate

Re: ThinkPad X1 Carbon gen9 - suspend and hibernate not working

2022-01-15 Thread Mike Larkin
On Sat, Jan 15, 2022 at 08:49:13PM +, Mikolaj Kucharski wrote: > On Sat, Jan 15, 2022 at 09:50:04AM -0800, Mike Larkin wrote: > > On Sat, Jan 15, 2022 at 10:03:07AM -0700, Theo de Raadt wrote: > > > Additionally, the /boot code must be able to see that the disk contains > > > a hibernate

Re: ThinkPad X1 Carbon gen9 - suspend and hibernate not working

2022-01-15 Thread Mikolaj Kucharski
On Sat, Jan 15, 2022 at 09:50:04AM -0800, Mike Larkin wrote: > On Sat, Jan 15, 2022 at 10:03:07AM -0700, Theo de Raadt wrote: > > Additionally, the /boot code must be able to see that the disk contains > > a hibernate signature, and this may not work if your swap partition > > is at such a far

Re: ThinkPad X1 Carbon gen9 - suspend and hibernate not working

2022-01-15 Thread Mike Larkin
On Sat, Jan 15, 2022 at 07:50:34PM +0100, Stefan Sperling wrote: > On Sat, Jan 15, 2022 at 10:03:07AM -0700, Theo de Raadt wrote: > > Additionally, the /boot code must be able to see that the disk contains > > a hibernate signature, and this may not work if your swap partition > > is at such a far

Re: ThinkPad X1 Carbon gen9 - suspend and hibernate not working

2022-01-15 Thread Stefan Sperling
On Sat, Jan 15, 2022 at 10:03:07AM -0700, Theo de Raadt wrote: > Additionally, the /boot code must be able to see that the disk contains > a hibernate signature, and this may not work if your swap partition > is at such a far into the disk. > > #size offset fstype

Re: ThinkPad X1 Carbon gen9 - suspend and hibernate not working

2022-01-15 Thread Mike Larkin
On Sat, Jan 15, 2022 at 10:03:07AM -0700, Theo de Raadt wrote: > Additionally, the /boot code must be able to see that the disk contains > a hibernate signature, and this may not work if your swap partition > is at such a far into the disk. > > #size offset fstype [fsize

Re: ThinkPad X1 Carbon gen9 - suspend and hibernate not working

2022-01-15 Thread Theo de Raadt
Additionally, the /boot code must be able to see that the disk contains a hibernate signature, and this may not work if your swap partition is at such a far into the disk. #size offset fstype [fsize bsize cpg] a: 1875.7G 1024RAID b:

Re: ThinkPad X1 Carbon gen9 - suspend and hibernate not working

2022-01-15 Thread Theo de Raadt
Peter Nicolai Mathias Hansteen wrote: > > 15. jan. 2022 kl. 15:52 skrev Mikolaj Kucharski : > > > > I see. What would be recommented equation for a swap size, to have > > working hibernation, given an X bytes of physical memory? > > For hibernation to work you need swap at least equal to the

Re: ThinkPad X1 Carbon gen9 - suspend and hibernate not working

2022-01-15 Thread Mikolaj Kucharski
On Sat, Jan 15, 2022 at 01:50:50AM -0700, Theo de Raadt wrote: > Mikolaj Kucharski wrote: > > > On Sat, Jan 15, 2022 at 08:23:07AM +, Mikolaj Kucharski wrote: > > > > > > Thanks. I found and enabled "Linux S3" option in BIOS, now I see S3 > > > available in dmesg: > > > > > > acpi0:

Re: ThinkPad X1 Carbon gen9 - suspend and hibernate not working

2022-01-15 Thread Theo de Raadt
Mikolaj Kucharski wrote: > On Sat, Jan 15, 2022 at 08:23:07AM +, Mikolaj Kucharski wrote: > > > > Thanks. I found and enabled "Linux S3" option in BIOS, now I see S3 > > available in dmesg: > > > > acpi0: sleep states S0 S3 S4 S5 > > > > I forgot to mention, above BIOS option makes

Re: ThinkPad X1 Carbon gen9 - suspend and hibernate not working

2022-01-15 Thread Mikolaj Kucharski
On Sat, Jan 15, 2022 at 08:23:07AM +, Mikolaj Kucharski wrote: > > Thanks. I found and enabled "Linux S3" option in BIOS, now I see S3 > available in dmesg: > > acpi0: sleep states S0 S3 S4 S5 > I forgot to mention, above BIOS option makes suspend work, but hibernate still doesn't