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

Re: [Xen-users] Problem with mISDN and HFC-Cards in Asterisk-DomU



Hey!

That worked great! But I had to append dom0_mem=512M to the Dom0 
kernel-bootparameters, also.

Thanks for your help,
Dennis

Am Donnerstag, 4. Oktober 2007 schrieb sven waeyenbergh:
> Dennis,
>
> I had similar problems with my ivtv-based TV cards.
> Sometimes pci card drivers loaded fine, sometimes not, usually when lots of
> other domU's were running.
>
> Solution (for me) was to:
> -  add the following to the domU config file
>    extra = "root=/dev/hda1 iommu=soft swiotlb=force"
> - assign at least 312MB to the domU (any lower than that, and the domU
> became unstable, do not know why)
>
> since i did that, it has been running stable
>
> Hope it helps,
> Sven
>
> On 10/3/07, Dennis Petschull <dennis.petschull@xxxxxx> wrote:
> > Hello,
> >
> > I am having problems, getting my asterisk-domU to work properly. It
> > consists
> > of the following components:
> >
> > - Debian Etch under Xen-3.1 with a 2.6.18-kernel
> > - Asterisk 1.2.24
> > - mISDN-1.1.5
> >
> > I have 2 HFC-ISDN-cards, which I pass through to the Asterisk-DomU in
> > permissive mode. This is working fine.
> > The strange problem is, that the two HFC-ISDN-cards are not beeing
> > initialized
> > by the mISDN-driver if there are more than 3 other domUs up and running.
> >
> > I get the following error message:
> > HFC-PCI: Error allocating memory for FIFO!
> > FATAL: Error inserting hfcpci (/lib/modules/2.6.18-xenU/extra/hfcpci.ko):
> > No
> > such device
> >
> > If you look into the mISDN source-code you will find the following
> > snippet of
> > code in /drivers/isdn/hardware/mISDN/hfc_pci.c, which produces the above
> > error:
> >
> >         /* Allocate memory for FIFOS */
> >         /* the memory needs to be on a 32k boundary within the first 4G
> > */ pci_set_dma_mask(dev_hfcpci, 0xFFFF8000);
> >         buffer = pci_alloc_consistent(dev_hfcpci, 0x8000, &hc->
> > hw.dmahandle);
> >         /* We silently assume the address is okay if nonzero */
> >         if(!buffer) {
> >                 printk(KERN_WARNING "HFC-PCI: Error allocating memory for
> > FIFO!\n");
> >                 return 1;
> >         }
> >
> >
> > But what is even more strange is the following:
> > As far as I can see, mISDN will also not initialize the HFC-cards in the
> > asterisk domU if I have not started all the other domUs at least once.
> > Than I
> > have to shut down one of the other domUs, initialize the mISDN drivers,
> > and
> > restart the other domU again.
> >
> > Just in case it might help to solve the problem, I will post the output
> > of lspci -vv in the case where mISDN CAN initialize the cards and in the
> > case where it CANNOT. Here it comes:
> >
> > mISDN CAN initialize the cards:
> >
> > asterisk:~# lspci -vv
> > 01:07.0 Network controller: Cologne Chip Designs GmbH ISDN network
> > controller
> > [HFC-PCI] (rev 02)
> >         Subsystem: Cologne Chip Designs GmbH ISDN Board
> >         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> > ParErr-
> > Stepping- SERR- FastB2B-
> >         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> > <TAbort- <MAbort- >SERR- <PERR-
> >         Latency: 16 (4000ns max)
> >         Interrupt: pin A routed to IRQ 19
> >         Region 0: I/O ports at a400 [disabled] [size=8]
> >         Region 1: Memory at f4004000 (32-bit, non-prefetchable)
> > [size=256] Capabilities: [40] Power Management version 1
> >                 Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA
> > PME(D0-,D1-,D2-,D3hot-,D3cold-)
> >                 Status: D0 PME-Enable- DSel=0 DScale=0 PME+
> >
> > 01:08.0 Network controller: Cologne Chip Designs GmbH ISDN network
> > controller
> > [HFC-PCI] (rev 02)
> >         Subsystem: Cologne Chip Designs GmbH ISDN Board
> >         Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> > ParErr-
> > Stepping- SERR- FastB2B-
> >         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> > <TAbort- <MAbort- >SERR- <PERR-
> >         Latency: 16 (4000ns max)
> >         Interrupt: pin A routed to IRQ 18
> >         Region 0: I/O ports at a800 [disabled] [size=8]
> >         Region 1: Memory at f4005000 (32-bit, non-prefetchable)
> > [size=256] Capabilities: [40] Power Management version 1
> >                 Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA
> > PME(D0-,D1-,D2-,D3hot-,D3cold-)
> >                 Status: D0 PME-Enable- DSel=0 DScale=0 PME+
> >
> >
> > mISDN CANNOT initialize the cards:
> >
> > asterisk:~# lspci -vv
> > 01:07.0 Network controller: Cologne Chip Designs GmbH ISDN network
> > controller
> > [HFC-PCI] (rev 02)
> >         Subsystem: Cologne Chip Designs GmbH ISDN Board
> >         Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop-
> > ParErr-
> > Stepping- SERR- FastB2B-
> >         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> > <TAbort- <MAbort- >SERR- <PERR-
> >         Latency: 16 (4000ns max)
> >         Interrupt: pin A routed to IRQ 19
> >         Region 0: I/O ports at a400 [size=8]
> >         Region 1: Memory at f4004000 (32-bit, non-prefetchable)
> > [size=256] Capabilities: [40] Power Management version 1
> >                 Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA
> > PME(D0-,D1-,D2-,D3hot-,D3cold-)
> >                 Status: D0 PME-Enable- DSel=0 DScale=0 PME+
> >
> > 01:08.0 Network controller: Cologne Chip Designs GmbH ISDN network
> > controller
> > [HFC-PCI] (rev 02)
> >         Subsystem: Cologne Chip Designs GmbH ISDN Board
> >         Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop-
> > ParErr-
> > Stepping- SERR- FastB2B-
> >         Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort-
> > <TAbort- <MAbort- >SERR- <PERR-
> >         Interrupt: pin A routed to IRQ 18
> >         Region 0: I/O ports at a800 [disabled] [size=8]
> >         Region 1: Memory at f4005000 (32-bit, non-prefetchable)
> > [disabled] [size=256]
> >         Capabilities: [40] Power Management version 1
> >                 Flags: PMEClk- DSI+ D1+ D2+ AuxCurrent=0mA
> > PME(D0-,D1-,D2-,D3hot-,D3cold-)
> >                 Status: D0 PME-Enable- DSel=0 DScale=0 PME+
> >
> >
> > Has anyone ever encountered such a strange problem? Does anyone know how
> > to
> > solve this problem?
> >
> > Thanks!
> >
> > Greetings,
> > Dennis
> >
> > _______________________________________________
> > Xen-users mailing list
> > Xen-users@xxxxxxxxxxxxxxxxxxx
> > http://lists.xensource.com/xen-users



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.