Re: [BUG] platform/x86: bitland-mifs-wmi: Hibernation fails with error -22 on Xiaomi Redmi Book Pro 14 2025
From: cubewhy
Date: Thu Jul 09 2026 - 23:26:56 EST
On 7/10/26 9:45 AM, Nabil Danial wrote:
Hi everyone,
I am experiencing a hibernation (suspend-to-disk) failure on my laptop
since upgrading to kernel 7.1. Hibernation worked without issues on
kernel 7.0, but consistently fails now when the newly introduced
"bitland-mifs-wmi" module is loaded.
I notice that both redmi_wmi and bitland_mifs_wmi are currently loaded
on my system. I understand there is an active patch series to
deprecate redmi_wmi in favor of bitland_mifs_wmi for these platforms.
However, on this specific hardware (Redmi Book Pro 14 2025),
bitland_mifs_wmi fails to establish its platform profile during boot,
resulting in multiple "Failed to get profile for handler" warnings in
dmesg. Consequently, during the PM freeze transition, the suspend
callback fails with -EINVAL (-22), which blocks the system freeze
phase and aborts hibernation.
Unloading the "bitland-mifs-wmi" module bypasses this issue and allows
hibernation to successfully complete. It seems the new driver's
suspend routine might need to be made robust against profile
initialization failures, or require a fix to successfully register the
platform profile on this hardware variant.
Below are the details of the hardware, boot logs, failure logs, and
the successful hibernation sequence after removing the module.
### System Environment
- Hardware: XIAOMI REDMI Book Pro 14 2025
- OS: Chimera Linux (musl-based)
- Kernel: 7.1.3
### dmidecode System Information
Handle 0x0001, DMI type 1, 27 bytes
System Information
Manufacturer: XIAOMI
Product Name: REDMI Book Pro 14 2025
Version:
Serial Number: 63081/25U700201
UUID: 07082025-fcb3-aacd-4be6-fcb3aacd4bea
Wake-up Type: Power Switch
SKU Number: TM2411-63081
Family: Mi Laptop
### dmesg platform_profile warnings on boot
[ 15.103125] platform_profile: Failed to get profile for handler
bitland-mifs-wmi
[ 15.107027] platform_profile: Failed to get profile for handler
bitland-mifs-wmi
[ 17.109653] platform_profile: Failed to get profile for handler
bitland-mifs-wmi
### dmesg log when hibernation fails (with bitland-mifs-wmi loaded)
[ 68.005811] printk: Suspending console(s) (use no_console_suspend to debug)
[ 68.010452] bitland-mifs-wmi
B60BFB48-3E5B-49E4-A0E9-8CFFE1B3434B-4: PM: dpm_run_callback():
bitland_mifs_wmi_suspend [bitland_mifs_wmi] returns -22
[ 68.010469] bitland-mifs-wmi
B60BFB48-3E5B-49E4-A0E9-8CFFE1B3434B-4: PM: failed to freeze: error
-22
[ 68.316796] nvme nvme0: D3 entry latency set to 10 seconds
[ 68.382440] nvme nvme0: 14/0/0 default/read/poll queues
[ 68.501502] PM: hibernation: Basic memory bitmaps freed
[ 68.502346] OOM killer enabled.
[ 68.502348] Restarting tasks: Starting
[ 68.503286] Restarting tasks: Done
[ 68.509265] PM: hibernation: hibernation exit
[ 68.509644] e-hibernate[1885]: Failed to put system to sleep.
System resumed again: Invalid argument
[ 68.526064] e-hibernate[1885]: e-hibernate: shutdown_or_sleep
failed: Invalid argument
### Workaround (Unloading module)
Running "sudo rmmod bitland_mifs_wmi" allows the system to enter
hibernation successfully:
[ 110.414050] PM: hibernation: Basic memory bitmaps freed
[ 110.415952] OOM killer enabled.
[ 110.415953] Restarting tasks: Starting
[ 110.417919] Restarting tasks: Done
[ 110.420194] PM: hibernation: hibernation exit
[ 110.420288] e-hibernate[2690]: System returned from sleep operation
'hibernate'.
---
Please let me know if there are any other logs, DSDT tables, or test
patches you would like me to try.
Best regards,
Nabil Danial
Already fixed in linux-next
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/drivers/platform/x86/bitland-mifs-wmi.c?h=next-20260709&id=d3666875c75eb1bc8090343fa0d6fc8fb7924356
--
Mingyou Chen