Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mkapalka opened this issue May 3, 2024 · 1 comment
Open

Comments

@mkapalka
Copy link

mkapalka commented May 3, 2024

  • 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.

@virtadpt
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants