r4m0n / ZenStates-Linux

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

Disable C6 permanently? #4

Open undeadindustries opened 6 years ago

undeadindustries commented 6 years ago

Is there a way to disable C6 permanently?

I'm in Ubuntu 18.04.1

Thanks!

ghtux commented 6 years ago

--c6-disable

Start script and it is disabled. Else your BIOS may have an option for this. But make sure to check with zenstates once since my old BIOS version didn't do anything despite it was disabled

jfredrickson commented 5 years ago

I threw together a systemd unit to disable it upon startup using the zenstates.py script.

https://github.com/jfredrickson/disable-c6

undeadindustries commented 5 years ago

Nice. Anyone know if threadripper 2 still has these issues in kernel 4.19 or 4.20?

DrissiReda commented 5 years ago

if you mean by "still has these issues" the random freezes on idle and cpu hard lockups then yes, I pulled the 4.20 kernel from experimental on debian stable and this still happens, I also tried running this script while global C states is enabled and it doesn't work. I had to manually disable all C states (I know, not a great idea) for it to stop freezing, although I just had 25 hours of uptime up until now, we'll say if it passes the 50 hours threshold.

snthibaud commented 5 years ago

This script looks promising, but I get the same error and 'setcap' does not work for me. Any ideas?

Aadniz commented 4 years ago

@jfredrickson Awesome!

adonespitogo commented 4 years ago
git clone https://github.com/jfredrickson/disable-c6.git
cd disable-c6
git submodule init
git submodule update
sudo ./install.sh

Then add msr to /etc/modules like so:

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

msr
dkm commented 4 years ago

I've started some work for building a .deb that installs the systemd files. I've based it on some other work but for which I could not find how to rebuild the package with the latest version. See : https://github.com/dkm/ZenStates-Linux/releases I will eventually send a pull request when everything is clean.