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

Linux 5.9 and MSRs #55

Open
alxchk opened this issue Oct 12, 2020 · 11 comments
Open

Linux 5.9 and MSRs #55

alxchk opened this issue Oct 12, 2020 · 11 comments

Comments

@alxchk
Copy link

alxchk commented Oct 12, 2020

https://www.phoronix.com/scan.php?page=news_item&px=Linux-Filter-Tightening-MSRs

Maybe it's worth to collaborate with upstream somehow?

@rien333
Copy link

rien333 commented Oct 15, 2020

From what I gather, this dmesg message I recieve during login

msr: Write to unrecognized MSR 0x150 by intel-undervolt
Please report to x86@kernel.org

is thus an harmless warning for now, while MSR writing may be actually significantly restricted in the future?

And even with such restrictions in place, users could still turn off this behavior using the msr.allow_writes= writes kernel parameter?

(just to check)

@jthomme1
Copy link

I also have a big interest in this issue. Would really appreciate it if this awesome tool is not rendered useless with upcoming kernel updates.

@antonvalletas
Copy link

Is there anyway to confirm that it is actually working in kernel 5.9.1? I am also getting that error, and I don't want to loose undervolting.

@alxchk
Copy link
Author

alxchk commented Oct 21, 2020

It works with 5.9.1.
The only problem you need to do something with log messages. I patched kernel a bit (added MSRs to exceptions).
Likely msr.allow_writes=on should also works for some time

@milos7250
Copy link

Has anyone tried updating to kernel 5.10? I'm curious if anything changed regarding this issue, as I'd love to continue undervolting (helps with battery a lot) and 5.9 is marked EOL. I don't know whether I should update or fall back to 5.4 LTS.

@BachoSeven
Copy link

@milos7250 I'm on 5.10.3, and the behaviour is still the same, it works but you get msr: Write to unrecognized MSR 0x150 by intel-undervolt (pid: XXX). Please report to x86@kernel.org..

@milos7250
Copy link

Alright then, update it is :). Cheers 👍

@saboya
Copy link

saboya commented Feb 10, 2021

Relevant kernel thread:

https://lore.kernel.org/lkml/20200907094843.1949-1-Jason@zx2c4.com/T/#m4bc3ddd4fcc1c1795d257ef887280dbfa9fec56c

@BachoSeven
Copy link

@heretoenhance The warning from the kernel does not disallow writes to the MSR, in fact you will find the intel-undervolt is working nevertheless. However, if you wish to remove that warning, setting the msr.allow_writes=true parameter will do so.

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

8 participants
@saboya @alxchk @rien333 @jthomme1 @antonvalletas @BachoSeven @milos7250 and others