[SOLVED] How to replace a (newer AMD) GPU driver?

Report Bugs, Issues and non- package Requests
Message
Author
User avatar
Head_on_a_Stick
Posts: 919
Joined: Sun Mar 17, 2019 3:37 pm

Re: How to replace a GPU driver?

#11 Post by Head_on_a_Stick »

max23 wrote: Sat May 23, 2020 4:58 pmAlready done install this: http://mxrepo.com/mx/repo/pool/ahs/l/li ... +1_all.deb
But, how can I verify, if the package is installed right? In MX package-installer, on tab MX Test Repo.. searching for "linux-firmware" only "linux-firmware" Version=1.186mx19+1 seems to be installed. Something wrong/missing?
How exactly did you install the AHS linux-firmware package?

Check the installed version with

Code: Select all

apt policy linux-firmware
It is also possible to grab the firmware directly from upstream:

Code: Select all

sudo apt install git
mkdir ~/git && cd ~/git
git clone https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
sudo cp -r linux-firmware/amdgpu /lib/firmware
sudo update-initramfs -u -k all
The firmware can subsequently be updated manually with

Code: Select all

cd ~/git/linux-firmware
git pull
sudo cp -r linux-firmware/amdgpu /lib/firmware
sudo update-initramfs -u -k all
Once you have the correct firmware installed then you should see a line in the dmesg(1) output that shows it being loaded.
max23 wrote: Sat May 23, 2020 4:58 pm

Code: Select all

root@mix:/home/user/Desktop# lspci -k | grep -A3 VGA
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso (rev c1)
	Subsystem: ASUSTeK Computer Inc. Picasso
	Kernel modules: amdgpu
Still no "Kernel module in use" line then.

Try these kernel command line parameters (add them in the same way as for amdgpu.dc=1):

Code: Select all

radeon.cik_support=0 amdgpu.cik_support=1
And check if they have been applied by running

Code: Select all

cat /proc/cmdline
Just to be sure also add the amdgpu module to the initramfs:

Code: Select all

sudo tee -a /etc/modules <<<'amdgpu'
sudo update-initramfs -u -k all
If that doesn't work then post back with the output of

Code: Select all

dmesg | grep amdgpu
mod note: Signature removed, please read the forum rules

Helen-Earth
Posts: 56
Joined: Sat May 23, 2020 8:17 pm

Re: How to replace a GPU driver?

#12 Post by Helen-Earth »

Not sure about laptops & amd video but for my desktop with Radeon RX 5600 XT & Ryzen 5 3600.

https://archive.org/details/mx19x64updated This is the ISO i used..

Running..
Linux mx-ahs 5.6.0-trunk-amd64 #1 SMP Debian 5.6.4-1~mx19+1 (2020-04-19) x86_64 GNU/Linux

Make these are installed.
xserver-xorg-video-amdgpu
xserver-xorg-video-ati
xserver-xorg-video-radeon
amd64-microcode

After installing linux-firmware_1.187mx19+1_all.deb the below should be remove automatically by the install.
Make sure this is NOT installed.
firmware-amd-graphics

If you have screen tearing you add the below to /etc/X11/xorg.conf.d/
You need sudo make a file called 20-amdgpu.conf in the above folder and add the text below.

Section "Device"
Identifier "AMD"
Driver "amdgpu"
Option "TearFree" "true"
EndSection

If this command lspci -k | grep -A3 VGA is saying that you have (radeon) use the below code but called (xorg.conf) in /etc/X11/ ( this is for older video cards )

Section "Device"
Identifier "Radeon"
Driver "radeon"
Option "TearFree" "on"
EndSection


mx-list..
/etc/apt/sources.list.d/

Code: Select all

# MX Community Main and Test Repos
deb http://mx.mirror.ausnetservers.net.au/packages/mx/repo/ buster main non-free  
# deb http://mx.mirror.ausnetservers.net.au/packages/mx/testrepo/ buster test   

#ahs hardware stack repo
deb http://mx.mirror.ausnetservers.net.au/packages/mx/repo/ buster ahs  

Code: Select all

