Skip to content
This repository has been archived by the owner on Jun 23, 2024. It is now read-only.

kernel_task constantly at ~70%, fans running at max speed constantly #17

Open
ericfjosne opened this issue Jul 31, 2022 · 16 comments
Open

Comments

@ericfjosne
Copy link
Contributor

Hi,

i have been trying out your experimental EFI for Monterey, updated everything to the latest available version, updated the BIOS of my machine to 1.16.0 (released earlier this month). Unfortunately, it very much still behaves the same: power is being drained super quickly and fans are running at max speed constantly. Only notable thing is : kernel_task is running at 70% CPU usage constantly.

I looked at what you had done and it should do the trick. I was wondering if you did succeed at making the hack perfect ? Apart from this issue, I must admit that it is a brilliant machine and all works super well.

FYI: I tried asking for some guidance and support over the open core Discord channels, but did not get any answer. I just posted this message in Tonymacx86 forum: https://www.tonymacx86.com/threads/kernel_task-using-high-of-cpu-probably-caused-by-gpe-acpi-interrupt.321578/

Thanks in advance,

Eric

@sambow23
Copy link
Owner

Hey, so far the issue has not been resolved and I still cannot not figure out why it happens. I believe this must be either fixed at an OpenCore level or needs a better SSDT patch then what I have attempted.

@ericfjosne
Copy link
Contributor Author

Thanks for your reply.

Aside from the high CPU usage that can be observed in the activity monitor, how were you able to confirm that interrupt gpe6f was the root cause? I was unable to find any relevant log information anywhere during my attempts.

@sintaxx
Copy link

sintaxx commented Aug 15, 2022

Does Big Sur EFI have this same issue ?

@sintaxx
Copy link

sintaxx commented Aug 16, 2022

@sambow23 I came across your post on https://osxlatitude.com/forums/topic/17098-dell-xps-7390-high-cpu-usagehorrible-battery-life/ while digging into this issue, have you managed to resolve it with this method ?

@sambow23
Copy link
Owner

Thanks for your reply.

Aside from the high CPU usage that can be observed in the activity monitor, how were you able to confirm that interrupt gpe6f was the root cause? I was unable to find any relevant log information anywhere during my attempts.

As stated in the readme, the broken interrupt has the exact same behavior (100% CPU on one or two cores, fan constantly going off) on Linux when its not disabled. if you use a power draw measuring tool on linux such as powertop you can see the interrupt in question hogging all the CPU cycles.

@sambow23
Copy link
Owner

Does Big Sur EFI have this same issue ?

Any EFI exhibits this issue.

@sambow23 I came across your post on https://osxlatitude.com/forums/topic/17098-dell-xps-7390-high-cpu-usagehorrible-battery-life/ while digging into this issue, have you managed to resolve it with this method ?

At the time I believed the issue was solved because my fans stopped running at 100% all the time. But that could've also been fixed when I was changing SMBIOS's until I found one with a lower TDP limit. On macOS its very difficult to know if the problematic interrupt was ever disabled as there is no userspace utility to check as there is on Linux.

@irfanhutomo2
Copy link

irfanhutomo2 commented Aug 24, 2022

maybe you can try this EFI https://github.com/H3C4T0M8/Hackintosh-Dell-XPS-13-7390-OpenCore i dont have any 100% fans, but audio jack broken

@sintaxx
Copy link

sintaxx commented Aug 24, 2022

maybe you can try this EFI https://github.com/H3C4T0M8/Hackintosh-Dell-XPS-13-7390-OpenCore i dont have any 100% fans, but audio jack broken

i will try this tomorrow! thanks!

@ericfjosne
Copy link
Contributor Author

@irfanhutomo2 Thanks for the link. I have just tested your EFI, but I believe my screen specs (4K) differs from the intended one, causing a black screen to be shown after boot.

I can hear the bell sound from macOS when pressing keys, which leads me to believe that the OS is booted, but nothing is showing on the screen.

Would you mind sharing your screen specifications on this model?

@ericfjosne
Copy link
Contributor Author

@sintaxx @irfanhutomo2 I have tried the EFI 0.8.4 on the link that was provided. As per my previous message: the built-in screen is totally black. However, connecting an external screen proved to be working. That is how I could confirm that the system is booting correctly.

To the bad news now: kernel_task is still using a high amount of %.

Screenshot 2022-08-24 at 18 36 19

And fans are still roaring.

I tried using the SSDT-THUNDERBOLT.aml from the repository, since it seems to implement a lot more logic than then SSDT-DTB3.aml provided in this repository. Unfortunately, kernel_task still uses a fairly high amount of CPU % (around 60%).

