[CentOS-virt] PCI Passthrough not working

Sun Jul 3 11:34:17 UTC 2016
Francis Greaves <francis at choughs.net>

From: "Francis Greaves" <francis at choughs.net> 
To: "Francis Greaves" <francis at choughs.net>, "centos-virt" <centos-virt at centos.org> 
Sent: Sunday, 3 July, 2016 11:19:49 
Subject: Re: [CentOS-virt] PCI Passthrough not working 

Further to my last post, I have removed the xen-pciback module from the Dom0 kernel, and reloaded it as 
modprobe xen-pciback passthrough=1 

I now have the PCI device on the DomU matching the Dom0 Device 
usb usb1: SerialNumber: 0000:00:1a.0 
instead of 0000:00:00.0 

However I now have this error 

ehci_hcd 0000:00:1a.0: Unlink after no-IRQ? Controller is probably using the wrong IRQ. 

does this give a clue as to what is going on? 

Many thanks 
Francis 

More information: 
In the Dom0 I get this when booting the DomU, even with irwpoll in the DomU kernel line 

xen_pciback: xen-pciback[0000:00:1a.0] IRQ line is not shared with other domains. Turning ISR off 
Jul 03 11:31:23 antares.fsoft.nnet kernel: irq 18: nobody cared (try booting with the "irqpoll" option) 
Jul 03 11:31:23 antares.fsoft.nnet kernel: CPU: 0 PID: 0 Comm: swapper/0 Not tainted 3.18.34-20.el7.x86_64 #1 
Jul 03 11:31:23 antares.fsoft.nnet kernel: Hardware name: Dell Inc. PowerEdge T430/0975F3, BIOS 1.5.4 10/05/2015 
Jul 03 11:31:23 antares.fsoft.nnet kernel: 0000000000000000 ffff8803bc603d88 ffffffff81653783 ffff8803b223e400 
Jul 03 11:31:23 antares.fsoft.nnet kernel: ffff8803b223e48c ffff8803bc603db8 ffffffff810c6776 ffff8803bc613340 
Jul 03 11:31:23 antares.fsoft.nnet kernel: ffff8803b223e400 0000000000000012 0000000000000000 ffff8803bc603e08 
Jul 03 11:31:23 antares.fsoft.nnet kernel: Call Trace: 
Jul 03 11:31:23 antares.fsoft.nnet kernel: <IRQ> [<ffffffff81653783>] dump_stack+0x64/0x82 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff810c6776>] __report_bad_irq+0x36/0xd0 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff810c6c86>] note_interrupt+0x226/0x270 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff813e71cc>] ? add_interrupt_randomness+0x3c/0x1f0 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff810c43ec>] handle_irq_event_percpu+0xcc/0x1e0 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff810c453b>] handle_irq_event+0x3b/0x60 

Message from syslogd at antares at Jul 3 11:31:23 ... 
kernel:Disabling IRQ #18 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff810c709a>] handle_fasteoi_irq+0x7a/0x130 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff810c394b>] generic_handle_irq+0x2b/0x40 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff813a2102>] evtchn_fifo_handle_events+0x162/0x170 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff8139efb0>] __xen_evtchn_do_upcall+0x50/0x90 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff813a0d67>] xen_evtchn_do_upcall+0x37/0x50 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff8165c05e>] xen_do_hypervisor_callback+0x1e/0x40 
Jul 03 11:31:23 antares.fsoft.nnet kernel: <EOI> [<ffffffff810013aa>] ? xen_hypercall_sched_op+0xa/0x20 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff810013aa>] ? xen_hypercall_sched_op+0xa/0x20 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff8100b330>] ? xen_safe_halt+0x10/0x20 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff8101ea94>] ? default_idle+0x24/0xf0 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff8101f49f>] ? arch_cpu_idle+0xf/0x20 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff810adc92>] ? cpu_startup_entry+0x312/0x3e0 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff816445c7>] ? rest_init+0x77/0x80 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff81d77130>] ? start_kernel+0x4d0/0x4dd 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff81d76a50>] ? set_init_arg+0x55/0x55 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff81d765ee>] ? x86_64_start_reservations+0x2a/0x2c 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff81d7a7cc>] ? xen_start_kernel+0x5a9/0x5b5 
Jul 03 11:31:23 antares.fsoft.nnet kernel: handlers: 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffff814b0f50>] usb_hcd_irq 
Jul 03 11:31:23 antares.fsoft.nnet kernel: [<ffffffffa050d3e0>] xen_pcibk_guest_interrupt [xen_pciback] 
Jul 03 11:31:23 antares.fsoft.nnet kernel: Disabling IRQ #18 

========================================================================= 

does that help? 
Francis 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-virt/attachments/20160703/43f93abb/attachment-0006.html>