sibradzic / amdgpu-clocks

Simple script to control power states of amdgpu driven GPUs
GNU General Public License v2.0
394 stars 44 forks source link

Issue with 6700xt, Ubuntu 20.04 #38

Closed cornopaez closed 2 years ago

cornopaez commented 2 years ago

Hey guys,

I'm trying to set my clocks for my 6700xt and I'm getting the following output from the app:

Won't write initial state to /tmp/amdgpu-custom-states.card0.initial, it already exists.
Detecting the state values at /sys/class/drm/card0/device/pp_od_clk_voltage:
  SCLK state 0: 500Mhz
  SCLK state 1: 1200Mhz
  MCLK state 0: 97Mhz
  MCLK state 1: 1075MHz
/usr/local/bin/amdgpu-clocks: line 98: 0mV: command not found
    SCLK clock 2950Mhz
    MCLK clock 1075Mhz
  Curent power cap: 100W
Verifying user state values at /etc/default/amdgpu-custom-states.card0:
  SCLK state 1: 1200MHz
  MCLK state 1: 1075MHz
  Force power cap to 100W
Committing custom states to /sys/class/drm/card0/device/pp_od_clk_voltage:
/usr/local/bin/amdgpu-clocks: line 154: echo: write error: Invalid argument
  Done

In short, the core clock and the power cap are working as expected. However, the memory clock is not being set and I don't know why. If it helps, my custom state file is as follows:

OD_SCLK:
1: 1200MHz
OD_MCLK:
1: 1075MHz
# Force power limit (in micro watts):
FORCE_POWER_CAP: 100000000

Any ideas as to what may be going on? I'm sure it's something obvious I'm missing

Cheers!

sibradzic commented 2 years ago

see https://github.com/sibradzic/amdgpu-clocks/issues/32#issuecomment-829953519