mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: cubewhy <qby140326@gmail.com>
To: Nabil Danial <nabildanial.93@gmail.com>
Cc: W_Armin@gmx.de, hdegoede@redhat.com,
	ilpo.jarvinen@linux.intel.com,
	platform-driver-x86@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [BUG] platform/x86: bitland-mifs-wmi: Hibernation fails with error -22 on Xiaomi Redmi Book Pro 14 2025
Date: Fri, 10 Jul 2026 11:26:39 +0800	[thread overview]
Message-ID: <ae9a92b5-5c79-41dd-8735-b2450c544d96@gmail.com> (raw)
In-Reply-To: <CAJW3z-g3kn+-EFZ+0nEA49B2DYxc8LK639yzYMgcrR-0mF7G4A@mail.gmail.com>

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


      reply	other threads:[~2026-07-10  3:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-10  1:45 Nabil Danial
2026-07-10  3:26 ` cubewhy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ae9a92b5-5c79-41dd-8735-b2450c544d96@gmail.com \
    --to=qby140326@gmail.com \
    --cc=W_Armin@gmx.de \
    --cc=hdegoede@redhat.com \
    --cc=ilpo.jarvinen@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nabildanial.93@gmail.com \
    --cc=platform-driver-x86@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®