All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Meng Xu <xumengpanda@gmail.com>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>
Cc: Wei Liu <wei.liu2@citrix.com>,
	Dario Faggioli <dario.faggioli@citrix.com>,
	Hyon-Young Choi <commani@gmail.com>
Subject: Re: Question about Xen serial console on non-standard PCI serial ports
Date: Wed, 11 Nov 2015 18:02:44 +0000	[thread overview]
Message-ID: <564382C4.9010909@citrix.com> (raw)
In-Reply-To: <CAENZ-+nzr68PGB1LbQF23FJyV76rnvhofZtjgs9PpZkXxRijmw@mail.gmail.com>

On 11/11/15 17:53, Meng Xu wrote:
> Hi all,
>
> We bought a new machine which has no legacy serial ports on the
> motherboard. But we added two PCI serial ports onto the motherboard.
>
> We are trying to configure Xen serial console on the non-standard PCI
> serial port.
> (We have successfully configure Xen serial console on the legacy
> serial port before.)
>
> We followed the manual on [1].
> We connect the ttyS4 to the serial port of a remote machine.
>
> The following command run on the host machine (the new machine I want
> to configure).
> ***The "setserial -g /dev/ttyS*" shows:***
> /dev/ttyS4, UART: 16650V2, Port: 0xf010, IRQ: 50
> /dev/ttyS5, UART: 16650V2, Port: 0xf000, IRQ: 52
>
> *** The PCI serial device is listed in "lspci -v" as below:***
>
> 81:00.0 Serial controller: MosChip Semiconductor Technology Ltd. PCIe
> 9922 Multi-I/O Controller (prog-if 02 [16550])
>
>     Subsystem: Device a000:1000
>
>     Flags: bus master, fast devsel, latency 0, IRQ 50
>
>     I/O ports at f010 [size=8]
>
>     Memory at fbe03000 (32-bit, non-prefetchable) [size=4K]
>
>     Memory at fbe02000 (32-bit, non-prefetchable) [size=4K]
>
>     Capabilities: [50] MSI: Enable- Count=1/8 Maskable- 64bit+
>
>     Capabilities: [78] Power Management version 3
>
>     Capabilities: [80] Express Legacy Endpoint, MSI 00
>
>     Capabilities: [100] Virtual Channel
>
>     Capabilities: [800] Advanced Error Reporting
>
>     Kernel driver in use: serial
>
> 81:00.1 Serial controller: MosChip Semiconductor Technology Ltd. PCIe
> 9922 Multi-I/O Controller (prog-if 02 [16550])
>
>     Subsystem: Device a000:1000
>
>     Flags: bus master, fast devsel, latency 0, IRQ 52
>
>     I/O ports at f000 [size=8]
>
>     Memory at fbe01000 (32-bit, non-prefetchable) [size=4K]
>
>     Memory at fbe00000 (32-bit, non-prefetchable) [size=4K]
>
>     Capabilities: [50] MSI: Enable- Count=1/8 Maskable- 64bit+
>
>     Capabilities: [78] Power Management version 3
>
>     Capabilities: [80] Express Legacy Endpoint, MSI 00
>
>     Capabilities: [100] Advanced Error Reporting
>
>     Kernel driver in use: serial
>
> *** The command line I used for xen image is***
> dom0_mem=8192M,max:8192M dom0_max_vcpus=8 sched=credit
> com5=115200,8n1,0xf010,50  console=com5,vga

Xen doesn't have a com5 command line option.

You probably want

com1=115200,8n1,pci

as you can make no guarantees about the BDF or IO base remaining
consistent across reboots.

~Andrew

  reply	other threads:[~2015-11-11 18:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-11 17:53 Question about Xen serial console on non-standard PCI serial ports Meng Xu
2015-11-11 18:02 ` Andrew Cooper [this message]
2015-11-11 18:07   ` Meng Xu
2015-11-11 18:02 ` Meng Xu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=564382C4.9010909@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=commani@gmail.com \
    --cc=dario.faggioli@citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    --cc=xumengpanda@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.