Passtrough AMD Ryzen 7 5825U

So, if VM1010 is using the VBIOS of the GPU, please also provide the configuration of that VM. Otherwise, it won’t be useful.
1.jpg

Please modify the file /etc/modules to the following lines:
Then modify /etc/modprobe.d/vfio.conf to:
done


Then you need to post the VM configuration where you want to set up the passthrough.
2.jpg

ls -l /etc/modprobe.d/
Code:
total 12
-rw-r--r-- 1 root root 154 Mar 24 01:13 amd64-microcode-blacklist.conf
-rw-r--r-- 1 root root 377 Mar 30 21:58 pve-blacklist.conf
-rw-r--r-- 1 root root 119 Apr  1 14:56 vfio.conf
-rw-r--r-- 1 root root   0 Mar 29 21:17 vfio.conf~

cat /etc/modprobe.d/pve-blacklist.conf
Code:
# This file contains a list of modules which are not supported by Proxmox VE

# nvidiafb see bugreport https://bugzilla.proxmox.com/show_bug.cgi?id=701
blacklist nvidiafb
blacklist amdgpu
blacklist snd_hda_intel
blacklist amdgpu
blacklist snd_hda_intel
blacklist amdgpu
blacklist snd_hda_intel
blacklist amdgpu
blacklist snd_hda_intel
blacklist amdgpu
blacklist snd_hda_intel

lspci -nnk from Proxmox
Code:
06: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:1636]
        Kernel driver in use: vfio-pci
        Kernel modules: amdgpu
06: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

lspci -nnk from VM
I don't get how can i run this. For the windows VM, the console shows Windows, there is no shell to run the command
 
Okay... I still don't get where you want to set up your passthrough.

Windows 10?
Linux?

I need the config from the VM you want to passthrough.
Use the following command:

Code:
cat /etc/pve/qemu-server/{Your VM ID}

In `/etc/modprobe.d/pve-blacklist.conf`, you have

blacklist amdgpu
blacklist snd_hda_intel

listed six times. Remove all duplicates and keep only one entry each:

Code:
blacklist amdgpu  
blacklist snd_hda_intel

Then, ensure that your VM configuration file `/etc/pve/qemu-server/{Your VM ID}` contains the following lines:
(You need to adjust these values to match your hardware and VM configuration.)

Code:
hostpci0: 0000:05:00.0,romfile=vbios_5825U.bin,x-vga=1  
hostpci1: 0000:05:00.1,romfile=AMDGopDriver-5825U.rom

After making these changes, restart your system.

Your `lspci -nnk` output:
`Kernel driver in use: vfio-pci`
looks good.

I think the only problem is the `pve-blacklist.conf` and the `/etc/pve/qemu-server/{Your VM ID}` file not having the correct BIOS.

After this, everything should work fine.

I think you want to passthrough the AGPU to Linux because you wrote:
ls /dev/dri/
ls: cannot access '/dev/dri/': No such file or directory

That is not a Windows command; it's a Linux command.

So, to be clear, do you want to set this up in Windows or Linux?

Only show the config from the VM you want to passthrough...

PS: i will send you a PM
 
I hastily created an issue in the github repo, maybe i should have posted here first. I have everything working, but no output on HDMI - so close I can taste it.

on Host:

ls -l /etc/modprobe.d

Code:
-rw-r--r-- 1 root root 154 Mar 23 18:13 amd64-microcode-blacklist.conf
-rw-r--r-- 1 root root 126 Apr 14 12:07 blacklist.conf
-rw-r--r-- 1 root root 127 Jul 12  2023 dkms.conf
-rw-r--r-- 1 root root  26 Apr 13 16:48 kvm.conf
-rw-r--r-- 1 root root 172 Nov 20 03:39 pve-blacklist.conf
-rw-r--r-- 1 root root 149 Apr 13 16:50 vfio.conf

cat /etc/modprobe.d/blacklist.conf

Code:
blacklist amdgpu
blacklist radeon
blacklist snd_hda_intel

cat /etc/modprobe.d/kvm.conf
Code:
options kvm ignore_msrs=1

cat /etc/modprobe.d/pve-blacklist.conf
Code:
# This file contains a list of modules which are not supported by Proxmox VE
# nvidiafb see bugreport https://bugzilla.proxmox.com/show_bug.cgi?id=701
blacklist nvidiafb

cat /etc/modprobe.d/vfio.conf
Code:
options vfio-pci ids=1002:15e7,1002:1637 disable_vga=1
softdep amdgpu pre: vfio-pci
softdep snd_hda_intel pre: vfio-pci
softdep radeon pre: vfio-pci

lspci -nnk
Code:
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

VM Config:

Code:
agent: 1
bios: ovmf
boot: order=scsi0;net0;ide2
cores: 2
cpu: x86-64-v2-AES
efidisk0: local-lvm:vm-103-disk-1,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:05:00.0,romfile=vbios_5825U.bin,x-vga=1
hostpci1: 0000:05:00.1,romfile=AMDGopDriver-5825U.rom
ide2: none,media=cdrom
machine: q35
memory: 8000
meta: creation-qemu=9.2.0,ctime=1744152613
name: LinuxMintCinnamon
net0: virtio=BC:24:11:78:0C:A9,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: local-lvm:vm-103-disk-0,iothread=1,size=64G
scsihw: virtio-scsi-single
smbios1: uuid=56bef630-3618-47db-82e1-e791beb1e1fc
sockets: 4
spice_enhancements: foldersharing=1,videostreaming=all
usb0: host=3302:29b7
vga: none
vmgenid: 66c6b3ca-0e3a-4a14-aa01-d3eae23c132e

on VM:

kemp@LinuxMint:~$ ls /dev/dri

Code:
by-path  card0  renderD128

kemp@LinuxMint:~$ lspci -nnk | grep AMD -A 3
Code:
06:10.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: amdgpu
    Kernel modules: amdgpu
06:11.0 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: snd_hda_intel
    Kernel modules: snd_hda_intel
06:12.0 Ethernet controller [0200]: Red Hat, Inc. Virtio network device [1af4:1000]
 
Last edited:
I don’t have an external monitor, so unfortunately I can’t test it myself—sorry!

From what I’ve seen in other forums, VGA output should be set to:
none

As for my system, I don’t have the following files on the host:

Code:
/etc/modprobe.d/blacklist.conf 

/etc/modprobe.d/kvm.conf

Output of ls -l /etc/modprobe.d/
Code:
-rw-r--r-- 1 root root 154 Aug 22  2024 amd64-microcode-blacklist.conf

-rw-r--r-- 1 root root 127 Jul 12  2023 dkms.conf

-rw-r--r-- 1 root root 214 Jan 28 10:46 pve-blacklist.conf

-rw-r--r-- 1 root root 148 Jan 28 10:03 vfio.conf


Contents of /etc/modprobe.d/pve-blacklist.conf:
Code:
blacklist amdgpu

blacklist snd_hda_intel


I believe it doesn’t really matter which .conf file the blacklist entries are placed in—it should work the same either way.

.....

sorry can not help you more