Here is a promised guide, I have personally repeated it 2 times with positive results, but I give no guarantees that it will work in every case.
Purpose of this guide is to showcase 3D rendering capabilities of V540 under Linux OS, in a most straightforward way, using freely available software.
It is possible that hardware compatibility is very limited, and this guide might not work on a notably different system.
Hardware prerequisites:
-AM4 platform, preferably with Zen2 CPU or newer.
-AM5 is confirmed as working.
-No info about running on modern Intel platform.
-2nd GPU with a display connected, preferably with AMD Polaris chip or newer.
-Intel integrated or ARC might work, not tested.
-Nvidia probably won't work.
-Cooling solution for V540 that will keep it from overheating for at least 30 mins.
BIOS setup:
-Above 4G decoding - on
-Resizable BAR - off
-IOMMU - off
-SR-IOV - off (thanks PixelButts)
Software:
Kubuntu 22.04 LTS Desktop (other desktop managers might work, not tested)
AMD Linux drivers installer
1. OS installation
Choose following options during setup:
-Minimal
-Download updates
-3rd party drivers (optional)
-log in automatically
2. Basic OS setup
Open Konsole and run:
Code:
sudo -i
apt update
apt upgrade
reboot
3. Downgrade kernel to GA
Open Konsole and run:
Code:
sudo -i
apt install linux-image-generic linux-headers-5.15.0-92-generic
apt remove --purge linux-generic-hwe-22.04 linux-hwe-6* linux-modules-6* linux-modules-extra-6*
update-grub
reboot
Make sure packages image and headers are of the same version.
Select No at the dialog screen.
5.15 kernel without drivers will throw errors after reboot and look frozen, be patient.
4. Install drivers
Open Konsole and run: (or use Firefox to download AMD installer)
Code:
cd ~/Downloads
wget https://repo.radeon.com/amdgpu-install/23.30.3/ubuntu/jammy/amdgpu-install_5.7.50703-1_all.deb
sudo apt install ./amdgpu-install_5.7.50703-1_all.deb
sudo amdgpu-install --usecase=dkms,graphics,multimedia
sudo reboot
OS will probably hang during shutdown, hard reset here.
5. Attaching virtual display
Open Konsole and run:
Look for Navi12 Display controller and note the bus id of 1st GPU (lower number)
Like:
Code:
0a:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 12 [Radeon Pro 5600M / V520] (rev c1)
0d:00.0 Display controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 12 [Radeon Pro 5600M / V520] (rev c1)
0a:00.0 is our <bus id>
Code:
sudo -i
nano /etc/default/grub
Look for GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" and add after splash amdgpu.virtual_display=0000:<bus id>,1
It should look like this:
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amdgpu.virtual_display=0000:0a:00.0,1"
Ctrl+X then y
6. Install tools
Open Konsole and run:
Code:
sudo apt install switcheroo-control lm-sensors
switcherooctl
Your display card should be listed as Device:0 and two Navi12 devices should be listed as 1 and 2.
Code:
switcherooctl -g 1 glxgears -info
Scroll up in the console window, GL_RENDERER should say 7360:c1 (navi12 etc.)
Close the window with gears or Ctrl+C in the console.
7. Benchmarks
Download via Firefox Unigine Heaven and Superposition.
Open Downloads folder, right click on each installer, open Properties and in Permissions tab click checkbox: Is Executable
Double click installer and Execute
In Konsole run:
Code:
cd ~/Downloads/Unigine_Heaven-4.0/
switcherooctl -g 1 ./heaven
Open new Konsole window and run
Now run Heaven benchmark, preferably not fullscreen and with lower resolution. In console with running sensors You should see that one of navi12 GPUs and your display are under load. You can also compare FPS when running Heaven directly, without switcherooctl.
Same procedure with running Superposition.
I hope this guide will help someone and I'm curious if it's even valid on Intel platform.