r4m0n / ZenStates-Linux

Dynamically edit AMD Ryzen processor P-States
MIT License
522 stars 66 forks source link

Error while running zenstates.py in latest kernel. #16

Open raydude opened 4 years ago

raydude commented 4 years ago

When I run zenstate on kernel 5.9.X I get these error messages in dmesg:

server /usr/src/linux # dmesg | grep msr: [28175.307962] msr: Write to unrecognized MSR 0xc0010292 by python [28175.307974] msr: Write to unrecognized MSR 0xc0010292 by python [28175.307981] msr: Write to unrecognized MSR 0xc0010292 by python [28175.307988] msr: Write to unrecognized MSR 0xc0010292 by python [28175.307996] msr: Write to unrecognized MSR 0xc0010292 by python [28175.308003] msr: Write to unrecognized MSR 0xc0010292 by python [28175.308009] msr: Write to unrecognized MSR 0xc0010292 by python [28175.308014] msr: Write to unrecognized MSR 0xc0010292 by python [28175.308020] msr: Write to unrecognized MSR 0xc0010292 by python [28175.308028] msr: Write to unrecognized MSR 0xc0010292 by python

I've not noticed them before, but they may have been there. I'm also having video crashes. I wonder if they are related.

Is this an actual error?

Govelius commented 3 years ago

Looking at the kernel code "msr.c" for Linux 5.9. Looks like it's just a warning. zenstates.py should still work.

The Linux 5.9+ default is to print a warning when userspace writes to an MSR register. A future Kernel release may default to disable instead of warning.

To make it stop add this to your bootloader / kernel cmdline "msr.allow_writes=on"

raydude commented 3 years ago

Thanks. It is working for me.