Skip to content

acpi, x86: Add SPCR table support

Prarit Bhargava linux-acpi linux-arm-kernel linux-pm linux-serial lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 9 repliesIn review
  2. v12 patches 12 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2acpi, spcr: Make SPCR avialable to other architecturesDocumentation/admin-guide/kernel-parameters.txt arch/arm64/kernel/acpi.c drivers/acpi/Kconfig +4 more+184 -1608 replies
2/2acpi, x86: Use SPCR table for earlycon on x86Documentation/admin-guide/kernel-parameters.txt arch/arm64/kernel/acpi.c arch/x86/kernel/acpi/boot.c +3 more+19 -61 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchIngo Molnar
1/2
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] acpi, x86: Add SPCR table support

The SPCR (Serial Port Console Redirection) Table provides information about the configuration of the serial port. This information can be used to configure the early console.

SPCR support was added for ARM64 and is made available across all arches in this patchset. The first patch adds a weak per-arch configuration function and moves the SPCR code into ACPI. The second patch adds support to x86.

The existing behaviour on ARM64 is maintained. If the SPCR exists the earlycon and console are automatically configured.

The existing default behaviour on x86 is also maintained. If no console or earlycon parameter is defined and the SPCR exists, the serial port is not configured. If the earlycon parameter is used both the early console and the console are configured using the data from the SPCR.

Additional testing (requested by Timur): On Gigabyte (no quirks), Qualcomm Amberwing systems to test Qualcomm quirks, HPE Mantis system to test xgene quirks. Tested several x86 systems with and without a SPCR to confirm no changes in default behaviour.

[v2]: See 1/2 for code changes.

Cc linux-doc at vger.kernel.org
Cc linux-kernel at vger.kernel.org
Cc linux-arm-kernel at lists.infradead.org
Cc linux-pm at vger.kernel.org
Cc linux-acpi at vger.kernel.org
Cc linux-serial at vger.kernel.org
Cc Bhupesh Sharma <[email protected]>
Cc Lv Zheng <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc "H. Peter Anvin" <[email protected]>
Cc x86 at kernel.org
Cc Jonathan Corbet <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Will Deacon <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Timur Tabi <[email protected]>

Prarit Bhargava (2):
acpi, spcr: Make SPCR avialable to other architectures acpi, x86: Use SPCR table for earlycon on x86

 Documentation/admin-guide/kernel-parameters.txt |   9 +-
 arch/arm64/kernel/acpi.c                        | 128 ++++++++++++++++-
 arch/x86/kernel/acpi/boot.c                     |   4 +
 drivers/acpi/Kconfig                            |   7 +-
 drivers/acpi/spcr.c                             | 180 ++++++------------------
 drivers/tty/serial/earlycon.c                   |  15 +-
 include/linux/acpi.h                            |  14 +-
 include/linux/serial_core.h                     |   2 -
 8 files changed, 198 insertions(+), 161 deletions(-)
Signature · 1 line
2.15.0.rc0.39.g2f0e14e64