system76 / firmware-open

System76 Open Firmware
Other
957 stars 86 forks source link

Hibernate inconsistent memory map error when charging with barrel port #545

Open mkapalka opened 5 months ago

mkapalka commented 5 months ago

When laptop is charging using the barrel connector, resume from hibernate fails with error "Hibernate inconsistent memory map". It works fine when charging with USB-C or when on running on battery.

Steps to reproduce

Connect barrel connector charger, hibernate, power on the laptop again.

Expected behavior

Should see back the opened windows.

Actual behavior

Boots into initial login screen, dmesg shows the hibernate error above.

Additional info

It seems that charging using the barrel connector changes the memory mapping of the firmware after resume from hibernate:

Before hibernate:

BIOS-e820: [mem 0x0000000100000000-0x000000047e358fff
BIOS-e820: [mem 0x000000047e359000-0x000000047e359fff
BIOS-e820: [mem 0x000000047e35a000-0x000000047e35bfff
BIOS-e820: [mem 0x000000047e35c000-0x000000047e450fff
BIOS-e820: [mem 0x000000047e451000-0x000000047e451fff
BIOS-e820: [mem 0x000000047e452000-0x000000047f416fff

After failed resume:

BIOS-e820: [mem 0x0000000100000000-0x000000047e35bfff
BIOS-e820: [mem 0x000000047e35c000-0x000000047e35cfff
BIOS-e820: [mem 0x000000047e35d000-0x000000047e35efff
BIOS-e820: [mem 0x000000047e35f000-0x000000047e453fff
BIOS-e820: [mem 0x000000047e454000-0x000000047e454fff
BIOS-e820: [mem 0x000000047e455000-0x000000047f416fff

When charger is disconnected, I get consistently the latter mapping.

virtadpt commented 4 months ago

I'm running into this as well (lemp13), only it happens whether or not the unit is plugged in (USB-C is the only supported charging method) or not. It's been intermittant (it fails more than it succeeds). From the kernel message buffer:

PM: Loading and decompressing image data (3573928 pages)...
Hibernate inconsistent memory map detected!
PM: hibernation: Image mismatch: architecture specific data
PM: hibernation: Read 14295712 kbytes in 0.01 seconds (1429571.20 MB/s)
PM: Error -1 resuming
PM: hibernation: Failed to load image, recovering.
PM: hibernation: Basic memory bitmaps freed
OOM killer enabled.
Restarting tasks ... done.
video LNXVIDEO:00: Restoring backlight state
PM: hibernation: resume failed (-1)
nextsux commented 1 month ago

me too on lemp13 :+1: