Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: Users

Debian Squeeze - XEN and PCI Passthrough

 

 

Xen users RSS feed   Index | Next | Previous | View Threaded


mlist at dsb-gmbh

Jul 8, 2012, 8:57 AM

Post #1 of 5 (544 views)
Permalink
Debian Squeeze - XEN and PCI Passthrough

Hi @all,

I tried to give a PCI device to a domU with

module /boot/vmlinuz-3.2.0-0.bpo.2-amd64 ... xen-pciback.hide=(02:01.0)

vai /boot/grub/grub.cfg


The startup of the domU shows this error:

Loading DAHDI hardware modules:
[ 5.475642] dahdi: Telephony Interface Registered on major 196
[ 5.475660] dahdi: Version: 2.6.1
wcb4xxp: [ 5.559401] wcb4xxp 0000:02:01.0: probe called for b4xx...
[ 5.559552] wcb4xxp 0000:02:01.0: enabling device (0000 -> 0003)
[ 5.561039] wcb4xxp 0000:02:01.0: Xen PCI enabling IRQ: 0
[ 5.561039] xen_allocate_pirq: returning irq 0 for gsi 0
[ 5.561039] wcb4xxp 0000:02:01.0: Device has no associated IRQ?
[ 5.561039] wcb4xxp: probe of 0000:02:01.0 failed with error -5
done
Running dahdi_cfg: .


also a lspci shows different to to dom0:

root [at] rz3-t:~# lspci -vv
02:01.0 Non-VGA unclassified device: Digium, Inc. Wildcard B410 quad-BRI card (rev 01)
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Region 0: I/O ports at 2000 [size=8]
Region 1: Memory at ec200000 (32-bit, non-prefetchable) [size=4K]


Thats the output without pciback:

root [at] rz3-xen:~# lspci -vv -s 02:01.0
02:01.0 ISDN controller: Digium, Inc. Wildcard B410 quad-BRI card (rev 01)
Subsystem: Digium, Inc. Wildcard B410 quad-BRI card
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Interrupt: pin A routed to IRQ 7
Region 0: I/O ports at 2000 [size=8]
Region 1: Memory at ec200000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 2
Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)
Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-


May somebody have a hint, what to look for?
Thanks
Daniel


_______________________________________________
Xen-users mailing list
Xen-users [at] lists
http://lists.xen.org/xen-users


esencia at gmail

Jul 8, 2012, 2:59 PM

Post #2 of 5 (496 views)
Permalink
Re: Debian Squeeze - XEN and PCI Passthrough [In reply to]

Hi,

The same ISDN Card in Debian Lenny (with 2.6.22-xen-amd64) and Xen
3.4.3 works well.

module /boot/vmlinuz-2.6.26-2-xen-amd64 root=/dev/sda1 ro
console=tty0 pciback.hide=(02:04.0)(04:00.0) pciback.permissive
pci=nomsi


Try adding pci=nomsi to boot parameters in grub.cfg

More info about the dom0 hardware?



2012/7/8 Daniel Bauer <mlist [at] dsb-gmbh>:
> Hi @all,
>
> I tried to give a PCI device to a domU with
>
> module /boot/vmlinuz-3.2.0-0.bpo.2-amd64 ... xen-pciback.hide=(02:01.0)
>
> vai /boot/grub/grub.cfg
>
>
> The startup of the domU shows this error:
>
> Loading DAHDI hardware modules:
> [ 5.475642] dahdi: Telephony Interface Registered on major 196
> [ 5.475660] dahdi: Version: 2.6.1
> wcb4xxp: [ 5.559401] wcb4xxp 0000:02:01.0: probe called for b4xx...
> [ 5.559552] wcb4xxp 0000:02:01.0: enabling device (0000 -> 0003)
> [ 5.561039] wcb4xxp 0000:02:01.0: Xen PCI enabling IRQ: 0
> [ 5.561039] xen_allocate_pirq: returning irq 0 for gsi 0
> [ 5.561039] wcb4xxp 0000:02:01.0: Device has no associated IRQ?
> [ 5.561039] wcb4xxp: probe of 0000:02:01.0 failed with error -5
> done
> Running dahdi_cfg: .
>
>
> also a lspci shows different to to dom0:
>
> root [at] rz3-t:~# lspci -vv
> 02:01.0 Non-VGA unclassified device: Digium, Inc. Wildcard B410 quad-BRI
> card (rev 01)
> Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
> Stepping- SERR- FastB2B- DisINTx-
> Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR- INTx-
> Region 0: I/O ports at 2000 [size=8]
> Region 1: Memory at ec200000 (32-bit, non-prefetchable) [size=4K]
>
>
> Thats the output without pciback:
>
> root [at] rz3-xen:~# lspci -vv -s 02:01.0
> 02:01.0 ISDN controller: Digium, Inc. Wildcard B410 quad-BRI card (rev 01)
> Subsystem: Digium, Inc. Wildcard B410 quad-BRI card
> Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
> Stepping- SERR+ FastB2B- DisINTx-
> Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> <TAbort- <MAbort- >SERR- <PERR- INTx-
> Interrupt: pin A routed to IRQ 7
> Region 0: I/O ports at 2000 [size=8]
> Region 1: Memory at ec200000 (32-bit, non-prefetchable) [size=4K]
> Capabilities: [40] Power Management version 2
> Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA
> PME(D0+,D1+,D2+,D3hot+,D3cold-)
> Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
>
>
> May somebody have a hint, what to look for?
> Thanks
> Daniel
>
>
> _______________________________________________
> Xen-users mailing list
> Xen-users [at] lists
> http://lists.xen.org/xen-users



