firmware-open icon indicating copy to clipboard operation
firmware-open copied to clipboard

Hibernate inconsistent memory map error when charging with barrel port

Open mkapalka opened this issue 9 months ago • 2 comments

  • Model: lemp10
  • BIOS version: 2023-10-13_5d997d1
  • EC version: 2023-10-13_5d997d1
  • OS: Pop!_OS 22.04
  • Kernel: 6.8.0-76060800daily20240311-generic

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.

mkapalka avatar May 03 '24 21:05 mkapalka

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)

virtadpt avatar May 23 '24 01:05 virtadpt

me too on lemp13 :+1:

nextsux avatar Aug 12 '24 09:08 nextsux