kevinlekiller / amdctl

Set P-State voltages and clock speeds on recent AMD CPUs on Linux.
GNU General Public License v3.0
241 stars 22 forks source link

Update amdctl.c #25

Closed programmingzor closed 3 years ago

programmingzor commented 3 years ago

Linux 5.9 and 5.10 started to remove msr support. Maybe a fopen / fgets / strstr at "Write to unrecognized MSR" would be required on /var/log/kern.log, to detect if the operation was succesfull, or the kernel blocked the call alltogether.

kevinlekiller commented 3 years ago

Setting /sys/module/msr/parameters/allow_writes to on at runtime seems to work for now also.