ACPI: SPCR: Make SPCR available to x86
authorPrarit Bhargava <prarit@redhat.com>
Thu, 18 Jan 2018 15:09:51 +0000 (10:09 -0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 7 Feb 2018 10:39:58 +0000 (11:39 +0100)
commit0231d00082f61cfe03f2b7c27e5356f8cdf0312c
tree24f036cb972640ccdeed395a55d1c37571fcb3db
parent890674343bb2d546825f713542b1e199f0728732
ACPI: SPCR: Make SPCR available to x86

SPCR is currently only enabled or ARM64 and x86 can use SPCR to setup
an early console.

General fixes include updating Documentation & Kconfig (for x86),
updating comments, and changing parse_spcr() to acpi_parse_spcr(),
and earlycon_init_is_deferred to earlycon_acpi_spcr_enable to be
more descriptive.

On x86, many systems have a valid SPCR table but the table version is
not 2 so the table version check must be a warning.

On ARM64 when the kernel parameter earlycon is used both the early console
and console are enabled.  On x86, only the earlycon should be enabled by
by default.  Modify acpi_parse_spcr() to allow options for initializing
the early console and console separately.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Mark Salter <msalter@redhat.com>
Tested-by: Mark Salter <msalter@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Documentation/admin-guide/kernel-parameters.txt
arch/arm64/kernel/acpi.c
arch/x86/kernel/acpi/boot.c
drivers/acpi/Kconfig
drivers/acpi/spcr.c
drivers/tty/serial/earlycon.c
include/linux/acpi.h
include/linux/serial_core.h