lspci -k | grep -A3 VGA
07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 (rev ca)
	Subsystem: Sapphire Technology Limited Navi 10
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu

Code: Select all

dmesg | grep amdgpu
[    1.575577] [drm] amdgpu kernel modesetting enabled.
[    1.575678] fb0: switching to amdgpudrmfb from EFI VGA
[    1.575732] amdgpu 0000:07:00.0: vgaarb: deactivate vga console
[    1.601360] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_gpu_info.bin
[    1.601369] amdgpu 0000:07:00.0: No more image in the PCI ROM
[    1.601403] amdgpu 0000:07:00.0: VRAM: 6128M 0x0000008000000000 - 0x000000817EFFFFFF (6128M used)
[    1.601404] amdgpu 0000:07:00.0: GART: 512M 0x0000000000000000 - 0x000000001FFFFFFF
[    1.601485] [drm] amdgpu: 6128M of VRAM memory ready
[    1.601487] [drm] amdgpu: 6128M of GTT memory ready.
[    1.601740] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_sos.bin
[    1.601760] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_asd.bin
[    1.601771] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_ta.bin
[    1.601809] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_smc.bin
[    1.601855] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_pfp.bin
[    1.601900] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_me.bin
[    1.601944] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_ce.bin
[    1.601957] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_rlc.bin
[    1.602000] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_mec.bin
[    1.602037] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_mec2.bin
[    1.602654] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_sdma.bin
[    1.602663] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_sdma1.bin
[    1.602786] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_vcn.bin
[    2.356994] amdgpu 0000:07:00.0: RAS: ras ta ucode is not available
[    2.363024] amdgpu: [powerplay] use vbios provided pptable
[    2.363087] amdgpu: [powerplay] smu driver if version = 0x00000033, smu fw if version = 0x00000035, smu fw version = 0x002a3200 (42.50.0)
[    2.363088] amdgpu: [powerplay] SMU driver if version not matched
[    2.406475] amdgpu: [powerplay] SMU is initialized successfully!
[    2.515128] fbcon: amdgpudrmfb (fb0) is primary device
[    2.593846] amdgpu 0000:07:00.0: fb0: amdgpudrmfb frame buffer device
[    2.599046] amdgpu 0000:07:00.0: ring gfx_0.0.0 uses VM inv eng 0 on hub 0
[    2.599046] amdgpu 0000:07:00.0: ring comp_1.0.0 uses VM inv eng 1 on hub 0
[    2.599047] amdgpu 0000:07:00.0: ring comp_1.1.0 uses VM inv eng 4 on hub 0
[    2.599047] amdgpu 0000:07:00.0: ring comp_1.2.0 uses VM inv eng 5 on hub 0
[    2.599048] amdgpu 0000:07:00.0: ring comp_1.3.0 uses VM inv eng 6 on hub 0
[    2.599048] amdgpu 0000:07:00.0: ring comp_1.0.1 uses VM inv eng 7 on hub 0
[    2.599049] amdgpu 0000:07:00.0: ring comp_1.1.1 uses VM inv eng 8 on hub 0
[    2.599049] amdgpu 0000:07:00.0: ring comp_1.2.1 uses VM inv eng 9 on hub 0
[    2.599050] amdgpu 0000:07:00.0: ring comp_1.3.1 uses VM inv eng 10 on hub 0
[    2.599051] amdgpu 0000:07:00.0: ring kiq_2.1.0 uses VM inv eng 11 on hub 0
[    2.599051] amdgpu 0000:07:00.0: ring sdma0 uses VM inv eng 12 on hub 0
[    2.599052] amdgpu 0000:07:00.0: ring sdma1 uses VM inv eng 13 on hub 0
[    2.599052] amdgpu 0000:07:00.0: ring vcn_dec uses VM inv eng 0 on hub 1
[    2.599053] amdgpu 0000:07:00.0: ring vcn_enc0 uses VM inv eng 1 on hub 1
[    2.599053] amdgpu 0000:07:00.0: ring vcn_enc1 uses VM inv eng 4 on hub 1
[    2.599054] amdgpu 0000:07:00.0: ring jpeg_dec uses VM inv eng 5 on hub 1
[    2.599173] [drm] Initialized amdgpu 3.36.0 20150101 for 0000:07:00.0 on minor 0
[    4.690583] snd_hda_intel 0000:07:00.1: bound 0000:07:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])

