All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] xen/ns16550: preserve UART operation across firmware handover
@ 2026-10-10  3:14 Zhang Zheng
  2026-10-10  3:14 ` [PATCH v2 1/2] xen/ns16550: detect and preserve UART_IER_UUE Zhang Zheng
       [not found] ` <20261010031406.2057735-3-zhangzheng@iscas.ac.cn>
  0 siblings, 2 replies; 23+ messages in thread
From: Zhang Zheng @ 2026-10-10  3:14 UTC (permalink / raw)
  To: xen-devel
  Cc: Zhang Zheng, Alistair Francis, Connor Davis, Oleksii Kurochko,
	Baptiste Le Duc, Andrew Cooper, Anthony PERARD, Michal Orzel,
	Jan Beulich, Julien Grall, Roger Pau Monné,
	Stefano Stabellini

V1 replaced the RISC-V SBI early console with direct 8250 MMIO access.
Following review, v2 keeps the generic SBI console and instead fixes the
handover in ns16550.

K3 testing exposed two issues during this handover: clearing IER disables
its XScale-compatible UART, and resetting the FIFO can discard output
still pending after an SBI console call.  I originally planned to submit
the XScale support separately, but both fixes are needed for the same
handover, so they are included here as two patches.

Tested with QEMU 11.0.0/OpenSBI 1.7 and on SpacemiT K3 hardware.

Changes in v2:
  - Keep the SBI early console and legacy SBI v0.1 support.
  - Preserve UART_IER_UUE and drain TX before ns16550 reinitialization.

v1: https://lore.kernel.org/xen-devel/20260928023857.1030884-1-zhangzheng@iscas.ac.cn/

Zhang Zheng (2):
  xen/ns16550: detect and preserve UART_IER_UUE
  xen/ns16550: drain TX before reinitializing

 xen/drivers/char/ns16550.c  | 16 +++++++++++++++-
 xen/include/xen/8250-uart.h |  1 +
 2 files changed, 16 insertions(+), 1 deletion(-)


base-commit: 0d3bb3c98bc99ec1c84ebb3df71b6e18daebff4f
-- 
2.54.0



^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2026-10-15  8:50 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-10  3:14 [PATCH v2 0/2] xen/ns16550: preserve UART operation across firmware handover Zhang Zheng
2026-10-10  3:14 ` [PATCH v2 1/2] xen/ns16550: detect and preserve UART_IER_UUE Zhang Zheng
2026-10-10 22:11   ` Baptiste Le Duc
2026-10-12  9:27     ` Oleksii Kurochko
2026-10-15  3:22     ` Zhang Zheng
2026-10-12  9:20   ` Oleksii Kurochko
2026-10-12 12:50     ` Jan Beulich
2026-10-12 13:24       ` Oleksii Kurochko
2026-10-15  4:50         ` Zhang Zheng
2026-10-15  3:44     ` Zhang Zheng
2026-10-12 12:52   ` Jan Beulich
2026-10-15  4:40     ` Zhang Zheng
2026-10-15  7:16       ` Jan Beulich
     [not found] ` <20261010031406.2057735-3-zhangzheng@iscas.ac.cn>
2026-10-10 22:13   ` [PATCH v2 2/2] xen/ns16550: drain TX before reinitializing Baptiste Le Duc
2026-10-12 10:20   ` Oleksii Kurochko
2026-10-12 12:56     ` Jan Beulich
2026-10-12 13:25       ` Oleksii Kurochko
2026-10-15  4:52       ` Zhang Zheng
2026-10-12 13:00     ` Jan Beulich
2026-10-15  4:46       ` Zhang Zheng
2026-10-15  6:48     ` Zhang Zheng
     [not found]     ` <atB2HqxU_D481PBk@iscas-ws>
2026-10-15  7:54       ` Oleksii Kurochko
2026-10-15  8:49         ` Zhang Zheng

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.