Skip to contentSkip to conversation

New: ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

Bug 221065 [email protected] 2 participants 105 messages Feb 9 – Aug 17 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=221065

            Bug ID: 221065
           Summary: ideapad_acpi: unexpected charge_types spam on Yoga Pro
                    7 14ASP9
           Product: Drivers
           Version: 2.5
          Hardware: AMD
                OS: Linux
            Status: NEW
          Severity: low
          Priority: P3
         Component: Platform_x86
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

Hi,

I'm experiencing constant dmesg spam from ideapad_acpi on my Lenovo Yoga Pro 7 14ASP9:

[  733.997072] ideapad_acpi VPC2004:00: unexpected charge_types: both [Fast]

and [Long_Life] are enabled

This started on 6.19.0 on both my distro's mainline kernel and the vanilla mainline kernel I compiled. The issue is not present in 6.18. It happens about every minute starting about a minute after boot regardless of if I'm charging or not.

Model: Lenovo Yoga Pro 7 14ASP9 (83HN)
CPU: AMD Ryzen AI 9 365
BIOS: PSCN17WW (up to date)

The laptop appears to be reporting both Fast and Long_Life charge modes simultaneously, which the driver considers unexpected. Functionally everything works fine, including fast charging, but the log spam is excessive.

Of note:
zsh rbitton@rbitton-linux3 01:46 /sys/class/power_supply/BAT0 > cat /sys/class/power_supply/BAT*/charge_types
[Fast] Standard Long_Life

All attempts to fix it on my end have failed.Let me know if you need any additional information; I would be more than willing to test any fixes.

Thanks,
Raphael Bitton

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#1 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

https://bugzilla.kernel.org/show_bug.cgi?id=221065

Raphael Bitton ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
Regression|No |Yes

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#2 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

Armin Wolf ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Armin Wolf ([email protected]) --- Can you share the output of "acpidump"?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#3 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #2 from Rong Zhang ([email protected]) ---
Hi Raphael,

Quoted 17 lines · On Mon, 2026-02-09 at 07:50 +0000, [email protected] wrote:

https://bugzilla.kernel.org/show_bug.cgi?id=221065

            Bug ID: 221065
           Summary: ideapad_acpi: unexpected charge_types spam on Yoga Pro
                    7 14ASP9
           Product: Drivers
           Version: 2.5
          Hardware: AMD
                OS: Linux
            Status: NEW
          Severity: low
          Priority: P3
         Component: Platform_x86
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No
Quoted 8 lines

Hi,

I'm experiencing constant dmesg spam from ideapad_acpi on my Lenovo Yoga Pro 7
14ASP9:

[  733.997072] ideapad_acpi VPC2004:00: unexpected charge_types: both [Fast]

and [Long_Life] are enabled

Please attach the full dmesg log along with the acpidump of your device.

This error log is intended to remind users to write either Fast or Long_Life to charge_types to break the dilemma. Could you check /sys/kernel/debug/ideapad/status before and after writing into charge_types?

Quoted 5 lines

This started on 6.19.0 on both my distro's mainline kernel and the vanilla mainline kernel I compiled. The issue is not present in 6.18. It happens about
every minute starting about a minute after boot regardless of if I'm charging or not.

In your case there was a userspace process reading charge_types every minute and triggering the error log.

What process was it? Could you check with

   sudo perf --no-pager ftrace -T ideapad_psy_ext_get_prop

to see its pid and find out what it is?

Quoted 8 lines

Model: Lenovo Yoga Pro 7 14ASP9 (83HN)
CPU: AMD Ryzen AI 9 365
BIOS: PSCN17WW (up to date)

The laptop appears to be reporting both Fast and Long_Life charge modes simultaneously, which the driver considers unexpected. Functionally everything
works fine, including fast charging, but the log spam is excessive.

Did it stop charging at 60%/80%? That's what I got (i.e., both fast charging and charge threshold) when I manually put my device into such a state.

Quoted 4 lines

Of note:
zsh rbitton@rbitton-linux3 01:46 /sys/class/power_supply/BAT0 > cat /sys/class/power_supply/BAT*/charge_types
[Fast] Standard Long_Life

Wait, I don't understand how this could happen. Reading charge_types should have failed with -EINVAL when it ran into the error path. In other words, you have already got out of the dilemma when reading charge_types returns successfully. So at least it temporarily recovered to an expected state when you read charge_types, but was somehow broken by other things afterward...

Could you check `sudo lsmod | grep acpi_call'? Did you ever set up anything abusing acpi_call?

Quoted 2 lines

All attempts to fix it on my end have failed.Let me know if you need any additional information; I would be more than willing to test any fixes.

Could you try booting into a livecd (or a fresh installation) of your distro with 6.19 kernel and monitoring any upcoming kmsg with `sudo dmesg -w', then:

1. read charge_types
2. write Fast into charge_types
a. read charge_types
b. unplug and replug AC power
c. read charge_types
d. wait several minutes
e. read charge_types
3. write Standard into charge_types
repeat a-e
4. write Long_Life into charge_types
repeat a-e

And attach your observation in reply.

If the issue persist in fresh installation/livecd, the firmware on your device may have its own thoughts (?!) and messes up charge modes on its own.

Thanks,
Rong

Quoted 2 lines

Thanks,
Raphael Bitton

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#4 lore raw
In reply to [email protected]

Hi Raphael,

Quoted 17 lines · On Mon, 2026-02-09 at 07:50 +0000, [email protected] wrote:

https://bugzilla.kernel.org/show_bug.cgi?id=221065

            Bug ID: 221065
           Summary: ideapad_acpi: unexpected charge_types spam on Yoga Pro
                    7 14ASP9
           Product: Drivers
           Version: 2.5
          Hardware: AMD
                OS: Linux
            Status: NEW
          Severity: low
          Priority: P3
         Component: Platform_x86
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No
Quoted 7 lines

Hi,

I'm experiencing constant dmesg spam from ideapad_acpi on my Lenovo Yoga Pro 7 14ASP9:

[  733.997072] ideapad_acpi VPC2004:00: unexpected charge_types: both [Fast]

and [Long_Life] are enabled

Please attach the full dmesg log along with the acpidump of your device.

This error log is intended to remind users to write either Fast or Long_Life to charge_types to break the dilemma. Could you check /sys/kernel/debug/ideapad/status before and after writing into charge_types?

Quoted 4 lines

This started on 6.19.0 on both my distro's mainline kernel and the vanilla mainline kernel I compiled. The issue is not present in 6.18. It happens about every minute starting about a minute after boot regardless of if I'm charging or not.

In your case there was a userspace process reading charge_types every minute and triggering the error log.

What process was it? Could you check with

   sudo perf --no-pager ftrace -T ideapad_psy_ext_get_prop

to see its pid and find out what it is?

Quoted 7 lines

Model: Lenovo Yoga Pro 7 14ASP9 (83HN)
CPU: AMD Ryzen AI 9 365
BIOS: PSCN17WW (up to date)

The laptop appears to be reporting both Fast and Long_Life charge modes simultaneously, which the driver considers unexpected. Functionally everything works fine, including fast charging, but the log spam is excessive.

Did it stop charging at 60%/80%? That's what I got (i.e., both fast charging and charge threshold) when I manually put my device into such a state.

Quoted 4 lines

Of note:
zsh rbitton@rbitton-linux3 01:46 /sys/class/power_supply/BAT0 > cat /sys/class/power_supply/BAT*/charge_types
[Fast] Standard Long_Life

Wait, I don't understand how this could happen. Reading charge_types should have failed with -EINVAL when it ran into the error path. In other words, you have already got out of the dilemma when reading charge_types returns successfully. So at least it temporarily recovered to an expected state when you read charge_types, but was somehow broken by other things afterward...

Could you check `sudo lsmod | grep acpi_call'? Did you ever set up anything abusing acpi_call?

Quoted 2 lines

All attempts to fix it on my end have failed.Let me know if you need any additional information; I would be more than willing to test any fixes.

Could you try booting into a livecd (or a fresh installation) of your distro with 6.19 kernel and monitoring any upcoming kmsg with `sudo dmesg -w', then:

1. read charge_types
2. write Fast into charge_types
a. read charge_types
b. unplug and replug AC power
c. read charge_types
d. wait several minutes
e. read charge_types
3. write Standard into charge_types
repeat a-e
4. write Long_Life into charge_types
repeat a-e

And attach your observation in reply.

If the issue persist in fresh installation/livecd, the firmware on your device may have its own thoughts (?!) and messes up charge modes on its own.

Thanks,
Rong

Quoted 2 lines

Thanks,
Raphael Bitton

#5 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

Avraham Hollander ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #3 from Avraham Hollander ([email protected]) --- I'm also seeing this on an IdeaPad 5 2-in-1 14AHP9 (83DR), after upgrading to Linux 6.19.

I'll attached dmesg and acpidump, but this is not a vanilla kernel, so take it with a grain of salt. This kernel doesn't have debugfs, so I can't provide that.

/sys/class/power_supply/BAT0/charge_types is [Fast] Standard Long_Life.

/sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode is 0.

I'm using the BIOS default charging configuration and haven't set up any weird ACPI stuff, afaik.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#6 lore raw

