Josef Vogt
2011-Jan-19 21:00 UTC
[Xen-users] Dedicated nic in domU does not start / Failed to setup GSI
Hi all! I wanted to setup a dedicated nic for mi xen guest, but I can''t get it working. I think this could be a interrupt problem, but I failed to find more info on the web. In my domU, a lspci gets: 00:00.0 Ethernet controller: Davicom Semiconductor, Inc. 21x4x DEC-Tulip compatible 10/100 Ethernet (rev 31) The driver seems to be correctly loaded in domU: root@play1:~# ls -l /sys/bus/pci/devices/0000\:00\:00.0/driver lrwxrwxrwx 1 root root 0 Jan 19 21:39 /sys/bus/pci/devices/0000:00:00.0/driver -> ../../../../bus/pci/drivers/dmfe But the card does not work, these errors pop up: [ 9.160685] ADDRCONF(NETDEV_UP): eth0: link is not ready Listening on LPF/eth0/00:80:ad:04:39:15 Sending on LPF/eth0/00:80:ad:04:39:15 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12 [ 15.157461] eth0: Tx timeout - resetting [ 19.157523] eth0: Tx timeout - resetting [ 23.157586] eth0: Tx timeout - resetting DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9 [ 27.157642] eth0: Tx timeout - resetting ... When using a static address, I can ping this address in domU - so the card seems to work - i just can''t get connection. When using this card in dom0, everything works fine. I''ve tried three different nics from 3 different vendors, but I can''t get it working. The error messages are slightly different, but more or less the same ones. I think i could have something to do with these error messages during boot up of domU (interrupt problem)... debian:~# dmesg | grep GSI | sort -u [ 0.054373] Failed to setup GSI :13, err_code:-22 [ 0.055237] Failed to setup GSI :8, err_code:-22 [ 0.056037] Failed to setup GSI :12, err_code:-22 [ 0.056549] Failed to setup GSI :1, err_code:-22 [ 0.057095] Failed to setup GSI :4, err_code:-22 [ 0.057095] Failed to setup GSI :7, err_code:-22 [ 0.064486] Failed to setup GSI :3, err_code:-22 [ 0.066792] Failed to setup GSI :6, err_code:-22 [ 0.067075] Failed to setup GSI :5, err_code:-22 [ 0.967075] Failed to setup GSI :11, err_code:-22 [ 0.967075] pciback 0000:00:0e.0: PCI INT A -> Link[LNKB] -> GSI 11 (level, low) -> IRQ 11 [ 150.175525] Failed to setup GSI :11, err_code:-22 Thanks for your help! Josef _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Josef Vogt
2011-Jan-19 22:10 UTC
[Xen-users] Dedicated nic in domU does not start / Failed to setup GSI
Hi all! I wanted to setup a dedicated nic for mi xen guest, but I can''t get it working. I think this could be a interrupt problem, but I failed to find more info on the web. In my domU, a lspci gets: 00:00.0 Ethernet controller: Davicom Semiconductor, Inc. 21x4x DEC-Tulip compatible 10/100 Ethernet (rev 31) The driver seems to be correctly loaded in domU: root@play1:~# ls -l /sys/bus/pci/devices/0000\:00\:00.0/driver lrwxrwxrwx 1 root root 0 Jan 19 21:39 /sys/bus/pci/devices/0000:00:00.0/driver -> ../../../../bus/pci/drivers/dmfe But the card does not work, these errors pop up: [ 9.160685] ADDRCONF(NETDEV_UP): eth0: link is not ready Listening on LPF/eth0/00:80:ad:04:39:15 Sending on LPF/eth0/00:80:ad:04:39:15 Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12 [ 15.157461] eth0: Tx timeout - resetting [ 19.157523] eth0: Tx timeout - resetting [ 23.157586] eth0: Tx timeout - resetting DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9 [ 27.157642] eth0: Tx timeout - resetting ... When using a static address, I can ping this address in domU - so the card seems to work - i just can''t get connection. When using this card in dom0, everything works fine. I''ve tried three different nics from 3 different vendors, but I can''t get it working. The error messages are slightly different, but more or less the same ones. I think i could have something to do with these error messages during boot up of domU (interrupt problem)... debian:~# dmesg | grep GSI | sort -u [ 0.054373] Failed to setup GSI :13, err_code:-22 [ 0.055237] Failed to setup GSI :8, err_code:-22 [ 0.056037] Failed to setup GSI :12, err_code:-22 [ 0.056549] Failed to setup GSI :1, err_code:-22 [ 0.057095] Failed to setup GSI :4, err_code:-22 [ 0.057095] Failed to setup GSI :7, err_code:-22 [ 0.064486] Failed to setup GSI :3, err_code:-22 [ 0.066792] Failed to setup GSI :6, err_code:-22 [ 0.067075] Failed to setup GSI :5, err_code:-22 [ 0.967075] Failed to setup GSI :11, err_code:-22 [ 0.967075] pciback 0000:00:0e.0: PCI INT A -> Link[LNKB] -> GSI 11 (level, low) -> IRQ 11 [ 150.175525] Failed to setup GSI :11, err_code:-22 Thanks for your help! Josef _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Josef Vogt
2011-Jan-21 09:04 UTC
[Xen-users] re: Dedicated nic in domU does not start / Failed to setup GSI
Hi again I just installed debian lenny and the problem was gone. The interesting part here is this I think (snip from dmesg): [ 0.489924] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT] [ 0.492000] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 *10 11) [ 0.492000] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 10 *11) [ 0.501782] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 10 *11) [ 0.503584] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 10 11) *9 So no more GSI Problems here... My network card works without any problems in passthrough mode. But in my debian squeeze installation, the problem still exists. So i suppose it''s a bug in the xen-hypvervisor, that was introduced somwhere between version 3.2 and 4.0.1.. What should i do next? File a bugreport in debian or in xen? I''m willing to do further investigation, if you want me to do so! Thanks in advance! Josef _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users