Bug 218106

Summary: System will crash when trying to wake up from second suspend
Product: ACPI Reporter: yofail2
Component: Power-Sleep-WakeAssignee: acpi_power-sleep-wake
Status: RESOLVED CODE_FIX    
Severity: low    
Priority: P3    
Hardware: AMD   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:
Attachments: dmidecode system information
kludge fix for my laptop
nvs patch to sleep.c for the m6 sleekbook/ m6 k010

Description yofail2 2023-11-05 19:24:31 UTC
Created attachment 305370 [details]
dmidecode system information

11/5/2023

Total carbon copy of the following bug in terms of symptoms described, warning displayed after needing to hard restart after failed second suspend, and solution, but with a different laptop vendor and an A10-5745m APU instead of the A6-6310: https://bugzilla.kernel.org/show_bug.cgi?id=189431

The problem occurred on the latest stable patch of Debian 12 at the time of writing, as well as Arch Linux using the latest lts kernel at the time of writing, mainline Arch kernel 6.5.9 as well as the testing Arch 6.6 kernel.
 
changing linux/drivers/acpi/sleep.c

by removing

if (dmi_get_bios_year() >= 2012)
   acpi_nvs_nosave_s3();

from the acpi_sleep_dmi_check() method
as a kludge to enable nvs memory during s3 for my laptop and building + installing completely fixed the issue after several days of failed attempts at fixes. Evidentially, the HP envy m6 sleekbook needs nvs memory despite being manufactured after 2012. Bios is at the latest available version provided by HP.

I'll include part of my dmidecode to help better identify my exact laptop model.
Comment 1 yofail2 2023-11-06 00:33:11 UTC
Created attachment 305371 [details]
kludge fix for my laptop

eh
Comment 2 yofail2 2023-11-22 02:23:42 UTC
Created attachment 305457 [details]
nvs patch to sleep.c for the m6 sleekbook/ m6 k010

Better non-kludge patch, in the exact same style as the already existing patch in sleep.c for the Lenovo G50-45.