Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1362541
| From | Aleksey Makarov <aleksey.makarov@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v5 4/6] ACPI: enable ACPI_SPCR_TABLE on ARM64 |
| Date | 2016-03-22 12:00 +0100 |
| Message-ID | <rfscA-3bq-83@gated-at.bofh.it> (permalink) |
| References | <rfs2R-37r-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
SBBR mentions SPCR as a mandatory ACPI table. So enable it for ARM64
Earlycon should be set up as early as possible. ACPI boot tables are
mapped in arch/arm64/kernel/acpi.c:acpi_boot_table_init() called from
setup_arch() and that's where we parse SPCR. So it has to be opted-in
per-arch.
Signed-off-by: Aleksey Makarov <aleksey.makarov@linaro.org>
---
arch/arm64/Kconfig | 1 +
arch/arm64/kernel/acpi.c | 2 ++
2 files changed, 3 insertions(+)
diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
index 07b6a16..c77b4b2 100644
--- a/arch/arm64/Kconfig
+++ b/arch/arm64/Kconfig
@@ -3,6 +3,7 @@ config ARM64
select ACPI_CCA_REQUIRED if ACPI
select ACPI_GENERIC_GSI if ACPI
select ACPI_REDUCED_HARDWARE_ONLY if ACPI
+ select ACPI_SPCR_TABLE if ACPI
select ARCH_HAS_DEVMEM_IS_ALLOWED
select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
select ARCH_HAS_ELF_RANDOMIZE
diff --git a/arch/arm64/kernel/acpi.c b/arch/arm64/kernel/acpi.c
index d1ce8e2..36d6f70 100644
--- a/arch/arm64/kernel/acpi.c
+++ b/arch/arm64/kernel/acpi.c
@@ -208,6 +208,8 @@ void __init acpi_boot_table_init(void)
pr_err("Failed to init ACPI tables\n");
if (!param_acpi_force)
disable_acpi();
+ } else {
+ parse_spcr();
}
}
--
2.7.4
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v5 0/6] ACPI: parse the SPCR table Aleksey Makarov <aleksey.makarov@linaro.org> - 2016-03-22 11:50 +0100
[PATCH v5 5/6] serial: pl011: add console matching function Aleksey Makarov <aleksey.makarov@linaro.org> - 2016-03-22 11:50 +0100
[PATCH v5 6/6] serial: pl011: add EARLYCON_DECLARE Aleksey Makarov <aleksey.makarov@linaro.org> - 2016-03-22 11:50 +0100
Re: [PATCH v5 6/6] serial: pl011: add EARLYCON_DECLARE Peter Hurley <peter@hurleysoftware.com> - 2016-03-22 17:20 +0100
Re: [PATCH v5 6/6] serial: pl011: add EARLYCON_DECLARE Aleksey Makarov <amakarov.linux@gmail.com> - 2016-03-22 18:20 +0100
Re: [PATCH v5 6/6] serial: pl011: add EARLYCON_DECLARE Peter Hurley <peter@hurleysoftware.com> - 2016-03-22 18:50 +0100
[PATCH v5 3/6] ACPI: parse SPCR and enable matching console Aleksey Makarov <aleksey.makarov@linaro.org> - 2016-03-22 12:00 +0100
Re: [PATCH v5 3/6] ACPI: parse SPCR and enable matching console Andy Shevchenko <andy.shevchenko@gmail.com> - 2016-03-22 12:10 +0100
Re: [PATCH v5 3/6] ACPI: parse SPCR and enable matching console Peter Hurley <peter@hurleysoftware.com> - 2016-03-22 17:10 +0100
Re: [PATCH v5 3/6] ACPI: parse SPCR and enable matching console Aleksey Makarov <aleksey.makarov@linaro.org> - 2016-03-22 18:10 +0100
Re: [PATCH v5 3/6] ACPI: parse SPCR and enable matching console Peter Hurley <peter@hurleysoftware.com> - 2016-03-22 18:30 +0100
Re: [PATCH v5 3/6] ACPI: parse SPCR and enable matching console Peter Hurley <peter@hurleysoftware.com> - 2016-03-22 16:00 +0100
Re: [PATCH v5 3/6] ACPI: parse SPCR and enable matching console Yury Norov <ynorov@caviumnetworks.com> - 2016-03-22 18:00 +0100
Re: [PATCH v5 3/6] ACPI: parse SPCR and enable matching console Aleksey Makarov <aleksey.makarov@linaro.org> - 2016-03-22 18:20 +0100
Re: [PATCH v5 3/6] ACPI: parse SPCR and enable matching console Peter Hurley <peter@hurleysoftware.com> - 2016-03-22 18:40 +0100
[PATCH v5 2/6] ACPI: add definitions of DBG2 subtypes Aleksey Makarov <aleksey.makarov@linaro.org> - 2016-03-22 12:00 +0100
[PATCH v5 4/6] ACPI: enable ACPI_SPCR_TABLE on ARM64 Aleksey Makarov <aleksey.makarov@linaro.org> - 2016-03-22 12:00 +0100
csiph-web