Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1835  / 3 Years ago, sun, october 10, 2021, 7:21:20

When trying to enable amdgpu driver for my R9 270x,with:


grep amdgpu /etc/default/grub  
GRUB_CMDLINE_LINUX_DEFAULT="[truncated] radeon.cik_support=0 radeon.si_support=0 amdgpu.cik_support=1 amdgpu.si_support=1"

gandalf@hans-desktop  ~ 


it's actually never loaded:


sudo lspci -k |grep amdgpu                             
Kernel modules: radeon, amdgpu

Whereas we expected:


sudo lspci -k |grep amdgpu                             
Kernel driver in use: amdgpu
Kernel modules: radeon, amdgpu

How can I enable amdgpu on ubuntu 20.04 ?


More From » amdgpu

 Answers
7

@hgogert provided the correct answer, but I want to add that one should try match the HWE kernel version with the firmware package from the upstream release the HWE stack is back-ported from. E.g. Ubuntu 20.04.3 HWE has Kernel 5.11 sourced from hirsute (21.04) with hirsute's firmware package update info listed at https://packages.ubuntu.com/hirsute-updates/linux-firmware. So for 20.04.3, to manually override and add the firmware update:


curl -OL http://archive.ubuntu.com/ubuntu/pool/main/l/linux-firmware/linux-firmware_1.197.3_all.deb
sudo dpkg -i linux-firmware_1.197.3_all.deb

Extra hint: maybe download the deb from your closest mirror because this package is almost 200MB large.


To explain further, Ubuntu HWE stack maintainers updated the kernel (and amdgpu driver) but unfortunately failed to keep the linux-firmware package up to date. So the amdgpu driver was clearly tested/developed on top of firmware that Ubuntu included with the newer interim non-LTS, but then failed to include/back-port with their HWE kernel refresh to the previous LTS.


See:



[#1049] Monday, October 11, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
luringdge

Total Points: 3
Total Questions: 126
Total Answers: 109

Location: India
Member since Sun, Feb 6, 2022
2 Years ago
;