From: Keir Fraser Subject: Re: Will Xen support PCI add-on card for serial ports? Date: Wed, 16 Jul 2008 08:20:37 +0100 Message-ID: References: <9A1462408D6D394C8A7A812E98F00A4D0325A9DB@pdsmsx413.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1069116801==" Return-path: In-Reply-To: <9A1462408D6D394C8A7A812E98F00A4D0325A9DB@pdsmsx413.ccr.corp.intel.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: "Xin, Xiaohui" , 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. --===============1069116801== Content-type: multipart/alternative; boundary="B_3299041239_23049085" > 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_3299041239_23049085 Content-type: text/plain; charset="ISO-8859-1" Content-transfer-encoding: quoted-printable It worked for me, on one particular test machine, by relying on BIOS auto-config of the PCI device, then a one-line patch to dom0 kernel to prevent it from executing ACPI _DIS on the PCI/ISA link. I don=B9t know how generally applicable my approach is. -- Keir On 16/7/08 04:12, "Xin, Xiaohui" wrote: > Thanks. I got it. We have hard coded the iobase and irq in the driver of = Xen, > but it doesn=B9t work. L > =20 > Thanks > Xiaohui > =20 >=20 >=20 > From: Neo Jia [mailto:neojia@gmail.com] > Sent: Wednesday, July 16, 2008 10:29 AM > To: Xin, Xiaohui > Cc: Keir Fraser; > Subject: Re: [Xen-devel] Will Xen support PCI add-on card for serial port= s? > =20 >=20 > That is the only change that I have made. But the dom0 still hang0. >=20 > =20 >=20 > Let me know if you are able to pass that. >=20 > =20 >=20 > Thanks, >=20 > Neo >=20 > --------- >=20 > I would remember that if researchers were not ambitious >=20 > probably today we haven't the technology we are using! >=20 >=20 > On Jul 15, 2008, at 7:20 PM, "Xin, Xiaohui" wrote= : >>=20 >> Hi, Neo, >> We are also interested in the PCI serial card enabling in Xen. >> Will you share some experience here? Do you still do some other effort l= ike >> enable the PCI devices or you just add the command line as you mails sai= d >> before? >> =20 >> Thanks >> Xiaohui >> =20 >>=20 >>=20 >> From: xen-devel-bounces@lists.xensource.com >> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Neo Jia >> Sent: Wednesday, July 16, 2008 5:58 AM >> To: Keir Fraser >> Cc: xen-devel@lists.xensource.co= m >> Subject: Re: [Xen-devel] Will Xen support PCI add-on card for serial por= ts? >> =20 >> Keir, >>=20 >> Just commented out that function call, but it still hangs. >>=20 >> Thanks, >> Neo >>=20 >> On Tue, Jul 15, 2008 at 2:44 PM, Keir Fraser < >> keir.fraser@eu.citrix.com> wrote: >>=20 >> I had to patch dom0 kernel not to disable the serial interrupt line as i= t >> booted. I don't have the patch conveniently to hand unfortunately, but I >> think it was to remove the line 'acpi_ut_evaluate_object(..., "_DIS", ..= .)' >> in drivers/acpi/pci_link.c:acpi_pci_link_add(). >>=20 >> -- Keir >>=20 >>=20 >>=20 >> On 15/7/08 22:20, "Neo Jia" < neojia@gmail.com= > >> wrote: >>=20 >>> Keir, >>>=20 >>> I tried your method with my serial port PCI card and I got the Xen outp= ut >>> 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 Control= ler >>> (rev 01) (prog-if 02 [16550]) >>> Subsystem: LSI Logic / Symbios Logic 2S (16C550 UART) >>> Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- Par= Err- >>> 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 < >>> keir.fraser@eu.citrix.com> wrote: >>> On 13/7/08 01:57, "Neo Jia" < neojia@gmail.co= m> >>> 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 0xc0= 0, >>> 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 >> =20 >>=20 >>=20 --B_3299041239_23049085 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'>It wo= rked for me, on one particular test machine, by relying on BIOS auto-config = of the PCI device, then a one-line patch to dom0 kernel to prevent it from e= xecuting ACPI _DIS on the PCI/ISA link. I don’t know how generally app= licable my approach is.<BR> <BR>  -- Keir<BR> <BR> <BR> On 16/7/08 04:12, "Xin, Xiaohui" <xiaohui.xin@intel.com> wr= ote:<BR> <BR> </SPAN></FONT><BLOCKQUOTE><FONT COLOR=3D"#000080"><FONT SIZE=3D"4"><FONT FACE=3D"= Arial"><SPAN STYLE=3D'font-size:13.0px'>Thanks. I got it. We have hard coded t= he iobase and irq in the driver of Xen, but it doesn’t work. </SPAN></= FONT><SPAN STYLE=3D'font-size:13.0px'><FONT FACE=3D"Wingdings">L<BR> </FONT><FONT FACE=3D"Arial"> <BR> Thanks<BR> Xiaohui<BR>  <BR> </FONT></SPAN></FONT></FONT><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN ST= YLE=3D'font-size:12.0px'> </SPAN></FONT> <P ALIGN=3DCENTER> <FONT SIZE=3D"5"><FONT FACE=3D"Times New Roman"><SPAN STYLE=3D'font-size:16.0px'>= <HR ALIGN=3DCENTER SIZE=3D"2" WIDTH=3D"100%"></SPAN></FONT></FONT> <P> <FONT SIZE=3D"4"><FONT FACE=3D"Tahoma"><SPAN STYLE=3D'font-size:13.0px'><B>From:<= /B> Neo Jia [<a href=3D"mailto:neojia@gmail.com]">mailto:neojia@gmail.com]</a>= <BR> <B>Sent:</B> Wednesday, July 16, 2008 10:29 AM<BR> <B>To:</B> Xin, Xiaohui<BR> <B>Cc:</B> Keir Fraser; <xen-devel@lists.xensource.com><BR> <B>Subject:</B> Re: [Xen-devel] Will Xen support PCI add-on card for serial= ports?<BR> </SPAN></FONT></FONT><FONT SIZE=3D"5"><FONT FACE=3D"Times New Roman"><SPAN STYL= E=3D'font-size:16.0px'> <BR> </SPAN></FONT></FONT><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'fo= nt-size:12.0px'><BR> </SPAN></FONT><FONT SIZE=3D"5"><FONT FACE=3D"Times New Roman"><SPAN STYLE=3D'font= -size:16.0px'>That is the only change that I have made. But the dom0 still h= ang0.<BR> </SPAN></FONT></FONT><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'fo= nt-size:12.0px'><BR> </SPAN></FONT><FONT SIZE=3D"5"><FONT FACE=3D"Times New Roman"><SPAN STYLE=3D'font= -size:16.0px'> <BR> </SPAN></FONT></FONT><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'fo= nt-size:12.0px'><BR> </SPAN></FONT><FONT SIZE=3D"5"><FONT FACE=3D"Times New Roman"><SPAN STYLE=3D'font= -size:16.0px'>Let me know if you are able to pass that.<BR> </SPAN></FONT></FONT><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'fo= nt-size:12.0px'><BR> </SPAN></FONT><FONT SIZE=3D"5"><FONT FACE=3D"Times New Roman"><SPAN STYLE=3D'font= -size:16.0px'> <BR> </SPAN></FONT></FONT><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'fo= nt-size:12.0px'><BR> </SPAN></FONT><FONT SIZE=3D"5"><FONT FACE=3D"Times New Roman"><SPAN STYLE=3D'font= -size:16.0px'>Thanks,<BR> </SPAN></FONT></FONT><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'fo= nt-size:12.0px'><BR> </SPAN></FONT><FONT SIZE=3D"5"><FONT FACE=3D"Times New Roman"><SPAN STYLE=3D'font= -size:16.0px'>Neo<BR> <BR> ---------<BR> </SPAN></FONT></FONT><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'fo= nt-size:12.0px'><BR> </SPAN></FONT><FONT SIZE=3D"5"><FONT FACE=3D"Times New Roman"><SPAN STYLE=3D'font= -size:16.0px'>I would remember that if researchers were not ambitious<BR> </SPAN></FONT></FONT><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'fo= nt-size:12.0px'><BR> </SPAN></FONT><FONT SIZE=3D"5"><FONT FACE=3D"Times New Roman"><SPAN STYLE=3D'font= -size:16.0px'>probably today we haven't the technology we are using!<BR> </SPAN></FONT></FONT><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'fo= nt-size:12.0px'><BR> </SPAN></FONT><FONT SIZE=3D"5"><FONT FACE=3D"Times New Roman"><SPAN STYLE=3D'font= -size:16.0px'><BR> On Jul 15, 2008, at 7:20 PM, "Xin, Xiaohui" <xiaohui.xin@intel= .com> wrote:<BR> </SPAN></FONT></FONT><BLOCKQUOTE><FONT FACE=3D"Verdana, Helvetica, Arial"><SP= AN STYLE=3D'font-size:12.0px'><BR> </SPAN></FONT><FONT COLOR=3D"#000080"><FONT SIZE=3D"4"><FONT FACE=3D"Arial"><SPAN= STYLE=3D'font-size:13.0px'>Hi, Neo,<BR> We are also interested in the PCI serial card enabling in Xen.<BR> Will you share some experience here? Do you still do some other effort like= enable the PCI devices or you just add the command line as you mails said b= efore?<BR>  <BR> Thanks<BR> Xiaohui<BR>  <BR> </SPAN></FONT></FONT></FONT><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN ST= YLE=3D'font-size:12.0px'> </SPAN></FONT> <P ALIGN=3DCENTER> <FONT SIZE=3D"5"><FONT FACE=3D"Times New Roman"><SPAN STYLE=3D'font-size:16.0px'>= <HR ALIGN=3DCENTER SIZE=3D"2" WIDTH=3D"100%"></SPAN></FONT></FONT> <P> <FONT SIZE=3D"4"><FONT FACE=3D"Tahoma"><SPAN STYLE=3D'font-size:13.0px'><B>From:<= /B> xen-devel-bounces@lists.xensource.com [<a href=3D"mailto:xen-devel-bounces= @lists.xensource.com]">mailto:xen-devel-bounces@lists.xensource.com]</a> <B>= On Behalf Of </B>Neo Jia<BR> <B>Sent:</B> Wednesday, July 16, 2008 5:58 AM<BR> <B>To:</B> Keir Fraser<BR> <B>Cc:</B>  <a href=3D"mailto:xen-devel@lists.xensource.com"><mailto:= xen-devel@lists.xensource.com></a> xen-devel@lists.xensource.com<BR> <B>Subject:</B> Re: [Xen-devel] Will Xen support PCI add-on card for serial= ports?<BR> </SPAN></FONT></FONT><FONT SIZE=3D"5"><FONT FACE=3D"Times New Roman"><SPAN STYL= E=3D'font-size:16.0px'> <BR> Keir,<BR> <BR> Just commented out that function call, but it still hangs.<BR> <BR> Thanks,<BR> Neo<BR> </SPAN></FONT></FONT><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'fo= nt-size:12.0px'><BR> </SPAN></FONT><FONT SIZE=3D"5"><FONT FACE=3D"Times New Roman"><SPAN STYLE=3D'font= -size:16.0px'>On Tue, Jul 15, 2008 at 2:44 PM, Keir Fraser < <a href=3D"mai= lto:keir.fraser@eu.citrix.com"><mailto:keir.fraser@eu.citrix.com></a> = keir.fraser@eu.citrix.com> wrote:<BR> </SPAN></FONT></FONT><FONT FACE=3D"Verdana, Helvetica, Arial"><SPAN STYLE=3D'fo= nt-size:12.0px'><BR> I had to patch dom0 kernel not to disable the serial interrupt line as it b= ooted. 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", = ...)' in drivers/acpi/pci_link.c:acpi_pci_link_add().<BR> <FONT COLOR=3D"#888888"><BR>  -- Keir<BR> </FONT><BR> <BR> <BR> On 15/7/08 22:20, "Neo Jia" < <a href=3D"mailto:neojia@gmail.com= "><mailto:neojia@gmail.com></a> 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 < <a href=3D"mailto:keir.fra= ser@eu.citrix.com"><mailto:keir.fraser@eu.citrix.com></a> keir.fraser@= eu.citrix.com> wrote:<BR> On 13/7/08 01:57, "Neo Jia" < <a href=3D"mailto:neojia@gmail.com= "><mailto:neojia@gmail.com></a> 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><BR> </SPAN></FONT><FONT SIZE=3D"5"><FONT FACE=3D"Times New Roman"><SPAN STYLE=3D'font= -size:16.0px'> <BR> </SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE=3D"5"><FONT FACE=3D"Times New Roma= n"><SPAN STYLE=3D'font-size:16.0px'> <BR> <BR> <BR> </SPAN></FONT></FONT></BLOCKQUOTE></BLOCKQUOTE><FONT SIZE=3D"5"><FONT FACE=3D"T= imes New Roman"><SPAN STYLE=3D'font-size:16.0px'><BR> </SPAN></FONT></FONT> </BODY> </HTML> --B_3299041239_23049085-- --===============1069116801== 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 --===============1069116801==--