--
_____________________________________________

Francisco Javier Funes Nieto [esencia [at] gmail]
CANONIGOS
Servicios Informáticos para PYMES.
Cl. Cruz 2, 1º Oficina 7
Tlf: 958.536759 / 661134556
Fax: 958.521354
GRANADA - 18002

_______________________________________________
Xen-users mailing list
Xen-users [at] lists
http://lists.xen.org/xen-users


mlist at dsb-gmbh

Jul 9, 2012, 1:14 AM

Post #3 of 5 (507 views)
Permalink
Re: Debian Squeeze - XEN and PCI Passthrough [In reply to]

Hi Francisco,

thanks for you reply.


From: "Francisco Javier Funes Nieto"

> The same ISDN Card in Debian Lenny (with 2.6.22-xen-amd64) and Xen
> 3.4.3 works well.
>
> module /boot/vmlinuz-2.6.26-2-xen-amd64 root=/dev/sda1 ro
> console=tty0 pciback.hide=(02:04.0)(04:00.0) pciback.permissive
> pci=nomsi
>
>
> Try adding pci=nomsi to boot parameters in grub.cfg

Done, without success :(

Also changing to vmlinuz-2.6.35-5-xen-amd64 doesn't change anything.


> More info about the dom0 hardware?

It's an Supermicro PDSME+. Intel VT is enabled, but there is no VT-IO!

Ciao
Daniel


> 2012/7/8 Daniel Bauer <mlist [at] dsb-gmbh>:
>> I tried to give a PCI device to a domU with
>>
>> module /boot/vmlinuz-3.2.0-0.bpo.2-amd64 ... xen-pciback.hide=(02:01.0)
>>
>> vai /boot/grub/grub.cfg
>>
>>
>> The startup of the domU shows this error:
>>
>> Loading DAHDI hardware modules:
>> [ 5.475642] dahdi: Telephony Interface Registered on major 196
>> [ 5.475660] dahdi: Version: 2.6.1
>> wcb4xxp: [ 5.559401] wcb4xxp 0000:02:01.0: probe called for b4xx...
>> [ 5.559552] wcb4xxp 0000:02:01.0: enabling device (0000 -> 0003)
>> [ 5.561039] wcb4xxp 0000:02:01.0: Xen PCI enabling IRQ: 0
>> [ 5.561039] xen_allocate_pirq: returning irq 0 for gsi 0
>> [ 5.561039] wcb4xxp 0000:02:01.0: Device has no associated IRQ?
>> [ 5.561039] wcb4xxp: probe of 0000:02:01.0 failed with error -5
>> done
>> Running dahdi_cfg: .
>>
>>
>> also a lspci shows different to to dom0:
>>
>> root [at] rz3-t:~# lspci -vv
>> 02:01.0 Non-VGA unclassified device: Digium, Inc. Wildcard B410 quad-BRI
>> card (rev 01)
>> Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
>> Stepping- SERR- FastB2B- DisINTx-
>> Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
>> <TAbort- <MAbort- >SERR- <PERR- INTx-
>> Region 0: I/O ports at 2000 [size=8]
>> Region 1: Memory at ec200000 (32-bit, non-prefetchable) [size=4K]
>>
>>
>> Thats the output without pciback:
>>
>> root [at] rz3-xen:~# lspci -vv -s 02:01.0
>> 02:01.0 ISDN controller: Digium, Inc. Wildcard B410 quad-BRI card (rev 01)
>> Subsystem: Digium, Inc. Wildcard B410 quad-BRI card
>> Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr-
>> Stepping- SERR+ FastB2B- DisINTx-
>> Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
>> <TAbort- <MAbort- >SERR- <PERR- INTx-
>> Interrupt: pin A routed to IRQ 7
>> Region 0: I/O ports at 2000 [size=8]
>> Region 1: Memory at ec200000 (32-bit, non-prefetchable) [size=4K]
>> Capabilities: [40] Power Management version 2
>> Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA
>> PME(D0+,D1+,D2+,D3hot+,D3cold-)
>> Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
>>
>>
>> May somebody have a hint, what to look for?
>> Thanks
>> Daniel
>>
>>
>> _______________________________________________
>> Xen-users mailing list
>> Xen-users [at] lists
>> http://lists.xen.org/xen-users
>
>
>
> --
> _____________________________________________
>
> Francisco Javier Funes Nieto [esencia [at] gmail]
> CANONIGOS
> Servicios Informáticos para PYMES.
> Cl. Cruz 2, 1º Oficina 7
> Tlf: 958.536759 / 661134556
> Fax: 958.521354
> GRANADA - 18002
>
> _______________________________________________
> Xen-users mailing list
> Xen-users [at] lists
> http://lists.xen.org/xen-users
>
>


_______________________________________________
Xen-users mailing list
Xen-users [at] lists
http://lists.xen.org/xen-users


mlist at dsb-gmbh

Jul 16, 2012, 5:46 AM

Post #4 of 5 (459 views)
Permalink
Re: Debian Squeeze - XEN and PCI Passthrough - SOLVED [In reply to]

From: "Daniel Bauer"
> I tried to give a PCI device to a domU with
>
> module /boot/vmlinuz-3.2.0-0.bpo.2-amd64 ... xen-pciback.hide=(02:01.0)
>
> vai /boot/grub/grub.cfg
>
>
> The startup of the domU shows this error:
>
> Loading DAHDI hardware modules:
> [ 5.475642] dahdi: Telephony Interface Registered on major 196
> [ 5.475660] dahdi: Version: 2.6.1
> wcb4xxp: [ 5.559401] wcb4xxp 0000:02:01.0: probe called for b4xx...
> [ 5.559552] wcb4xxp 0000:02:01.0: enabling device (0000 -> 0003)
> [ 5.561039] wcb4xxp 0000:02:01.0: Xen PCI enabling IRQ: 0
> [ 5.561039] xen_allocate_pirq: returning irq 0 for gsi 0
> [ 5.561039] wcb4xxp 0000:02:01.0: Device has no associated IRQ?
> [ 5.561039] wcb4xxp: probe of 0000:02:01.0 failed with error -5
> done
> Running dahdi_cfg: .
>
>
> also a lspci shows different to to dom0:
>
> root [at] rz3-t:~# lspci -vv
> 02:01.0 Non-VGA unclassified device: Digium, Inc. Wildcard B410 quad-BRI card (rev 01)
> Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
> Status: Cap- 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
> Region 0: I/O ports at 2000 [size=8]
> Region 1: Memory at ec200000 (32-bit, non-prefetchable) [size=4K]
>
>
> Thats the output without pciback:
>
> root [at] rz3-xen:~# lspci -vv -s 02:01.0
> 02:01.0 ISDN controller: Digium, Inc. Wildcard B410 quad-BRI card (rev 01)
> Subsystem: Digium, Inc. Wildcard B410 quad-BRI card
> Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
> Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
> Interrupt: pin A routed to IRQ 7
> Region 0: I/O ports at 2000 [size=8]
> Region 1: Memory at ec200000 (32-bit, non-prefetchable) [size=4K]
> Capabilities: [40] Power Management version 2
> Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)
> Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-


I've plugged in a second PCI card, it's not important which one. After this there is an IRQ in the domU and everything works fine. I
don't understand this behaviour ...

Daniel


_______________________________________________
Xen-users mailing list
Xen-users [at] lists
http://lists.xen.org/xen-users


jep at obrien-pifer

Jul 16, 2012, 7:18 AM

Post #5 of 5 (478 views)
Permalink
Re: Debian Squeeze - XEN and PCI Passthrough - SOLVED [In reply to]

> I've plugged in a second PCI card, it's not important which one. After this there is an IRQ in the domU and everything works fine. I
> don't understand this behaviour ...
>

I don't have a solution or much to add except that I have a xen system
on sles11sp1 that has the same problem. I'm passing through several PCI
devices. I could not get the first device to pass through until I added
another PCI device before it.

Very strange.xen bug maybe?

James


_______________________________________________
Xen-users mailing list
Xen-users [at] lists
http://lists.xen.org/xen-users

Xen users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.