Possibly missing AMD driver module?

Hey!

I’ve been using Endeavour as my daily driver system for quite a few months now but I felt like I kept having performance issues in games for quite a while now. After doing some research into the usual performance of my components in the games I play and double, triple, quadruple checking I did the install correctly and followed the ARCH wiki tutorials to the best of my ability, I have discovered that I think I might be missing the radeon module in my graphics drivers even though it is installed. edit1: The reason I suspect I am missing the radeon/vulkan driver is that the wiki lists “radeon” as a kernel module in the lspci command, but it is not there for me no matter what I have tried.

Using
lspci -k -d ::03xx
returns

09:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 21 [Radeon RX 6800/6800 XT / 6900 XT] (rev c0)
        Subsystem: Sapphire Technology Limited Device e438
        Kernel driver in use: amdgpu
        Kernel modules: amdgpu

Using
sudo pacman -S vulkan-radeon
returns

warning: vulkan-radeon-1:25.1.1-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Package (1)          Old Version  New Version  Net Change

extra/vulkan-radeon  1:25.1.1-1   1:25.1.1-1     0,00 MiB

Total Installed Size:  13,40 MiB
Net Upgrade Size:       0,00 MiB

Using
sudo pacman -Qs radeon
returns

local/lib32-vulkan-radeon 1:25.1.1-1
    Open-source Vulkan driver for AMD GPUs - 32-bit
local/radeon-profile-daemon-git 20190603.r0.g7923bd6-2
    System daemon for radeon-profile
local/radeon-profile-git 20200824.r26.g0d632ba-1
    App for display info about radeon card
local/vulkan-radeon 1:25.1.1-1
    Open-source Vulkan driver for AMD GPUs

for more general system info, inxi returns:

CPU: 16-core AMD Ryzen 9 5950X (-MT MCP-) speed/min/max: 4534/550/5086 MHz
Kernel: 6.14.7-arch2-1 x86_64 Up: 36m Mem: 11.34/46.96 GiB (24.1%)
Storage: 2.75 TiB (55.8% used) Procs: 590 Shell: Bash inxi: 3.3.38

for comparison on what I am hoping to get, looking up performance of Helldivers 2 with an equal GPU and slightly weaker cpu/ram, the person achieved ~100fps outside of missions and a constantly smooth 70-60fps in missions whereas I get roughly 60fps outside of mission and anywhere between 50-20 fps in missions.
If I missed some vital info, I apologize and will gladly provide it!

I just now saw the “info to usually provide post”, adding the mentioned command results/pastebins now:
inxi -Fxxc0z | eos-sendlog results: https://0x0.st/8xqC.txt
journalctl -b -0 | grep fail | eos-sendlog results: https://0x0.st/8xbz.txt

Hi and welcome,

I think you might be confusing some things.

While AMD/Radeon is somewhat used in a general sense ..

The (ATI) radeon module itself is legacy.

The (AMD) amdgpu is what modern amd gpus should be using (and your output shows this).

Wikis in order;

Legacy (you dont want this unless you have an ancient card) radeon :

Modern amdgpu :


This may be an actual issue - but it will likely not have to do with a ‘missing’ module.
It could even be related to the confusion noted above.
Maybe we could approach that in a more holistic way?

So the arch wiki segment showing the modules as so is outdated?


If that’s the case then I guess that is one less problem to worry about, but my performance being significantly lower than both online resources say I should have and lower than that of friends with objectively weaker setups is still somewhat of a problem I would like to resolve.

The quote you showed (by the way screenshots are generally discouraged as text is both less resource intensive and easier to read, search, etc) here is from the amdgpu wiki and is a guide to enable the desirable amdgpu driver on older cards that only have ‘experimental’ support.
Without performing some extra steps Sea/Southern Island (GCN 1) will use the legacy radeon module, which would be undesirable in most cases.
(Pre-GCN cards are assuredly stuck on that legacy module, while GCN 2+ are all natively amdgpu compatible.)

Sure I guess .. first make sure you have not done anything to force radeon or any configurations that would be particular to that module.

Here we have it showing amdgpu, so thats good.

I do note 0 swap.

SWAP is very misunderstood - and in the majority of cases it makes sense to have at least some swap, even if you have a large amount of memory.

I think a few things are missing from that version of inxi. Like boot options, etc.

Please do another paste using inxi -Farz.
(the z bit is the flag that should hide any identifiable info, so it is of course included.)

https://0x0.st/8xbe.txt Here is the new inxi log (also I will be sure to avoid screenshots where possible, apologies). The only “forcings” I have tried are adding .conf files dracut and modprobe so that they would attempt to load the amdgpu and radeon drivers. I will go and remove those now though, knowing that radeon is not even a necessary individual driver anymore.

Possible culprit.

You are using power-profiles-daemon and likely have it set to ‘powersave’ somehow - like in the “Power and Battery” widget or otherwise .. unless this is intentional for that particular time of snapping the inxi?