I would love to hear more feedback around this one. If anyone else gives it a go.

@ericfjosne
Copy link
Contributor Author

Going a bit further: I wanted to double check the hypothesis behind gpe6F ACPI interrupt being the actual cause of this high kernel_task usage.

I believe it might have been a valid one a few months ago (?), but I just tested a fresh Ubuntu install, using the laptop updated with the latest BIOS available (1.17.0, released on the 9th of August).

Now, even with /sys/firmware/acpi/interrupts/gpe6F left untouched and marked as enable, CPU usage remains steady at < 1% when nothing is running. Thunderbolt enabled or disabled in the BIOS, behavior is consistent.

Back to macOS now, running version 12.5.1, the kernel_task still is gobbling up CPU unfortunately. Just mentioning this as it was assumed that this was the problem causing the high kernel_task CPU % usage, but it might be something else entirely ...

@irfanhutomo2 Can you confirm that the EFI you suggested applies to this exact model of Dell laptop? I know there is another XPS 13" 7390 model, called "2 in 1".

@sambow23
Copy link
Owner

I believe it might have been a valid one a few months ago (?), but I just tested a fresh Ubuntu install, using the laptop updated with the latest BIOS available (1.17.0, released on the 9th of August).

Now, even with /sys/firmware/acpi/interrupts/gpe6F left untouched and marked as enable, CPU usage remains steady at < 1% when nothing is running. Thunderbolt enabled or disabled in the BIOS, behavior is consistent.

Good to know it's been fixed under Linux, either that being from Linux kernel updates or the BIOS. I don't currently have my 7390 to update the BIOS myself and try macOS but I should be able to get it soon.

@sintaxx
Copy link

sintaxx commented Aug 29, 2022

I believe it might have been a valid one a few months ago (?), but I just tested a fresh Ubuntu install, using the laptop updated with the latest BIOS available (1.17.0, released on the 9th of August).
Now, even with /sys/firmware/acpi/interrupts/gpe6F left untouched and marked as enable, CPU usage remains steady at < 1% when nothing is running. Thunderbolt enabled or disabled in the BIOS, behavior is consistent.

Good to know it's been fixed under Linux, either that being from Linux kernel updates or the BIOS. I don't currently have my 7390 to update the BIOS myself and try macOS but I should be able to get it soon.

my bios is latest and it isn't resolved in big sur

@ericfjosne
Copy link
Contributor Author

I believe it might have been a valid one a few months ago (?), but I just tested a fresh Ubuntu install, using the laptop updated with the latest BIOS available (1.17.0, released on the 9th of August).
Now, even with /sys/firmware/acpi/interrupts/gpe6F left untouched and marked as enable, CPU usage remains steady at < 1% when nothing is running. Thunderbolt enabled or disabled in the BIOS, behavior is consistent.

Good to know it's been fixed under Linux, either that being from Linux kernel updates or the BIOS. I don't currently have my 7390 to update the BIOS myself and try macOS but I should be able to get it soon.

It might of course have been fixed in a more recent kernel version, but I tend to believe it is fixed in the latest BIOS (1.17.0). The reason is that I tested this with the USB install key I still had, of an Ubuntu 22.04 beta from late March 2022: in the usb live trial environment, the problem could be observed then, with the kernel shipped on this beta version, but not this time.

@ericfjosne
Copy link
Contributor Author

ericfjosne commented Aug 29, 2022

Moving further, I have now successfully confirmed it is thunderbolt related.

After enabling all debug for ACPI, following the guide and recommendations for debugging, I get the following kernel logs

Kernel logs filtered on ACPI activity only:
log show --last boot --predicate 'process == "kernel" AND senderImagePath CONTAINS "AppleACPIPlatform"' --style syslog > acpi-debug.log
acpi-debug.log

All kernel logs:
log show --last boot --predicate 'process == "kernel"' --style syslog
kernel-debug.log

There is one entry that stands out, as it is literally spamming the entire stream:

2022-08-29 10:39:42.082576+0200 localhost kernel[0]: (ThunderboltReset) <compose failure [UUID]>

In the span of 1 second, this log entry appears in average 50 times. So clearly, this should be the cause. According to the log formatting, this should be linked to ThunderboltReset.kext …

I attach the full log files for future reference to this message. In case someone has more time than me to dig deeper into this 😃

@irfanhutomo2
Copy link

fyi, i disable thunderbolt on bios and fans not running at max speed constantly

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

No branches or pull requests

4 participants