Re: sr-iov issues, reset_hw() failed with error -100

From: Eric Joyner <erj_at_freebsd.org>
Date: Mon, 22 Feb 2016 18:51:23 +0000
Did you do an ifconfig up on ix1 before loading the VF driver?

On Sat, Feb 20, 2016 at 11:57 AM Ultima <ultima1252_at_gmail.com> wrote:

>  Decided to do some testing with iovctl to see how sr-iov is coming along.
> Currently when adding the vf's there are a couple errors, and the network
> no longer function after iovctl is started. My guess is the reset_hw() call
> that is failing. Any ideas why this call would fail? I tested this on both
> ports, ix1 is detached and unused for this test, however inserting a cable
> results in an unusable port. iovctl -Dd ix1 removes the vf's, however
> functionality is still not restored without a system restart.
>
> FreeBSD S1 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r295736: Wed Feb 17
> 21:17:28 EST 2016     root_at_S1:/usr/obj/usr/src/sys/MYKERNEL  amd64
>
> /boot/loader.conf
> hw.ix.num_queues="4"
>
> /etc/iovctl.conf
> PF {
>         device : ix1;
>         num_vfs : 31;
> }
>
> DEFAULT {
>         passthrough : true;
> }
> VF-0 {
>         passthrough : false;
> }
> VF-1 {
>         passthrough : false;
> }
>
> # iovctl -C -f /etc/iovctl.conf
>
> dmesg
> ixv0: <Intel(R) PRO/10GbE Virtual Function Network Driver, Version -
> 1.4.6-k> at device 0.129 on pci12
> ixv0: Using MSIX interrupts with 2 vectors
> ixv0: ixgbe_reset_hw() failed with error -100
> device_attach: ixv0 attach returned 5
> ixv0: <Intel(R) PRO/10GbE Virtual Function Network Driver, Version -
> 1.4.6-k> at device 0.131 on pci12
> ixv0: Using MSIX interrupts with 2 vectors
> ixv0: ixgbe_reset_hw() failed with error -100
> device_attach: ixv0 attach returned 5
> pci12: <network, ethernet> at device 0.133 (no driver attached)
> pci12: <network, ethernet> at device 0.135 (no driver attached)
> pci12: <network, ethernet> at device 0.137 (no driver attached)
> pci12: <network, ethernet> at device 0.139 (no driver attached)
> pci12: <network, ethernet> at device 0.141 (no driver attached)
> pci12: <network, ethernet> at device 0.143 (no driver attached)
> pci12: <network, ethernet> at device 0.145 (no driver attached)
> pci12: <network, ethernet> at device 0.147 (no driver attached)
> pci12: <network, ethernet> at device 0.149 (no driver attached)
> pci12: <network, ethernet> at device 0.151 (no driver attached)
> pci12: <network, ethernet> at device 0.153 (no driver attached)
> pci12: <network, ethernet> at device 0.155 (no driver attached)
> pci12: <network, ethernet> at device 0.157 (no driver attached)
> pci12: <network, ethernet> at device 0.159 (no driver attached)
> pci12: <network, ethernet> at device 0.161 (no driver attached)
> pci12: <network, ethernet> at device 0.163 (no driver attached)
> pci12: <network, ethernet> at device 0.165 (no driver attached)
> pci12: <network, ethernet> at device 0.167 (no driver attached)
> pci12: <network, ethernet> at device 0.169 (no driver attached)
> pci12: <network, ethernet> at device 0.171 (no driver attached)
> pci12: <network, ethernet> at device 0.173 (no driver attached)
> pci12: <network, ethernet> at device 0.175 (no driver attached)
> pci12: <network, ethernet> at device 0.177 (no driver attached)
> pci12: <network, ethernet> at device 0.179 (no driver attached)
> pci12: <network, ethernet> at device 0.181 (no driver attached)
> pci12: <network, ethernet> at device 0.183 (no driver attached)
> pci12: <network, ethernet> at device 0.185 (no driver attached)
> pci12: <network, ethernet> at device 0.187 (no driver attached)
> pci12: <network, ethernet> at device 0.189 (no driver attached)
>
> pciconf -lv
> ix1_at_pci0:129:0:1:       class=0x020000 card=0x00001458 chip=0x15288086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'Ethernet Controller 10-Gigabit X540-AT2'
>     class      = network
>     subclass   = ethernet
> none155_at_pci0:129:0:129: class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> none156_at_pci0:129:0:131: class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt0_at_pci0:129:0:133:    class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt1_at_pci0:129:0:135:    class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt2_at_pci0:129:0:137:    class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt3_at_pci0:129:0:139:    class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt4_at_pci0:129:0:141:    class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt5_at_pci0:129:0:143:    class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt6_at_pci0:129:0:145:    class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt7_at_pci0:129:0:147:    class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt8_at_pci0:129:0:149:    class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt9_at_pci0:129:0:151:    class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt10_at_pci0:129:0:153:   class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt11_at_pci0:129:0:155:   class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt12_at_pci0:129:0:157:   class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt13_at_pci0:129:0:159:   class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt14_at_pci0:129:0:161:   class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt15_at_pci0:129:0:163:   class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt16_at_pci0:129:0:165:   class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt17_at_pci0:129:0:167:   class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt18_at_pci0:129:0:169:   class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt19_at_pci0:129:0:171:   class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt20_at_pci0:129:0:173:   class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt21_at_pci0:129:0:175:   class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt22_at_pci0:129:0:177:   class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt23_at_pci0:129:0:179:   class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt24_at_pci0:129:0:181:   class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt25_at_pci0:129:0:183:   class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt26_at_pci0:129:0:185:   class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt27_at_pci0:129:0:187:   class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
> ppt28_at_pci0:129:0:189:   class=0x020000 card=0x00001458 chip=0x15158086
> rev=0x01 hdr=0x00
>     vendor     = 'Intel Corporation'
>     device     = 'X540 Ethernet Controller Virtual Function'
>     class      = network
>     subclass   = ethernet
>
> Ultima
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>
Received on Mon Feb 22 2016 - 19:26:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:03 UTC