Re: [Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

Hi Avraham,

Quoted 8 lines · On Tue, 2026-02-10 at 17:56 +0000, [email protected] wrote:

https://bugzilla.kernel.org/show_bug.cgi?id=221065

Avraham Hollander ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

Quoted 7 lines

--- Comment #3 from Avraham Hollander ([email protected]) --- I'm also seeing this on an IdeaPad 5 2-in-1 14AHP9 (83DR), after upgrading to Linux 6.19.

I'll attached dmesg and acpidump, but this is not a vanilla kernel, so take it with a grain of salt. This kernel doesn't have debugfs, so I can't provide that.

Thanks for your dmesg and acpidump. I will find some time looking into them.

As for debugfs, every major distribution have it enabled [1] and so do any sane downstream kernel. debugfs can only be accessed by the root user by default. Did you try with the root user (e.g., `sudo -i')?

[1]: https://oracle.github.io/kconfigs/?config=UTS_RELEASE&config=DEBUG_FS

And since you are using a downstream kernel, could you provide a link to its website or so? So that I can check if it's the root cause (though unlikely).

Quoted 6 lines

/sys/class/power_supply/BAT0/charge_types is [Fast] Standard Long_Life.

/sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode is 0.

I'm using the BIOS default charging configuration and haven't set up any weird ACPI stuff, afaik.

Thanks,
Rong

#7 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #4 from Avraham Hollander ([email protected]) --- Created attachment 309340
--> https://bugzilla.kernel.org/attachment.cgi?id=309340&action=edit
acpidump from IdeaPad 5 2-in-1 14AHP9 (83DR)

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#8 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #5 from Avraham Hollander ([email protected]) --- Created attachment 309341
--> https://bugzilla.kernel.org/attachment.cgi?id=309341&action=edit
dmesg from acpidump from IdeaPad 5 2-in-1 14AHP9 (83DR), but not vanilla kernel

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#9 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #6 from Rong Zhang ([email protected]) ---
Hi Avraham,

Quoted 13 lines · On Tue, 2026-02-10 at 17:56 +0000, [email protected] wrote:

https://bugzilla.kernel.org/show_bug.cgi?id=221065

Avraham Hollander ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #3 from Avraham Hollander ([email protected]) --- I'm also seeing this on an IdeaPad 5 2-in-1 14AHP9 (83DR), after upgrading to
Linux 6.19.

Quoted 4 lines

I'll attached dmesg and acpidump, but this is not a vanilla kernel, so take it
with a grain of salt. This kernel doesn't have debugfs, so I can't provide that.

Thanks for your dmesg and acpidump. I will find some time looking into them.

As for debugfs, every major distribution have it enabled [1] and so do any sane downstream kernel. debugfs can only be accessed by the root user by default. Did you try with the root user (e.g., `sudo -i')?

[1]: https://oracle.github.io/kconfigs/?config=UTS_RELEASE&config=DEBUG_FS

And since you are using a downstream kernel, could you provide a link to its website or so? So that I can check if it's the root cause (though unlikely).

Quoted 7 lines

/sys/class/power_supply/BAT0/charge_types is [Fast] Standard Long_Life.

/sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode is 0.

I'm using the BIOS default charging configuration and haven't set up any weird
ACPI stuff, afaik.

Thanks,
Rong

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#10 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #7 from Avraham Hollander ([email protected]) --- (In reply to Rong Zhang from comment #6)

Quoted 37 lines

Hi Avraham,

Quoted 6 lines · On Tue, 2026-02-10 at 17:56 +0000, [email protected] wrote:

https://bugzilla.kernel.org/show_bug.cgi?id=221065

Avraham Hollander ([email protected]) changed:

What |Removed |Added

----------------------------------------------------------------------------

Quoted 11 lines

CC| |[email protected]

--- Comment #3 from Avraham Hollander ([email protected]) --- I'm also seeing this on an IdeaPad 5 2-in-1 14AHP9 (83DR), after upgrading to
Linux 6.19.

I'll attached dmesg and acpidump, but this is not a vanilla kernel, so take it
with a grain of salt. This kernel doesn't have debugfs, so I can't provide that.

Thanks for your dmesg and acpidump. I will find some time looking into them.

As for debugfs, every major distribution have it enabled [1] and so do any sane downstream kernel. debugfs can only be accessed by the root user by default. Did you try with the root user (e.g., `sudo -i')?

[1]: https://oracle.github.io/kconfigs/?config=UTS_RELEASE&config=DEBUG_FS

And since you are using a downstream kernel, could you provide a link to its website or so? So that I can check if it's the root cause (though unlikely).

Quoted 2 lines

/sys/class/power_supply/BAT0/charge_types is [Fast] Standard Long_Life.

Quoted 8 lines
Quoted 5 lines

/sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode is 0.

I'm using the BIOS default charging configuration and haven't set up any weird
ACPI stuff, afaik.

Thanks,
Rong

I build my own kernel with a selection of out-of-tree patches
(https://github.com/Frogging-Family/linux-tkg) and a heavily tuned configuration, which indeed doesn't have debugfs. I don't mind building a vanilla kernel with debugfs; I have just been using my laptop and haven't had the time too. Probably later today.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#11 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #8 from Avraham Hollander ([email protected]) --- Created attachment 309342
--> https://bugzilla.kernel.org/attachment.cgi?id=309342&action=edit
linux-tkg customization.cfg

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#12 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #9 from Avraham Hollander ([email protected]) --- Created attachment 309343
--> https://bugzilla.kernel.org/attachment.cgi?id=309343&action=edit
Linux kernel configuration

This will probably only boot on an IdeaPad 5 2-in-1 14AHP9 (83DR), or similar hardware. It also makes the assumption of a single-partition BTRFS root filesystem with no initramfs. It also only has iwlwifi for a wireless driver.

Rather than using linux-tkg's install.sh to compile the kernel, I call "install.sh config" and then run "LLVM=1 make -j16". This is because even with the provided custom kernel config, some options are still overridden by the configuration scripts, and I don't want that.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#13 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #10 from Avraham Hollander ([email protected]) --- Ok compiling a vanilla kernel with debugfs only took a couple minutes.

/sys/kernel/debug/ideapad/status before changing the setting:

Backlight max:  16
Backlight now:  0
BL power value: off (0)
=====================
Radio status: off (0)
Wifi status:  off (0)
BT status:    off (0)
3G status:    off (0)
=====================
Touchpad status: on (1)
Camera status:   on (1)

=====================
GBMD: 0x00860004
HALS: 0x0000ca40

After writing "Fast" it took a few seconds to output the same:

Backlight max:  16
Backlight now:  0
BL power value: off (0)
=====================
Radio status: off (0)
Wifi status:  off (0)
BT status:    off (0)
3G status:    off (0)
=====================
Touchpad status: on (1)
Camera status:   on (1)

=====================
GBMD: 0x00860004
HALS: 0x0000ca40

After writing "Standard" it took a few seconds to output the same:

Backlight max:  16
Backlight now:  0
BL power value: off (0)
=====================
Radio status: off (0)
Wifi status:  off (0)
BT status:    off (0)
3G status:    off (0)
=====================
Touchpad status: on (1)
Camera status:   on (1)

=====================
GBMD: 0x00860000
HALS: 0x0000ca40

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#14 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #11 from Avraham Hollander ([email protected]) --- It seems also that after writing something to charge_types, the ucsi-acpi driver complains too, along with an ACPI error whenever the charger is plugged in:

ACPI Error: Thread 2157330176 cannot release Mutex [ECMT] acquired by thread 2188863744 (20250807/exmutex-378)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0.ECCC due to previous error (AE_AML_NOT_OWNER) (20250807/psparse-531)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0.RPAM due to previous error (AE_AML_NOT_OWNER) (20250807/psparse-531)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0._Q92 due to previous error (AE_AML_NOT_OWNER) (20250807/psparse-531)
ideapad_acpi VPC2004:00: unexpected charge_types: both [Fast] and [Long_Life] are enabled
ucsi_acpi USBC000:00: ucsi_handle_connector_change: GET_CONNECTOR_STATUS failed (-5)
ucsi_acpi USBC000:00: ucsi_handle_connector_change: GET_CONNECTOR_STATUS failed (-5)
ucsi_acpi USBC000:00: GET_CONNECTOR_STATUS failed (-5)
ACPI Error: Thread 2156041472 cannot release Mutex [ECMT] acquired by thread 2188863744 (20250807/exmutex-378)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0.ECCC due to previous error (AE_AML_NOT_OWNER) (20250807/psparse-531)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0.RPAM due to previous error (AE_AML_NOT_OWNER) (20250807/psparse-531)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0._Q9E due to previous error (AE_AML_NOT_OWNER) (20250807/psparse-531)
ideapad_acpi VPC2004:00: unexpected charge_types: both [Fast] and [Long_Life] are enabled
ucsi_acpi USBC000:00: ucsi_handle_connector_change: GET_CONNECTOR_STATUS failed (-110)
ucsi_acpi USBC000:00: ucsi_handle_connector_change entered without EVENT_PENDING
ucsi_acpi USBC000:00: ucsi_handle_connector_change: GET_CONNECTOR_STATUS failed (-110)

The ideapad_acpi driver's behavior doesn't seem to be affected by plugging in or unplugging the charger.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#15 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #12 from Avraham Hollander ([email protected]) --- (In reply to Avraham Hollander from comment #11)

Quoted 37 lines

It seems also that after writing something to charge_types, the ucsi-acpi driver complains too, along with an ACPI error whenever the charger is plugged in:

ACPI Error: Thread 2157330176 cannot release Mutex [ECMT] acquired by thread 2188863744 (20250807/exmutex-378)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0.ECCC due to previous error (AE_AML_NOT_OWNER) (20250807/psparse-531)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0.RPAM due to previous error (AE_AML_NOT_OWNER) (20250807/psparse-531)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0._Q92 due to previous error (AE_AML_NOT_OWNER) (20250807/psparse-531)
ideapad_acpi VPC2004:00: unexpected charge_types: both [Fast] and [Long_Life] are enabled
ucsi_acpi USBC000:00: ucsi_handle_connector_change: GET_CONNECTOR_STATUS failed (-5)
ucsi_acpi USBC000:00: ucsi_handle_connector_change: GET_CONNECTOR_STATUS failed (-5)
ucsi_acpi USBC000:00: GET_CONNECTOR_STATUS failed (-5)
ACPI Error: Thread 2156041472 cannot release Mutex [ECMT] acquired by thread 2188863744 (20250807/exmutex-378)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0.ECCC due to previous error (AE_AML_NOT_OWNER) (20250807/psparse-531)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0.RPAM due to previous error (AE_AML_NOT_OWNER) (20250807/psparse-531)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0._Q9E due to previous error (AE_AML_NOT_OWNER) (20250807/psparse-531)
ideapad_acpi VPC2004:00: unexpected charge_types: both [Fast] and [Long_Life] are enabled
ucsi_acpi USBC000:00: ucsi_handle_connector_change: GET_CONNECTOR_STATUS failed (-110)
ucsi_acpi USBC000:00: ucsi_handle_connector_change entered without EVENT_PENDING
ucsi_acpi USBC000:00: ucsi_handle_connector_change: GET_CONNECTOR_STATUS failed (-110)

Quoted 2 lines

The ideapad_acpi driver's behavior doesn't seem to be affected by plugging in or unplugging the charger.

Actually, I take that back. All of this is triggerable without writing to charge_types.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#16 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #13 from Avraham Hollander ([email protected]) --- Ok, I am 100% sure now that writing an appropriate value to charge_types doesn't stop the driver from complaining when charge_types is read.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#17 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #14 from Armin Wolf ([email protected]) ---
I think that the ACPI errors you shown us are somehow connected to this problem, which has something to do with a shared memory area called SMA2 is protected by the ECMT mutex

Both the usci driver and ideapad_acpi call ACPI methods that want to access SMA2 and thus attempt to acquire the ECMT mutex. usci times out after ~2 seconds when attempting to acquire said mutex, but tries to release it anyway due to a firmware bug, leading to the above errors. ideapad_laptop also likely times out when acquiring the mutex, returning a bitmask with all bits set as a result. ideapad_laptop now sees that all bits are set at the same time and rightfully complains

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#18 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #15 from Armin Wolf ([email protected]) ---
Please check what kind of device is mapped at 0xFEEC2A00 using /proc/iomem (needs root privileges). Also, can you check if the thread number that is holding the ECMT mutex is always the same? In the ACPI error message you shared above, the thread number is 2188863744.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#19 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #16 from Armin Wolf ([email protected]) ---
Also, do receive a notification when pluggin in your charger? If yes, how long does it take for said notification to arrive?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#21 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #18 from Avraham Hollander ([email protected]) --- (In reply to Armin Wolf from comment #15)

Quoted 4 lines

Please check what kind of device is mapped at 0xFEEC2A00 using /proc/iomem (needs root privileges). Also, can you check if the thread number that is holding the ECMT mutex is always the same? In the ACPI error message you shared above, the thread number is 2188863744.

Pretty sure nothing is mapped there at all. It jumps straight from fee00fff to ff000000:
00000000-00000fff : Reserved
00001000-0009ffff : System RAM
000a0000-000effff : PCI Bus 0000:00
000f0000-000fffff : System ROM
00100000-09bfffff : System RAM
09c00000-09e00fff : Reserved
09e01000-09efffff : System RAM
09f00000-09f3bfff : ACPI Non-volatile Storage
09f3c000-2f232fff : System RAM
2f233000-30a32fff : ACPI Non-volatile Storage
30a1a000-30a1afff : USBC000:00
30a33000-30ab2fff : ACPI Tables
30ab3000-342b2fff : Reserved
31a00000-31a1ffff : amd_sfh
342b3000-72916fff : System RAM
72917000-72917fff : Reserved
72918000-76afdfff : System RAM
76afe000-7a9fdfff : Reserved
7a9fe000-7bfe8fff : System RAM
7bfe9000-7bfecfff : Reserved
7bfed000-7bfeefff : System RAM
7bfef000-7cffffff : Reserved
7d790000-7d7effff : Reserved
7d7f5000-7fffffff : Reserved
80000000-dfffffff : PCI Bus 0000:00
80000000-806fffff : PCI Bus 0000:04

    80000000-801fffff : 0000:04:00.0
    80200000-802fffff : 0000:04:00.3
      80200000-802fffff : xhci-hcd
    80300000-803fffff : 0000:04:00.4
      80300000-803fffff : xhci-hcd
    80400000-804fffff : 0000:04:00.7
      80400000-804fffff : pcie_mp2_amd
    80500000-805fffff : 0000:04:00.2
      80500000-805fffff : ccp
    80600000-8067ffff : 0000:04:00.0
    80680000-806bffff : 0000:04:00.5
      80680000-806bffff : AMD ACP6.2 audio
        80680000-8069c000 : acp_ps_pdm_dma.0
    806c0000-806c7fff : 0000:04:00.6
      806c0000-806c7fff : ICH HD audio
    806c8000-806cbfff : 0000:04:00.1
      806c8000-806cbfff : ICH HD audio
    806cc000-806cdfff : 0000:04:00.7
    806ce000-806cffff : 0000:04:00.2
      806ce000-806cffff : ccp
  80700000-808fffff : PCI Bus 0000:06
    80700000-807fffff : 0000:06:00.3
      80700000-807fffff : xhci-hcd
    80800000-808fffff : 0000:06:00.4
      80800000-808fffff : xhci-hcd
  80900000-809fffff : PCI Bus 0000:05
    80900000-8097ffff : 0000:05:00.1
    80980000-809bffff : 0000:05:00.1
    809c0000-809c1fff : 0000:05:00.1
  80a00000-80afffff : PCI Bus 0000:03
    80a00000-80a03fff : 0000:03:00.0
      80a00000-80a03fff : nvme
  80b00000-80bfffff : PCI Bus 0000:02
    80b00000-80b03fff : 0000:02:00.0
      80b00000-80b03fff : iwlwifi
  80c00000-80cfffff : PCI Bus 0000:01
    80c00000-80c00fff : 0000:01:00.0
      80c00000-80c00fff : rtsx_pci

e0000000-efffffff : Reserved
e0000000-efffffff : pnp 00:00
f0000000-fdbfffff : PCI Bus 0000:00 fe100000-fe100fff : MSFT0101:00
fe100040-fe10006f : MSFT0101:00 fe100080-fe100fff : MSFT0101:00
fe108000-fe108003 : MSFT0101:00 fe108028-fe10802b : MSFT0101:00 fec00000-fec003ff : IOAPIC 0 fec01000-fec013ff : IOAPIC 1 fed00000-fed003ff : HPET 2
fed00000-fed003ff : PNP0103:00
fed80000-fed80fff : Reserved fed81500-fed818ff : AMDI0030:00
fed81500-fed818ff : AMDI0030:00 AMDI0030:00
fedc2000-fedc2fff : AMDI0010:00
fedc2000-fedc2fff : AMDI0010:00 AMDI0010:00
fedc4000-fedc4fff : AMDI0010:02
fedc4000-fedc4fff : AMDI0010:02 AMDI0010:02
fee00000-fee00fff : pnp 00:00 ff000000-ffffffff : pnp 00:03 100000000-45e2fffff : System RAM
1a1000000-1a1c1b31f : Kernel code 1a1e00000-1a20d6fff : Kernel rodata 1a2200000-1a22dffff : Kernel data 1a27d1000-1a29fffff : Kernel bss
45e300000-45f33ffff : RAM buffer 45f340000-47fffffff : Reserved 4a0200000-7f3fffffff : PCI Bus 0000:00
4a0200000-4a03fffff : PCI Bus 0000:01 4b0000000-4c07fffff : PCI Bus 0000:04

    4b0000000-4bfffffff : 0000:04:00.0
    4c0000000-4c07fffff : 0000:04:00.5
      4c0000000-4c07fffff : AMD ACP6.2 audio
  4c0800000-4c08fffff : PCI Bus 0000:05
    4c0800000-4c083ffff : 0000:05:00.1
Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#22 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #19 from Avraham Hollander ([email protected]) --- (In reply to Armin Wolf from comment #16)

Quoted 2 lines

Also, do receive a notification when pluggin in your charger? If yes, how long does it take for said notification to arrive?

Usually it only takes a second, but sometimes it takes a little longer. Often times when unplugging the charger too. It took around 6 seconds when the errors showed up just now.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#23 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #20 from Avraham Hollander ([email protected]) --- (In reply to Armin Wolf from comment #17)

Quoted 1 line

Also, can you read your current battery status successfully?

Yes, battery and charger reporting works just fine, other than it sometimes taking a little longer to detect a change in charger state.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#24 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #21 from Armin Wolf ([email protected]) --- (In reply to Avraham Hollander from comment #19)

Quoted 7 lines

(In reply to Armin Wolf from comment #16)

Quoted 2 lines

Also, do receive a notification when pluggin in your charger? If yes, how long does it take for said notification to arrive?

Usually it only takes a second, but sometimes it takes a little longer. Often times when unplugging the charger too. It took around 6 seconds when the errors showed up just now.

Interesting, the ECMT mutex is also acquired when sending those notifications to the charger and the battery. Maybe they somehow take too long to process said notification?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#25 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

Rong Zhang ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |[email protected],
                   |                            |[email protected]

--- Comment #22 from Rong Zhang ([email protected]) ---
+CC Mark Pearson.

Thanks for Armin's insight!

Yeah, the root cause should lie in the ACPI table. It's super broken as I even found more ECMT issues...

I've noticed these methods are broken while glancing at all occurrences of ECMT in DSDT: WTER, ECCC, _BTP.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#26 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #23 from Avraham Hollander ([email protected]) --- (In reply to Rong Zhang from comment #22)

Quoted 9 lines

+CC Mark Pearson.

Thanks for Armin's insight!

Yeah, the root cause should lie in the ACPI table. It's super broken as I even found more ECMT issues...

I've noticed these methods are broken while glancing at all occurrences of ECMT in DSDT: WTER, ECCC, _BTP.

Speaking of firmware-related issues, TSC is broken on my laptop, causing reliance on HPET as clocksource and increased scheduling latency. Unless I have no idea what I'm talking about, I think it's a BIOS issue as well. I made a post on the Lenovo Linux forum about it that I'll post here for visibility:
https://forums.lenovo.com/t5/Other-Linux-Discussions/1-second-TSC-warp-on-IdeaPad-5-2-in-1-14AHP9-due-to-bad-initialization-in-BIOS-forces-HPET-fallback/m-p/10021248

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#27 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #24 from Avraham Hollander ([email protected]) --- (In reply to Rong Zhang from comment #22)

Quoted 9 lines

+CC Mark Pearson.

Thanks for Armin's insight!

Yeah, the root cause should lie in the ACPI table. It's super broken as I even found more ECMT issues...

I've noticed these methods are broken while glancing at all occurrences of ECMT in DSDT: WTER, ECCC, _BTP.

Raphael Bitton can you post your acpidump as well? You have a different model laptop, it would help to show that they both have the same ACPI table problems.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#28 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #25 from Rong Zhang ([email protected]) ---
Created attachment 309348
--> https://bugzilla.kernel.org/attachment.cgi?id=309348&action=edit
workaround for the FW bug

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#29 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #26 from Rong Zhang ([email protected]) --- Avraham, could you test if the patch fixes the issue?

It's just a PoC as I haven't seen Raphael's acpidump so IDK if it works on their device.

Mark, could you check the documentation of the GBMD interface? Will its return value have any byte being 0xFF under normal circumstances? If not, I think the workaround can be applied unconditionally without a DMI quirk. Also the issue should really be fixed from the FW side. Could you coordinate with the FW team about this?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#30 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #27 from Avraham Hollander ([email protected]) --- (In reply to Rong Zhang from comment #26)

Quoted 10 lines

Avraham, could you test if the patch fixes the issue?

It's just a PoC as I haven't seen Raphael's acpidump so IDK if it works on their device.

Mark, could you check the documentation of the GBMD interface? Will its return value have any byte being 0xFF under normal circumstances? If not, I think the workaround can be applied unconditionally without a DMI quirk. Also the issue should really be fixed from the FW side. Could you coordinate with the FW team about this?

It did not. Unplugging and replugging the charger a bunch of times results in:

ACPI Error: Thread 386093824 cannot release Mutex [ECMT] acquired by thread 32582016 (20250807/exmutex-378)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0.ECCC due to previous error (AE_AML_NOT_OWNER) (20250807/psparse-529)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0.RPAM due to previous error (AE_AML_NOT_OWNER) (20250807/psparse-529)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0._Q93 due to previous error (AE_AML_NOT_OWNER) (20250807/psparse-529)
power_supply BAT0: driver failed to report charge_types' property: -5 power_supply BAT0: driver failed to report charge_types' property: -5 ACPI Error: Thread 348558528 cannot release Mutex [ECMT] acquired by thread 350311168 (20250807/exmutex-378)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0.ECCC due to previous error (AE_AML_NOT_OWNER) (20250807/psparse-529)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0.VPC0.DYTC due to previous error (AE_AML_NOT_OWNER) (20250807/psparse-529)
ucsi_acpi USBC000:00: GET_CONNECTOR_STATUS failed (-110) power_supply BAT0: driver failed to report charge_types' property: -5 power_supply BAT0: driver failed to report charge_types' property: -5 ucsi_acpi USBC000:00: ucsi_handle_connector_change: GET_CONNECTOR_STATUS failed (-5)
ucsi_acpi USBC000:00: ucsi_handle_connector_change: GET_CONNECTOR_STATUS failed (-5)
ucsi_acpi USBC000:00: GET_CONNECTOR_STATUS failed (-5)

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#31 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #28 from Avraham Hollander ([email protected]) --- (In reply to Rong Zhang from comment #22)

Quoted 9 lines

+CC Mark Pearson.

Thanks for Armin's insight!

Yeah, the root cause should lie in the ACPI table. It's super broken as I even found more ECMT issues...

I've noticed these methods are broken while glancing at all occurrences of ECMT in DSDT: WTER, ECCC, _BTP.

Is there anything you notice in there that could potentially cause the system to take excessively long (2-6 seconds) to resume from s2idle? That's another probably ACPI issue that I've always had. This is almost certainly unrelated to the charger bug and I don't want to go completely off topic, but I figure it's worth mentioning now that I have contact with the relevant people.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#32 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #29 from Rong Zhang ([email protected]) ---
(In reply to Avraham Hollander from comment #27)

Thanks for your test.

Quoted 3 lines

It did not. Unplugging and replugging the charger a bunch of times results in:
[...]

Ahh, my fault. I meant fixing the issue that ideapad-laptop misinterprets the error returned by the GBMD method as a valid return value. According to your log, the patch seems correct.

As for the issue of the mutex chaos (and hence the error logs you got), we can't really fix it from the kernel side. It can only be fixed by a BIOS update. That's why I added Mark to the CC list.

I've seen GBMD, SALS, SBMC, and DYTC calling ECCC. I think we will have to add a DMI quirk disabling most (if not all) features of ideapad-laptop on 83DR until a BIOS update fixes the mutex bug. Doing so should make the mutex less likely to break. As a quick test, could you test if blacklisting ideapad-laptop in modprobe.d (reboot required, ofc) helps?

(In reply to Avraham Hollander from comment #28)

Quoted 6 lines

Is there anything you notice in there that could potentially cause the system to take excessively long (2-6 seconds) to resume from s2idle? That's another probably ACPI issue that I've always had. This is almost certainly unrelated to the charger bug and I don't want to go completely off topic, but I figure it's worth mentioning now that I have contact with the relevant people.

I guess this is also related to the mutex bug in DSDT, considering it has a bunch of EC queries calling ECCC. Blacklisting ideapad-laptop may have some help, as doing so reduces the probability of running into a race condition.

I am not really familiar with s2idle and EC queries, so I may not be the best person to answer this. Armin, do you have any thoughts?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#33 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #30 from Rong Zhang ([email protected]) ---
(In reply to Rong Zhang from comment #29)

Quoted 1 line

I've seen GBMD, SALS, SBMC, and DYTC calling ECCC.

Errata: s/GBMD/RPAM/

To summarize:

ECCC callers: RPAM[1], SALS[2], SBMC[2], DYTC[2].
WTER callers: none.
_BTP callers: none[3].

[1]: called by EC queries: _Q0A, _Q92, _Q93, _Q9E [2]: called by ideapad-laptop
[3]: but itself is called by battery (drivers/acpi/battery.c)

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#34 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #31 from Avraham Hollander ([email protected]) --- (In reply to Rong Zhang from comment #29)

Quoted 29 lines

(In reply to Avraham Hollander from comment #27)

Thanks for your test.

Quoted 3 lines

It did not. Unplugging and replugging the charger a bunch of times results in:
[...]

Ahh, my fault. I meant fixing the issue that ideapad-laptop misinterprets the error returned by the GBMD method as a valid return value. According to your log, the patch seems correct.

As for the issue of the mutex chaos (and hence the error logs you got), we can't really fix it from the kernel side. It can only be fixed by a BIOS update. That's why I added Mark to the CC list.

I've seen GBMD, SALS, SBMC, and DYTC calling ECCC. I think we will have to add a DMI quirk disabling most (if not all) features of ideapad-laptop on 83DR until a BIOS update fixes the mutex bug. Doing so should make the mutex less likely to break. As a quick test, could you test if blacklisting ideapad-laptop in modprobe.d (reboot required, ofc) helps?

(In reply to Avraham Hollander from comment #28)

Quoted 5 lines

Is there anything you notice in there that could potentially cause the system to take excessively long (2-6 seconds) to resume from s2idle? That's another probably ACPI issue that I've always had. This is almost certainly unrelated to the charger bug and I don't want to go completely off topic, but I figure it's worth mentioning now that I have contact with the

relevant

Quoted 8 lines
Quoted 1 line

people.

I guess this is also related to the mutex bug in DSDT, considering it has a bunch of EC queries calling ECCC. Blacklisting ideapad-laptop may have some help, as doing so reduces the probability of running into a race condition.

I am not really familiar with s2idle and EC queries, so I may not be the best person to answer this. Armin, do you have any thoughts?

I can't get it to trigger either way now, whether ideapad_laptop is loaded or not. Could the cause be that my battery is fully charged now? I'm going to discharge it some and try it again.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#35 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #32 from Avraham Hollander ([email protected]) --- (In reply to Avraham Hollander from comment #31)

Quoted 40 lines

(In reply to Rong Zhang from comment #29)

Quoted 5 lines

(In reply to Avraham Hollander from comment #27)

Thanks for your test.

Quoted 1 line

It did not. Unplugging and replugging the charger a bunch of times

results

Quoted 7 lines
Quoted 2 lines

in:
[...]

Ahh, my fault. I meant fixing the issue that ideapad-laptop misinterprets the error returned by the GBMD method as a valid return value. According to your log, the patch seems correct.

Quoted 7 lines

As for the issue of the mutex chaos (and hence the error logs you got), we can't really fix it from the kernel side. It can only be fixed by a BIOS update. That's why I added Mark to the CC list.

I've seen GBMD, SALS, SBMC, and DYTC calling ECCC. I think we will have to add a DMI quirk disabling most (if not all) features of ideapad-laptop on 83DR until a BIOS update fixes the mutex bug. Doing so should make the

mutex

Quoted 6 lines

less likely to break. As a quick test, could you test if blacklisting ideapad-laptop in modprobe.d (reboot required, ofc) helps?

(In reply to Avraham Hollander from comment #28)

Quoted 2 lines

Is there anything you notice in there that could potentially cause the system to take excessively long (2-6 seconds) to resume from s2idle?

That's

Quoted 1 line
Quoted 1 line

another probably ACPI issue that I've always had. This is almost

certainly

Quoted 9 lines
Quoted 2 lines

unrelated to the charger bug and I don't want to go completely off topic, but I figure it's worth mentioning now that I have contact with the

relevant

Quoted 1 line

people.

I guess this is also related to the mutex bug in DSDT, considering it has a bunch of EC queries calling ECCC. Blacklisting ideapad-laptop may have some help, as doing so reduces the probability of running into a race condition.

Quoted 6 lines
Quoted 2 lines

I am not really familiar with s2idle and EC queries, so I may not be the best person to answer this. Armin, do you have any thoughts?

I can't get it to trigger either way now, whether ideapad_laptop is loaded or not. Could the cause be that my battery is fully charged now? I'm going to discharge it some and try it again.

Actually, it just seems to be really intermittent. Now I'm getting the errors from ucsi_acpi but not the mutex error, with ideapad_laptop loaded. It's hard to say for sure whether blacklisting the module helps or not.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#36 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #33 from Rong Zhang ([email protected]) ---
(In reply to Avraham Hollander from comment #32)

Quoted 1 line

Actually, it just seems to be really intermittent.

That's expected. These error logs are due to two reasons:

#1

Many ACPI methods need to acquire the ECMT mutex while executing. Most of them are helper methods, meant to be called by outer methods.

When the laptop is connected to or disconnected from AC power, a bunch of events is generated simultaneously, causing the corresponding ACPI methods to be invoked simultaneously and to compete for the mutex. After several seconds, some methods have waited for too long and timed out, causing them to return an error.

However, some outer methods don't confirm if the helper method succeeded. They blindly propagate the helper methods' return values, even if they are error codes or nonsense. If an outer method calls a helper method multiple times, it will end up returning a half-valid-half-nonsense value.

That's how the ideapad-laptop and ucsi_acpi errors are produced.

#2

Some helper methods are not implemented properly. They release the ECMT mutex even if they have failed to acquire it due to the timeout. When they are unlucky and time out, releasing the mutex (even if they do not own it) causes the ACPI error.

Hence, not seeing the mutex error simply means that the ECCC method was lucky and didn't time out.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#37 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #34 from Rong Zhang ([email protected]) ---
I also found some time looking into ucsi_acpi and the AML code of the ACPI device (in SSDT17).

Two helper methods (\_SB.PCI0.LPC0.EC0.ECRD for reading, \_SB.PCI0.LPC0.EC0.ECWT for writing) are repeatedly called a total of 25 (!) times when handling a UCSI command. Their timeout for acquiring the ECMT mutex is 1s. Therefore, it is not surprising that some of these calls will time out.

Considering this, it seems that ucsi_acpi will cause significant pressure on the ECMT mutex, as each UCSI command acquires and releases it 25 times. Instead of blacklisting ideapad-laptop, could you try to blacklist ucsi_acpi? Doing so should reduce the pressure on the ECMT mutex a lot, so other ACPI methods may be less likely to time out. Again, this won't completely "fix" the issue, and a BIOS update is the only way to fix it.

Moreover, there is no way for us to determine if any call within them has failed, so we can't trust the UCSI ACPI device anymore -- a quirk will also be required to disable usci_acpi on 83DR.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#38 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |[email protected]
                   |                            |m

--- Comment #35 from [email protected] ---
If this is a system firmware issue, we can probably close this ticket. Ideapad laptops are not supported under linux (they don't even let you update the firmware with fwupd even though the infrastructure works just fine, you have to use windows) and it's extremely unlikely that someone from Lenovo will be interested in fixing this if it works on windows.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#39 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #36 from Avraham Hollander ([email protected]) --- (In reply to Rong Zhang from comment #34)

Quoted 16 lines

I also found some time looking into ucsi_acpi and the AML code of the ACPI device (in SSDT17).

Two helper methods (\_SB.PCI0.LPC0.EC0.ECRD for reading, \_SB.PCI0.LPC0.EC0.ECWT for writing) are repeatedly called a total of 25 (!) times when handling a UCSI command. Their timeout for acquiring the ECMT mutex is 1s. Therefore, it is not surprising that some of these calls will time out.

Considering this, it seems that ucsi_acpi will cause significant pressure on the ECMT mutex, as each UCSI command acquires and releases it 25 times. Instead of blacklisting ideapad-laptop, could you try to blacklist ucsi_acpi? Doing so should reduce the pressure on the ECMT mutex a lot, so other ACPI methods may be less likely to time out. Again, this won't completely "fix" the issue, and a BIOS update is the only way to fix it.

Quoted 3 lines

Moreover, there is no way for us to determine if any call within them has failed, so we can't trust the UCSI ACPI device anymore -- a quirk will also be required to disable usci_acpi on 83DR.

I don't *seem* to be getting the mutex error with it blacklisted. However, I'm still getting the original error from ideapad_acpi.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#40 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #37 from Avraham Hollander ([email protected]) --- (In reply to bcuseudshjvtquiocv from comment #35)

Quoted 5 lines

If this is a system firmware issue, we can probably close this ticket. Ideapad laptops are not supported under linux (they don't even let you update the firmware with fwupd even though the infrastructure works just fine, you have to use windows) and it's extremely unlikely that someone from Lenovo will be interested in fixing this if it works on windows.

Rong Zhang's choice to CC Mark Pearson proves otherwise.

There's also a difference between "not officially supported" and "we don't care about this at all and will offer little to no help."

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#41 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #38 from Mark Pearson ([email protected]) ---

Quoted 1 line

Rong Zhang's choice to CC Mark Pearson proves otherwise.

I can't promise anything - I don't have any official levers to pull for this platform I'm afraid (it is better to buy Linux supported/certified systems ;) )

But, having all the details above is very useful and I can ask for help from platforms that aren't officially in the Linux program and sometimes get lucky.

Last week was very busy for me so I didn't look at this thread properly. With it being Chinese New Year this week there's no point me sending off emails which will get lost in the holiday swamp.
Can someone nudge me next week if I don't post a note? I'll get this ticket forwarded to the Yoga team then and ask for them to look at it.

Mark

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#42 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #39 from Avraham Hollander ([email protected]) ---
Question: If the problem lies purely in the DSDT, would it not be possible to test a fix with a DSDT override? I am open to doing that.

I think it should also be possible to fix these errors with a DSDT patch?

ACPI BIOS Error (bug): Failure creating named object [\_SB.PCI0.GPP6._S0W], AE_ALREADY_EXISTS (20250807/dswload2-327)
ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20250807/psobject-220)
ACPI BIOS Error (bug): Failure creating named object [\_SB.PCI0.GPP6._PRW], AE_ALREADY_EXISTS (20250807/dswload2-327)
ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20250807/psobject-220)
ACPI: Skipping parse of AML opcode: OpcodeName unavailable (0x0014) ACPI BIOS Error (bug): Failure creating named object [\_SB.PCI0.GPP6.RTKW], AE_ALREADY_EXISTS (20250807/dswload2-327)
ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20250807/psobject-220)
ACPI: Skipping parse of AML opcode: OpcodeName unavailable (0x0014) ACPI BIOS Error (bug): Failure creating named object [\_SB.PCI0.GPP1._PRW], AE_ALREADY_EXISTS (20250807/dswload2-327)
ACPI Error: AE_ALREADY_EXISTS, During name lookup/catalog (20250807/psobject-220)
ACPI: Skipping parse of AML opcode: OpcodeName unavailable (0x0014)

Maybe that would help with the long resume time.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#43 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #40 from Avraham Hollander ([email protected]) --- (In reply to Mark Pearson from comment #38)

Quoted 10 lines
Quoted 1 line

Rong Zhang's choice to CC Mark Pearson proves otherwise.

I can't promise anything - I don't have any official levers to pull for this platform I'm afraid (it is better to buy Linux supported/certified systems ;) )

But, having all the details above is very useful and I can ask for help from platforms that aren't officially in the Linux program and sometimes get lucky.

Quoted 7 lines

Last week was very busy for me so I didn't look at this thread properly. With it being Chinese New Year this week there's no point me sending off emails which will get lost in the holiday swamp.
Can someone nudge me next week if I don't post a note? I'll get this ticket forwarded to the Yoga team then and ask for them to look at it.

Mark

Don't worry about it, we're patient.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#44 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #41 from Rong Zhang ([email protected]) ---
(In reply to Avraham Hollander from comment #36)

Quoted 2 lines

I don't *seem* to be getting the mutex error with it blacklisted. However, I'm still getting the original error from ideapad_acpi.

That should be a good sign.

Not making the ideapad-laptop error disappear hints that there must be other methods holding the ECMT mutex for too long after resuming from s2idle. Debugging with https://docs.kernel.org/firmware-guide/acpi/debug.html may reveal more details.

(In reply to Avraham Hollander from comment #39)

Quoted 4 lines

Question: If the problem lies purely in the DSDT, would it not be possible to test a fix with a DSDT override? I am open to doing that.

I think it should also be possible to fix these errors with a DSDT patch?

From my perspective, everything built around ECMT is broken. Fixing ECCC, WTER, and _BTP by overriding DSDT only resolves #2 (see comment #33).

To resolve #1, every method that relies on ECMT must explicitly check the helper functions' return values and must stop propagating nonsense on error.

Of course, you may lengthen the timeouts of acquiring ECMT and pray for success...

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#45 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

fililip ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #42 from fililip ([email protected]) --- I think I'm having this issue as well on my 83HN laptop.

dmesg says:

[   48.931988] ideapad_acpi VPC2004:00: unexpected charge_types: both [Fast]

and [Long_Life] are enabled

However, listing the contents of /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00 returns:

camera_power driver_override fn_lock modalias rfkill
usb_charging

conservation_mode  fan_mode         input    platform-profile  subsystem
driver             firmware_node    leds     power             uevent

There's no charge_types file.

Is that intentional?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#46 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #43 from fililip ([email protected]) --- I apologize, I was looking in the wrong directory.

cat /sys/class/power_supply/BAT0/charge_types returns:

Fast Standard [Long_Life]

So it looks like it's already set to long life for me, but the ideapad driver thinks otherwise.

I'm on 6.19.5, running PSCN21WW firmware.

BTW, someone in the thread seems to be spreading misinformation, as you can unpack the firmware update (PE32/exe) and use the included ~34MiB bin file with fwupd which is how I have the latest firmware actually.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#47 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #44 from Avraham Hollander ([email protected]) --- (In reply to fililip from comment #43)

Quoted 6 lines

I apologize, I was looking in the wrong directory.

cat /sys/class/power_supply/BAT0/charge_types returns:

Fast Standard [Long_Life]

Quoted 8 lines

So it looks like it's already set to long life for me, but the ideapad driver thinks otherwise.

I'm on 6.19.5, running PSCN21WW firmware.

BTW, someone in the thread seems to be spreading misinformation, as you can unpack the firmware update (PE32/exe) and use the included ~34MiB bin file with fwupd which is how I have the latest firmware actually.

I didn't know you could do that with fwupd either. I'll have to try it next time.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#48 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #45 from fililip ([email protected]) --- (In reply to Avraham Hollander from comment #44)

Quoted 2 lines

I didn't know you could do that with fwupd either. I'll have to try it next time.

This only works for AMD platforms, I think, but all you need to do is run

doas fwupdtool get-devices | grep -A 1 "System Firmware"

get the ID, and then execute

doas fwupdtool install-blob WinPSCN21WW.fd [that ID]

with WinPSCN21WW.fd being that extracted update file.

Then fwupd will prompt you for a reboot and install the update from the EFI.

Intel platforms have an additional IME update and I'm not sure how that's supposed to work, so caution is advised.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#49 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #46 from Rong Zhang ([email protected]) ---
(In reply to fililip from comment #42)

Quoted 2 lines

I think I'm having this issue as well on my 83HN laptop. [...]

Could you attach the acpidump of your device? This will help a lot in figuring out what's going on in the FW.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#50 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #47 from fililip ([email protected]) --- Created attachment 309511
--> https://bugzilla.kernel.org/attachment.cgi?id=309511&action=edit
acpidump from 83HN

Sure, here it is.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#51 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #48 from Rong Zhang ([email protected]) ---
(In reply to fililip from comment #47)

Quoted 2 lines

Created attachment 309511 [details]
acpidump from 83HN

Thanks. I found some time looking into it. It has exactly the same issues and broken patterns as 83DR.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#52 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #49 from fililip ([email protected]) ---
A thing that I noticed over the past few days is that while the laptop is plugged in (before boot) and in conservation mode, no errors are present in dmesg. Only when I try to view/change KDE power management settings or unplug/replug the power supply does anything happen (like ACPI errors or the ideapad_acpi charge type duality issue).

I've also seen problems with delayed responses to unplugging the charger (though plugging it in seems to make the OS react much faster) even on 6.18 and prior, but no ACPI errors were ever logged to my knowledge.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#53 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #50 from fililip ([email protected]) --- (In reply to Mark Pearson from comment #38)

Quoted 4 lines

Can someone nudge me next week if I don't post a note? I'll get this ticket forwarded to the Yoga team then and ask for them to look at it.

Mark

Hi, did you get a chance to notify the team about this problem?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#55 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #52 from [email protected] ---
Created attachment 309756
--> https://bugzilla.kernel.org/attachment.cgi?id=309756&action=edit
14AKP10 acpidump

I'm seeing the same behaviour on my Lenovo Yoga 7 2-in-1 14AKP10, I've added the ACPI dump in case this can help to diagnose the issue further.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#56 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

nael ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #53 from nael ([email protected]) ---
+1
Using a "Yoga 7 14ARP8", "AMD Ryzen 7 7735U", kernel 6.19.9 (although I think it started happening on previous 6.19 revisions as well). I am using gentoo.

/sys/class/power_supply/BAT0/charge_types says "[Fast] Standard Long_Life".

I just registered and I don´t know how to add the acpidump file...

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#57 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #54 from nael ([email protected]) ---
Created attachment 309759
--> https://bugzilla.kernel.org/attachment.cgi?id=309759&action=edit
Yoga 7 14ARP8 acpidump

Attached acpidump

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#58 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #55 from fililip ([email protected]) ---
I see there's a new firmware update available (at least for my laptop):
https://pcsupport.lenovo.com/us/en/products/laptops-and-netbooks/yoga-series/yoga-pro-7-14asp9/83hn/downloads/ds570271?category=BIOS%2FUEFI

Is it worth installing to see if it fixes the issue or is the root cause still under investigation?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#59 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #56 from Avraham Hollander ([email protected]) --- You should probably install it anyways. There's a lot of security fixes in that update. There's no mentioned changes to ACPI, so it shouldn't have an effect on the issue at hand.

Quoted 17 lines · On Wed, Apr 1, 2026, 8:58 AM <[email protected]> wrote:

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #55 from fililip ([email protected]) ---
I see there's a new firmware update available (at least for my laptop):

https://pcsupport.lenovo.com/us/en/products/laptops-and-netbooks/yoga-series/yoga-pro-7-14asp9/83hn/downloads/ds570271?category=BIOS%2FUEFI

Is it worth installing to see if it fixes the issue or is the root cause still
under investigation?

--
You may reply to this email to add a comment.

You are receiving this mail because:
You are on the CC list for the bug.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#60 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #57 from fililip ([email protected]) ---
Alright, I did the update which was easy thanks to fwupdtool but unfortunately the issue still remains.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#61 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #58 from [email protected] ---
This also happens on my Lenovo IdeaPad 3 15ALC6 but all I did was change a file from 1 to 0 and then back to 1 again with a text editor and now I don't see the error anymore on my logs and preserver battery mode shows up on my settings. (I don't remember the file I opened I am on Fedora Workstation and Preverse battery mode did not show up on 6.19xxx kernels until I made this change.)

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#62 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #59 from Rong Zhang ([email protected]) ---
(In reply to george.stafilidis from comment #58)

Quoted 6 lines

This also happens on my Lenovo IdeaPad 3 15ALC6 but all I did was change a file from 1 to 0 and then back to 1 again with a text editor and now I don't see the error anymore on my logs and preserver battery mode shows up on my settings. (I don't remember the file I opened I am on Fedora Workstation and Preverse battery mode did not show up on 6.19xxx kernels until I made this change.)

Then your device probably doesn't have the FW bug.

Seeing the warning message in this case is not a bug. It tells you that having conservation mode and rapid charge enabled at the same time is out of spec. Writing 1 to conservation_mode clears the rapid charge bit. As long as the warning doesn't appear again after tuning charge_types or conservation_mode, you can safely forget it.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#63 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

Rick ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #60 from Rick ([email protected]) ---
I also have the Lenovo Yoga 7 2-in-1 14AKP10 (specifically Model #: 83JR0002US which is AMD Ryzen AI 5 340).

Running Linux Mint 22.3 using Kernel 7.0.1 from Mainline (but same effect with earlier kernels starting somewhere after 6.14)

I found this bug trying to track down a system (GUI?) pause every 7 minutes or so which seems to correlate with the event discussed in this bug (as seen using "dmesg -w"). The pause is around a second in duration and oddly the mouse cursor will still move but everything else stops.

If this is the cause of my pauses then at least I can stop looking and wait for either a bug fix here or in the Lenovo BIOS.

Can someone confirm that this event correlates with a system GUI pause?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#64 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #61 from [email protected] --- Same behavior for me, with a 83HY system.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#65 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #62 from [email protected] ---
Created attachment 309966
--> https://bugzilla.kernel.org/attachment.cgi?id=309966&action=edit
ACPI Dump for 83HY

If it's of any help, done with the latest BIOS installed.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#66 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #63 from [email protected] ---
What changed with version 6.19 that made this errors pops out? I don't remember seeing this with 6.18.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#67 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #64 from Rong Zhang ([email protected]) ---
(In reply to boite.pour.spam from comment #63)

Quoted 2 lines

What changed with version 6.19 that made this errors pops out? I don't remember seeing this with 6.18.

v6.19 added a check against insane values. See also
https://bugzilla.kernel.org/show_bug.cgi?id=221065#c14 for how the insane value is produced.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#68 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #65 from [email protected] ---
Would it be possible to serialize the ideapad-laptop and ucsi_acpi simultaneous accesses to a kernel mutex so that it's not possible for the kernel to timeout on the ACPI mutex if only one kthread can be accessing it?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#69 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #66 from Rong Zhang ([email protected]) ---
(In reply to boite.pour.spam from comment #65)

Quoted 3 lines

Would it be possible to serialize the ideapad-laptop and ucsi_acpi simultaneous accesses to a kernel mutex so that it's not possible for the kernel to timeout on the ACPI mutex if only one kthread can be accessing it?

It's a completely dirty hack and would not fix the issue completely. The ECMT mutex is not only used by ideapad-laptop and ucsi_acpi, but also heavily used elsewhere. If you really care about that, you can simply blacklist usci_acpi as it also returns garbage due to the FW bug, see
https://bugzilla.kernel.org/show_bug.cgi?id=221065#c34

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#70 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #67 from [email protected] ---
I've read all the comments above and I'm trying to understand how the broken ACPI tables would work on Windows. If there's a "deadlock" in the ACPI implementation, how does Windows works around it?
If I understand correctly, the solving options are:
1. Have Lenovo to fix the ACPI tables (which is very unlikely)
2. Implement a "live" ACPI fix with a DSDT override but it won't fix the bad releasing of the ACPI's mutex (but we can probably live with it, since, except for the dmesg noise, doesn't break anything)
3. Blacklist both usci_acpi and ideapad-laptop, so that there aren't any contender on the mutex anymore, but I'm not clear about what's lost when we do so?

Am I right?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#71 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

Hans de Goede ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #68 from Hans de Goede ([email protected]) ---
@Rong Zhang wrote: "If you really care about that, you can simply blacklist usci_acpi as it also returns garbage due to the FW bug".

Would it be an idea to add a DMI id deny quirk-list to usci_acpi for this and simply make that driver refuse to load for the known to be broken ideapad models from this bug ?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#72 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #69 from Rong Zhang ([email protected]) ---
(In reply to Hans de Goede from comment #68)

Quoted 6 lines

@Rong Zhang wrote: "If you really care about that, you can simply blacklist usci_acpi as it also returns garbage due to the FW bug".

Would it be an idea to add a DMI id deny quirk-list to usci_acpi for this and simply make that driver refuse to load for the known to be broken ideapad models from this bug ?

Sure. I will find some time to check all acpidumps here for fragile USCI ACPI methods and send a patch accordingly.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#73 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #70 from Rong Zhang ([email protected]) ---
(In reply to boite.pour.spam from comment #67)

Quoted 3 lines

I've read all the comments above and I'm trying to understand how the broken ACPI tables would work on Windows. If there's a "deadlock" in the ACPI implementation,

How did you conclude that? No one had mentioned "deadlock". The issue is about:

#1. Errors in mutex acquisition are propagated blindly #2. Some ACPI methods release a mutex owned by others

I think my conclusion is clear enough:
https://bugzilla.kernel.org/show_bug.cgi?id=221065#c33

Quoted 1 line

how does Windows works around it?

Just ask Microsoft and Lenovo.

TBH, comparing Linux to Windows in that way is hardly helpful. On Windows, the ideapad ACPI methods are used by Lenovo Vantage (or something else), which is a userspace program. It probably doesn't query charge types after power events, but blindly assumes nothing has changed. It probably doesn't check ACPI return values to see if they are insane, but propagates them blindly again. I don't think "Windows works around it," as burying one's head in the sand works around nothing.

Quoted 4 lines

If I understand correctly, the solving options are:
1. Have Lenovo to fix the ACPI tables (which is very unlikely)
2. Implement a "live" ACPI fix with a DSDT override but it won't fix the bad releasing of the ACPI's mutex

Again, how did you conclude that? If you used an AI to "help" you understand the thread, you probably chose the wrong AI.

The easiest thing to fix is, however, "bad releasing" (#2). Just delete or move several lines of ASL code, and that's it.

But most of the issues here are caused by #1. It generates a lot of garbage return values, and there's no easy way to distinguish them afterward. Every method that recursively depends on ECMT must be rewritten, which means that not only the DSDT, but also some SSDTs, need to be overridden.

I've almost said the same in
https://bugzilla.kernel.org/show_bug.cgi?id=221065#c41

Quoted 2 lines

(but we can probably live with it, since, except for the dmesg noise, doesn't break anything)

The error messages generated by ideapad-laptop don't break anything either. They're harmlessly noisy right after power events, but everything should work well once the events settle.

Quoted 3 lines

3. Blacklist both usci_acpi and ideapad-laptop, so that there aren't any contender on the mutex anymore, but I'm not clear about what's lost when we do so?

It's usually OK to blacklist usci_acpi. Most Lenovo laptops have most USCI commands stubbed to a certain extent, so they're hardly useful. The EC will always handle USB-C events itself despite that.

You don't need to blacklist ideapad-laptop if you can live with harmless dmesg noise.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#74 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #71 from Avraham Hollander ([email protected]) --- Removing ucsi_acpi fixes the charge state reporting problems.

However, with only ideapad_laptop loaded and not ucsi_acpi, I still got:

ACPI Error: Thread 2463875008 cannot release Mutex [ECMT] acquired by thread 2221167872 (20251212/exmutex-378)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0.ECCC due to previous error (AE_AML_NOT_OWNER) (20251212/psparse-531)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0.RPAM due to previous error (AE_AML_NOT_OWNER) (20251212/psparse-531)
ACPI Error: Aborting method \_SB.PCI0.LPC0.EC0._Q93 due to previous error (AE_AML_NOT_OWNER) (20251212/psparse-531)

When unplugging and replugging the charger a bunch of times to test.

Removing ideapad_laptop, you lose control over features like the ACPI platform profile. It can still be changed via a BIOS setting, but that's not helpful if you want a different setting on AC vs. battery.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#75 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #72 from Hans de Goede ([email protected]) ---

Quoted 1 line

However, with only ideapad_laptop loaded and not ucsi_acpi, I still got ...

There is nothing we can do about those messages. The real question is if there are still any messages which repeat periodically filling the disk with logs, like the original messages starting this bug.

Or if there are any actual problems when using the laptop?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#76 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #73 from Avraham Hollander ([email protected]) --- (In reply to Hans de Goede from comment #72)

Quoted 7 lines
Quoted 1 line

However, with only ideapad_laptop loaded and not ucsi_acpi, I still got ...

There is nothing we can do about those messages. The real question is if there are still any messages which repeat periodically filling the disk with logs, like the original messages starting this bug.

Or if there are any actual problems when using the laptop?

Oh yeah, it is indeed still printing the "unexpected charge_type" message. Not sure why I didn't just mention that.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#77 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #74 from [email protected] ---
(In reply to Rick from comment #60)

Quoted 9 lines

I found this bug trying to track down a system (GUI?) pause every 7 minutes or so which seems to correlate with the event discussed in this bug (as seen using "dmesg -w"). The pause is around a second in duration and oddly the mouse cursor will still move but everything else stops.

If this is the cause of my pauses then at least I can stop looking and wait for either a bug fix here or in the Lenovo BIOS.

Can someone confirm that this event correlates with a system GUI pause?

I can't confirm whether this is the cause, but I also see freezes (most noticeable by the shell becoming unresponsive in the terminal), which when checking the logs always seems to correlate with one of these errors.

(In reply to Hans de Goede from comment #72)

Quoted 7 lines
Quoted 1 line

However, with only ideapad_laptop loaded and not ucsi_acpi, I still got ...

There is nothing we can do about those messages. The real question is if there are still any messages which repeat periodically filling the disk with logs, like the original messages starting this bug.

Or if there are any actual problems when using the laptop?

If this is actually the cause, then there are definitely problems using affected devices, since these very regular freezes of the whole system are more than just a cosmetic issue in the logs.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#78 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #75 from Rong Zhang ([email protected]) ---
(In reply to jeffrey from comment #74)

Quoted 8 lines

(In reply to Rick from comment #60)

Quoted 2 lines

Can someone confirm that this event correlates with a system GUI pause?

I can't confirm whether this is the cause, but I also see freezes (most noticeable by the shell becoming unresponsive in the terminal), which when checking the logs always seems to correlate with one of these errors.

Quoted 7 lines

(In reply to Hans de Goede from comment #72)

Quoted 2 lines

Or if there are any actual problems when using the laptop?

If this is actually the cause, then there are definitely problems using affected devices, since these very regular freezes of the whole system are more than just a cosmetic issue in the logs.

These logs are symptoms. They are caused by a lot of poorly implemented ACPI methods competing for the same mutex.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#79 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #76 from Rick ([email protected]) --- (In reply to jeffrey from comment #74)

Quoted 4 lines

If this is actually the cause, then there are definitely problems using affected devices, since these very regular freezes of the whole system are more than just a cosmetic issue in the logs.

I completely blacklisted Ideapad_laptop on my system (using Mint Kernel 6.17.0-23-generic) and this seems to have completely solved the 1 second pauses every 7 minutes for me.

For anyone else with a Lenovo Yoga 2 in 1 Ryzen AI 5 340 (2025 version) (Model 83JR0002US) searching for an immediate solution:
I added file "/etc/modprobe.d/blackist-ideapad_laptop.conf" with the following lines:
blacklist ideapad_laptop
install ideapad_laptop /bin/false
Then in a terminal I ran "sudo update-initramfs -u" to make it active - after reboot I no longer get the pauses or the associated messages in the log.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#80 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #77 from Rong Zhang ([email protected]) ---
(In reply to Rick from comment #76)

Quoted 5 lines

(In reply to jeffrey from comment #74)

I completely blacklisted Ideapad_laptop on my system (using Mint Kernel 6.17.0-23-generic) and this seems to have completely solved the 1 second pauses every 7 minutes for me.

Hmm, interesting. I assume the pauses had existed before I introduced the warning message (unexpected charge_types...), right?

This sounds like a slow SMI handling due to the broken firmware.

Could you kindly provide more detailed information about the pause? When it happened, did you notice a spike in CPU usage? Did you see any dmesg message at that time? Did it freeze your system completely or just make things laggy?

Could you also monitor the SMI count, i.e.,

sudo perf stat -e ls_smi_rx -I 1000

..., wait for the pause to occur, and check how many SMIs have occurred during the pause?

You can also mess around with sysfs attributes of ideapad-laptop, power_supply, and firmware-attributes to see if reading them causes SMIs:

sudo tail /sys/bus/acpi/devices/VPC2004\:00/physical_node/* sudo tail /sys/class/power_supply/*/*
sudo tail /sys/class/firmware-attributes/*/attributes/*/*

On my device, reading /sys/class/firmware-attributes/thinklmi/attributes/*/* always causes 580 SMIs, and other attributes do not cause any SMI.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#81 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #78 from Rick ([email protected]) --- (In reply to Rong Zhang from comment #77)

Quoted 9 lines

(In reply to Rick from comment #76)

Quoted 5 lines

(In reply to jeffrey from comment #74)

I completely blacklisted Ideapad_laptop on my system (using Mint Kernel 6.17.0-23-generic) and this seems to have completely solved the 1 second pauses every 7 minutes for me.

Hmm, interesting. I assume the pauses had existed before I introduced the warning message (unexpected charge_types...), right?

Correct - this pause happens in Kernel 6.17 with no messages, when I load Kernel 6.19 I started getting the messages and that lead me to this thread. I tried Kernel 6.16 and the pause does not happen - so I believe this behavior was introduced in Kernel 6.17

Quoted 6 lines

This sounds like a slow SMI handling due to the broken firmware.

Could you kindly provide more detailed information about the pause? When it happened, did you notice a spike in CPU usage? Did you see any dmesg message at that time? Did it freeze your system completely or just make things laggy?

The system appears to freeze solid for about 1 to 2 seconds (hard to tell the exact timing - but the pause feels like it is always the same duration). Nothing on screen changes.

When running system monitor during the event I see it freeze but when it restarts I don't see any spikes or anything interesting on any graph.

When I was running the "perf stat" stuff below I did notice that during the freeze it stopped updating and when it resumed it looked like it filled in all the data that was paused. Normally the perf stat seems to just produce a row of data on a periodic basis and when the pause happens it stops but after the freeze it looks like it prints a bunch of rows to catch up to where it should be.

There is no laggy behavior either before or after the freeze. The system works perfectly at all times except for the duration of the freeze.

No message in dmesg under Kernel 6.17 (the default kernel in Mint - my daily driver).

The dmesg message shows up (Kernel 6.19 used for this) as soon as the freeze is finished (here are three consecutive events captured using "dmesg -w" so you can see the timing between them:

[ 107.554265] ideapad_acpi VPC2004:00: unexpected charge_types: both [Fast] and
[Long_Life] are enabled
[ 501.851737] ideapad_acpi VPC2004:00: unexpected charge_types: both [Fast] and
[Long_Life] are enabled
[ 933.076412] ideapad_acpi VPC2004:00: unexpected charge_types: both [Fast] and

[Long_Life] are enabled

Quoted 7 lines

Could you also monitor the SMI count, i.e.,

sudo perf stat -e ls_smi_rx -I 1000

..., wait for the pause to occur, and check how many SMIs have occurred during the pause?

There number stayed at 0 the entire time I was testing the pause - the pause did not make the number increment.

Quoted 10 lines

You can also mess around with sysfs attributes of ideapad-laptop, power_supply, and firmware-attributes to see if reading them causes SMIs:

sudo tail /sys/bus/acpi/devices/VPC2004\:00/physical_node/* sudo tail /sys/class/power_supply/*/*
sudo tail /sys/class/firmware-attributes/*/attributes/*/*

On my device, reading /sys/class/firmware-attributes/thinklmi/attributes/*/* always causes 580 SMIs, and other attributes do not cause any SMI.

On my device, reading /sys/class/firmware-attributes/thinklmi/attributes/*/* always causes 504 SMIs, and other attributes do not cause any SMI.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#82 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #79 from Rick ([email protected]) --- (In reply to Rick from comment #78)

Quoted 3 lines

The system appears to freeze solid for about 1 to 2 seconds (hard to tell the exact timing - but the pause feels like it is always the same duration). Nothing on screen changes.

Let me clarify this - After further testing: the mouse cursor continues to move on screen during a pause event.

For testing I was in a text editor scrolling a long document up and down (using mouse wheel) while moving the mouse in a circle. When the pause happens the document stops scrolling and the performance monitor stops updating.

During the freeze the mouse cursor stayed fully responsive to my movements and did not seem laggy or out of the ordinary.

For reference I am running Linux Mint 22.3 - Cinnamon 64-bit - Cinnamon 6.6.7

I was also typing this comment with the ideapad_laptop kernel module enabled and I think the pause also allows keyboard input to buffer and not be ignored. (I was typing when a pause happened and I could have sworn that a key didn't register on screen so I hit it again and when the pause ended I ended up with two of the characters).

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#83 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #80 from Rong Zhang ([email protected]) ---
(In reply to Rick from comment #78)

Quoted 9 lines

(In reply to Rong Zhang from comment #77)

Quoted 3 lines

(In reply to Rick from comment #76)
Hmm, interesting. I assume the pauses had existed before I introduced the warning message (unexpected charge_types...), right?

Correct - this pause happens in Kernel 6.17 with no messages, when I load Kernel 6.19 I started getting the messages and that lead me to this thread. I tried Kernel 6.16 and the pause does not happen - so I believe this behavior was introduced in Kernel 6.17

Oh, that was when the charge_types attribute was added to ideapad-laptop.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=da8f2708f9b69707f4efeb432a18395e46b4666f

Quoted 6 lines
Quoted 4 lines

This sounds like a slow SMI handling due to the broken firmware.

Could you kindly provide more detailed information about the pause? When it happened, did you notice a spike in CPU usage? Did you see any dmesg

message

Quoted 1 line

at that time? Did it freeze your system completely or just make things

Quoted 8 lines

laggy?

The system appears to freeze solid for about 1 to 2 seconds (hard to tell the exact timing - but the pause feels like it is always the same duration). Nothing on screen changes.

When running system monitor during the event I see it freeze but when it restarts I don't see any spikes or anything interesting on any graph.

Did it have a power consumption graph and a CPU frequency graph? I will talk more about monitoring later.

Quoted 17 lines

When I was running the "perf stat" stuff below I did notice that during the freeze it stopped updating and when it resumed it looked like it filled in all the data that was paused. Normally the perf stat seems to just produce a row of data on a periodic basis and when the pause happens it stops but after the freeze it looks like it prints a bunch of rows to catch up to where it should be.

There is no laggy behavior either before or after the freeze. The system works perfectly at all times except for the duration of the freeze.

No message in dmesg under Kernel 6.17 (the default kernel in Mint - my daily driver).

The dmesg message shows up (Kernel 6.19 used for this) as soon as the freeze is finished (here are three consecutive events captured using "dmesg -w" so you can see the timing between them:

Quoted 6 lines
[ 107.554265] ideapad_acpi VPC2004:00: unexpected charge_types: both [Fast]
and [Long_Life] are enabled
[ 501.851737] ideapad_acpi VPC2004:00: unexpected charge_types: both [Fast]
and [Long_Life] are enabled
[ 933.076412] ideapad_acpi VPC2004:00: unexpected charge_types: both [Fast]

and [Long_Life] are enabled

So I speculate that some userspace utilities (probably upower or the desktop environment?) read charge_types regularly or upon power events. Before v6.17, ideapad-laptop didn't support it, so nothing could be read. However, since v6.17, they can actually read it, and reading it triggers ECMT chaos upon power events.

Quoted 11 lines
Quoted 8 lines

Could you also monitor the SMI count, i.e.,

sudo perf stat -e ls_smi_rx -I 1000

..., wait for the pause to occur, and check how many SMIs have occurred during the pause?

There number stayed at 0 the entire time I was testing the pause - the pause did not make the number increment.

Hmm, that's weird...

Quoted 2 lines

Let me clarify this - After further testing: the mouse cursor continues to move on screen during a pause event.

Thanks a lot for the information. It's very helpful.

I suppose it could be a CPU/GPU throttle that delayed some rendering work. On modern desktop environments, the cursor is rendered on a different layer -- that may be why it continues to move.

Quoted 8 lines

For testing I was in a text editor scrolling a long document up and down (using mouse wheel) while moving the mouse in a circle. When the pause happens the document stops scrolling and the performance monitor stops updating.

During the freeze the mouse cursor stayed fully responsive to my movements and did not seem laggy or out of the ordinary.

Quoted 7 lines

For reference I am running Linux Mint 22.3 - Cinnamon 64-bit - Cinnamon 6.6.7

I was also typing this comment with the ideapad_laptop kernel module enabled and I think the pause also allows keyboard input to buffer and not be ignored. (I was typing when a pause happened and I could have sworn that a key didn't register on screen so I hit it again and when the pause ended I ended up with two of the characters).

Sounds like rendering delays, too. Such rendering delays usually don't freeze remote shells, e.g., SSH.

Could you try monitoring your laptop using s-tui? You would need to run it as root so that it can read the power consumption. The refresh interval should be set to 0.5s so that you can see measurements during pause events.

If possible, please SSH to your laptop from another PC and watch s-tui from the latter so that you can immediately see what's happening during the pause.

It would also be helpful to monitor twice with s-tui: once with its stress feature on and once with it off.

If you have enough time to mess around with pause event, could you also check if it freezes virtual terminals (use the kernel one instead of kmscon)? I guess it won't.

You may also try to SSH to your laptop from another PC or your smartphone, type echo l | sudo tee /proc/sysrq-trigger' in the shell, wait for a pause event, and press Enter immediately. This should reveal what processes are running and what the kernel is doing during the event. echo w | sudo tee /proc/sysrq-trigger' would also be helpful, as it reveals what processes are blocked during the pause.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#84 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #81 from Rong Zhang ([email protected]) ---
(In reply to Rong Zhang from comment #80)

Quoted 8 lines
Quoted 2 lines

Let me clarify this - After further testing: the mouse cursor continues to move on screen during a pause event.

Thanks a lot for the information. It's very helpful.

I suppose it could be a CPU/GPU throttle that delayed some rendering work. On modern desktop environments, the cursor is rendered on a different layer -- that may be why it continues to move.

Another possible reason for this is that your desktop environment may be somehow blocked when it reads charge_types synchronously. Normally, it shouldn't block rendering as it should be done on a different process, but I am not a GUI expert...

Anyway, my suggestions on monitoring and testing should reveal more information on this.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#85 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #82 from Rick ([email protected]) --- (In reply to Rong Zhang from comment #81)

Quoted 2 lines

Anyway, my suggestions on monitoring and testing should reveal more information on this.

I do not have SSH setup at all and have never used remote SSH so that seemed like it was going to take more time to setup than I wanted to spend right now. Sorry there was limited testing today and I don't think the below is going to add much - but here is what I did get done:

Using s-tui:

Running in a standard terminal window results in it's graphs stopping during the pause events but when it comes back it looks like the power usage was reduced during the event. This does not seem surprising as the entire GUI stops updating.

Running in a virtual terminal (the ones built into Mint using ctrl-alt-F1 for a terminal and ctrl-alt-F7 to return to the GUI) I did not see any variation whatsoever while watching it through enough time for an event to happen. Power was lower than the test in a standard terminal window (I suspect because the GUI was not updating). There were no pauses as you suspected.

Running in a virtual terminal and turning stress on I got the same results (I did not see any parameter substantially change when an event should have happened).

Quoted 5 lines

So I speculate that some userspace utilities (probably upower or the desktop environment?) read charge_types regularly or upon power events. Before v6.17, ideapad-laptop didn't support it, so nothing could be read. However, since v6.17, they can actually read it, and reading it triggers ECMT chaos upon power events.

This seems highly likely as there is a tray applet called Power Manager which shows battery and charging information. I know in Mint Cinnamon the tray icons do their stuff in the same process as the UI (they warn that misbehaved applets can cause system pauses and lockups). I think it uses upower to get it's info. Disabling these applets does not make the problem go completely away (upower is still running).

Quoted 1 line

Oh, that was when the charge_types attribute was added to ideapad-laptop.

This makes sense and ties into everything else - and explains the kernel versions and why disabling ideapad_laptop removes the pauses.

At this point is there really value in me taking the time to get SSH working from my phone to get the information on processes running or kernel information you mentioned above? Let me know if this would provide value to you and I will see what I can do.

I would think running s-tui from the phone would be the same as running it in the virtual terminal (which didn't really show anything interesting happening).
Unless you think the pause events just don't happen while I am watching a
virtual terminal?

I am currently running with ideapad_laptop blocked and the system seems functional - so my assumption is I have to wait for a BIOS update and try this again to see if the BIOS is working correctly. From previous discussions above it did not sound like there were any really good other options to investigate.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#86 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #83 from Rong Zhang ([email protected]) ---
(In reply to Rick from comment #82)

Quoted 10 lines

(In reply to Rong Zhang from comment #81)

Quoted 2 lines

Anyway, my suggestions on monitoring and testing should reveal more information on this.

I do not have SSH setup at all and have never used remote SSH so that seemed like it was going to take more time to setup than I wanted to spend right now. Sorry there was limited testing today and I don't think the below is going to add much - but here is what I did get done:

Quoted 6 lines

Using s-tui:

Running in a standard terminal window results in it's graphs stopping during the pause events but when it comes back it looks like the power usage was reduced during the event. This does not seem surprising as the entire GUI stops updating.

Hmm, did it reduce by a little or a lot? And how about CPU frequencies?

Quoted 7 lines

Running in a virtual terminal (the ones built into Mint using ctrl-alt-F1 for a terminal and ctrl-alt-F7 to return to the GUI) I did not see any variation whatsoever while watching it through enough time for an event to happen. Power was lower than the test in a standard terminal window (I suspect because the GUI was not updating). There were no pauses as you suspected.

Just for confirmation, did the "unexpected charge_types" appears when using VT?

Quoted 4 lines

Running in a virtual terminal and turning stress on I got the same results (I did not see any parameter substantially change when an event should have happened).

That sounds like your desktop environment was somehow blocked when it tried to read charge_types synchronously, instead of CPU throttling.

GPU throttling may also lead to the same effects, which we can't rule out yet. You can monitor GPU statistics with amdgpu_top's GUI, which provides graphs so that you can check them after a pause.

Quoted 9 lines
Quoted 2 lines

So I speculate that some userspace utilities (probably upower or the

desktop

Quoted 1 line

environment?) read charge_types regularly or upon power events. Before

v6.17,

Quoted 3 lines

ideapad-laptop didn't support it, so nothing could be read. However, since v6.17, they can actually read it, and reading it triggers ECMT chaos upon power events.

Quoted 7 lines

This seems highly likely as there is a tray applet called Power Manager which shows battery and charging information. I know in Mint Cinnamon the tray icons do their stuff in the same process as the UI (they warn that misbehaved applets can cause system pauses and lockups). I think it uses upower to get it's info.
Disabling these applets does not make the problem go completely away (upower is still running).

The weird part is that it freezes other applications. It may freeze the DE itself (desktop, tray, etc), but it really shouldn't prevent other applications from rendering. That's why more information is still helpful.

Quoted 5 lines
Quoted 2 lines

Oh, that was when the charge_types attribute was added to ideapad-laptop.

This makes sense and ties into everything else - and explains the kernel versions and why disabling ideapad_laptop removes the pauses.

I guess I will send a patch disabling unreliable features due to the firmware bug on corresponding devices.

Quoted 5 lines

At this point is there really value in me taking the time to get SSH working from my phone to get the information on processes running or kernel information you mentioned above? Let me know if this would provide value to you and I will see what I can do.

Yes, triggering magic sysrq to see stacktraces in dmesg during the pause event is very helpful and reveals what's going on.

The key is that you should use your DE as normal but trigger magic sysrq immediately when you see a pause. Control variates...

If you can't use remote SSH, you can trigger magic sysrq from keyboards (Alt+SysRq+l and Alt+SysRq+w). Most laptop lacks a SysRq key so you may need a USB keyboard instead. Don't forget to enable all magic sysrq actions from keyboards by `sudo sysctl kernel.sysrq=1'. See
https://docs.kernel.org/admin-guide/sysrq.html for more details.

Quoted 5 lines

I would think running s-tui from the phone would be the same as running it in the virtual terminal (which didn't really show anything interesting happening). Unless you think the pause events just don't happen while I am watching a virtual terminal?

You don't need to run s-tui from the phone as it's not freezed under DE. Your post-event observations are sufficient for s-tui.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#87 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #84 from Rick ([email protected]) --- (In reply to Rong Zhang from comment #83)

Quoted 11 lines

(In reply to Rick from comment #82)

Quoted 4 lines

(In reply to Rong Zhang from comment #81)
Using s-tui:

Running in a standard terminal window results in it's graphs stopping

during

Quoted 3 lines

the pause events but when it comes back it looks like the power usage was reduced during the event. This does not seem surprising as the entire GUI stops updating.

Hmm, did it reduce by a little or a lot? And how about CPU frequencies?

power usage when normal was around 3W and during the pause the graph drops to about 1/2 of normal. I can't see any difference in CPU% or CPU frequency when the event happens.

Quoted 9 lines
Quoted 6 lines

Running in a virtual terminal (the ones built into Mint using ctrl-alt-F1 for a terminal and ctrl-alt-F7 to return to the GUI) I did not see any variation whatsoever while watching it through enough time for an event to happen. Power was lower than the test in a standard terminal window (I suspect because the GUI was not updating). There were no pauses as you suspected.

Just for confirmation, did the "unexpected charge_types" appears when using VT?

Sorry - was running kernel 6.17 which does not have messages.
I re-tested with kernel 6.19
When sitting in a virtual terminal that is running "dmesg -w" I see previous messages, but when I sit there for 10 minutes there were no additional messages.
Conclusion: when sitting in virtual terminal there are no pauses and no messages.

Quoted 3 lines

GPU throttling may also lead to the same effects, which we can't rule out yet. You can monitor GPU statistics with amdgpu_top's GUI, which provides graphs so that you can check them after a pause.

Don't have time right now to figure out the proper way to install amdgpu_top, if it is needed I will have to come back to that. Let me know if this becomes important to your investigation.

Quoted 2 lines

Yes, triggering magic sysrq to see stacktraces in dmesg during the pause event is very helpful and reveals what's going on.

On my laptop Fn-S is sysrequest so I am using keyboard commands for triggering
- much easier than trying to setup SSH - thanks for suggesting this option!

in normal UI I do the following:
open terminal and run "sudo sysctl kernel.sysrq=1" to enable the magic keyboard stuff and then "dmesg -w" so I can see kernel messages and copy them Use alt-(Fn-S)-l to trigger dump when pause happens - see following dump with the error message immediately following.

[ 1874.345294] sysrq: Show backtrace of all active CPUs
[ 1874.345318] NMI backtrace for cpu 4
[ 1874.345325] CPU: 4 UID: 0 PID: 0 Comm: swapper/4 Not tainted
6.19.14-061914-generic #202604221411 PREEMPT(voluntary)
[ 1874.345329] Hardware name: LENOVO 83JR/LNVNB161216, BIOS QXCN21WW 10/28/2025
[ 1874.345333] Call Trace:
[ 1874.345336] <IRQ>
[ 1874.345343] show_stack+0x49/0x60
[ 1874.345356] dump_stack_lvl+0x5f/0x90
[ 1874.345361] dump_stack+0x10/0x18
[ 1874.345362] nmi_cpu_backtrace.cold+0x34/0x83
[ 1874.345364] ? vprintk_default+0x1d/0x30
[ 1874.345369] ? __pfx_nmi_raise_cpu_backtrace+0x10/0x10
[ 1874.345374] nmi_trigger_cpumask_backtrace+0x115/0x140
[ 1874.345381] arch_trigger_cpumask_backtrace+0x15/0x40
[ 1874.345383] sysrq_handle_showallcpus+0x1a/0x30
[ 1874.345390] __handle_sysrq.cold+0x23/0x167
[ 1874.345395] sysrq_handle_keypress+0x2d2/0x740
[ 1874.345398] ? sched_balance_find_src_group+0x52/0x2f0
[ 1874.345404] sysrq_filter+0x42/0xa0
[ 1874.345406] input_handle_events_filter+0x49/0xb0
[ 1874.345413] input_pass_values+0x168/0x190
[ 1874.345415] input_event_dispose+0x172/0x180
[ 1874.345418] input_handle_event+0x41/0x80
[ 1874.345420] input_event+0x51/0xa0
[ 1874.345422] atkbd_receive_byte+0x77e/0x8c0
[ 1874.345426] ps2_interrupt+0xa1/0x110
[ 1874.345429] serio_interrupt+0x4b/0xb0
[ 1874.345434] i8042_handle_data+0x189/0x370
[ 1874.345437] ? timekeeping_adjust+0x1e/0x180
[ 1874.345442] ? sched_balance_domains+0xd9/0x380
[ 1874.345445] i8042_interrupt+0x15/0x60
[ 1874.345447] __handle_irq_event_percpu+0x59/0x220
[ 1874.345452] handle_irq_event+0x36/0x80
[ 1874.345455] handle_edge_irq+0xd3/0x1a0
[ 1874.345459] __common_interrupt+0x50/0x160
[ 1874.345465] ? irq_enter_rcu+0x75/0x90
[ 1874.345469] common_interrupt+0xb0/0xe0
[ 1874.345476] </IRQ>
[ 1874.345476] <TASK>
[ 1874.345477] asm_common_interrupt+0x27/0x40
[ 1874.345481] RIP: 0010:cpuidle_enter_state+0xca/0x6a0
[ 1874.345486] Code: 00 e8 8a 32 e2 fe e8 35 ee ff ff 49 89 c5 0f 1f 44 00 00
31 ff e8 46 3c e0 fe 80 7d d0 00 0f 85 13 02 00 00 fb 0f 1f 44 00 00 <45> 85 e4
0f 88 e3 01 00 00 4d 63 fc 49 83 ff 0a 0f 83 73 04 00 00
[ 1874.345488] RSP: 0018:ffffcef38021fe00 EFLAGS: 00000246
[ 1874.345492] RAX: 0000000000000000 RBX: ffff89e500e24000 RCX:
0000000000000000
[ 1874.345494] RDX: 0000000000000000 RSI: 0000000000000000 RDI:
0000000000000000
[ 1874.345495] RBP: ffffcef38021fe50 R08: 0000000000000000 R09:
0000000000000000
[ 1874.345496] R10: 0000000000000000 R11: 0000000000000000 R12:
0000000000000003
[ 1874.345496] R13: 000001b467ae5fba R14: ffffffff857381a0 R15:
0000000000000003
[ 1874.345501] ? tick_nohz_stop_tick+0xe1/0x250
[ 1874.345507] cpuidle_enter+0x30/0x50
[ 1874.345513] call_cpuidle+0x21/0x50
[ 1874.345517] cpuidle_idle_call+0x16b/0x1f0
[ 1874.345521] do_idle+0x94/0xf0
[ 1874.345524] cpu_startup_entry+0x29/0x30
[ 1874.345526] start_secondary+0x125/0x180
[ 1874.345532] ? soft_restart_cpu+0x14/0x14
[ 1874.345538] common_startup_64+0x13e/0x141
[ 1874.345542] </TASK>
[ 1874.345543] Sending NMI from CPU 4 to CPUs 0-3,5-11:
[ 1874.345573] NMI backtrace for cpu 10 skipped: idling at io_idle+0x3/0x30
[ 1874.345580] NMI backtrace for cpu 2 skipped: idling at io_idle+0x3/0x30
[ 1874.345591] NMI backtrace for cpu 8 skipped: idling at io_idle+0x3/0x30
[ 1874.345599] NMI backtrace for cpu 1 skipped: idling at io_idle+0x3/0x30
[ 1874.345614] NMI backtrace for cpu 0 skipped: idling at io_idle+0x3/0x30
[ 1874.345625] NMI backtrace for cpu 6 skipped: idling at io_idle+0x3/0x30
[ 1874.345632] NMI backtrace for cpu 3 skipped: idling at io_idle+0x3/0x30
[ 1874.345646] NMI backtrace for cpu 9 skipped: idling at io_idle+0x3/0x30
[ 1874.345654] NMI backtrace for cpu 11 skipped: idling at io_idle+0x3/0x30
[ 1874.345669] NMI backtrace for cpu 7 skipped: idling at io_idle+0x3/0x30
[ 1874.345677] NMI backtrace for cpu 5 skipped: idling at io_idle+0x3/0x30
[ 1876.209675] ideapad_acpi VPC2004:00: unexpected charge_types: both [Fast]

and [Long_Life] are enabled

On another pause:
Use alt-(Fn-S)-w to trigger dump when pause happens

[ 2357.204797] sysrq: Show Blocked State
[ 2357.205074] task:upowerd state:D stack:0 pid:1910 tgid:1910 ppid:1
task_flags:0x400100 flags:0x00080000
[ 2357.205084] Call Trace:
[ 2357.205089] <TASK>
[ 2357.205096] __schedule+0x2ad/0x600
[ 2357.205109] schedule+0x27/0x90
[ 2357.205111] schedule_timeout+0xcf/0x110
[ 2357.205117] ___down_common+0xef/0x160
[ 2357.205120] __down_common+0x5a/0x150
[ 2357.205123] __down_timeout+0x16/0x30
[ 2357.205126] down_timeout+0x72/0x80
[ 2357.205128] acpi_os_wait_semaphore+0x74/0x1c0
[ 2357.205136] acpi_ex_system_wait_mutex+0xdf/0x140
[ 2357.205143] acpi_ds_begin_method_execution+0x21a/0x450
[ 2357.205148] acpi_ps_execute_method+0x58/0x3e0
[ 2357.205153] acpi_ns_evaluate+0x196/0x5e0
[ 2357.205157] acpi_evaluate_object+0x20c/0x490
[ 2357.205161] acpi_battery_get_state+0x96/0x220
[ 2357.205170] acpi_battery_get_property+0x5c/0x410
[ 2357.205173] __power_supply_get_property+0x6d/0x250
[ 2357.205181] power_supply_get_property+0x13/0x30
[ 2357.205185] power_supply_format_property+0xf6/0x3e0
[ 2357.205188] power_supply_show_property+0x16/0x30
[ 2357.205190] dev_attr_show+0x1f/0x60
[ 2357.205196] sysfs_kf_seq_show+0xca/0x130
[ 2357.205203] kernfs_seq_show+0x27/0x40
[ 2357.205206] seq_read_iter+0x130/0x4a0
[ 2357.205214] ? security_file_permission+0x5b/0x170
[ 2357.205221] kernfs_fop_read_iter+0x31/0x40
[ 2357.205224] vfs_read+0x270/0x3a0
[ 2357.205231] ksys_read+0x71/0xf0
[ 2357.205234] __x64_sys_read+0x19/0x30
[ 2357.205235] x64_sys_call+0x1dcb/0x2360
[ 2357.205242] do_syscall_64+0x81/0x5a0
[ 2357.205246] ? smp_call_function_single_async+0x22/0x50
[ 2357.205253] ? kick_ilb+0x10f/0x180
[ 2357.205259] ? sched_use_asym_prio+0x8c/0xe0
[ 2357.205262] ? sched_clock_noinstr+0x9/0x10
[ 2357.205267] ? update_load_avg+0x8e/0x420
[ 2357.205270] ? sched_clock_noinstr+0x9/0x10
[ 2357.205272] ? sched_clock+0x10/0x30
[ 2357.205278] ? raw_spin_rq_unlock+0x10/0x40
[ 2357.205281] ? rq_unlock_irqrestore+0x1f/0x50
[ 2357.205284] ? __note_gp_changes+0x1f3/0x270
[ 2357.205290] ? note_gp_changes+0x93/0xa0
[ 2357.205292] ? rcu_core+0x1b7/0x3f0
[ 2357.205295] ? rcu_core_si+0xe/0x20
[ 2357.205297] ? handle_softirqs+0xdf/0x330
[ 2357.205302] ? arch_exit_to_user_mode_prepare.isra.0+0xd/0x100
[ 2357.205308] ? irqentry_exit+0x97/0x5a0
[ 2357.205311] ? __irq_exit_rcu+0x45/0x120
[ 2357.205313] ? sysvec_apic_timer_interrupt+0x54/0xd0
[ 2357.205315] ? sysvec_reschedule_ipi+0x65/0x110
[ 2357.205317] entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 2357.205321] RIP: 0033:0x7e3a1351baca
[ 2357.205326] RSP: 002b:00007ffec83c8220 EFLAGS: 00000246 ORIG_RAX:
0000000000000000
[ 2357.205330] RAX: ffffffffffffffda RBX: 0000632936047890 RCX:
00007e3a1351baca
[ 2357.205332] RDX: 0000000000001008 RSI: 0000632936047890 RDI:
000000000000000d
[ 2357.205333] RBP: 00007ffec83c8240 R08: 0000000000000000 R09:
0000000000000000
[ 2357.205334] R10: 0000632936048890 R11: 0000000000000246 R12:
000000000000000d
[ 2357.205335] R13: 0000000000001008 R14: 0000000000001008 R15:
0000000000001007
[ 2357.205338] </TASK>
[ 2357.205458] task:cinnamon state:D stack:0 pid:2362 tgid:2362 ppid:2307
task_flags:0x400000 flags:0x00080000
[ 2357.205462] Call Trace:
[ 2357.205464] <TASK>
[ 2357.205465] __schedule+0x2ad/0x600
[ 2357.205466] schedule+0x27/0x90
[ 2357.205468] schedule_timeout+0x88/0x110
[ 2357.205470] ? __pfx_process_timeout+0x10/0x10
[ 2357.205474] ___down_common+0xef/0x160
[ 2357.205476] __down_common+0x5a/0x150
[ 2357.205478] __down_timeout+0x16/0x30
[ 2357.205480] down_timeout+0x72/0x80
[ 2357.205482] acpi_os_wait_semaphore+0x74/0x1c0
[ 2357.205484] acpi_ex_system_wait_mutex+0xdf/0x140
[ 2357.205486] acpi_ex_acquire_mutex_object+0x68/0x170
[ 2357.205489] acpi_ex_acquire_mutex+0x8b/0x2d0
[ 2357.205490] acpi_ex_opcode_2A_0T_1R+0x173/0x1f0
[ 2357.205492] acpi_ds_exec_end_op+0x1bb/0x960
[ 2357.205495] acpi_ps_parse_loop+0x12e/0x770
[ 2357.205497] acpi_ps_parse_aml+0xbe/0x5f0
[ 2357.205498] acpi_ps_execute_method+0x172/0x3e0
[ 2357.205500] acpi_ns_evaluate+0x196/0x5e0
[ 2357.205502] acpi_evaluate_object+0x20c/0x490
[ 2357.205504] acpi_battery_get_state+0x96/0x220
[ 2357.205507] acpi_battery_get_property+0x5c/0x410
[ 2357.205509] __power_supply_get_property+0x6d/0x250
[ 2357.205512] power_supply_get_property+0x13/0x30
[ 2357.205514] power_supply_format_property+0xf6/0x3e0
[ 2357.205516] power_supply_show_property+0x16/0x30
[ 2357.205517] dev_attr_show+0x1f/0x60
[ 2357.205519] sysfs_kf_seq_show+0xca/0x130
[ 2357.205521] kernfs_seq_show+0x27/0x40
[ 2357.205523] seq_read_iter+0x130/0x4a0
[ 2357.205525] ? security_file_permission+0x5b/0x170
[ 2357.205528] kernfs_fop_read_iter+0x31/0x40
[ 2357.205529] vfs_read+0x270/0x3a0
[ 2357.205532] ksys_read+0x71/0xf0
[ 2357.205534] __x64_sys_read+0x19/0x30
[ 2357.205535] x64_sys_call+0x1dcb/0x2360
[ 2357.205536] do_syscall_64+0x81/0x5a0
[ 2357.205537] ? arch_exit_to_user_mode_prepare.isra.0+0xd/0xe0
[ 2357.205539] ? do_syscall_64+0xbe/0x5a0
[ 2357.205540] ? arch_exit_to_user_mode_prepare.isra.0+0xd/0xe0
[ 2357.205542] ? do_syscall_64+0xbe/0x5a0
[ 2357.205543] ? sysvec_apic_timer_interrupt+0x54/0xd0
[ 2357.205544] ? sysvec_reschedule_ipi+0x65/0x110
[ 2357.205545] entry_SYSCALL_64_after_hwframe+0x76/0x7e
[ 2357.205546] RIP: 0033:0x767a3e11baca
[ 2357.205547] RSP: 002b:00007fff023cf670 EFLAGS: 00000246 ORIG_RAX:
0000000000000000
[ 2357.205549] RAX: ffffffffffffffda RBX: 000062683635f3c0 RCX:
0000767a3e11baca
[ 2357.205549] RDX: 0000000000001000 RSI: 00006268369efd20 RDI:
0000000000000017
[ 2357.205550] RBP: 00007fff023cf690 R08: 0000000000000000 R09:
0000000000001000
[ 2357.205551] R10: 0000000000000000 R11: 0000000000000246 R12:
0000626836c66840
[ 2357.205552] R13: 0000626836c66848 R14: 00007fff023cfb60 R15:
0000000000000017
[ 2357.205553] </TASK>
[ 2357.205929] task:kworker/9:0 state:D stack:0 pid:4783 tgid:4783 ppid:2
task_flags:0x4208060 flags:0x00080000
[ 2357.205934] Workqueue: kacpi_notify acpi_os_execute_deferred
[ 2357.205938] Call Trace:
[ 2357.205940] <TASK>
[ 2357.205941] __schedule+0x2ad/0x600
[ 2357.205942] schedule+0x27/0x90
[ 2357.205944] schedule_timeout+0xcf/0x110
[ 2357.205946] ___down_common+0xef/0x160
[ 2357.205948] ? acpi_ut_update_ref_count.part.0+0x116/0x260
[ 2357.205952] __down_common+0x5a/0x150
[ 2357.205954] __down_timeout+0x16/0x30
[ 2357.205955] down_timeout+0x72/0x80
[ 2357.205957] acpi_os_wait_semaphore+0x74/0x1c0
[ 2357.205959] acpi_ex_system_wait_mutex+0xdf/0x140
[ 2357.205961] acpi_ds_begin_method_execution+0xb4/0x450
[ 2357.205964] acpi_ds_call_control_method+0x9e/0x4a0
[ 2357.205966] acpi_ps_parse_aml+0x3e6/0x5f0
[ 2357.205968] acpi_ps_execute_method+0x172/0x3e0
[ 2357.205969] acpi_ns_evaluate+0x196/0x5e0
[ 2357.205971] acpi_evaluate_object+0x20c/0x490
[ 2357.205974] acpi_battery_get_info+0x6a/0x260
[ 2357.205976] acpi_battery_notify+0x11a/0x150
[ 2357.205979] acpi_ev_notify_dispatch+0x5b/0xb0
[ 2357.205982] ? _raw_spin_lock_irqsave+0xe/0x20
[ 2357.205984] acpi_os_execute_deferred+0x1a/0x40
[ 2357.205986] process_one_work+0x18e/0x370
[ 2357.205991] worker_thread+0x188/0x320
[ 2357.205993] ? __pfx_worker_thread+0x10/0x10
[ 2357.205996] kthread+0x10b/0x220
[ 2357.205999] ? __pfx_kthread+0x10/0x10
[ 2357.206000] ret_from_fork+0x159/0x1d0
[ 2357.206003] ? __pfx_kthread+0x10/0x10
[ 2357.206005] ? __pfx_kthread+0x10/0x10
[ 2357.206006] ret_from_fork_asm+0x1a/0x30
[ 2357.206008] </TASK>
[ 2357.206023] task:kworker/9:1 state:D stack:0 pid:8176 tgid:8176 ppid:2
task_flags:0x4208060 flags:0x00080000
[ 2357.206026] Workqueue: events power_supply_changed_work
[ 2357.206028] Call Trace:
[ 2357.206030] <TASK>
[ 2357.206031] __schedule+0x2ad/0x600
[ 2357.206032] schedule+0x27/0x90
[ 2357.206034] schedule_timeout+0x88/0x110
[ 2357.206036] ? __pfx_process_timeout+0x10/0x10
[ 2357.206038] ___down_common+0xef/0x160
[ 2357.206040] __down_common+0x5a/0x150
[ 2357.206041] __down_timeout+0x16/0x30
[ 2357.206043] down_timeout+0x72/0x80
[ 2357.206045] acpi_os_wait_semaphore+0x74/0x1c0
[ 2357.206047] acpi_ex_system_wait_mutex+0xdf/0x140
[ 2357.206049] acpi_ex_acquire_mutex_object+0x68/0x170
[ 2357.206051] acpi_ex_acquire_mutex+0x8b/0x2d0
[ 2357.206052] acpi_ex_opcode_2A_0T_1R+0x173/0x1f0
[ 2357.206054] acpi_ds_exec_end_op+0x1bb/0x960
[ 2357.206057] acpi_ps_parse_loop+0x12e/0x770
[ 2357.206058] acpi_ps_parse_aml+0xbe/0x5f0
[ 2357.206059] acpi_ps_execute_method+0x172/0x3e0
[ 2357.206061] acpi_ns_evaluate+0x196/0x5e0
[ 2357.206069] acpi_evaluate_object+0x20c/0x490
[ 2357.206071] acpi_evaluate_integer+0x61/0x100
[ 2357.206077] ideapad_psy_ext_get_prop+0x4e/0x120 [ideapad_laptop]
[ 2357.206082] __power_supply_get_property+0x1bc/0x250
[ 2357.206085] power_supply_get_property+0x13/0x30
[ 2357.206087] power_supply_format_property+0xf6/0x3e0
[ 2357.206089] add_prop_uevent+0x41/0xf0
[ 2357.206091] power_supply_uevent+0xe8/0x120
[ 2357.206092] dev_uevent+0x10e/0x350
[ 2357.206097] ? kobject_get_path+0x83/0xa0
[ 2357.206103] kobject_uevent_env+0x327/0x500
[ 2357.206105] kobject_uevent+0xb/0x20
[ 2357.206106] power_supply_changed_work+0xcc/0x1b0
[ 2357.206107] ? __pfx___power_supply_changed_work+0x10/0x10
[ 2357.206109] process_one_work+0x18e/0x370
[ 2357.206111] worker_thread+0x188/0x320
[ 2357.206113] ? __pfx_worker_thread+0x10/0x10
[ 2357.206115] kthread+0x10b/0x220
[ 2357.206117] ? __pfx_kthread+0x10/0x10
[ 2357.206118] ret_from_fork+0x159/0x1d0
[ 2357.206120] ? __pfx_kthread+0x10/0x10
[ 2357.206121] ? __pfx_kthread+0x10/0x10
[ 2357.206122] ret_from_fork_asm+0x1a/0x30
[ 2357.206124] </TASK>
[ 2360.256074] ideapad_acpi VPC2004:00: unexpected charge_types: both [Fast]

and [Long_Life] are enabled

Let me know if there is value in getting multiple versions of these and I will capture more.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#88 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #85 from Rong Zhang ([email protected]) ---
(In reply to Rick from comment #84)

Quoted 9 lines

(In reply to Rong Zhang from comment #83)

Quoted 8 lines

(In reply to Rick from comment #82)

Quoted 4 lines

(In reply to Rong Zhang from comment #81)
Using s-tui:

Running in a standard terminal window results in it's graphs stopping

during

Quoted 2 lines

the pause events but when it comes back it looks like the power usage was reduced during the event. This does not seem surprising as the entire

Quoted 8 lines

GUI

Quoted 3 lines
Quoted 1 line

stops updating.

Hmm, did it reduce by a little or a lot? And how about CPU frequencies?

power usage when normal was around 3W and during the pause the graph drops to about 1/2 of normal. I can't see any difference in CPU% or CPU frequency when the event happens.

That sounds like an unfortunate combination of FW and SW bugs. Still I am unsure how such a combination can freeze applications other than Cinnamon, but let's put this aside for now and focus on what was happening during the pause.

Quoted 12 lines
Quoted 4 lines
Quoted 4 lines

Running in a virtual terminal (the ones built into Mint using ctrl-alt-F1 for a terminal and ctrl-alt-F7 to return to the GUI) I did not see any variation whatsoever while watching it through enough time for an event

to

Quoted 6 lines
Quoted 3 lines

happen. Power was lower than the test in a standard terminal window (I suspect because the GUI was not updating). There were no pauses as you suspected.

Just for confirmation, did the "unexpected charge_types" appears when using VT?

Quoted 7 lines

Sorry - was running kernel 6.17 which does not have messages.
I re-tested with kernel 6.19
When sitting in a virtual terminal that is running "dmesg -w" I see previous messages, but when I sit there for 10 minutes there were no additional messages.
Conclusion: when sitting in virtual terminal there are no pauses and no messages.

Hmm, that's weird. Perhaps Cinnamon did not read power supply properties after you switched to VT? Fewer ECMT consumers, fewer ECMT pressure.

Quoted 8 lines
Quoted 4 lines

GPU throttling may also lead to the same effects, which we can't rule out yet. You can monitor GPU statistics with amdgpu_top's GUI, which provides graphs so that you can check them after a pause.

Don't have time right now to figure out the proper way to install amdgpu_top, if it is needed I will have to come back to that. Let me know if this becomes important to your investigation.

No, it's not very important to the investigation. That being said, you may simply install its amd64 deb if you still want to mess around with it, as your distro is Linux Mint.

Quoted 7 lines
Quoted 3 lines

Yes, triggering magic sysrq to see stacktraces in dmesg during the pause event is very helpful and reveals what's going on.

On my laptop Fn-S is sysrequest so I am using keyboard commands for triggering - much easier than trying to setup SSH - thanks for suggesting this option!

Good to know that.

Quoted 6 lines

in normal UI I do the following:
open terminal and run "sudo sysctl kernel.sysrq=1" to enable the magic keyboard stuff and then "dmesg -w" so I can see kernel messages and copy them Use alt-(Fn-S)-l to trigger dump when pause happens - see following dump with the error message immediately following.

These stacktraces are very useful. Thanks a lot!

Quoted 9 lines

[ 1874.345294] sysrq: Show backtrace of all active CPUs
[ 1874.345318] NMI backtrace for cpu 4
[ 1874.345325] CPU: 4 UID: 0 PID: 0 Comm: swapper/4 Not tainted
6.19.14-061914-generic #202604221411 PREEMPT(voluntary)
[ 1874.345329] Hardware name: LENOVO 83JR/LNVNB161216, BIOS QXCN21WW
10/28/2025
[ 1874.345333] Call Trace:

[..snip..]

Quoted 1 line
[ 1874.345543] Sending NMI from CPU 4 to CPUs 0-3,5-11:

[..snip..]

Quoted 2 lines
[ 1876.209675] ideapad_acpi VPC2004:00: unexpected charge_types: both [Fast]

and [Long_Life] are enabled

Hmm, nothing is running??? I didn't expect that.

I guess an ACPI method was sleeping (hence not running) with ECMT held, while other methods were waiting for ECMT (hence also sleeping). Some ACPI methods do poll and sleep with ECMT held, as I can see in the acpidump.

Quoted 7 lines

On another pause:
Use alt-(Fn-S)-w to trigger dump when pause happens

[ 2357.204797] sysrq: Show Blocked State
[ 2357.205074] task:upowerd state:D stack:0 pid:1910 tgid:1910 ppid:1

task_flags:0x400100 flags:0x00080000

Oh, upowerd.

Quoted 2 lines
[ 2357.205084] Call Trace:
[ 2357.205089] <TASK>

[..snip..]

Quoted 2 lines
[ 2357.205128] acpi_os_wait_semaphore+0x74/0x1c0
[ 2357.205136] acpi_ex_system_wait_mutex+0xdf/0x140

\_SB.BAT0._BST is a "Serialized" method. Another process/thread was executing \_SB.BAT0._BST, so this process must wait.

Quoted 5 lines
[ 2357.205143] acpi_ds_begin_method_execution+0x21a/0x450
[ 2357.205148] acpi_ps_execute_method+0x58/0x3e0
[ 2357.205153] acpi_ns_evaluate+0x196/0x5e0
[ 2357.205157] acpi_evaluate_object+0x20c/0x490
[ 2357.205161] acpi_battery_get_state+0x96/0x220

acpi-battery was trying to execute \_SB.BAT0._BST.

Quoted 1 line
[ 2357.205170] acpi_battery_get_property+0x5c/0x410

acpi-battery was updating battery state (acpi_battery_get_state) when a power supply property was read by userspace (acpi_battery_get_property).

Quoted 4 lines
[ 2357.205173] __power_supply_get_property+0x6d/0x250
[ 2357.205181] power_supply_get_property+0x13/0x30
[ 2357.205185] power_supply_format_property+0xf6/0x3e0
[ 2357.205188] power_supply_show_property+0x16/0x30

[..snip..]

Quoted 3 lines
[ 2357.205338] </TASK>
[ 2357.205458] task:cinnamon state:D stack:0 pid:2362 tgid:2362 ppid:2307

task_flags:0x400000 flags:0x00080000

Oh, so Cinnamon was the process that was executing \_SB.BAT0._BST.

Quoted 2 lines
[ 2357.205462] Call Trace:
[ 2357.205464] <TASK>

[..snip..]

Quoted 4 lines
[ 2357.205482] acpi_os_wait_semaphore+0x74/0x1c0
[ 2357.205484] acpi_ex_system_wait_mutex+0xdf/0x140
[ 2357.205486] acpi_ex_acquire_mutex_object+0x68/0x170
[ 2357.205489] acpi_ex_acquire_mutex+0x8b/0x2d0

\_SB.BAT0._BST was waiting for ECMT.

Quoted 5 lines
[ 2357.205490] acpi_ex_opcode_2A_0T_1R+0x173/0x1f0
[ 2357.205492] acpi_ds_exec_end_op+0x1bb/0x960
[ 2357.205495] acpi_ps_parse_loop+0x12e/0x770
[ 2357.205497] acpi_ps_parse_aml+0xbe/0x5f0
[ 2357.205498] acpi_ps_execute_method+0x172/0x3e0

acpi-battery was executing \_SB.BAT0._BST.

Quoted 4 lines
[ 2357.205500] acpi_ns_evaluate+0x196/0x5e0
[ 2357.205502] acpi_evaluate_object+0x20c/0x490
[ 2357.205504] acpi_battery_get_state+0x96/0x220
[ 2357.205507] acpi_battery_get_property+0x5c/0x410

Hmm, acpi_battery_get_state() has an internal cache. However, it was skipped in this case as two processes were executing it simultaneously, so they all passed the cache expiration check. Ideally, there should be a mutex to prevent this dilemma -- I will find some time to write a patch for it.

Quoted 4 lines
[ 2357.205509] __power_supply_get_property+0x6d/0x250
[ 2357.205512] power_supply_get_property+0x13/0x30
[ 2357.205514] power_supply_format_property+0xf6/0x3e0
[ 2357.205516] power_supply_show_property+0x16/0x30

So both upowerd and Cinnamon tried to read all power supply properties upon power supply events. Hmm, that's not optimal. Ideally, Cinnamon should utilize upower instead.

[..snip..]

Quoted 6 lines
[ 2357.205553] </TASK>
[ 2357.205929] task:kworker/9:0 state:D stack:0 pid:4783 tgid:4783 ppid:2
task_flags:0x4208060 flags:0x00080000
[ 2357.205934] Workqueue: kacpi_notify acpi_os_execute_deferred
[ 2357.205938] Call Trace:
[ 2357.205940] <TASK>

[..snip..]

Quoted 2 lines
[ 2357.205957] acpi_os_wait_semaphore+0x74/0x1c0
[ 2357.205959] acpi_ex_system_wait_mutex+0xdf/0x140

\_SB.BAT0._BIX is a "Serialized" method. Another process/thread was executing \_SB.BAT0._BIX, so this process must wait.

Quoted 7 lines
[ 2357.205961] acpi_ds_begin_method_execution+0xb4/0x450
[ 2357.205964] acpi_ds_call_control_method+0x9e/0x4a0
[ 2357.205966] acpi_ps_parse_aml+0x3e6/0x5f0
[ 2357.205968] acpi_ps_execute_method+0x172/0x3e0
[ 2357.205969] acpi_ns_evaluate+0x196/0x5e0
[ 2357.205971] acpi_evaluate_object+0x20c/0x490
[ 2357.205974] acpi_battery_get_info+0x6a/0x260

acpi-battery's event handler was trying to execute \_SB.BAT0._BIX. Beforehand, it had executed \_SB.BAT0._STA. Both need ECMT.

Quoted 2 lines
[ 2357.205976] acpi_battery_notify+0x11a/0x150
[ 2357.205979] acpi_ev_notify_dispatch+0x5b/0xb0

Hmm, an ACPI battery event was being handled.

Quoted 4 lines
[ 2357.205982] ? _raw_spin_lock_irqsave+0xe/0x20
[ 2357.205984] acpi_os_execute_deferred+0x1a/0x40
[ 2357.205986] process_one_work+0x18e/0x370
[ 2357.205991] worker_thread+0x188/0x320

[..snip..]

Quoted 6 lines
[ 2357.206008] </TASK>
[ 2357.206023] task:kworker/9:1 state:D stack:0 pid:8176 tgid:8176 ppid:2
task_flags:0x4208060 flags:0x00080000
[ 2357.206026] Workqueue: events power_supply_changed_work
[ 2357.206028] Call Trace:
[ 2357.206030] <TASK>

[..snip..]

Quoted 2 lines
[ 2357.206045] acpi_os_wait_semaphore+0x74/0x1c0
[ 2357.206047] acpi_ex_system_wait_mutex+0xdf/0x140

\_SB.PCI0.LPC0.EC0.VPC0.GBMD was calling \_SB.PCI0.LPC0.EC0.RDER, which was waiting for ECMT.

Quoted 11 lines
[ 2357.206049] acpi_ex_acquire_mutex_object+0x68/0x170
[ 2357.206051] acpi_ex_acquire_mutex+0x8b/0x2d0
[ 2357.206052] acpi_ex_opcode_2A_0T_1R+0x173/0x1f0
[ 2357.206054] acpi_ds_exec_end_op+0x1bb/0x960
[ 2357.206057] acpi_ps_parse_loop+0x12e/0x770
[ 2357.206058] acpi_ps_parse_aml+0xbe/0x5f0
[ 2357.206059] acpi_ps_execute_method+0x172/0x3e0
[ 2357.206061] acpi_ns_evaluate+0x196/0x5e0
[ 2357.206069] acpi_evaluate_object+0x20c/0x490
[ 2357.206071] acpi_evaluate_integer+0x61/0x100
[ 2357.206077] ideapad_psy_ext_get_prop+0x4e/0x120 [ideapad_laptop]

ideapad-laptop was executing \_SB.PCI0.LPC0.EC0.VPC0.GBMD.

Quoted 10 lines
[ 2357.206082] __power_supply_get_property+0x1bc/0x250
[ 2357.206085] power_supply_get_property+0x13/0x30
[ 2357.206087] power_supply_format_property+0xf6/0x3e0
[ 2357.206089] add_prop_uevent+0x41/0xf0
[ 2357.206091] power_supply_uevent+0xe8/0x120
[ 2357.206092] dev_uevent+0x10e/0x350
[ 2357.206097] ? kobject_get_path+0x83/0xa0
[ 2357.206103] kobject_uevent_env+0x327/0x500
[ 2357.206105] kobject_uevent+0xb/0x20
[ 2357.206106] power_supply_changed_work+0xcc/0x1b0

Oops, power_supply_changed() must have been called before, so there was another ACPI battery event that arrived earlier???

If this is the case, another kworker was probably handling another ACPI battery event and thus executing \_SB.BAT0._BIX.

Multiple EC queries may notify BAT0... Hmm, more investigation needed.

Quoted 3 lines
[ 2357.206107] ? __pfx___power_supply_changed_work+0x10/0x10
[ 2357.206109] process_one_work+0x18e/0x370
[ 2357.206111] worker_thread+0x188/0x320

[..snip..]

Quoted 3 lines
[ 2357.206124] </TASK>
[ 2360.256074] ideapad_acpi VPC2004:00: unexpected charge_types: both [Fast]

and [Long_Life] are enabled

Eventually, \_SB_.PCI0.LPC0.EC0_.RDER timed out, causing \_SB.PCI0.LPC0.EC0.VPC0.GBMD returned a malformed value, which resulted in the warning message.

Quoted 3 lines

Let me know if there is value in getting multiple versions of these and I will capture more.

Yes. I need more stacktraces. But the next time you capture them, please make two slight changes:

Please execute

echo 'file drivers/acpi/ec.c +p' | sudo tee /proc/dynamic_debug/control

beforehand, so that I can see which EC queries arrive before the pause event.

Please also spam magic sysrq until the pause finishes, so that I can see more samples during the pause. In detail, you can press Alt (keep it pressed), press Fn+S once (no need to keep them pressed), and quickly spam l and w alternately. You can do some practice beforehand.

With these changes, your dmesg dump will be extremely long, so please upload it as an attachment.

Thanks for being willing to investigate the issue together!

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#89 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #86 from Rick ([email protected]) ---
Created attachment 310145
--> https://bugzilla.kernel.org/attachment.cgi?id=310145&action=edit
dmesg output during pauses

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#90 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #87 from Rick ([email protected]) ---
Created attachment 310146
--> https://bugzilla.kernel.org/attachment.cgi?id=310146&action=edit
dmesg output spamming dumps 1

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#91 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #88 from Rick ([email protected]) ---
Created attachment 310147
--> https://bugzilla.kernel.org/attachment.cgi?id=310147&action=edit
dmesg output spamming dumps 2

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#92 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #89 from Rick ([email protected]) --- (In reply to Rong Zhang from comment #85)

Quoted 11 lines

Please execute

echo 'file drivers/acpi/ec.c +p' | sudo tee /proc/dynamic_debug/control

beforehand, so that I can see which EC queries arrive before the pause event.

Please also spam magic sysrq until the pause finishes, so that I can see more samples during the pause. In detail, you can press Alt (keep it pressed), press Fn+S once (no need to keep them pressed), and quickly spam l and w alternately. You can do some practice beforehand.

Quoted 4 lines

With these changes, your dmesg dump will be extremely long, so please upload it as an attachment.

Thanks for being willing to investigate the issue together!

I appreciate that you have been keeping things relatively simple and breaking the information gathering into reasonable chunks.

It took me embarrassingly long to figure out how to attach the files - but at least they appear to be there now!

Before starting I opened one terminal with
dmesg -w
And in another terminal I did
sudo sysctl kernel.sysrq=1
echo 'file drivers/acpi/ec.c +p' | sudo tee /proc/dynamic_debug/control

As there is now more output into the dmesg window I decided to capture just the system sitting alone through two pause events and captured that in my first upload #310145

Next I did the spamming requested (both l and w alternating until the pause ended)
This is contained in attachment #310146

I noticed with the first spamming attempt that the new output ACPI messages happen in the dmesg window before the system actually pauses. So I did another spamming attempt but this time I tried to start spamming as soon as I saw the dmesg window start displaying the new ACPI messages. It is likely this file has data that starts earlier and personally I would start looking at this one first.
This is contained in attachment #310147

As always - let me know if you want more.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#93 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #90 from Rong Zhang ([email protected]) ---
(In reply to Rick from comment #89)

Quoted 3 lines

As there is now more output into the dmesg window I decided to capture just the system sitting alone through two pause events and captured that in my first upload #310145

The EC query was \_SB.PCI0.LPC0.EC0._Q0B. It indeed notifies BAT0 twice!

Method (_Q0B, 0, NotSerialized) // _Qxx: EC Query, xx=0x00-0xFF

{
    M459 ("Q0B Event\n", 0x00)
    P80H = 0x0B
    If ((Acquire (ECMT, 0x2000) == 0x00))
    {
        Notify (BAT0, 0x80) // Status Change
        Notify (BAT0, 0x81) // Information Change
        Release (ECMT)
    }
}
Quoted 5 lines

Next I did the spamming requested (both l and w alternating until the pause ended)
This is contained in attachment #310146 [details]

Quoted 7 lines

I noticed with the first spamming attempt that the new output ACPI messages happen in the dmesg window before the system actually pauses. So I did another spamming attempt but this time I tried to start spamming as soon as I saw the dmesg window start displaying the new ACPI messages. It is likely this file has data that starts earlier and personally I would start looking at this one first.
This is contained in attachment #310147 [details]

Thanks. They look fine. At first glance, I did find some new information that confirmed my previous assumptions. I will find some time looking into them carefully.

Quoted 2 lines

As always - let me know if you want more.

The current ones should be enough. Now I already have some thoughts on how to improve battery event handling. The current code path is really awful and "contributes" quite a bit to the unfortunate combination of FW and SW bugs.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#94 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

Rong Zhang ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

 Attachment #309348|0                           |1

is obsolete| |

--- Comment #91 from Rong Zhang ([email protected]) ---
Created attachment 310168
--> https://bugzilla.kernel.org/attachment.cgi?id=310168&action=edit
[PATCH 1/2] ACPI: battery: Synchronize get_property() callback

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#95 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #92 from Rong Zhang ([email protected]) ---
Created attachment 310169
--> https://bugzilla.kernel.org/attachment.cgi?id=310169&action=edit
[PATCH 2/2] ACPI: battery: Merge consecutive battery notifications

Hi all,

Please test if the series (this attachment and the previous one) fixes the issue.

Note that the series requires v7.1-rc or newer.

Thanks,
Rong

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#96 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #93 from [email protected] ---
(In reply to Rong Zhang from comment #92)

Quoted 5 lines

Created attachment 310169 [details]
[PATCH 2/2] ACPI: battery: Merge consecutive battery notifications

Hi all,

Quoted 7 lines

Please test if the series (this attachment and the previous one) fixes the issue.

Note that the series requires v7.1-rc or newer.

Thanks,
Rong

I've been testing this patch with v7.1-rc4 for a few days. The warnings in the journal are not completely gone, but they have been reduced a lot to 2-3 every few hours, maybe. The freezing is definitely noticeably better, I can't say, whether it is completely fixed, since the errors are so rare now, but it's not a hassle here any more.

Thanks for the work!

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#97 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #94 from Rong Zhang ([email protected]) ---
(In reply to jeffrey from comment #93)

Quoted 7 lines

I've been testing this patch with v7.1-rc4 for a few days. The warnings in the journal are not completely gone, but they have been reduced a lot to 2-3 every few hours, maybe. The freezing is definitely noticeably better, I can't say, whether it is completely fixed, since the errors are so rare now, but it's not a hassle here any more.

Thanks for the work!

Thanks for testing! Since it helped fix the issue to a certain extent, I plan to submit it soon. Could I have your Tested-by: tag? If so, please leave your name in reply (I can only see your email address).

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#98 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #95 from [email protected] ---
(In reply to Rong Zhang from comment #94)

Quoted 3 lines

Thanks for testing! Since it helped fix the issue to a certain extent, I plan to submit it soon. Could I have your Tested-by: tag? If so, please leave your name in reply (I can only see your email address).

Sure, you can put me in as Tested-by: Jeffrey Wälti <[email protected]>, if there's anything else you would like me to test just let me know.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#99 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #96 from fililip ([email protected]) ---
I've been using
https://lore.kernel.org/linux-acpi/[email protected]/T/
for a while now on 7.1 and I've seen zero errors when charging my laptop using long life and said conservation mode works fine (stops charging at 80%).

I also updated my firmware to the latest version (PSCN23WW), unsure if that helped to an extent as well.

Maybe it would be a good idea to ping an ACPI maintainer to get a review?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#100 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #97 from Rong Zhang ([email protected]) ---
Hi fililip,

(In reply to fililip from comment #96)

Quoted 5 lines

I've been using
https://lore.kernel.org/linux-acpi/20260611-b4-acpi-battery-notification-v3-
[email protected]/T/ for a while now on 7.1 and I've seen zero errors when charging my laptop using long life and said conservation mode works fine (stops charging at 80%).

Thanks for testing!

Quoted 3 lines

I also updated my firmware to the latest version (PSCN23WW), unsure if that helped to an extent as well.

According to the changelog, I believe it didn't fix the issue. Maybe Mark could provide some clues.

Quoted 2 lines

Maybe it would be a good idea to ping an ACPI maintainer to get a review?

Of course. Since you've tested the series, could you kindly reply with a
Tested-by: tag to the cover letter [1]? The tag shows positive feedback from a device owner to the series, and effectively pings maintainers.

[1]:
https://lore.kernel.org/linux-acpi/[email protected]/

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#101 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #98 from Avraham Hollander ([email protected]) --- (In reply to Rong Zhang from comment #97)

Quoted 22 lines

Hi fililip,

(In reply to fililip from comment #96)

Quoted 2 lines

I've been using

https://lore.kernel.org/linux-acpi/20260611-b4-acpi-battery-notification-v3-

Quoted 3 lines

[email protected]/T/ for a while now on 7.1 and I've seen zero errors when charging my laptop using long life and said conservation mode works fine (stops charging at 80%).

Thanks for testing!

Quoted 3 lines

I also updated my firmware to the latest version (PSCN23WW), unsure if that helped to an extent as well.

According to the changelog, I believe it didn't fix the issue. Maybe Mark could provide some clues.

Quoted 2 lines

Maybe it would be a good idea to ping an ACPI maintainer to get a review?

Quoted 7 lines

Of course. Since you've tested the series, could you kindly reply with a
Tested-by: tag to the cover letter [1]? The tag shows positive feedback from a device owner to the series, and effectively pings maintainers.

[1]:
https://lore.kernel.org/linux-acpi/20260611-b4-acpi-battery-notification-v3-
[email protected]/

It seems to have solved the issue for me as well. Just replied with a
Tested-by: tag.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#102 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #99 from Avraham Hollander ([email protected]) --- Hmm. I'm still getting a little bit of spam from ucsi_acpi. I got the same "ucsi_acpi USBC000:00: GET_CONNECTOR_STATUS failed (-5)" as well as "ucsi_acpi USBC000:00: unknown error 0." I did re-enable the ucsi_acpi driver though. I'm inclined to just disable it. I don't think it really provides anything for me other than knowing which port the charger is plugged into. Charger state is already handled by ACPI_AC.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#103 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #100 from Rong Zhang ([email protected]) ---
(In reply to Avraham Hollander from comment #99)

Quoted 6 lines

Hmm. I'm still getting a little bit of spam from ucsi_acpi. I got the same "ucsi_acpi USBC000:00: GET_CONNECTOR_STATUS failed (-5)" as well as "ucsi_acpi USBC000:00: unknown error 0." I did re-enable the ucsi_acpi driver though. I'm inclined to just disable it. I don't think it really provides anything for me other than knowing which port the charger is plugged into. Charger state is already handled by ACPI_AC.

Thanks for the tag!

My series aims to reduce the pressure on the broken mutex and hence reduce the probability of triggering the mutex bug. It cannot miraculously fix all dmesg spamming. As long as it reduces some dmesg messages and/or system freeze, it works as expected. A proper fix will be a BIOS update, but unfortunately we haven't heard good news about it.

And it seems that whether seeing the ucsi_acpi spamming depends on models. Some folks in the thread rarely see it while others see it more frequently, IIRC.

I actually tried to submit a patch to disable ucsi_acpi on devices with the mutex bug. It is never merged as Mark wanted some more time for the FW team to investigate the issue.

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
#104 lore raw

[Bug 221065] ideapad_acpi: unexpected charge_types spam on Yoga Pro 7 14ASP9

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=221065

--- Comment #101 from fililip ([email protected]) ---
I see the patches have made it to linux-next. Is there any chance of a backport for 7.2?

Signature · 4 lines
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.