r4m0n/ZenStates-Linux

Error while running zenstates.py in latest kernel.

Opened this issue · 2 comments

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?

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"

Thanks. It is working for me.