Oh, that is definitely not intended! I tried to get some methods of overclocking my GPU and to track its usage/drivers and I suppose I accidentally changed that at some point. Although that is on the CPU is it not? I recently upgraded it specifically (I have been slowly upgrading all my PC parts over the last few years to have good performance hopefully) as it was the oldest/most outdated piece of hardware at a glance.

I do remember going to CPU settings a little after installing it in the pc, changing a power setting which was instantly followed by a full crash/restart of the entire computer, so I suspect it’s a remnant of messing around there.

Strangely, CoreCtrl says the CPU is actually set onto “Performance” not “Powersave” so it is doubly unusual that the system report says powersave…

I dont use PPD, so I cannot properly show you .. but on Plasma, with most setups, it would just be a slider in the widget .. something like this;

Imgur

(its hard-coded in Plasma, so it has a little blurb on my system even though its not even installed.)

I changed the setting under Plasma itself to performance and no actual performance gains were had sadly. The most annoying about the performance issues is that I suspect it’s GPU related, but lowering graphics settings gives me 0 gain. I can only lower the performance by cranking up rendering scale.

I also see multiple monitors.

I wonder what kind of performance you might have with a single one.

Multihead can just be weird sometimes.

Some long shots might also be these troubleshooting entries, though the last one seems like you would be experiencing worse than just less-than-great performance..

https://wiki.archlinux.org/title/AMDGPU#High_idle_power_draw_due_to_MCLK_locked_at_MAX_(1000MHz),_or_MIN_(96MHz)_causing_low_game_performance_(on_6.4_kernel)

https://wiki.archlinux.org/title/AMDGPU#Issues_with_power_management_/_dynamic_re-activation_of_a_discrete_amdgpu_graphics_card

The GPU memory is in fact constantly at 1000MHz even when idling and having the GPU activity/utilization at sub 5%, so I’ll try that workaround! Can’t believe I missed that in the archwiki…

Alrighty… Try as I might, I can’t seem to solve the gpu being locked at 1000MHz, either I am going about the workaround wrong, (I am fairly confident I did every step that is listed) or it did not fix the problem for me. But at least we have found the problem, which is already a big gain compared to when I first posted this!
Before trying the workaround, when I set my main monitor’s refresh rate down to 60Hz, the gpu calmed down and returned to the minimum of 96MHz but now even if I set the refresh rate to 60 the GPU stays at 1000…

I tried following the threads the 1000 MHz issue was being covered in but could not seem to get the solution to work. Would there be some kind of assumed knowledge/step involved with the resolution setting using xrandr that an inexperienced user like me could have missed?
The steps I took:

  1. Downloaded and compiled the cvt calculator mentioned in the relevant ARCHWiki troubleshooting segment.
  2. Ran the ./cvt12 command with the resolution of my main monitor and the desired refresh rate (2560x1440@170Hz)
  3. Took the numerical segments output by the previous command and did xrandr --newmode with said numbers, followed by xrandr --addmode DP-3 "MCLK-fix" to create the resolution option and apply it(I think it also applied it in the same command? not entirely sure)
  4. Changed my resolution and refresh rate to 2560x1440@170Hz using the Display Configuration section of the System Settings user interface.
    The thread then says it should now be fixed but the workload of my GPU memory has stayed at 1000MHz the entire time. Did I perhaps accidentally take some step afterwards to un-set the xrandr resolution settings or did I potentially miss some kind of applying or saving step of the process that more experienced users would not mention due to it being very self-evident?

I also tried a solution of a different user which only needed setting a kernel parameter of video=DP-3:1920x1080MR@164 (I set it to the relevant display output, resolution and refresh rate of my hardware). Though I have a mild suspicion I may have done it incorrectly as I am using dracut instead of the (I think default) mkinitcpio. Not fully sure when and why I swapped between them but if swapping back would be benefitial both for troubleshooting now and more accurate ARCHWiki tutorials in the long run then I would not mind doing so.

I really really would want to continue using 2 monitors, as one monitor is just not enough for my day-to-day computer usage…

Everything in the op looks normal, maybe the problem isn’t ur gpu but ur cpu.

Try this:

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

What does it say?

It will tell you what your cpu governor is correctly.

On the gpu side I recently made a script, you could try running it, it’ll tell you the performance level setting on your gpu and allow you to change it.

#!/bin/bash

#See: https://dri.freedesktop.org/docs/drm/gpu/amdgpu.html
#For overclocking see: https://wiki.archlinux.org/title/AMDGPU#Overclocking
#I opted not to add overclocking capabilities to this script, because of the potential risk of overclocking via unmaintained scripts...

PCI_IDS=$(find /usr/share -maxdepth 2 -name "pci.ids" -print -quit)

DPM_LEVELS="auto;low;high;manual;profile_standard;profile_min_sclk;profile_min_mclk;profile_peak"

#If privilege escalation is required, use sudo for terminal and pkexec for ouside of terminal.
[ $EUID -ne 0 ] && SUDO=pkexec && tty -s && SUDO=sudo



