[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 2/3] xen/uart: be more careful with changes to the PCI command register
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Date: Mon, 30 Mar 2026 11:06:03 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=N4KWgcq2qbhLKGx8vdRuANk9N6HpmxdVZE8nIV7+vfc=; b=Op9t+JFsDeBO1DhoD1X4tCFmi6Tyd2Rcw2Mc5yUdSeaNTGLYs3aTpnX0mw/J6/X5CriwKDTCjkET3aNlMcsoUqLHoCGUCYsU/ChaEM88QJzRDpuKTTTq/U1yvWqKpV4yyAXIRv8BbnEAB1CdMxW7fLkcowRHjtsocXPbHbxgwcQYTxCMEBlQbN7Qfe3dfNcYO2sbjTlBHeBkIJRsJ+RgcvDmIq3sBx9GK3k9kOJPbgcimyNRFkIFs8iIPvOtLpqJZgXwVq+tgKDmPwMFmJiFezf/jv2qTItziiRNf9maK7AJ2H7LRpCvAAYqrluLhBbWVQokqAU7BQpRmis5Tws0RQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=l0lLYPAMCB8PxgjtGcWyf/hhPecK0FL+rSla2pVSMauKykIOAnYKDLDWruR3ZevAS+oJsbhFABact22Oj0vAQps7yUlbIJqT7MXnDdEJeyZFaaAgH8HvjQWFHp+rE5VLV/RnjQGGAdKaVi5EkMDcNi1F4sAGvn2TZUvL4r1Dz814QxhYXWz/XRYGjFsMSjDsGeJFcJhwamDrv0F8py01V0sZcwmQ7bdwqeFXR7dKs73MiwDe2odS9MbDgleDoemwzSWMJ9vR1jAxm3FOcJsqHsgW9YAS7MpQNwURjyfb6MxZTzpf0KJXHNRsxD5TCWY5ozLOId3zLKtF0EVtm6t0eA==
- Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=citrix.com header.i="@citrix.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
- Delivery-date: Mon, 30 Mar 2026 09:06:17 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
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@xxxxxxxxxx>
>
> Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
>
> 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.
|