[Bug 202055] Failed to PCI passthrough SSD with SMI SM2262 controller.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.kernel.org/show_bug.cgi?id=202055

--- Comment #11 from Alex (coffmaker@xxxxxxxxx) ---
Rebind to vfio-pci and reset device.
root@localhost /home/alex # echo 0000:06:00.0 | tee
/sys/bus/pci/devices/0000\:06\:00.0/driver/unbind
0000:06:00.0
root@localhost /home/alex # echo 8086 f1a6 | tee
/sys/bus/pci/drivers/vfio-pci/new_id
8086 f1a6
root@localhost /home/alex # echo 0000:06:00.0 | tee
/sys/bus/pci/devices/0000\:06\:00.0/driver/unbind
0000:06:00.0
root@localhost /home/alex # echo 8086 f1a6 | tee
/sys/bus/pci/drivers/nvme/new_id
8086 f1a6
root@localhost /home/alex # echo 1 | teee
/sys/bus/pci/devices/0000:06:00.0/reset
1

At this point got Count=22 as expected with nvme in use.
06:00.0 Non-Volatile memory controller [0108]: Intel Corporation SSD Pro
7600p/760p/E 6100p Series [8086:f1a6] (rev 03) (prog-if 02 [NVM Express])
...
        Capabilities: [b0] MSI-X: Enable+ Count=22 Masked-
                Vector table: BAR=0 offset=00002000
                PBA: BAR=0 offset=00002100
...
        Kernel driver in use: nvme

root@localhost /home/alex # lspci -tvv | grep SSD  
             +-01.1-[06]----00.0  Intel Corporation SSD Pro 7600p/760p/E 6100p
Series

root@localhost /home/alex # setpci -s 00:01.1 BRIDGE_CONTROL 
0010

root@localhost /home/alex # setpci -s 00:01.1 BRIDGE_CONTROL=40:40 && sleep 0.1
&& setpci -s 00:01.1 BRIDGE_CONTROL=0:40 && sleep 1

This time lspci reports Count=16.
        Capabilities: [b0] MSI-X: Enable- Count=16 Masked-
                Vector table: BAR=0 offset=00002000
                PBA: BAR=0 offset=00002100


Rebooted. Rebound to vfio-pci.
root@localhost /home/alex # echo 0000:06:00.0 | tee
/sys/bus/pci/devices/0000\:06\:00.0/driver/unbind
0000:06:00.0
root@localhost /home/alex # echo 8086 f1a6 | tee
/sys/bus/pci/drivers/vfio-pci/new_id
8086 f1a6

At this point before bus reset lspci reports Count=16 as expected

root@localhost /home/alex # setpci -s 00:01.1 BRIDGE_CONTROL=40:40 && sleep 0.1
&& setpci -s 00:01.1 BRIDGE_CONTROL=0:40 && sleep 1

Now lspci still reports Count=16 with vfio-pci in use.
06:00.0 Non-Volatile memory controller [0108]: Intel Corporation SSD Pro
7600p/760p/E 6100p Series [8086:f1a6] (rev 03) (prog-if 02 [NVM Express])
...
        Capabilities: [b0] MSI-X: Enable- Count=16 Masked-
                Vector table: BAR=0 offset=00002000
                PBA: BAR=0 offset=00002100
...
        Kernel driver in use: vfio-pci

-- 
You are receiving this mail because:
You are watching the assignee of the bug.



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux