You are not logged in.
i have an old graphic card saphire r9 270x (pitcairn architecture) that constantly crash when in maximum load. the stock clock is 1070mhz but when underclock to 1000mhz the crash stop. i already installed TLP but the crash did not stop. i have a dual boot machine (together with windows) and the gpu is underclock with catalyst driver in windows system. in the wiki it says amdgpu allow to control gpu clock through p-state. and so i enable amd gpu experimental. in grub config
GRUB_CMDLINE_LINUX_DEFAULT="radeon.cik_support=0 amdgpu.cik_support=1 radeon.si_support=0 amdgpu.si_support=1 amdgpu.ppfeaturemask=0xffffffff amdgpu.dpm=1
lspci -nnk | grep -i vga -A3 | grep 'in use'
Kernel driver in use: amdgpu
but the file pp_od_clk_voltage is missing in /sys/class/drm/card0/device. I can only find pp_sclk_od, pp_mclk_od, pp_dpm_sclk and pp_dpm_mclk. so i create pp_od_clk_voltage myself.
OD_SCLK:
0: 300MHz 900mV
1: 400MHz 942mV
2: 500MHz 984mV
3: 600MHz 1026mV
4: 700MHz 1068mV
5: 800MHz 1110mV
6: 900MHz 1152mV
7: 1000MHz 1200mV
OD_MCLK:
0: 300MHz 900mV
1: 1000MHz 1050mV
2: 1400MHz 1200mV
OD_RANGE:
SCLK: 300MHz 1000MHz
MCLK: 300MHz 1400MHz
VDDC: 900mV 1200mV
i'm trying to move this file to /sys/class/drm/card0/device/ but i get an error
mv pp_od_clk_voltage /sys/class/drm/card0/device
mv: cannot create regular file '/sys/class/drm/card0/device': Permission denied
i also try the same thing with touch command and going to the directory and using nano create the file and ended up with the same error. this is all done with su command to log in to the root account before entering the command in the terminal. i also already check the file permission to sys folder
ls -l
drwxr-xr-x 13 root root 0 Aug 23 23:01 sys
i've run out of options and am not sure if my gpu is supported. can someone help me?
Offline
Offline
i think you missunderstood, i cannot edit anything in the p-state.
echo "manual" > /sys/class/drm/card0/device/power_dpm_force_performance_level
cat /sys/class/drm/card0/device/power_dpm_force_performance_level
manual
echo "s 0 300 900" > /sys/class/drm/card0/device/pp_od_clk_voltage
bash: /sys/class/drm/card0/device/pp_od_clk_voltage: Permission denied
cat /sys/class/drm/card0/device/pp_od_clk_voltage
/sys/class/drm/card0/device/pp_od_clk_voltage: No such file or directory
touch /sys/class/drm/card0/device/pp_od_clk_voltage
touch: cannot touch '/sys/class/drm/card0/device/pp_od_clk_voltage': Permission denied
i already use amdgpu.ppfeaturemask=0xffffffff in boot parameter and log in to root account using su command before entering those command.
Offline
https://github.com/torvalds/linux/blob/ … pm.c#L2613 is where the sysfs file is created if the conditions are met.
Offline
is there any other option i can try to set the preset gpu clock?
Offline