Will Xen support PCI add-on card for serial ports?
hi,
It looks that Xen currently only support ISA serial port, which is onboard.
Is there any plan to support the PCI serial port?
Thanks,
Neo
Signature · 2 lines
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!
Not within Xen itself, although they can be driven by dom0 no problem. Actually some PCI cards can even be driven by Xen, if you work out where the BIOS allocates the I/O port resource by default. Then you can manually configure the I/O port base and IRQ on the Xen command line.
-- Keir
Quoted 8 lines · Neo Jia
hi,
It looks that Xen currently only support ISA serial port, which is onboard.
Is there any plan to support the PCI serial port?
Thanks,
Neo
Keir,
Thanks a lot! Could you give an Xen command line example?
BTW, do you know which PCI card can be supported by Xen?
Thanks,
Neo
Quoted 20 lines · Keir Fraser
Not within Xen itself, although they can be driven by dom0 no problem. Actually some PCI cards can even be driven by Xen, if you work out where the BIOS allocates the I/O port resource by default. Then you can manually configure the I/O port base and IRQ on the Xen command line.
-- Keir
Quoted 8 lines · Neo Jia
hi,
It looks that Xen currently only support ISA serial port, which is onboard.
Is there any plan to support the PCI serial port?
Thanks,
Neo
Signature · 2 lines
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!
Quoted 1 line · Neo Jia
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.
Quoted 1 line
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
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
Quoted 19 lines · Keir Fraser
Quoted 1 line · Neo Jia
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.Quoted 1 line
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
Signature · 2 lines
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
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
Quoted 29 lines · Neo Jia
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.img04: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]
Quoted 25 lines
Thanks,
NeoQuoted 18 lines · Keir Fraser
Quoted 1 line · Neo Jia
Quoted 1 line
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.Quoted 1 line
Quoted 1 line
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
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Keir,
Just commented out that function call, but it still hangs.
Thanks,
Neo
Quoted 68 lines · Keir Fraser
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" <[email protected]> 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.img04: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,
NeoOn Mon, Jul 14, 2008 at 12:10 AM, Keir Fraser <[email protected]> wrote:
Quoted 1 line · Neo Jia
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.Quoted 1 line
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
Signature · 2 lines
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
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 like enable the PCI devices or you just add the command line as you mails said before?
Thanks
Xiaohui
________________________________
From: [email protected] [mailto:[email protected]] On Behalf Of Neo Jia
Sent: Wednesday, July 16, 2008 5:58 AM
To: Keir Fraser
Cc: [email protected]
Subject: Re: [Xen-devel] Will Xen support PCI add-on card for serial ports?
Keir,
Just commented out that function call, but it still hangs.
Thanks,
Neo
On Tue, Jul 15, 2008 at 2:44 PM, Keir Fraser <[email protected]> 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" <[email protected]> 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
Quoted 1 line
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
<[email protected]> wrote:
On 13/7/08 01:57, "Neo Jia" <[email protected]> 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
Signature · 2 lines
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
That is the only change that I have made. But the dom0 still hang0.
Let me know if you are able to pass that.
Thanks,
Neo
---------
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!
Quoted 84 lines · Xiaohui
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 like enable the PCI devices or you just add the command line as you mails said before?
Thanks
Xiaohui
From: [email protected] [mailto:[email protected]] On Behalf Of Neo Jia
Sent: Wednesday, July 16, 2008 5:58 AM
To: Keir Fraser
Cc: [email protected]
Subject: Re: [Xen-devel] Will Xen support PCI add-on card for serial ports?Keir,
Just commented out that function call, but it still hangs.
Thanks,
NeoOn Tue, Jul 15, 2008 at 2:44 PM, Keir Fraser <[email protected]
Quoted 1 line
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" <[email protected]> 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.img04: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=mediumQuoted 1 line
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,
NeoOn Mon, Jul 14, 2008 at 12:10 AM, Keir Fraser <[email protected]
Quoted 1 line
wrote:
Quoted 1 line · Neo Jia
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.
Quoted 18 lines
Quoted 1 line
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
Signature · 2 lines
I would remember that if researchers were not ambitious probably today we haven't the technology we are using!
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Thanks. I got it. We have hard coded the iobase and irq in the driver of Xen, but it doesn't work. :-(
Thanks
Xiaohui
________________________________
From: Neo Jia [mailto:[email protected]]
Sent: Wednesday, July 16, 2008 10:29 AM
To: Xin, Xiaohui
Cc: Keir Fraser; <[email protected]>
Subject: Re: [Xen-devel] Will Xen support PCI add-on card for serial ports?
That is the only change that I have made. But the dom0 still hang0.
Let me know if you are able to pass that.
Thanks,
Neo
---------
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!
On Jul 15, 2008, at 7:20 PM, "Xin, Xiaohui" <[email protected]> wrote:
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 like enable the PCI devices or you just add the command line as you mails said before?
Thanks
Xiaohui
________________________________
From: [email protected]
[mailto:[email protected]] On Behalf Of Neo Jia
Sent: Wednesday, July 16, 2008 5:58 AM To: Keir Fraser Cc: <mailto:[email protected]>
[email protected]
Subject: Re: [Xen-devel] Will Xen support PCI add-on card for
serial ports?
Keir, Just commented out that function call, but it still hangs. Thanks, Neo On Tue, Jul 15, 2008 at 2:44 PM, Keir Fraser <
<mailto:[email protected]> [email protected]> 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" < <mailto:[email protected]>
[email protected]> 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 <
<mailto:[email protected]> [email protected]> wrote:
On 13/7/08 01:57, "Neo Jia" < <mailto:[email protected]>
[email protected]> 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!
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
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¹t know how generally applicable my approach is.
-- Keir
Quoted 27 lines · Xiaohui
Thanks. I got it. We have hard coded the iobase and irq in the driver of Xen, but it doesn¹t work. L
Thanks
XiaohuiFrom: Neo Jia [mailto:[email protected]]
Sent: Wednesday, July 16, 2008 10:29 AM
To: Xin, Xiaohui
Cc: Keir Fraser; <[email protected]>
Subject: Re: [Xen-devel] Will Xen support PCI add-on card for serial ports?That is the only change that I have made. But the dom0 still hang0.
Let me know if you are able to pass that.
Thanks,
Neo
Quoted 108 lines
---------
I would remember that if researchers were not ambitious
probably today we haven't the technology we are using!
Quoted 100 lines · Xiaohui
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 like enable the PCI devices or you just add the command line as you mails said before?Thanks
XiaohuiFrom: [email protected] [mailto:[email protected]] On Behalf Of Neo Jia
Sent: Wednesday, July 16, 2008 5:58 AM
To: Keir Fraser
Cc: <mailto:[email protected]> [email protected]
Subject: Re: [Xen-devel] Will Xen support PCI add-on card for serial ports?Keir,
Just commented out that function call, but it still hangs.
Thanks,
NeoOn Tue, Jul 15, 2008 at 2:44 PM, Keir Fraser < <mailto:[email protected]> [email protected]> 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
Quoted 56 lines · On 15/7/08 22:20, "Neo Jia" < <mailto:[email protected]> [email protected]> 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.img04: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,
NeoOn Mon, Jul 14, 2008 at 12:10 AM, Keir Fraser < <mailto:[email protected]> [email protected]> wrote:
Quoted 1 line · On 13/7/08 01:57, "Neo Jia" < <mailto:[email protected]> [email protected]> wrote:
Quoted 1 line
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.Quoted 1 line
Quoted 1 line
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
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel