[vfio-users] Creative X-Fi XtremeGamer PCI Sound Card Audio Bugs

Sebastien Mercier pro.sebastienmercier at gmail.com
Tue Feb 23 10:02:45 UTC 2016


Hi,

I have a Windows 10 VM up and running with GPU Passthrought and i would
like to passthrought my Creative X-Fi XtremeGamer sound card into the VM
cuz I want to use ASIO in Windows.
I have the Realtek Onboard Audio for Linux.

*using lspci -nnk :*
_________________________________________________________________________________________________________________

00:00.0 Host bridge [0600]: Intel Corporation 4th Gen Core Processor DRAM
Controller [8086:0c00] (rev 06)
Subsystem: ASUSTeK Computer Inc. Device [1043:8534]
Kernel driver in use: hsw_uncore
00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v3/4th Gen Core
Processor PCI Express x16 Controller [8086:0c01] (rev 06)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:02.0 VGA compatible controller [0300]: Intel Corporation Xeon E3-1200
v3/4th Gen Core Processor Integrated Graphics Controller [8086:0412] (rev
06)
Subsystem: ASUSTeK Computer Inc. Device [1043:8534]
Kernel driver in use: i915
Kernel modules: i915
00:14.0 USB controller [0c03]: Intel Corporation 9 Series Chipset Family
USB xHCI Controller [8086:8cb1]
Subsystem: ASUSTeK Computer Inc. Device [1043:8534]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
00:16.0 Communication controller [0780]: Intel Corporation 9 Series Chipset
Family ME Interface #1 [8086:8cba]
Subsystem: ASUSTeK Computer Inc. Device [1043:8534]
Kernel driver in use: mei_me
Kernel modules: mei_me
00:19.0 Ethernet controller [0200]: Intel Corporation Ethernet Connection
(2) I218-V [8086:15a1]
Subsystem: ASUSTeK Computer Inc. Device [1043:85c4]
Kernel driver in use: e1000e
Kernel modules: e1000e
00:1a.0 USB controller [0c03]: Intel Corporation 9 Series Chipset Family
USB EHCI Controller #2 [8086:8cad]
Subsystem: ASUSTeK Computer Inc. Device [1043:8534]
Kernel driver in use: ehci-pci
Kernel modules: ehci_pci
00:1b.0 Audio device [0403]: Intel Corporation 9 Series Chipset Family HD
Audio Controller [8086:8ca0]
Subsystem: ASUSTeK Computer Inc. Device [1043:8653]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation 9 Series Chipset Family PCI
Express Root Port 1 [8086:8c90] (rev d0)
Kernel driver in use: pcieport
Kernel modules: shpchp
00:1c.3 PCI bridge [0604]: Intel Corporation 82801 PCI Bridge [8086:244e]
(rev d0)
00:1d.0 USB controller [0c03]: Intel Corporation 9 Series Chipset Family
USB EHCI Controller #1 [8086:8ca6]
Subsystem: ASUSTeK Computer Inc. Device [1043:8534]
Kernel driver in use: ehci-pci
Kernel modules: ehci_pci
00:1f.0 ISA bridge [0601]: Intel Corporation 9 Series Chipset Family Z97
LPC Controller [8086:8cc4]
Subsystem: ASUSTeK Computer Inc. Device [1043:8534]
Kernel driver in use: lpc_ich
Kernel modules: lpc_ich
00:1f.2 SATA controller [0106]: Intel Corporation 9 Series Chipset Family
SATA Controller [AHCI Mode] [8086:8c82]
Subsystem: ASUSTeK Computer Inc. Device [1043:8534]
Kernel driver in use: ahci
Kernel modules: ahci
00:1f.3 SMBus [0c05]: Intel Corporation 9 Series Chipset Family SMBus
Controller [8086:8ca2]
Subsystem: ASUSTeK Computer Inc. Device [1043:8534]
Kernel modules: i2c_i801
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM204 [GeForce
GTX 970] [10de:13c2] (rev a1)
Subsystem: ZOTAC International (MCO) Ltd. Device [19da:1366]
Kernel driver in use: vfio-pci
Kernel modules: nouveau
01:00.1 Audio device [0403]: NVIDIA Corporation GM204 High Definition Audio
Controller [10de:0fbb] (rev a1)
Subsystem: ZOTAC International (MCO) Ltd. Device [19da:1366]
Kernel driver in use: vfio-pci
Kernel modules: snd_hda_intel
03:00.0 PCI bridge [0604]: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI
Bridge [1b21:1080] (rev 04)
04:01.0 Multimedia audio controller [0401]: Creative Labs SB X-Fi
[1102:0005]
Subsystem: Creative Labs Device [1102:0031]
Kernel driver in use: vfio-pci
Kernel modules: snd_ctxfi
_________________________________________________________________________________________________________________

So my sound card now use the vfio-pci driver but when I start the VM, it
makes bips, cliky and white noise sounds randomly.
When I move a space on terminator on the host and the VM is running, it
make white noise. Sounds weird.

*vfio-bind systemd service :*

_________________________________________________________________________________________________________________

[Unit]
Description=Binds devices to vfio-pci
After=syslog.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=-/usr/bin/vfio-bind 0000:01:00.0 0000:01:00.1 0000:04:01.0

[Install]
WantedBy=multi-user.target
_________________________________________________________________________________________________________________


*GRUB Config :*

_________________________________________________________________________________________________________________

GRUB_DEFAULT=0
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet pcie_acs_override=downstream
intel_iommu=on pci-stub.ids=10de:13c2,10de:0fbb,1102:0005"
GRUB_CMDLINE_LINUX=""
_________________________________________________________________________________________________________________

Windows detects the card, I installed the official drivers, Device Manager
says it works correctly...

So my question is :

Do I need to passthrought  ASMedia Technology Inc. ASM1083/1085 PCIe to PCI
Bridge ? I tried it but nothin...
Can we Passthrought PCI Cards and do I need to Passthrought something else ?
Or it is just a bug with this card ?

Thanks for answers.

-- 
*Sebastien Mercier*

*Mail *: pro.sebastienmercier at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20160223/9ddae2b8/attachment.htm>


More information about the vfio-users mailing list