Skip to content

x86/boot: Enable earlyprintk for HS UARTs

Andy Shevchenko lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest7 patches 31 repliesIn review

Since v2 from the cover letter

- rebase on top of v5.1-rc1
- parse 'mmio' keyword instead of port range check (Ingo)
- deduplicate code wherever it's possible (Ingo)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7x86/boot: Convert early_serial_base to unsigned longarch/x86/boot/boot.h arch/x86/boot/compressed/early_serial_console.c arch/x86/boot/compressed/misc.h +2 more+8 -83 replies
2/7x86/boot: Introduce helpers for serial I/Oarch/x86/boot/boot.h arch/x86/boot/compressed/early_serial_console.c arch/x86/boot/compressed/misc.c +3 more+61 -228 replies
3/7x86/boot: Split out parse_serial_port() helper for earlyprintkarch/x86/boot/early_serial_console.c+15 -58 replies
4/7x86/boot: Allow longer parameter list for earlyprintkarch/x86/boot/early_serial_console.c+1 -10 replies
5/7x86/boot: Add MMIO byte accessorsarch/x86/boot/boot.h+12 -00 replies
6/7x86/boot: Introduce MMIO accessors and their support in earlyprintkarch/x86/boot/early_serial_console.c+25 -00 replies
7/7x86/boot: Support nocfg parameter for earlyprintkarch/x86/boot/early_serial_console.c+21 -412 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/7] x86/boot: Enable earlyprintk for HS UARTs

Newer Intel platforms sometimes have only HS UART enabled and accessible via MMIO on high addresses.

For now, earlyprintk doesn't handle such cases and always rely on the legacy serial port to be present.

This series fills the gap and enables earlyprintk on HS UARTs.

Since v2:
- rebase on top of v5.1-rc1
- parse 'mmio' keyword instead of port range check (Ingo)
- deduplicate code wherever it's possible (Ingo)

Andy Shevchenko (7):
x86/boot: Convert early_serial_base to unsigned long x86/boot: Introduce helpers for serial I/O
x86/boot: Split out parse_serial_port() helper for earlyprintk x86/boot: Allow longer parameter list for earlyprintk x86/boot: Add MMIO byte accessors
x86/boot: Introduce MMIO accessors and their support in earlyprintk x86/boot: Support nocfg parameter for earlyprintk

 arch/x86/boot/boot.h                          |  16 ++-
 .../boot/compressed/early_serial_console.c    |   5 +-
 arch/x86/boot/compressed/misc.c               |   4 +-
 arch/x86/boot/compressed/misc.h               |   8 +-
 arch/x86/boot/early_serial_console.c          | 135 ++++++++++++++----
 arch/x86/boot/tty.c                           |   9 +-
 6 files changed, 140 insertions(+), 37 deletions(-)
Signature · 1 line
2.20.1