Code: Select all

dmesg | grep firmware
[    1.601360] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_gpu_info.bin
[    1.601740] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_sos.bin
[    1.601760] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_asd.bin
[    1.601771] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_ta.bin
[    1.601809] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_smc.bin
[    1.601855] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_pfp.bin
[    1.601900] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_me.bin
[    1.601944] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_ce.bin
[    1.601957] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_rlc.bin
[    1.602000] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_mec.bin
[    1.602037] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_mec2.bin
[    1.602654] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_sdma.bin
[    1.602663] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_sdma1.bin
[    1.602786] amdgpu 0000:07:00.0: firmware: direct-loading firmware amdgpu/navi10_vcn.bin
[    1.602789] [drm] Found VCN firmware Version ENC: 1.7 DEC: 4 VEP: 0 Revision: 13
[    1.602792] [drm] PSP loading VCN firmware

User avatar
Stevo
Developer
Posts: 12837
Joined: Fri Dec 15, 2006 8:07 pm

Re: How to replace a GPU driver?

#13 Post by Stevo »

The stock Mesa may also be too old for your newer GPU, but we have a newer version in AHS.

About the post above, I've since updated the ISO on archive.org to include linux-firmware 1.187 and the 5.6.7 (5.6.0-2) kernel backport from Sid. If that doesn't work out of the box in a Live Session, please post "inxi -G" from that session. BTW, there's also a 5.5 kernel in buster-backports.

MX Tweak will also set up the amdgpu conf file with tearfree option for you with a few mouse clicks, if you want to save a little time.

User avatar
Head_on_a_Stick
Posts: 919
Joined: Sun Mar 17, 2019 3:37 pm

Re: How to replace a GPU driver?

#14 Post by Head_on_a_Stick »

Helen-Earth wrote: Sat May 23, 2020 9:11 pmIf this command lspci -k | grep -A3 VGA is saying that you have (radeon) use the below code but called (xorg.conf) in /etc/X11/ ( this is for older video cards )

Code: Select all

Section "Device"
    Identifier "Radeon"
    Driver "radeon"
    Option "TearFree" "on"
EndSection
The OP needs to be using the amdgpu kernel module & DDX driver so that file won't help. If the 'lspci' command doesn't list amdgpu as the "Kernel driver in use" then we need to fix things so that it does.
mod note: Signature removed, please read the forum rules

User avatar
timkb4cq
Developer
Posts: 3201
Joined: Wed Jul 12, 2006 4:05 pm

Re: How to replace a GPU driver?

#15 Post by timkb4cq »

Just a note, may or may not apply.
I discovered the motherboard for my Ryzen 7 2700u will only allow the kernel access to the amdgpu bios if MX is booted up using UEFI mode - a legacy boot produces an error in dmesg about no amdgpu BIOS found and reverts to the radeon driver.
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

User avatar
Sigi
Posts: 123
Joined: Thu Mar 12, 2020 9:46 am

Re: How to replace a GPU driver?

#16 Post by Sigi »

Head_on_a_Stick wrote: Sun May 24, 2020 6:44 amTHX
Stevo wrote: Sun May 24, 2020 12:10 amTHX
Helen-Earth wrote: Sat May 23, 2020 9:11 pmTHX
timkb4cq wrote: Mon May 25, 2020 10:50 pm Just a note, may or may not apply.
I discovered the motherboard for my Ryzen 7 2700u will only allow the kernel access to the amdgpu bios if MX is booted up using UEFI mode - a legacy boot produces an error in dmesg about no amdgpu BIOS found and reverts to the radeon driver.
Thank you all for the hints. After enabling buster ahs in MX Repo Manger, new drivers installed:

Code: Select all


