abn / throttled-rpm

RPM Package: throttled - Workaround for Intel throttling issues in Linux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fedora 34 - Unable to write to MSR

lakotamm opened this issue · comments

Fedora 34 brings new issues with MSR and I do not seem to be able to find a solution. At the moment none of the solutions mentioned in the main repo's issue tracker work.

Kernel - 5.11.10-300.fc34.x86_64
throttled version - 0.8-3, installed from copr
Secure boot setting in BIOS - Disabled
lsm parameters:

lockdown,capability,yama,selinux

Systemctl status reported error:

Mar 29 13:35:34 fedora throttled[1161]: [E] Unable to write to MSR. Try to disable Secure Boot and check if your kernel does not restrict access to MSR.
Mar 29 13:35:34 fedora systemd[1]: throttled.service: Main process exited, code=exited, status=1/FAILURE
Mar 29 13:35:34 fedora systemd[1]: throttled.service: Failed with result 'exit-code'.

Attempted kernel parameters:

BOOT_IMAGE=(hd0,gpt4)/vmlinuz-5.11.10-300.fc34.x86_64 root=UUID=906d272f-a74d-4844-8ba3-03ea526bb9be ro rootflags=subvol=root rhgb quiet acpi_osi=!Linux-Lenovo-NV-HDMI-Audio lsm=capability,yama,selinux

BOOT_IMAGE=(hd0,gpt4)/vmlinuz-5.11.10-300.fc34.x86_64 root=UUID=906d272f-a74d-4844-8ba3-03ea526bb9be ro rootflags=subvol=root rhgb quiet acpi_osi=!Linux-Lenovo-NV-HDMI-Audio msr.allow_writes=on

I am using Lenovo T490 with both Manjaro Stable 21.0 and Fedora 34 Beta. On Manjaro with kernel 5.11, the kernel parameter msr.allow_writes=on works well. I have no clue why this is not the case with Fedora 34.

I thought Lenovo fixed this on the T490 with a BIOS update. I'm on the T480 and there is no BIOS fix. I think Fedora has made a kernel config change to stop MSR writes with F34, since it still works in F33 in 5.11

I am still using old BIOS 1.53 from August 2019 on my T490, because all newer BIOSes limit the dGPU temperature to 56 degrees C, which is very annoying. But I am not sure I understand the connection with BIOS.

It needs a selinux policy: erpalma/throttled#250 (comment)

Guess we can make that a subpackage. Happy to accept a PR for this.