LS,
I am trying to passthrough onboard audio
lspci -v
34:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller
Subsystem: ASRock Incorporation Starship/Matisse HD Audio Controller
Flags: fast devsel, IRQ 11
Memory at df500000 (32-bit, non-prefetchable) [disabled] [size=32K]
Capabilities: [48] Vendor Specific Information: Len=08 <?>
Capabilities: [50] Power Management version 3
Capabilities: [64] Express Endpoint, MSI 00
Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [150] Advanced Error Reporting
Capabilities: [2a0] Access Control Services
Capabilities: [370] Transaction Processing Hints
Kernel driver in use: vfio-pci
Kernel modules: snd_hda_intel
CPU: AMD Ryzen 9 3950x
Mobo: ASrock x570 Creator (Latest bios 2.10, SR-IOV, IOMMU, ACS, PCIe ARI enabled in settings)
Memory: 4 x Kingston KSM26ED8/16ME (ECC)" (64 GB total)
I have gone through the steps on:
https://pve.proxmox.com/wiki/Pci_passthrough#PCI_EXPRESS_PASSTHROUGH
and
https://pve.proxmox.com/wiki/PCI(e)_Passthrough (perhaps these pages could be merged?)
root@pve:~# find /sys/kernel/iommu_groups/ -type l
/sys/kernel/iommu_groups/45/devices/0000:34:00.4
There is only 1 device in group 45
GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on"
added all modules. blacklist snd_hda_intel in
/etc/modprobe.d/blacklist.conf
(so not sure why it is still listed above in kernel modules)
reboot
root@pve:~# dmesg | grep -e DMAR -e IOMMU -e AMD-Vi
[ 0.635056] pci 0000:00:00.2: AMD-Vi: IOMMU performance counters supported
[ 0.644218] pci 0000:00:00.2: AMD-Vi: Found IOMMU cap 0x40
[ 0.644218] pci 0000:00:00.2: AMD-Vi: Extended features (0x58f77ef22294ade):
[ 0.644220] AMD-Vi: Interrupt remapping enabled
[ 0.644220] AMD-Vi: Virtual APIC enabled
[ 0.644220] AMD-Vi: X2APIC enabled
[ 0.644300] AMD-Vi: Lazy IO/TLB flushing enabled
[ 0.645447] perf/amd_iommu: Detected AMD IOMMU #0 (2 banks, 4 counters/bank).
starting VM fails with the following line in syslog
pve kernel: vfio-pci 0000:34:00.4: not ready 16383ms after FLR; waiting
And then some time later the system reboots. and freezes at Loading initial ramdisk finally continues.
Now lspc -v no longer lists 34:00.4 and a hard reboot is the only way to get it listed again.
VM config:
agent: 1
balloon: 0
bios: ovmf
bootdisk: ide0
cores: 16
efidisk0: local-lvm:vm-101-disk-1,size=128K
hostpci0: 34:00.4,pcie=1,rombar=0
ide0: local-lvm:vm-101-disk-0,size=32G
ide2: local:iso/VBX4B-NW47T-TWXK8-9M4VG-KTRBD.ISO,media=cdrom
machine: q35
memory: 32768
name: win2k19
net0: e1000=EE:60:FD6:F7:B1,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
scsihw: virtio-scsi-pci
smbios1: uuid=950732ad-a153-491d-8dc1-f875daf9b702
sockets: 1
vmgenid: af47eb69-6bc6-48ea-8582-6ea382d10b40
Can anyone please help out getting audio to passthrough?
Kind regards
I am trying to passthrough onboard audio
lspci -v
34:00.4 Audio device: Advanced Micro Devices, Inc. [AMD] Starship/Matisse HD Audio Controller
Subsystem: ASRock Incorporation Starship/Matisse HD Audio Controller
Flags: fast devsel, IRQ 11
Memory at df500000 (32-bit, non-prefetchable) [disabled] [size=32K]
Capabilities: [48] Vendor Specific Information: Len=08 <?>
Capabilities: [50] Power Management version 3
Capabilities: [64] Express Endpoint, MSI 00
Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [150] Advanced Error Reporting
Capabilities: [2a0] Access Control Services
Capabilities: [370] Transaction Processing Hints
Kernel driver in use: vfio-pci
Kernel modules: snd_hda_intel
CPU: AMD Ryzen 9 3950x
Mobo: ASrock x570 Creator (Latest bios 2.10, SR-IOV, IOMMU, ACS, PCIe ARI enabled in settings)
Memory: 4 x Kingston KSM26ED8/16ME (ECC)" (64 GB total)
I have gone through the steps on:
https://pve.proxmox.com/wiki/Pci_passthrough#PCI_EXPRESS_PASSTHROUGH
and
https://pve.proxmox.com/wiki/PCI(e)_Passthrough (perhaps these pages could be merged?)
root@pve:~# find /sys/kernel/iommu_groups/ -type l
/sys/kernel/iommu_groups/45/devices/0000:34:00.4
There is only 1 device in group 45
GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on"
added all modules. blacklist snd_hda_intel in
/etc/modprobe.d/blacklist.conf
(so not sure why it is still listed above in kernel modules)
reboot
root@pve:~# dmesg | grep -e DMAR -e IOMMU -e AMD-Vi
[ 0.635056] pci 0000:00:00.2: AMD-Vi: IOMMU performance counters supported
[ 0.644218] pci 0000:00:00.2: AMD-Vi: Found IOMMU cap 0x40
[ 0.644218] pci 0000:00:00.2: AMD-Vi: Extended features (0x58f77ef22294ade):
[ 0.644220] AMD-Vi: Interrupt remapping enabled
[ 0.644220] AMD-Vi: Virtual APIC enabled
[ 0.644220] AMD-Vi: X2APIC enabled
[ 0.644300] AMD-Vi: Lazy IO/TLB flushing enabled
[ 0.645447] perf/amd_iommu: Detected AMD IOMMU #0 (2 banks, 4 counters/bank).
starting VM fails with the following line in syslog
pve kernel: vfio-pci 0000:34:00.4: not ready 16383ms after FLR; waiting
And then some time later the system reboots. and freezes at Loading initial ramdisk finally continues.
Now lspc -v no longer lists 34:00.4 and a hard reboot is the only way to get it listed again.
VM config:
agent: 1
balloon: 0
bios: ovmf
bootdisk: ide0
cores: 16
efidisk0: local-lvm:vm-101-disk-1,size=128K
hostpci0: 34:00.4,pcie=1,rombar=0
ide0: local-lvm:vm-101-disk-0,size=32G
ide2: local:iso/VBX4B-NW47T-TWXK8-9M4VG-KTRBD.ISO,media=cdrom
machine: q35
memory: 32768
name: win2k19
net0: e1000=EE:60:FD6:F7:B1,bridge=vmbr0,firewall=1
numa: 0
ostype: win10
scsihw: virtio-scsi-pci
smbios1: uuid=950732ad-a153-491d-8dc1-f875daf9b702
sockets: 1
vmgenid: af47eb69-6bc6-48ea-8582-6ea382d10b40
Can anyone please help out getting audio to passthrough?
Kind regards