PVE9 GPU AMD RX 9060 XT passthrough issue : KVM Freeze

flotho

Well-Known Member
Sep 3, 2012
87
4
73
Hi Everyone,

I'm facing an issue with a GPU passthrough.

I have to say that it has worked before we've lost the internet . Therefore, I restart from scratch and followed multiples sources :

Here are my confs :
  • pve-manager/9.2.32/60a22e26e411402f (running kernel: 7.0.14-30-pve)
  • content of the cmdline :
    Code:
    BOOT_IMAGE=/boot/vmlinuz-7.0.14-30-pve root=/dev/mapper/pve-root ro quiet amd_iommu=on relax_rmrr iommu=pt initcall_blacklist=sysfb_init intremap=no_x2apic_optout
  • Blacklist amdgpu and radeon
  • vfio pci looks correctly used :
    1795565669457.png
  • In a dedicated modprobe file I have :
    Code:
    options vfio-pci ids=1002:7590,1002:ab40
  • Qemu conf file :
    Code:
    bios: ovmfboot: order=scsi0;ide2;net0
    cores: 10
    cpu: host,flags=+aes;+pdpe1gb
    efidisk0: local-lvm:vm-100-disk-0,efitype=4m,ms-cert=2023k,pre-enrolled-keys=1,size=4M
    hostpci0: 0000:26:00.0,pcie=1
    ide2: none,media=cdrom
    kvm: 1
    machine: q35,viommu=virtio
    memory: 72512
    meta: creation-qemu=11.0.3,ctime=1792575068
    name: LLM-Ollama
    net0: virtio=BC:24:11:7F:D3:EF,bridge=vmbr0,firewall=1
    numa: 1
    onboot: 1
    ostype: l26
    protection: 1
    scsi0: local-lvm:vm-100-disk-1,iothread=1,size=64G
    scsihw: virtio-scsi-single
  • HEre are the groups of the different devices :
    1795565594733.png
Now when starting the VM I still have this issue :
Code:
error writing '1' to '/sys/bus/pci/devices/0000:26:00.0/reset': Inappropriate ioctl for device
failed to reset PCI device '0000:26:00.0', but trying to continue as not all devices need a reset
kvm: vfio: Cannot reset device 0000:26:00.0, depends on group 22 which is not owned.
kvm: vfio: Cannot reset device 0000:26:00.0, depends on group 22 which is not owned.

I also tried to pass all functions on the assignation of the PCI
I had a look to other posts like :
I also found another resources but I'm sure I'm missing a detail.

Any help would be appreciated !
 
Hi,

I also tried to pass all functions on the assignation of the PCI
what did the log say when you passed through both functions?

also the dmesg/journal of that would be interesting.

Sadly passing through consumer hardware is always a gamble, it's simply not designed to work this way by the vendors (this includes mainboard as well as gpus)