System:    Host: mix Kernel: 5.6.0-trunk-amd64 x86_64 bits: 64 compiler: gcc v: 8.3.0 
           parameters: BOOT_IMAGE=/vmlinuz-5.6.0-trunk-amd64 
           root=UUID=218bd48d-4600-423c-bdfd-f68b0ea8b1da ro quiet splash amdgpu.dc=1 
           Desktop: Xfce 4.14.2 tk: Gtk 3.24.5 info: xfce4-panel wm: xfwm4 dm: LightDM 1.26.0 
           Distro: MX-19.1_x64 patito feo February 15  2020 base: Debian GNU/Linux 10 (buster) 
Machine:   Type: Desktop System: ASUSTeK product: MINIPC PB50 v: 0602 serial: <filter> 
           Mobo: ASUSTeK model: PB50 v: Rev 1.xx serial: <filter> UEFI [Legacy]: ASUSTeK v: 0602 
           date: 07/04/2019 
CPU:       Topology: Quad Core model: AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx bits: 64 type: MT MCP 
           arch: Zen+ family: 17 (23) model-id: 18 (24) stepping: 1 microcode: 8108102 L2 cache: 2048 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 36728 
           Speed: 1597 MHz min/max: 1400/2300 MHz boost: enabled Core speeds (MHz): 1: 1597 2: 1596 
           3: 3991 4: 3992 5: 1596 6: 1594 7: 1597 8: 1596 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 
           mitigation: Full AMD retpoline, IBPB: conditional, STIBP: disabled, RSB filling 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: AMD Picasso vendor: ASUSTeK driver: N/A bus ID: 04:00.0 chip ID: 1002:15d8 
           Display: x11 server: X.Org 1.20.4 driver: vesa resolution: 2560x1440~N/A 
           OpenGL: renderer: llvmpipe (LLVM 9.0.1 128 bits) v: 3.3 Mesa 19.3.3 compat-v: 3.1 
           direct render: Yes 
Audio:     Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio driver: snd_hda_intel v: kernel 
           bus ID: 04:00.1 chip ID: 1002:15de 
           Device-2: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel 
           bus ID: 04:00.6 chip ID: 1022:15e3 
           Sound Server: ALSA v: k5.6.0-trunk-amd64 
Network:   Device-1: Realtek RTL8822BE 802.11a/b/g/n/ac WiFi adapter vendor: ASUSTeK driver: rtw_pci 
           v: N/A port: f000 bus ID: 02:00.0 chip ID: 10ec:b822 
           IF: wlan0 state: down mac: <filter> 
           Device-2: Intel I211 Gigabit Network vendor: ASUSTeK driver: igb v: 5.6.0-k port: e000 
           bus ID: 03:00.0 chip ID: 8086:1539 
           IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 238.47 GiB used: 51.16 GiB (21.5%) 
           ID-1: /dev/sda vendor: SanDisk model: SD9SN8W256G1102 size: 238.47 GiB block size: 
           physical: 512 B logical: 512 B speed: 6.0 Gb/s serial: <filter> rev: 6002 scheme: MBR 
Partition: ID-1: / raw size: 235.93 GiB size: 231.22 GiB (98.01%) used: 50.87 GiB (22.0%) fs: ext4 
           dev: /dev/dm-0 
           ID-2: /boot raw size: 512.0 MiB size: 487.9 MiB (95.30%) used: 299.0 MiB (61.3%) fs: ext4 
           dev: /dev/sda1 
           ID-3: swap-1 size: 1.98 GiB used: 0 KiB (0.0%) fs: swap swappiness: 15 (default 60) 
           cache pressure: 100 (default) dev: /dev/dm-1 
Sensors:   System Temperatures: cpu: 57.4 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian buster-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian buster main contrib non-free
           2: deb http://deb.debian.org/debian-security buster/updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://mirror.easyname.at/mxlinux-packages/mx/repo/ buster main non-free
           2: deb http://mirror.easyname.at/mxlinux-packages/mx/repo/ buster ahs
           Active apt repos in: /etc/apt/sources.list.d/skype-stable.list 
           1: deb [arch=amd64] https://repo.skype.com/deb stable main
           Active apt repos in: /etc/apt/sources.list.d/teamviewer.list 
           1: deb http://linux.teamviewer.com/deb stable main
           No active apt repos in: /etc/apt/sources.list.d/various.list 
           Active apt repos in: /etc/apt/sources.list.d/vivaldi.list 
           1: deb http://repo.vivaldi.com/stable/deb/ stable main