echo
for CARD in /sys/class/drm/card[0-9]/device;
do
	source $CARD/uevent # Load PCI_ID
	IFS=: PCI_ID=(${PCI_ID,,}) PCI_SUBSYS_ID=(${PCI_SUBSYS_ID,,})
	VENDOR_DEVICELIST=$(awk "/^${PCI_ID[0]}/{a=1;next}/^....  /{a=0}a" $PCI_IDS)
	NAME=$(sed -n "0,/\s*${PCI_SUBSYS_ID[0]} ${PCI_SUBSYS_ID[1]}  /s///p" <<< $VENDOR_DEVICELIST)
	[ -z $NAME ] && NAME=$(sed -n "0,/\s*${PCI_ID[1]}  /s///p" <<< $VENDOR_DEVICELIST)
	NAME=$(awk -F'[][]' '{if ($2) {print $2} else {print $0}}' <<< $NAME)
	
	if [ -f $CARD/power_dpm_force_performance_level ]; then
		if echo $DPM_LEVELS | grep -q -w $1 2>/dev/null; then
			echo Setting $NAME Performance Level to $1
			echo $1 | $SUDO tee $CARD/power_dpm_force_performance_level &>/dev/null
		fi 
		MODE=$(cat $CARD/power_dpm_force_performance_level)
		DPM_LEVEL=$(echo $DPM_LEVELS | sed -e "s:$(cat $CARD/power_dpm_force_performance_level):$(cat $CARD/power_dpm_force_performance_level) <---:g")
		echo "$NAME: 
	Core Clock: $(($(cat /sys/class/drm/card1/device/hwmon/*/freq1_input) / 1000000))Mhz
	VRAM Usage: $(($(cat /sys/class/drm/card1/device/mem_info_gtt_used) / 1000000))MB/$(($(cat /sys/class/drm/card1/device/mem_info_gtt_total) / 1000000))MB
	Memory Clock: $(awk '/*/{print$2}' /sys/class/drm/card1/device/pp_dpm_mclk)
	Temperature: $(cut -b -2 /sys/class/drm/card1/device/hwmon/*/temp1_input)°C
	Load: $(cat /sys/class/drm/card1/device/gpu_busy_percent)%
	Power Draw: $(($(cat /sys/class/drm/card1/device/hwmon/hwmon*/power1_input) / 1000000))W
	Performance Level:
			$(echo $DPM_LEVEL | sed 's:;:\n\t\t\t:g')
"
		if [ "$MODE" == "manual" ]; then
			CARDNUM=$(echo $CARD | cut -b 20)
			$SUDO cat /sys/kernel/debug/dri/$CARDNUM/amdgpu_pm_info | head -9 | sed 's:^:\t:g'
		fi
			notify-send "$NAME Performance Level:" "$MODE"
	else
		echo "$NAME: Not Compatible
		"
	fi
done

You can run it like ./amdgpu_performance.sh high to set performance level to high, running it without args will show you the level like so:

$ Scripts/amdgpu_performance.sh

Geforce RTX 3070 Ti Laptop GPU: Not Compatible
		
Radeon 680M: 
	Core Clock: 2400Mhz
	VRAM Usage: 659MB/33318MB
	Memory Clock: 2400Mhz
	Temperature: 49°C
	Load: 0%
	Power Draw: 11W
	Performance Level:
			auto
			low
			high <---
			manual
			profile_standard
			profile_min_sclk
			profile_min_mclk
			profile_peak

After setting the power mode to performance from the toolbar widget, the inxi command and now this also both report the governor as performance.

Ah i just edited my reply, added some info for gpu stuff.

How exactly would I run this script? Not fully familiar with running standalone scripts. Should I just make a text file somewhere, put the code from the script into it and save it as amdgpu_performance.sh?

yeah you make a blank file, you can name it whatever you want, amdgpu_performance.sh is just what i named it and the .sh isn’t really necessary either.

Then you copy paste the contents of the script into it

You then have to make it executable, you can either use chmod +x /path/to/script or you can right click it and go to properties → permissions and tick the executable box.

Then from a terminal where you are in the same directory as the script you run ./script

But be careful with running scripts you download online, you should at the very least glance over them to make sure they’re not gonna rm -rf ~/* or something on you (never run that command btw, rm -rf /* wouldn’t actually do you harm, even if you run it as root i think there are protections against it, because of it’s legendary status, but putting the ~ before it makes it extremely dangerous)

I usually dump all my scripts in ~/Scripts (~ is shorthand for your home folder, it’s the same as $HOME or /home/username/) then the most frequenty used ones I create a bash alias for so I don’t have to use the full path or open my script directory to run them

cat: '/sys/class/drm/card1/device/hwmon/hwmon*/power1_input': No such file or directory
Scripts/amdgpu_performance.sh: line 42: / 1000000: syntax error: operand expected (error token is "/ 1000000")

Running the script returns this error, hope the error is not just due to me having it in a different folder and that this helps us on track to find the source.

Not super good at programming/coding but it just seems to freeze up on the solo " being on line 42, is it supposed to be there by itself or did I mess up when pasting it?