All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Roger Pau Monné" <roger.pau@citrix.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.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 v2 2/3] xen/uart: be more careful with changes to the PCI command register
Date: Mon, 30 Mar 2026 11:06:03 +0200	[thread overview]
Message-ID: <aco8-8hc5xJCZeal@macbook.local> (raw)
In-Reply-To: <93a09dbb-0a8c-4eeb-b544-c9409b9f85ce@suse.com>

On Mon, Mar 30, 2026 at 10:00:05AM +0200, Jan Beulich wrote:
> On 27.03.2026 14:54, Roger Pau Monne wrote:
> > Read the existing PCI command register and only add the required bits to
> > it, as to avoid clearing bits that might be possibly set by the firmware
> > already, which might put the device into a non-working state.
> > 
> > Fixes: f2ff5d6628b3 ("ns16550: enable PCI serial card usage")
> > Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> 
> Reviewed-by: Jan Beulich <jbeulich@suse.com>
> 
> I would have preferred if the description mentioned the particular case,
> turning this more into a workaround than an apparent bugfix. 

It turns out that the console does seem to work fine, even with memory
decoding disabled on the device (as expected).  I've updated the
firmware in the meantime, so I'm unsure whether that update has
changed the behavior of the device, or it simply was some other
instability that was causing the issue in the past.  This SOL AMT
device is not reliable at all I'm afraid.

> As mentioned,
> us driving the device generally means we're free to do whatever we want to
> the command register, as long as resulting device state is consistent
> overall (or else we may indeed have a non-working device). Having to keep
> memory decoding enabled in order for I/O ports to function is pretty
> clearly a bug in the device, and hence us "violating" that requirement
> isn't really o bug of ours.

I think given the fragility of some of those SOL devices it's best to
limit the number of bits Xen changes, as to having a bigger chances of
getting output working.

Thanks, Roger.


  reply	other threads:[~2026-03-30  9:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-27 13:54 [PATCH v2 0/3] xen/uart: some fixes and improvements Roger Pau Monne
2026-03-27 13:54 ` [PATCH v2 1/3] xen/uart: uniformly set ->ps_bdf_enable for all PCI serial devices Roger Pau Monne
2026-03-30  7:55   ` Jan Beulich
2026-03-27 13:54 ` [PATCH v2 2/3] xen/uart: be more careful with changes to the PCI command register Roger Pau Monne
2026-03-30  8:00   ` Jan Beulich
2026-03-30  9:06     ` Roger Pau Monné [this message]
2026-03-30  9:09       ` Jan Beulich
2026-03-30  9:57         ` Roger Pau Monné
2026-03-30 10:26           ` Jan Beulich
2026-03-27 13:54 ` [PATCH v2 3/3] xen/uart: switch ns16550 to use pci_sbdf_t Roger Pau Monne

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=aco8-8hc5xJCZeal@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.