Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fedora 34 - Unable to write to MSR #17

Open
lakotamm opened this issue Mar 29, 2021 · 5 comments
Open

Fedora 34 - Unable to write to MSR #17

lakotamm opened this issue Mar 29, 2021 · 5 comments

Comments

@lakotamm
Copy link

lakotamm commented Mar 29, 2021

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.

@timrichardson
Copy link

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

@lakotamm
Copy link
Author

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.

@timrichardson
Copy link

timrichardson commented Apr 11, 2021 via email

@elwerene
Copy link

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

@abn
Copy link
Owner

abn commented Apr 15, 2021

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

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

No branches or pull requests

4 participants