Bug 2298938 - Multiple ACPI errors resulting in incorrect thermal readings and misleading CPU throttling resulting in poor OS performance under normal condition (Aspire/ACER)
Summary: Multiple ACPI errors resulting in incorrect thermal readings and misleading C...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 40
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-20 04:30 UTC by Kevin DC
Modified: 2025-05-20 19:15 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-05-20 19:15:16 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
dmesg output (99.83 KB, text/plain)
2024-07-20 04:31 UTC, Kevin DC
no flags Details
acpidump LG Gram laptop (3.63 MB, text/plain)
2024-07-29 16:08 UTC, Iñaki Ucar
no flags Details
ACPI: EC: Delay running _REG handlers until the EC acpi_device is enumerated (2.84 KB, patch)
2024-08-01 11:57 UTC, Hans de Goede
no flags Details | Diff

Description Kevin DC 2024-07-20 04:30:33 UTC
1. Please describe the problem:
After upgrading to kernel version 6.9.7 and 6.9.9 I noticed that my laptop was heavily slow with noticeable input lag with no apparent reason, version 6.9.4 works just fine.


2. What is the Version-Release number of the kernel:
``Linux fedora 6.9.9-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jul 11 19:29:01 UTC 2024 x86_64 GNU/Linux``

3. Did it work previously in Fedora? If so, what kernel version did the issue
   *first* appear? 

Yes, it was working fine in kernel 6.9.4

4. Can you reproduce this issue? If so, please provide the steps to reproduce
   the issue below:
Not sure what other brands could have this issue, error is reproducible in an Aspire ES1-572 (ACER) with kernel 6.9.7 and 6.9.9


5. Does this problem occur with the latest Rawhide kernel? To install the
   Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by
   ``sudo dnf update --enablerepo=rawhide kernel``:
I haven't tested using the latest Rawhide kernel, I can't comprise system integrity


6. Are you running any modules that not shipped with directly Fedora's kernel?:
No as far as I know


7. Please attach the kernel logs. You can get the complete kernel log
   for a boot with ``journalctl --no-hostname -k > dmesg.txt``. If the
   issue occurred on a previous boot, use the journalctl ``-b`` flag.


Reproducible: Always

Comment 1 Kevin DC 2024-07-20 04:31:37 UTC
Created attachment 2040000 [details]
dmesg output

Comment 2 Hans de Goede 2024-07-20 10:49:46 UTC
I see that the ACPI errors are most embedded-controller (EC) related there are 2 new EC commits in 6.9.7:

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/acpi?h=v6.9.7&id=2b2b0ac1533d790690d6d28899f01a2924d54d4d
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/drivers/acpi?h=v6.9.7&id=9750135f2f326879889ed60ccd68b96572dfa6ee

which are a likely culprit for causing this.

I recently did a 6.9.7 build with these 2 commits reverted to test if this fixes a LG laptop issue:

https://koji.fedoraproject.org/koji/taskinfo?taskID=120674294

since you mention that 6.9.7 shows the problem it would be great if you can see if the patched test 6.9.7 kernel does work, so that we can confirm that these 2 commits are the cause.

Here are some generic instructions for installing a kernel from koji (the Fedora build system):

https://fedorapeople.org/~jwrdegoede/kernel-test-instructions.txt

Note that since this is a test build the rpms will be removed automtically to save diskspace, so please grab these soon.

Comment 3 Kevin DC 2024-07-20 16:59:32 UTC
Thanks for the reply, I was able to grab the RPMs for the patched version, but I've noticed two things, it's version 6.9.9 (maybe just a confusion on your side) and that at the moment of installation I get the following error:

error: Failed dependencies:
        kernel-core-uname-r = 6.9.9-200.lglaptop.fc40.x86_64 is needed by kernel-6.9.9-200.lglaptop.fc40.x86_64
        kernel-uname-r = 6.9.9-200.lglaptop.fc40.x86_64 is needed by kernel-modules-6.9.9-200.lglaptop.fc40.x86_64
        kernel-uname-r = 6.9.9-200.lglaptop.fc40.x86_64 is needed by kernel-modules-core-6.9.9-200.lglaptop.fc40.x86_64

Comment 4 Hans de Goede 2024-07-20 19:57:38 UTC
Thank you for testing!

