Bug 1874538
| Summary: | missing sysfs cpufreq entries | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Milan Votava <votava> | ||||
| Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 33 | CC: | acaringi, airlied, bskeggs, hdegoede, ichavero, itamar, jarodwilson, jeremy, jglisse, john.j5live, jonathan, josef, kernel-maint, lgoncalv, linville, masami256, mchehab, mjg59, steved, votava, werner | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | --- | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2020-11-24 08:54:26 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Milan Votava
2020-09-01 14:51:31 UTC
the same problem in: Linux apex15 5.8.17-300.fc33.x86_64 #1 SMP Thu Oct 29 15:55:40 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux $ nproc 32 $ find /sys/devices/system/cpu/cpu*/cpufreq /sys/devices/system/cpu/cpu0/cpufreq /sys/devices/system/cpu/cpu10/cpufreq /sys/devices/system/cpu/cpu11/cpufreq /sys/devices/system/cpu/cpu12/cpufreq /sys/devices/system/cpu/cpu13/cpufreq /sys/devices/system/cpu/cpu14/cpufreq /sys/devices/system/cpu/cpu15/cpufreq /sys/devices/system/cpu/cpu16/cpufreq /sys/devices/system/cpu/cpu17/cpufreq /sys/devices/system/cpu/cpu18/cpufreq /sys/devices/system/cpu/cpu19/cpufreq /sys/devices/system/cpu/cpu1/cpufreq /sys/devices/system/cpu/cpu20/cpufreq /sys/devices/system/cpu/cpu21/cpufreq /sys/devices/system/cpu/cpu22/cpufreq /sys/devices/system/cpu/cpu23/cpufreq /sys/devices/system/cpu/cpu2/cpufreq /sys/devices/system/cpu/cpu3/cpufreq /sys/devices/system/cpu/cpu4/cpufreq /sys/devices/system/cpu/cpu5/cpufreq /sys/devices/system/cpu/cpu6/cpufreq /sys/devices/system/cpu/cpu7/cpufreq /sys/devices/system/cpu/cpu8/cpufreq /sys/devices/system/cpu/cpu9/cpufreq Hello, Werner from TUXEDO Computers here. We ran into the same issue on the Clevo NH5xAx Barebone. The cause is a wrongly configured acpi table. We reached out to Clevo and are waiting for a fixed UEFI. Maybe you can contact your vendor too and ask if he could also reach out to Clevo for an UEFI update. Some more in depth information: We extracted the acpi tables using acpidump and disassembled them using iasl. We found the root of the ACPI Errors in the boot log in ssdt2 and ssdt6: ssdt2 has a list of cpu cores which ends with core 24 (C017 <- hex starting with index 0) while ssdt6 correctly counts up to core 32 (C01F). We believe that this discrepancy causes acpi calls on cores 25-31 and therefore cpufreq on this cores to fail. Small addition: It is definitely the broken ssdt2 table causing the issue: I fixed the issue by fixing and recompiling ssdt2 using iasl and overloading the broken table during boot using grubs acpi command (http://www.gnu.org/software/grub/manual/grub/html_node/acpi.html). Thank you for the report. I have the same barebone (XMG Apex 15 in my case) so the root cause of the problem should be the same. I will contact XMG and ask them to push Clevo to issue a fixed BIOS :-) I'm closing the issue. a followup, Based on your feedback, I decompiled, fixed (added missing CPU entries) and recompiled the "bad" table (ssdt7 in my case). Now I have all the Ryzen 3950x cpufreq entries visible in sysfs. But as a side effect I found a (probably) real bug, this time in grub. When I loaded the fixed table using grub's acpi command, cpufreq entries were fixed, but I lost the possibility to control display backlight from keyboard and I found the kernel is having problem to find some acpi nvidia devices. Later I found the reason. The grub acpi command not only loaded the fixed acpi table but also REVERSED the order of other acpi tables (when copying the list of acpi tables from ROM to RAM). I solved the problem temporarily by calling the grub acpi command twice to fix the order :-) acpi acpi /ssdt7.aml Good to see that you fixed it. Our fix is now online too: https://github.com/tuxedocomputers/tuxedo-corefix-clevo-nh5xax It loads the acpi table during early boot from the initramfs image. It has a script for initramfs-tools und dracut to place the fix there and is only tested on Ubuntu and OpenSUSE respectively. I don't know which tool the RedHat distro family is using, but I think it should be easily adopable if it is none of the two. |