Info:      Processes: 310 Uptime: N/A Memory: 29.40 GiB used: 770.6 MiB (2.6%) Init: SysVinit v: 2.93 
           runlevel: 5 default: 5 Compilers: gcc: 8.3.0 alt: 8 Shell: bash v: 5.0.3 
           running in: quick-system-in inxi: 3.0.36 

Code: Select all

$ apt policy linux-firmware
linux-firmware:
  Installed: 1.187mx19+1
  Candidate: 1.187mx19+1
  Version table:
 *** 1.187mx19+1 500
        500 http://mir...

Code: Select all

$ dmesg | grep amdgpu
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-5.6.0-trunk-amd64 root=UUID=218bd48d-4600-423c-bdfd-f68b0ea8b1da ro quiet splash amdgpu.dc=1
[    0.020082] Kernel command line: BOOT_IMAGE=/vmlinuz-5.6.0-trunk-amd64 root=UUID=218bd48d-4600-423c-bdfd-f68b0ea8b1da ro quiet splash amdgpu.dc=1

Code: Select all

$ lspci -k | grep -A3 VGA
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso (rev c1)
	Subsystem: ASUSTeK Computer Inc. Picasso
	Kernel modules: amdgpu
04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller
--
04:00.7 Non-VGA unclassified device: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/Renoir Non-Sensor Fusion Hub KMDF driver
	Subsystem: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/Renoir Non-Sensor Fusion Hub KMDF driver
	Kernel driver in use: i2c_amd_mp2
	Kernel modules: i2c_amd_mp2_pci
P.S. I've tested "tearfree option" in MX Tweak, started MX AHS live USB (older kernel), but no effect. These was the origin issue, installing MX first time with this AMD CPU+GPU.

But the issue still exists, high CPU load watching fullscreen video. I think "renderer: llvmpipe" should be replaced by "AMD RAVEN" like the one, when booting with MX live from USB. But it seems you are right, booting MX in Legacy BIOS mode, not in UEFI, switch amdgpu.dc=1 will not be activated. Unfortunately, I've installed in Legacy mode.. :(

Code: Select all

$ ls /sys/firmware/efi
ls: cannot access '/sys/firmware/efi': No such file or directory
Found a (debian) solution https://blog.getreu.net/projects/legacy-to-uefi-boot/ to switch from Legacy to UEFI.

But I plan to use this case to check my backup/restore.. I will plan next time install MX with UEFI from scratch and restore my data. Will inform you about success about AMDGPU. Thanks all!

User avatar
Head_on_a_Stick
Posts: 919
Joined: Sun Mar 17, 2019 3:37 pm

Re: How to replace a GPU driver?

#17 Post by Head_on_a_Stick »

max23 wrote: Tue May 26, 2020 7:48 am

Code: Select all

$ dmesg | grep amdgpu
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-5.6.0-trunk-amd64 root=UUID=218bd48d-4600-423c-bdfd-f68b0ea8b1da ro quiet splash amdgpu.dc=1
[    0.020082] Kernel command line: BOOT_IMAGE=/vmlinuz-5.6.0-trunk-amd64 root=UUID=218bd48d-4600-423c-bdfd-f68b0ea8b1da ro quiet splash amdgpu.dc=1
So you didn't try my suggested kernel parameters then? The ArchWiki says that they may be needed to force the amdgpu kernel driver: https://wiki.archlinux.org/index.php/AM ... K)_support

Did you add amdgpu to /etc/modules and rebuild the initramfs, as I also suggested?

And is there a reason why you're using a non-release kernel? I think trying a stable release kernel version would be a good idea. The buster-backports repository has v5.5.17, which definitely supports your hardware.
max23 wrote: Tue May 26, 2020 7:48 am

Code: Select all

$ lspci -k | grep -A3 VGA
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Picasso (rev c1)
	Subsystem: ASUSTeK Computer Inc. Picasso
	Kernel modules: amdgpu
