Passtrough AMD Ryzen 7 5825U

alex-fl

New Member
Apr 16, 2024
1
0
1
Hi everyone,

I recently bought a small home server and installed Proxmox. On one of the VMs (Debian), I’m running Jellyfin and I want to passthrough the AMD Ryzen 7 5825U IGPU.

The Wi-Fi passthrough worked without any issues, and I think it's because it has its own IOMMU group.

Proxmox Node Information:​

  • OS Release:
Code:
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"

  • Proxmox Version:
Code:
pve-manager/8.3.0/c1689ccb1065a83b (running kernel: 6.8.12-4-pve)

Hardware Information:​

  • AMD IGPU (Barcelo) and WI-FI
lspci -nn | grep -e 'AMD/ATI'
lspci -nn | grep -e 'Wi-Fi'
Code:
04:00.0 Network controller [0280]: Intel Corporation Wi-Fi 6 AX200 [8086:2723] (rev 1a)
        Subsystem: Intel Corporation Wi-Fi 6 AX200NGW [8086:0084]
        Kernel driver in use: vfio-pci
        Kernel modules: iwlwifi
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Barcelo [1002:15e7] (rev c1)
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Barcelo [1002:0123]
        Kernel driver in use: vfio-pci
        Kernel modules: amdgpu
05:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller [1002:1637]
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller [1002:1637]
        Kernel driver in use: vfio-pci
        Kernel modules: snd_hda_intel



GRUB Configuration:
cat /etc/default/grub
Code:
GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet iommu=pt"
#GRUB_CMDLINE_LINUX="pcie_acs_override=downstream,multifunction"

  • dmesg | grep -e DMAR -e IOMMU
Code:
[    0.372637] pci 0000:00:00.2: AMD-Vi: IOMMU performance counters supported
[    0.405945] perf/amd_iommu: Detected AMD IOMMU #0 (2 banks, 4 counters/bank).

  • dmesg | grep 'remapping'
Code:
[    0.373616] AMD-Vi: Interrupt remapping enabled





VFIO Modules:
cat /etc/modules
Code:
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

VFIO Config:
cat /etc/modprobe.d/vfio.conf
Code:
softdep amdgpu pre: vfio-pci
softdep snd_hda_intel pre: vfio-pci
softdep iwlwifi pre: vfio-pci
options vfio-pci ids=8086:2723,1002:15e7,1002:1637



VM Configuration:
cat /etc/pve/qemu-server/1010.conf
Code:
#scsi1%3A data%3Avm-1010-disk-0,backup=0,iothread=1,size=5000G
agent: 1
args: -cpu 'host,-hypervisor,kvm=off'
bios: ovmf
boot: order=ide2;scsi1;scsi0
cores: 16
cpu: host
hostpci0: 0000:05:00.0,pcie=1,romfile=vbios_5825U_org.bin,x-vga=1
hostpci1: 0000:05:00.1,pcie=1,romfile=AMDGopDriver_5800H.rom
ide2: none,media=cdrom
machine: q35,viommu=virtio
memory: 16384
meta: creation-qemu=9.0.2,ctime=1731457697
name: Docker-Server
net0: virtio=BC:24:11:86:9D:56,bridge=vmbr1,firewall=1
numa: 1
onboot: 1
ostype: l26
scsi0: local-lvm:vm-1010-disk-1,iothread=1,size=218942668
scsi1: local-lvm:vm-1010-disk-0,iothread=1,size=100G
scsi2: data:vm-1010-disk-0,iothread=1,size=5000G
scsihw: virtio-scsi-single
smbios1: uuid=5aa91c0a-f654-4fa8-a3d0-0513aead97a3
sockets: 1
unused3: local-lvm:vm-1010-disk-3
vga: qxl
vmgenid: 401c533f-d810-41ec-bf4e-6bb2e539e9e2

Debian VM

cat /etc/os-release
Code:
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"

uname -r
Code:
6.1.0-27-amd64


  • Error Logs (journalctl -b)
Code:
Nov 30 03:16:41 docker-server kernel: smpboot: CPU0: AMD Ryzen 7 5825U with Radeon Graphics (family: 0x19, model: 0x50, ste\
pping: 0x0)
Nov 30 03:16:41 docker-server kernel: AMD-Vi: AMD IOMMUv2 functionality not available on this system - This is not a bug.
Nov 30 03:16:41 docker-server kernel: smpboot: CPU0: AMD Ryzen 7 5825U with Radeon Graphics (family: 0x19, model: 0x50, ste\
pping: 0x0)
Nov 30 03:55:55 docker-server kernel: amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/green_sardine_asd.bin
Nov 30 03:55:55 docker-server kernel: amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/green_sardine_ta.bin
Nov 30 03:55:55 docker-server kernel: amdgpu 0000:01:00.0: amdgpu: PSP runtime database doesn't exist
Nov 30 03:55:55 docker-server kernel: amdgpu 0000:01:00.0: amdgpu: PSP runtime database doesn't exist
Nov 30 03:55:55 docker-server kernel: amdgpu 0000:01:00.0: firmware: direct-loading firmware amdgpu/green_sardine_vcn.bin
Nov 30 03:55:55 docker-server kernel: [drm] Found VCN firmware Version ENC: 1.23 DEC: 8 VEP: 0 Revision: 1
Nov 30 03:55:55 docker-server kernel: amdgpu 0000:01:00.0: amdgpu: Will use PSP to load VCN firmware
Nov 30 03:55:55 docker-server kernel: Huh? What family is it: 0x19?!
Nov 30 03:55:56 docker-server systemd[1]: etc-machine\x2did.mount: Deactivated successfully.
Nov 30 03:55:58 docker-server kernel: [drm] reserve 0x400000 from 0xf41f800000 for PSP TMR
Nov 30 03:56:01 docker-server kernel: [drm] psp gfx command UNKNOWN CMD(0x0) failed and response status is (0x0)
Nov 30 03:56:01 docker-server kernel: [drm:psp_hw_start [amdgpu]] *ERROR* PSP load tmr failed!
Nov 30 03:56:01 docker-server kernel: [drm:psp_hw_init [amdgpu]] *ERROR* PSP firmware loading failed
Nov 30 03:56:01 docker-server kernel: [drm:amdgpu_device_fw_loading [amdgpu]] *ERROR* hw_init of IP block <psp> failed -22
Nov 30 03:56:01 docker-server kernel: amdgpu 0000:01:00.0: amdgpu: amdgpu_device_ip_init failed
Nov 30 03:56:01 docker-server kernel: amdgpu 0000:01:00.0: amdgpu: Fatal error during GPU init
Nov 30 03:56:01 docker-server kernel: amdgpu 0000:01:00.0: amdgpu: amdgpu: finishing device.



  • lspci -v
Code:
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Barcelo (rev c1) (prog-if 00 [VGA controller])
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Barcelo
        Physical Slot: 0
        Flags: fast devsel, IRQ 16, IOMMU group 11
        .......

        Kernel modules: amdgpu

02:00.0 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
        Physical Slot: 0-2
        Flags: bus master, fast devsel, latency 0, IRQ 57, IOMMU group 12
        .....

        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel


Issue:​

I am encountering an error when trying to initialize the GPU device on the Debian VM. The error logs indicate issues with loading the PSP firmware, specifically the PSP runtime database and PSP firmware loading failures.

Interestingly, the IGPU passthrough works fine in a Windows VM, but I haven't been able to get it working in Debian.

Has anyone faced this issue or have suggestions for resolving it? Any help would be greatly appreciated!
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!