From: "Neo Jia" Subject: Re: Will Xen support PCI add-on card for serial ports? Date: Tue, 15 Jul 2008 14:58:12 -0700 Message-ID: <5d649bdb0807151458q41e9689vdb4d5e56a8e20cb4@mail.gmail.com> References: <5d649bdb0807151420l280faadck7d12853123b6ccea@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1015890370==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============1015890370== Content-Type: multipart/alternative; boundary="----=_Part_20138_10146383.1216159092766" ------=_Part_20138_10146383.1216159092766 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Keir, Just commented out that function call, but it still hangs. Thanks, Neo On Tue, Jul 15, 2008 at 2:44 PM, Keir Fraser wrote: > 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 > think it was to remove the line 'acpi_ut_evaluate_object(..., "_DIS", ...)' > in drivers/acpi/pci_link.c:acpi_pci_link_add(). > > -- Keir > > > On 15/7/08 22:20, "Neo Jia" wrote: > > Keir, > > 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? > > 14 serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1 > 15 terminal --timeout=50 serial console > > 21 title Xen 3.3 VT-d (unstable) > 22 root (hd0,0) > 23 kernel /xen-3.3.gz iommu=0 com1=115200,8n1,0x1070,11 > console=com1,vga > 24 module /vmlinuz-2.6.18.8-xen ro > 25 module /initrd-2.6.18.8-xen.img > > 04:00.0 Serial controller: NetMos Technology PCI 9835 Multi-I/O Controller > (rev 01) (prog-if 02 [16550]) > Subsystem: LSI Logic / Symbios Logic 2S (16C550 UART) > Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- > Stepping- SERR- FastB2B- > Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- > SERR- Interrupt: pin A routed to IRQ 11 > Region 0: I/O ports at 1070 [size=8] > Region 1: I/O ports at 1068 [size=8] > Region 2: I/O ports at 1060 [size=8] > Region 3: I/O ports at 1058 [size=8] > Region 4: I/O ports at 1050 [size=8] > Region 5: I/O ports at 1040 [size=16] > > Thanks, > Neo > > On Mon, Jul 14, 2008 at 12:10 AM, Keir Fraser > wrote: > > On 13/7/08 01:57, "Neo Jia" wrote: > > > Thanks a lot! Could you give an Xen command line example? > > com1=115200,8n1,0xc00,5 console=com1 > > ...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. > > > BTW, do you know which PCI card can be supported by Xen? > > No, I only have experience (and even that only a little) with unbranded > generic PCI serial cards. > > -- Keir > > > > > > -- I would remember that if researchers were not ambitious probably today we haven't the technology we are using! ------=_Part_20138_10146383.1216159092766 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Keir,

Just commented out that function call, but it still hangs.

Thanks,
Neo

On Tue, Jul 15, 2008 at 2:44 PM, Keir Fraser <keir.fraser@eu.citrix.com> wrote:
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 think it was to remove the line 'acpi_ut_evaluate_object(..., "_DIS", ...)' in drivers/acpi/pci_link.c:acpi_pci_link_add().

 -- Keir


On 15/7/08 22:20, "Neo Jia" <neojia@gmail.com> wrote:

Keir,

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?

 14 serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
 15 terminal --timeout=50 serial console

 21 title Xen 3.3 VT-d (unstable)
 22     root (hd0,0)
 23     kernel /xen-3.3.gz iommu=0 com1=115200,8n1,0x1070,11 console=com1,vga
 24     module /vmlinuz-2.6.18.8-xen ro
 25     module /initrd-2.6.18.8-xen.img

04:00.0 Serial controller: NetMos Technology PCI 9835 Multi-I/O Controller (rev 01) (prog-if 02 [16550])
        Subsystem: LSI Logic / Symbios Logic 2S (16C550 UART)
        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 11
        Region 0: I/O ports at 1070 [size=8]
        Region 1: I/O ports at 1068 [size=8]
        Region 2: I/O ports at 1060 [size=8]
        Region 3: I/O ports at 1058 [size=8]
        Region 4: I/O ports at 1050 [size=8]
        Region 5: I/O ports at 1040 [size=16]

Thanks,
Neo

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.com> wrote:

> Thanks a lot! Could you give an Xen command line example?

com1=115200,8n1,0xc00,5 console=com1

...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.

> BTW, do you know which PCI card can be supported by Xen?

No, I only have experience (and even that only a little) with unbranded
generic PCI serial cards.

 -- Keir








--
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!
------=_Part_20138_10146383.1216159092766-- --===============1015890370== 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 --===============1015890370==--