You still haven't managed to load the kernel driver for the card, it won't work until you do no matter which firmware is installed.

Here's the output from my machine (2500u & Vega 8):

Code: Select all

empty@E485:~ $ lspci -k | grep -iA3 vga
05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series] (rev c4)
        Subsystem: Lenovo Raven Ridge [Radeon Vega Series / Radeon Vega Mobile Series]
        Kernel driver in use: amdgpu
        Kernel modules: amdgpu
empty@E485:~ $
^ The "Kernel driver in use" line is the important one.
max23 wrote: Tue May 26, 2020 7:48 amFound a (debian) solution https://blog.getreu.net/projects/legacy-to-uefi-boot/ to switch from Legacy to UEFI.
Although AMD recommend a UEFI installation it is not required for the kernel module to load or for Mesa to support your card. That guide is pretty bad, it's over-complicated and incorrect in some places — if you really want to convert to UEFI booting then I can show you a much simpler method.
mod note: Signature removed, please read the forum rules

User avatar
timkb4cq
Developer
Posts: 3201
Joined: Wed Jul 12, 2006 4:05 pm

Re: How to replace a GPU driver?

#18 Post by timkb4cq »

Head_on_a_Stick wrote: Tue May 26, 2020 1:54 pmAlthough AMD recommend a UEFI installation it is not required for the kernel module to load or for Mesa to support your card.
Depends on the motherboard manufacturer.
My Dell Inspiron 5575 with up-to-date UEFI/BIOS will not expose the amdgpu hardware BIOS unless booted in UEFI mode.
Trying to load the amdgpu module after booting in Legacy mode (either from LiveUSB or from hard drive install) fails because the kernel can't find that video BIOS. It works just fine with a UEFI boot.

A lot of UEFI (and BIOS) implementations are flaky in various ways. It may or may not have a bearing on max23's problem but you can't just discount it altogether.
HP Pavillion TP01, AMD Ryzen 3 5300G (quad core), Crucial 500GB SSD, Toshiba 6TB 7200rpm
Dell Inspiron 15, AMD Ryzen 7 2700u (quad core). Sabrent 500GB nvme, Seagate 1TB

User avatar
Sigi
Posts: 123
Joined: Thu Mar 12, 2020 9:46 am

Re: How to replace a GPU driver?

#19 Post by Sigi »

Head_on_a_Stick wrote: Tue May 26, 2020 1:54 pm
max23 wrote: Tue May 26, 2020 7:48 am

Code: Select all

$ dmesg | grep amdgpu
[    0.000000] Command line: BOOT_IMAGE=/vmlinuz-5.6.0-trunk-amd64 root=UUID=218bd48d-4600-423c-bdfd-f68b0ea8b1da ro quiet splash amdgpu.dc=1
[    0.020082] Kernel command line: BOOT_IMAGE=/vmlinuz-5.6.0-trunk-amd64 root=UUID=218bd48d-4600-423c-bdfd-f68b0ea8b1da ro quiet splash amdgpu.dc=1
So you didn't try my suggested kernel parameters then? The ArchWiki says that they may be needed to force the amdgpu kernel driver: https://wiki.archlinux.org/index.php/AM ... K)_support

Did you add amdgpu to /etc/modules and rebuild the initramfs, as I also suggested?

And is there a reason why you're using a non-release kernel? I think trying a stable release kernel version would be a good idea. The buster-backports repository has v5.5.17, which definitely supports your hardware.
--
Thanks again, I will try this. Of course, I wont change to UEFI if not needed.

User avatar
Head_on_a_Stick
Posts: 919
Joined: Sun Mar 17, 2019 3:37 pm

Re: How to replace a GPU driver?

#20 Post by Head_on_a_Stick »

timkb4cq wrote: Tue May 26, 2020 2:06 pm
Head_on_a_Stick wrote: Tue May 26, 2020 1:54 pmAlthough AMD recommend a UEFI installation it is not required for the kernel module to load or for Mesa to support your card.
Depends on the motherboard manufacturer.
Ah, interesting. Thanks for the correction.
mod note: Signature removed, please read the forum rules

Post Reply

Return to “Bugs and Non-Package Requests Forum”