(In reply to Kevin DC from comment #3)
> Thanks for the reply, I was able to grab the RPMs for the patched version,
> but I've noticed two things, it's version 6.9.9 (maybe just a confusion on
> your side)

Ah right, the 2 troublesome commits got added in 6.9.7, but I indeed reverted them on top of the latest version available when I was prepping the test kernel.

> and that at the moment of installation I get the following error:
> 
> error: Failed dependencies:
>         kernel-core-uname-r = 6.9.9-200.lglaptop.fc40.x86_64 is needed by
> kernel-6.9.9-200.lglaptop.fc40.x86_64
>         kernel-uname-r = 6.9.9-200.lglaptop.fc40.x86_64 is needed by
> kernel-modules-6.9.9-200.lglaptop.fc40.x86_64
>         kernel-uname-r = 6.9.9-200.lglaptop.fc40.x86_64 is needed by
> kernel-modules-core-6.9.9-200.lglaptop.fc40.x86_64

You need to also download :

kernel-core-6.9.9-200.lglaptop.fc40.x86_64.rpm

that should clear that error.

Comment 5 Hans de Goede 2024-07-29 12:07:26 UTC
Hi,

It would be great if you can also download kernel-core-6.9.9-200.lglaptop.fc40.x86_64.rpm and give the test kernel a try to see if reverting the 2 mentioned changes fixes this for you.

Regards,

Hans

Comment 6 Hans de Goede 2024-07-29 13:49:37 UTC
Also can you please run the following commands:

sudo dnf install acpica-tools

sudo acpidump > acpidump.txt

And attach the generated acpidump.txt file to this bugzilla ticket.

This gives us access to a copy of the ACPI tables of your laptop which will hopefully help with debugging this further.

Regards,

Hans

Comment 7 Iñaki Ucar 2024-07-29 16:08:51 UTC
Created attachment 2040719 [details]
acpidump LG Gram laptop

Comment 8 Iñaki Ucar 2024-07-29 16:09:30 UTC
Here's my acpidump for my LG Gram 14'' laptop, with the screen brightness keys issue with those commits, but the IRQ storm issue without those commits. Please let me know if you need more info.

Comment 9 Hans de Goede 2024-08-01 09:54:52 UTC
Kevin,

I have been discussing this issue with Rafael, the upstream ACPI maintainer:
https://lore.kernel.org/linux-acpi/1f76b7e2-1928-4598-8037-28a1785c2d13@redhat.com/

And he suggested a fix. I have implemented this fix (I'll also attach it here) and I have started a test kernel build with this fix:

https://koji.fedoraproject.org/koji/taskinfo?taskID=121344486

At the moment this test kernel is still building (this takes a couple of hours). Once this is done building please give this test kernel a run and let us know if it resolves your problem.

Here are instructions for installing a kernel directly from koji (Fedora's buildsystem): https://fedorapeople.org/~jwrdegoede/kernel-test-instructions.txt

Regards,

Hans

p.s.

Iñaki Ucar, I guess the fix might help with the brightness keys issue on your LG gram laptop too. It would be great if you can give this kernel a try too and let us know if it helps.

Comment 10 Hans de Goede 2024-08-01 11:57:05 UTC
Created attachment 2043222 [details]
ACPI: EC: Delay running _REG handlers until the EC acpi_device is enumerated

Patch included in the test-build from: https://koji.fedoraproject.org/koji/taskinfo?taskID=121344486

Comment 11 Hans de Goede 2024-08-01 13:32:23 UTC
The build of the test kernel is done now. Please grab it while it is fresh and provide test results soon.

Comment 12 Hans de Goede 2024-08-01 14:21:49 UTC
(In reply to Iñaki Ucar from comment #8)
> Here's my acpidump for my LG Gram 14'' laptop, with the screen brightness
> keys issue with those commits, but the IRQ storm issue without those
> commits. Please let me know if you need more info.

Thank you. It is not sure if this bug and your brightness key press bug will have the same fix. Since you've indicated that you prefer to use Fedora's bugzilla I have filed a new Fedora kernel bug as bug 2302253 for your issue.

I'll attach your acpidump there now and add you to the Cc. Lets continue any discussion wrt your brightness key issue (such as testing the https://koji.fedoraproject.org/koji/taskinfo?taskID=121344486 kernel) in bug 2302253.

Comment 13 Hans de Goede 2024-08-05 08:57:00 UTC
Kevin, ping?

I would like to get to the bottom of this and help you resolve the issue, but this does require you to help with testing things until we've figured out what is going on.

Comment 14 Hans de Goede 2024-08-12 11:24:53 UTC
Rafael, the upstream kernel ACPI maintainer has made a branch with a proposed fix this issue (1) available:

https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/log/?h=acpi-ec-fixes

I have started a test Fedora 40 6.10.4 kernel build with the patches from the acpi-ec-fixes branch added:
https://koji.fedoraproject.org/koji/taskinfo?taskID=121834209

This kernel is still building at the moment (should be done in a couple of hours), please give this kernel a try once it is done building and let us know if this resolves the brightness key-press issue.

Here are instructions for installing a kernel directly from koji (Fedora's buildsystem): https://fedorapeople.org/~jwrdegoede/kernel-test-instructions.txt

Note this kernel replaces previous test kernels. If you have some time to run tests please use this build and not any of the previous test kernels.



1) A fix for what we believe is the root cause of this issue, the calling of _REG on the non active second EC device in the ACPI table.

Comment 15 Hans de Goede 2024-08-12 12:22:06 UTC
The latest test-kernel with the upstream fix for this is done building and is ready for testing now.

Comment 16 Aoife Moloney 2025-04-28 13:31:47 UTC
This message is a reminder that Fedora Linux 40 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '40'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 40 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 17 Aoife Moloney 2025-05-20 19:15:16 UTC
Fedora Linux 40 entered end-of-life (EOL) status on 2025-05-13.

Fedora Linux 40 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.