You can sign up to get a daily email of our articles, see the Mailing List page!
Support us on Patreon to keep GamingOnLinux alive. This ensures we have no timed articles and no paywalls. Just good, fresh content! Alternatively, you can donate through Paypal, Flattr and Liberapay.!
Can't set CPU Governor Ryzen 1700X
Avehicle7887 commented on 14 November 2017 at 11:24 pm UTC

I'd like to be able to set the governor on my Ryzen machine, however it says no driver is available.

Using Mint 18.1 with the recently released 4.14 Kernel / Ryzen 1700X (Downloaded from Official Ubuntu server). Everything works fine but I'm unable to set the governor. I never really bothered with it on this system and if I can squeeze a little more performance I'll gladly go for it.


Running cpufreq-info in terminal provides the following output for all cores:

analyzing CPU 0:
no or unknown cpufreq driver is active on this CPU
maximum transition latency: 4294.55 ms.

Unshra commented on 17 November 2017 at 1:11 am UTC

Unlike Intel's P-State driver there are no AMD-specific drivers for Ryzen so it will show up as unknown.

debianxfce commented on 6 December 2017 at 5:41 pm UTC

The cpu governor slows down your cpu and it is not needed in a gaming pc. Use Bios to control your motherboard hardware. Debian stable and derivatives are a waste of human resources. Mint uses really old software and is not suitable for new hardware at all. For example ryzen temperature monitoring is in the kernel 4.15-rc2 like amdgpu dc support. Mesa is developing constantly so use Oibaf ppa Artful version with Debian testing Xfce along with a custon non debug 1000Hz timer kernel from kernel.org.

Burn the netinstaller to a cdrw or usb memory:
https://www.debian.org/devel/debian-installer/
Choose Debian Desktop and Xfce in the installer. Use the Whisker menu plugin along with the Weather plugin and remove the original applications menu. You can configure Xfce freely, so make it suitable for your liking.

Install the latest firmware-amd-graphics Debian package from:
https://packages.debian.org/sid/firmware-amd-graphics
If your can not boot to the desktop, commands for the Linux rescue mode (select it from the Grub) or the installer media Rescue mode chroot:
apt-get install wget
wget ftp.de.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-amd-graphics_xxxxx_all.deb
dpkg -i firmware-amd-graphics_xxxxxx_all.deb

With Synaptic install gdebi. With Gdebi you can install downloaded .deb packages easily. Give the root password when asked. Install sudo, build-essential, kernel-package, libqt4-dev and pkg-config packages too. Add yourself to sudoers:
su
adduser username sudo
Logout and login to make sudo to work.

Latest amdgpu firmware:
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/amdgpu
Latest mesa:
Oibaf PPA (use latest ubuntu version packages):
https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers

To remove ppa drivers,get apt-purge from ubuntu and type:sudo ppa-purge repository_name. You might need to install xfce4 and xserver-org packages again. Xfce usb automount needs gvfs and gvfs-bin packages too.

PPAs with Debian,use case B: http://www.webupd8.org/2014/10/how-to-add-launchpad-ppas-in-debian-via.html

Latest Amdgpu kernels
https://cgit.freedesktop.org/~agd5f/linux/

Use the command: git clone -b drm-fixes-4.15 git://people.freedesktop.org/~agd5f/linux

The kernel configuration file of Debian Official kernel are available in /boot, named after the kernel release. Copy the .config file to the linux directory. Connect all your devices and run the command: make localmodconfig. You can use the command make defconfig too for creating initial .config file.

Use the command: make xconfig and check that you have enabled: Reroute Broken IRQ, Virtualization KVM and 1000Hz CPU timer, I also disabled Swap, Kernel Debug, CPU Freq scaling , Cpu handling in Acpi, Used Bios to control CPU and devices. In the drivers/graphics/amdgpu enable cik support for a gcn 1.1 gpu and si support for a gcn 1.0 gpu.

Configuring wifi: https://wiki.gentoo.org/wiki/Wifi

Patches for my Ryzen computer:
http://www.filehosting.org/file/details/712002/ryzen.patch

To prevent random kernel lock ups, enable RCU_NOCB_CPU and boot the kernel with the rcu_nocbs=0-X command line parameter. X is the cpu thread count -1.

Create debian kernel package:
export CONCURRENCY_LEVEL=2 or use -j 2 with make-kpkg (number of threads in your cpu)
fakeroot make-kpkg --initrd kernel_image

Add kernel_headers to the fakeroot command if you need headers

Xpander commented on 6 December 2017 at 7:17 pm UTC

you dont need RCU_NOCB_CPU enabled, you can just disable C-state from BIOS and it wont hang/lock then. will consume 10W more power in idle though.


as for cpu governor, some games dont even pull this cpu to load so yeah cpu governor can help.

try installing cpupower

and you can use something like this:

#freq=cpupower frequency-info |grep "current"* # by xpander if [[ $# -eq 1 ]]; then case $1 in "-p") pkexec cpupower frequency-set -g performance && notify-send "Performance Mode" "Cpu clocks set to perfromance mode" -t 2000 -i messagebox_info;; "-c") pkexec cpupower frequency-set -g schedutil && notify-send "Schedutil Mode" "Cpu clocks set to conservative mode" -t 2000 -i messagebox_info;; "-o") pkexec cpupower frequency-set -g ondemand && notify-send "Ondemand Mode" "Cpu clocks set to ondemand mode" -t 2000 -i messagebox_info;; "-s") pkexec cpupower frequency-set -g powersave && notify-send "Powersave Mode" "Cpu clocks set to powersave mode" -t 2000 -i messagebox_info;; *) echo "Invalid option";; esac fi


you can get the commands from the script. pkexec is used for not having to type admin password as i have done polkit rules. but you can use it with sudo as well.

chui2ch commented on 6 December 2017 at 8:59 pm UTC

I had to install linux-tools-generic when I manually installed an newer kernel.

debianxfce commented on 7 December 2017 at 2:29 am UTC

Xpanderas for cpu governor, some games dont even pull this cpu to load so yeah cpu governor can help.

Disable all code that you do not need in the Linux kernel to speed up the kernel.
make xconfig:
CONFIG_CPU_FREQ:
This is a nice method to save power.
If in doubt, say N.

Use the bios to control the PC power usage. The cpu frequency governor is not a standard or required feature of the Linux kernel. Disable also ACPI_PROCESSOR to prevent ugly dmesg message.

Samsai commented on 7 December 2017 at 10:08 am UTC

debianxfce
Xpanderas for cpu governor, some games dont even pull this cpu to load so yeah cpu governor can help.

Disable all code that you do not need in the Linux kernel to speed up the kernel.
make xconfig:
CONFIG_CPU_FREQ:
This is a nice method to save power.
If in doubt, say N.

Use the bios to control the PC power usage. The cpu frequency governor is not a standard or required feature of the Linux kernel. Disable also ACPI_PROCESSOR to prevent ugly dmesg message.
I just love how your solution to a simple problem is the total nuking and rebuilding of the core operating system. You know, here's a recommendation: when someone asks for help with their distro maybe don't write a book about how they should first install another distro and then compile their kernel with just the right flags. It's very likely they won't listen to you anyway and you just end up clogging up the conversation so it becomes even harder for them to find the actually relevant helpful messages.

Due to spam you need to Register and Login to comment.


Or login with...

Livestreams & Videos
Community Livestreams
  • Slash 'Em: „Torchlight II“
  • Date:
See more!
Popular this week
View by Category
Contact
Latest Comments
Latest Forum Posts