From: Keir Fraser Subject: Re: Will Xen support PCI add-on card for serial ports? Date: Tue, 15 Jul 2008 22:44:39 +0100 Message-ID: References: <5d649bdb0807151420l280faadck7d12853123b6ccea@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0306574409==" Return-path: In-Reply-To: <5d649bdb0807151420l280faadck7d12853123b6ccea@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Neo Jia Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --===============0306574409== Content-type: multipart/alternative; boundary="B_3299006682_22969444" > This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --B_3299006682_22969444 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable I had to patch dom0 kernel not to disable the serial interrupt line as it booted. I don=B9t have the patch conveniently to hand unfortunately, but I think it was to remove the line =8Cacpi_ut_evaluate_object(..., =B3_DIS=B2, ...)=B9 in drivers/acpi/pci_link.c:acpi_pci_link_add(). -- Keir On 15/7/08 22:20, "Neo Jia" wrote: > Keir, >=20 > I tried your method with my serial port PCI card and I got the Xen output= from > it. But the Dom0 hangs later. Is there anyway to debug it? >=20 > 14 serial --unit=3D0 --speed=3D115200 --word=3D8 --parity=3Dno --stop=3D1 > 15 terminal --timeout=3D50 serial console >=20 > 21 title Xen 3.3 VT-d (unstable) > 22 root (hd0,0) > 23 kernel /xen-3.3.gz iommu=3D0 com1=3D115200,8n1,0x1070,11 console=3Dcom1= ,vga > 24 module /vmlinuz-2.6.18.8-xen ro > 25 module /initrd-2.6.18.8-xen.img >=20 > 04:00.0 Serial controller: NetMos Technology PCI 9835 Multi-I/O Controlle= r > (rev 01) (prog-if 02 [16550]) > Subsystem: LSI Logic / Symbios Logic 2S (16C550 UART) > Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParEr= r- > Stepping- SERR- FastB2B- > Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=3Dmedium >TAbort- > SERR- Interrupt: pin A routed to IRQ 11 > Region 0: I/O ports at 1070 [size=3D8] > Region 1: I/O ports at 1068 [size=3D8] > Region 2: I/O ports at 1060 [size=3D8] > Region 3: I/O ports at 1058 [size=3D8] > Region 4: I/O ports at 1050 [size=3D8] > Region 5: I/O ports at 1040 [size=3D16] >=20 > Thanks, > Neo >=20 > On Mon, Jul 14, 2008 at 12:10 AM, Keir Fraser > wrote: >> On 13/7/08 01:57, "Neo Jia" wrote: >>=20 >>> > Thanks a lot! Could you give an Xen command line example? >>=20 >> com1=3D115200,8n1,0xc00,5 console=3Dcom1 >>=20 >> ...would set up console output at 115200 baud, 8 data bits, no parity, 1 >> stop bit. The I/O-port base for the UART has been determined to be 0xc00= , >> and the UART interrupts on IRQ line 5. >>=20 >>> > BTW, do you know which PCI card can be supported by Xen? >>=20 >> No, I only have experience (and even that only a little) with unbranded >> generic PCI serial cards. >>=20 >> -- Keir >>=20 >>=20 >=20 >=20 --B_3299006682_22969444 Content-type: text/html; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable Re: [Xen-devel] Will Xen support PCI add-on card for serial ports?</= TITLE> </HEAD> <BODY> <FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'font-size:12.0px'>I had= to patch dom0 kernel not to disable the serial interrupt line as it booted.= I don’t have the patch conveniently to hand unfortunately, but I thin= k it was to remove the line ‘acpi_ut_evaluate_object(..., “_DIS&= #8221;, ...)’ in drivers/acpi/pci_link.c:acpi_pci_link_add().<BR> <BR>  -- Keir<BR> <BR> On 15/7/08 22:20, "Neo Jia" <neojia@gmail.com> wrote:<BR> <BR> </SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYL= E=3D'font-size:12.0px'>Keir,<BR> <BR> I tried your method with my serial port PCI card and I got the Xen output f= rom it. But the Dom0 hangs later. Is there anyway to debug it?<BR> <BR>  14 serial --unit=3D0 --speed=3D115200 --word=3D8 --parity=3Dno --stop=3D1<BR>  15 terminal --timeout=3D50 serial console<BR> <BR>  21 title Xen 3.3 VT-d (unstable)<BR>  22     root (hd0,0)<BR>  23     kernel /xen-3.3.gz iommu=3D0 com1=3D115200,8n1= ,0x1070,11 console=3Dcom1,vga<BR>  24     module /vmlinuz-2.6.18.8-xen ro<BR>  25     module /initrd-2.6.18.8-xen.img<BR> <BR> 04:00.0 Serial controller: NetMos Technology PCI 9835 Multi-I/O Controller = (rev 01) (prog-if 02 [16550])<BR>         Subsystem: LSI Logic / Symb= ios Logic 2S (16C550 UART)<BR>         Control: I/O+ Mem+ BusMaste= r- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-<BR>         Status: Cap- 66MHz- UDF- Fa= stB2B+ ParErr- DEVSEL=3Dmedium >TAbort- <TAbort- <MAbort- >SERR- &= lt;PERR-<BR>         Interrupt: pin A routed to = IRQ 11<BR>         Region 0: I/O ports at 1070= [size=3D8]<BR>         Region 1: I/O ports at 1068= [size=3D8]<BR>         Region 2: I/O ports at 1060= [size=3D8]<BR>         Region 3: I/O ports at 1058= [size=3D8]<BR>         Region 4: I/O ports at 1050= [size=3D8]<BR>         Region 5: I/O ports at 1040= [size=3D16]<BR> <BR> Thanks,<BR> Neo<BR> <BR> On Mon, Jul 14, 2008 at 12:10 AM, Keir Fraser <keir.fraser@eu.citrix.com= > wrote:<BR> </SPAN></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYL= E=3D'font-size:12.0px'>On 13/7/08 01:57, "Neo Jia" <neojia@gmail.= com> wrote:<BR> <BR> > Thanks a lot! Could you give an Xen command line example?<BR> <BR> com1=3D115200,8n1,0xc00,5 console=3Dcom1<BR> <BR> ...would set up console output at 115200 baud, 8 data bits, no parity, 1<BR= > stop bit. The I/O-port base for the UART has been determined to be 0xc00,<B= R> and the UART interrupts on IRQ line 5.<BR> <BR> > BTW, do you know which PCI card can be supported by Xen?<BR> <BR> No, I only have experience (and even that only a little) with unbranded<BR> generic PCI serial cards.<BR> <FONT COLOR=3D"#888888"><BR>  -- Keir<BR> <BR> <BR> </FONT></SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><S= PAN STYLE=3D'font-size:12.0px'><BR> <BR> </SPAN></FONT></BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STY= LE=3D'font-size:12.0px'><BR> </SPAN></FONT> </BODY> </HTML> --B_3299006682_22969444-- --===============0306574409== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0306574409==--