unable to pass usb controller through to VM


jpimlott

Recommended Posts

I ran the command listed on passing a pcie card to a vm. It is a 7 port usb 3.0 pcie 1x adapter.

It works and usb devices plugged in can be pass to a VM.

When I try to pass the entire card through then it does not work.

The usb card shows up on the VM config screen is checked.

It is iomm group 19

 

 

This is the command in syslinux

label unRAID OS

  menu default

  kernel /bzimage

  append vfio-pci.ids=1106:3483  pcie_acs_override=downstream initrd=/bzroot

 

 

 

 

root@Tower:~# for usb_ctrl in $(find /sys/bus/usb/devices/usb* -maxdepth 0 -type l); do pci_path="$(dirname "$(realpath "${usb_ctrl}")")"; echo "Bus $(cat "${usb_ctrl}/busnum") --> $(basename $pci_path) (IOMMU group $(basename $(realpath $pci_path/iommu_group)))"; lsusb -s "$(cat "${usb_ctrl}/busnum"):"; echo; done

Bus 1 --> 0000:00:14.0 (IOMMU group 4)

Bus 001 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse

Bus 001 Device 003: ID 0781:5406 SanDisk Corp. Cruzer Micro U3

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 

Bus 2 --> 0000:00:14.0 (IOMMU group 4)

Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

 

Bus 3 --> 0000:04:00.0 (IOMMU group 17)

Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 

Bus 4 --> 0000:04:00.0 (IOMMU group 17)

Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

 

Bus 5 --> 0000:07:00.0 (IOMMU group 19)

Bus 005 Device 007: ID 0619:0104 Seiko Instruments, Inc. SLP-200N Driver

Bus 005 Device 006: ID 046d:c018 Logitech, Inc. Optical Wheel Mouse

Bus 005 Device 005: ID 04f2:0112 Chicony Electronics Co., Ltd KU-8933 Keyboard with PS/2 Mouse port

Bus 005 Device 004: ID 2109:2813 VIA Labs, Inc.

Bus 005 Device 003: ID 03f0:6c11 Hewlett-Packard Photosmart C4480

Bus 005 Device 002: ID 2109:3431 VIA Labs, Inc. Hub

Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 

Bus 6 --> 0000:07:00.0 (IOMMU group 19)

Bus 006 Device 002: ID 2109:0813 VIA Labs, Inc.

Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

 

 

 

 

root@Tower:~# for iommu_group in $(find /sys/kernel/iommu_groups/ -maxdepth 1 -mindepth 1 -type d);do echo "IOMMU group $(basename "$iommu_group")"; for device in $(\ls -1 "$iommu_group"/devices/); do if [[ -e "$iommu_group"/devices/"$device"/reset ]]; then echo -n "[RESET]"; fi; echo -n $'\t';lspci -nns "$device"; done; done

IOMMU group 17

[RESET] 04:00.0 USB controller [0c03]: ASMedia Technology Inc. ASM1142 USB 3.1 Host Controller [1b21:1242]

IOMMU group 7

[RESET] 00:1b.0 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Root Port #17 [8086:a167] (rev f1)

IOMMU group 15

[RESET] 02:00.0 RAID bus controller [0104]: Marvell Technology Group Ltd. MV64460/64461/64462 System Controller, Revision B [11ab:6485] (rev 01)

IOMMU group 5

        00:16.0 Communication controller [0780]: Intel Corporation Sunrise Point-H CSME HECI #1 [8086:a13a] (rev 31)

IOMMU group 13

[RESET] 00:1f.6 Ethernet controller [0200]: Intel Corporation Ethernet Connection (2) I219-V [8086:15b8] (rev 31)

IOMMU group 3

[RESET] 00:02.0 VGA compatible controller [0300]: Intel Corporation HD Graphics 530 [8086:1912] (rev 06)

IOMMU group 11

[RESET] 00:1d.0 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #9 [8086:a118] (rev f1)

IOMMU group 1

        00:01.0 PCI bridge [0604]: Intel Corporation Skylake PCIe Controller (x16) [8086:1901] (rev 07)

IOMMU group 18

        05:00.0 PCI bridge [0604]: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge [1b21:1080] (rev 04)

IOMMU group 8

[RESET] 00:1c.0 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #1 [8086:a110] (rev f1)

IOMMU group 16

[RESET] 03:00.0 RAID bus controller [0104]: Marvell Technology Group Ltd. 88SE9485 SAS/SATA 6Gb/s controller [1b4b:9485] (rev c3)

IOMMU group 6

        00:17.0 SATA controller [0106]: Intel Corporation Sunrise Point-H SATA controller [AHCI mode] [8086:a102] (rev 31)

IOMMU group 14

        01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GK208 [GeForce GT 710B] [10de:128b] (rev a1)

        01:00.1 Audio device [0403]: NVIDIA Corporation GK208 HDMI/DP Audio Controller [10de:0e0f] (rev a1)

IOMMU group 4

        00:14.0 USB controller [0c03]: Intel Corporation Sunrise Point-H USB 3.0 xHCI Controller [8086:a12f] (rev 31)

IOMMU group 12

        00:1f.0 ISA bridge [0601]: Intel Corporation Sunrise Point-H LPC Controller [8086:a145] (rev 31)

        00:1f.2 Memory controller [0580]: Intel Corporation Sunrise Point-H PMC [8086:a121] (rev 31)

        00:1f.4 SMBus [0c05]: Intel Corporation Sunrise Point-H SMBus [8086:a123] (rev 31)

IOMMU group 2

        00:01.1 PCI bridge [0604]: Intel Corporation Skylake PCIe Controller (x8) [8086:1905] (rev 07)

IOMMU group 10

[RESET] 00:1c.5 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #6 [8086:a115] (rev f1)

IOMMU group 0

        00:00.0 Host bridge [0600]: Intel Corporation Skylake Host Bridge/DRAM Registers [8086:191f] (rev 07)

IOMMU group 19

[RESET] 07:00.0 USB controller [0c03]: VIA Technologies, Inc. VL805 USB 3.0 Host Controller [1106:3483] (rev 01)

IOMMU group 9

[RESET] 00:1c.2 PCI bridge [0604]: Intel Corporation Sunrise Point-H PCI Express Root Port #3 [8086:a112] (rev f1)

 

Where do I go from here?

 

 

Link to comment

Running into a similar issue. I'm stuck at TianoCore and VM is unresponsive.

 

I tried both through the flash and manually in the XML, separate tests not at same time.

 

    <hostdev mode='subsystem' type='pci' managed='yes'>

      <driver name='vfio'/>

      <source>

        <address domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>

      </source>

    </hostdev>

 

I've attached diagnostics for those smarter than me, and a screenshot of my VM from VNC

unraid-box-diagnostics-20161230-1939.zip

tianocore.PNG.d1d9f07b680e9fa5a6ffa94b66d6b42f.PNG

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.