radeon 7870 gpu clocks on open source drivers

I may have asked this before but I don’t remember. The open source drivers work great for me which is very good because my card has not been supported by Amd for a long time. That means I can stick with my present machine indefinitely down the road.

The only real problem I have is that I need the proprietary drivers to adjust my clocks. The reason I want to do that is because Asus modified the defaults and I like to return them to the Amd reference. I think it runs better that way,

So…What I would like is an alternative that works with the open source drivers provided with tumbleweed, most preferably something I could set to adjust the core and memory clocks to settings that I specify upon boot or login.

Anybody know this program? Gui would be nice but not absolutely necessary by any means.

Hi
You need to look down in /sys/class/drm/card0/device/ to see what is available and can be changed via the echo command, run systool -vm radeon to see what parameters are set and can be set via radeon.<some_parm>=<value>. I know you can set the power options, that may be enough?

This is what systool -vm radeon gave me:
Module = “radeon”

Attributes:
coresize = “1634304”
initsize = “0”
initstate = “live”
refcnt = “34”
srcversion = “24F1E19F819A2C198C8A714”
taint = “”
uevent = <store method only>

Parameters:
agpmode = “0”
aspm = “-1”
audio = “-1”
auxch = “-1”
backlight = “-1”
bapm = “-1”
benchmark = “0”
cik_support = “1”
connector_table = “0”
deep_color = “0”
disp_priority = “0”
dpm = “-1”
dynclks = “-1”
fastfb = “0”
hard_reset = “0”
hw_i2c = “0”
lockup_timeout = “10000”
msi = “-1”
mst = “0”
no_wb = “0”
pcie_gen2 = “-1”
r4xx_atom = “0”
runpm = “-1”
si_support = “1”
test = “0”
tv = “1”
use_pflipirq = “2”
uvd = “1”
vce = “1”
vm_block_size = “12”
vm_size = “8”

Sections:

I don’t see anything I recognize as clock speeds but I am not well versed.

Hi
So your using radeon or amdgpu with the card?

What about the options/settings down in /sys/class/drm/card0/device/ (I only have amdgpu cards here).

What I’m using is what was supplied with Tumbleweed. I think I’m using radeon but if you tell me how I will find out for sure. As far as the files in that directory go I can see them but knowing what they represent or how to manipulate them is an entirely different matter. Sorry for being so clueless.

Hi
Can you post the output from;


/sbin/lspci -nnk | egrep -A3 "VGA|Display|3D"

So you can just use the cat command to show what it contains;


cat /sys/class/drm/card0/device/<some_file_name>

Hi
If you want a GUI, I do have packaged up radeon-profile and radeon-profile-daemon;

https://build.opensuse.org/package/show/home:malcolmlewis:TESTING/radeon-profile
https://build.opensuse.org/package/show/home:malcolmlewis:TESTING/radeon-profile-daemon

Tumbleweed download;
https://download.opensuse.org/repositories/home:/malcolmlewis:/TESTING/openSUSE_Tumbleweed/x86_64/radeon-profile-20190220+git20190311.8d20110-6.1.x86_64.rpm
https://download.opensuse.org/repositories/home:/malcolmlewis:/TESTING/openSUSE_Tumbleweed/x86_64/radeon-profile-daemon-20190220+git20190309.65166ba-2.1.x86_64.rpm

/sbin/lspci -nnk | egrep -A3 “VGA|Display|3D”
01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Pitcairn XT [Radeon HD 7870 GHz Editi
on] [1002:6818]
Subsystem: ASUSTeK Computer Inc. Device [1043:042f]
Kernel driver in use: radeon
Kernel modules: radeon, amdgpu

I think I misunderstood what you wanted me to do next:

cat /sys/class/drm/card0/device/radeon
cat: /sys/class/drm/card0/device/radeon: No such file or directory

…Bedtime…

Hi
Run the ls command in the directory to see what is present, then cat, for example (I’m on amdgpu) I see lots of files, if I pick pp_dpm_sclk I see;


 cat /sys/class/drm/card0/device/pp_dpm_sclk

0: 300Mhz *
1: 464Mhz 
2: 496Mhz 
3: 533Mhz 
4: 576Mhz 
5: 654Mhz 
6: 685Mhz 
7: 720Mhz 

Hi
Also you can switch to the amdgpu driver which is the latest, rather than the radeon driver. Just a few tweaks to the grub options and installation of the xf86-video-amdgpu package.