From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Andrew Cooper <andrew.cooper3@citrix.com>
Cc: Jan Beulich <jbeulich@suse.com>,
Anthony PERARD <anthony.perard@vates.tech>,
Michal Orzel <michal.orzel@amd.com>,
Julien Grall <julien@xen.org>,
Stefano Stabellini <sstabellini@kernel.org>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH 4/4] xen/uart: enable parsing ACPI SPCR on x86
Date: Thu, 26 Mar 2026 16:25:45 +0100 [thread overview]
Message-ID: <acVP-dkDAr2CLG5g@macbook.local> (raw)
In-Reply-To: <4fd21b4f-fe78-4f41-b36a-0c63e2c451e3@citrix.com>
On Thu, Mar 26, 2026 at 12:52:51PM +0000, Andrew Cooper wrote:
> On 26/03/2026 12:48 pm, Jan Beulich wrote:
> > On 26.03.2026 13:11, Andrew Cooper wrote:
> >> On 25/03/2026 2:58 pm, Roger Pau Monne wrote:
> >>> Introduce extra logic to allow parsing ACPI tables extra early, and use it
> >>> to parse the ACPI SPCR table and obtain the serial configuration.
> >>>
> >>> This is gated to the "acpi" device type being set in "com1" on the Xen
> >>> command line. Note that there can only be one serial device described in
> >>> the SPCR, so limit it's usage to com1 exclusively for the time being.
> >>>
> >>> I can't test the interrupt information parsing on my system, as the
> >>> interrupt is set to GSI with a value of 0xff, which is outside of the range
> >>> of GSIs available on the system. I've also assumed that the interrupt
> >>> being 0xff is used to signal not interrupt setup (just like the Interrupt
> >>> Pin register on PCI headers).
> >>>
> >>> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> >>> ---
> >>> WIP/RFC, not sure whether there's interest in attempting to pursue this
> >>> further on x86. So far the device I have is also exposed on the PCI bus
> >>> aside from SPCR, so using com1=device=amt also works to detect it.
> >>>
> >>> Posting it kind of early to know whether I should try to polish it for
> >>> submission or we are happy with not having this on x86.
> >> I think we should be using SPCR/DBG2 when available. Getting serial
> >> configuration right is always tricky, and we might as well use the help
> >> that Microsoft have forced the OEM/firmware world to provide.
> >>
> >> But, I think it should be automatic when the user asked for any kind of
> >> serial. e.g. console=com1 with no com1 configuration. The point of
> >> these tables is to provide an enumeration mechanism where none
> >> previously existed.
> > Hmm. In the PC world COM<n> have well-known configurations unless anything
> > else is provided. With multiple serial ports in a system, which one SPCR
> > describes also would be (largely) unknown.
>
> Xen's COM1/2 already do do far more than the PC world. But ok then, we
> invent a new "serial".
>
> My point is, there should be a way to say "please use serial as
> described by the system", and it shouldn't even require knowing that the
> description is in APCI.
That's how it kind of works on FreeBSD, the user asks for "serial"
output and the first thing that's checked is SPCR (if the system
support ACPI).
We could have something like `console=serial` and let Xen figure it
out, but it would probably need more logic in case SPCR is not
present, and I'm unsure how the extra heuristics should look like.
Thanks, Roger.
next prev parent reply other threads:[~2026-03-26 15:26 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-25 14:58 [PATCH 0/4] xen/uart: some fixes and improvements Roger Pau Monne
2026-03-25 14:58 ` [PATCH 1/4] xen/uart: be more careful with changes to the PCI command register Roger Pau Monne
2026-03-26 11:37 ` Andrew Cooper
2026-03-26 12:02 ` Jan Beulich
2026-03-26 15:13 ` Roger Pau Monné
2026-03-26 16:00 ` Jan Beulich
2026-03-26 17:02 ` Roger Pau Monné
2026-03-27 7:59 ` Jan Beulich
2026-03-27 8:14 ` Roger Pau Monné
2026-03-27 8:52 ` Jan Beulich
2026-03-25 14:58 ` [PATCH 2/4] xen/uart: switch ns16550 to use pci_sbdf_t Roger Pau Monne
2026-03-26 11:44 ` Andrew Cooper
2026-03-25 14:58 ` [PATCH 3/4] xen/uart: report an error if the device type is not supported Roger Pau Monne
2026-03-26 11:45 ` Andrew Cooper
2026-03-25 14:58 ` [PATCH 4/4] xen/uart: enable parsing ACPI SPCR on x86 Roger Pau Monne
2026-03-26 12:11 ` Andrew Cooper
2026-03-26 12:48 ` Jan Beulich
2026-03-26 12:52 ` Andrew Cooper
2026-03-26 15:25 ` Roger Pau Monné [this message]
2026-03-26 12:45 ` Jan Beulich
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=acVP-dkDAr2CLG5g@macbook.local \
--to=roger.pau@citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=anthony.perard@vates.tech \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.org \
/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.