mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Aleksey Makarov <amakarov.linux@gmail.com>
To: Will Deacon <will.deacon@arm.com>,
	Catalin Marinas <catalin.marinas@arm.com>
Cc: Aleksey Makarov <aleksey.makarov@linaro.org>,
	"Rafael J . Wysocki" <rjw@rjwysocki.net>,
	"Zheng, Lv" <lv.zheng@intel.com>,
	Kefeng Wang <wangkefeng.wang@huawei.com>,
	Russell King <linux@arm.linux.org.uk>,
	Peter Hurley <peter@hurleysoftware.com>,
	Graeme Gregory <graeme.gregory@linaro.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Andy Shevchenko <andy.shevchenko@gmail.com>,
	linux-kernel@vger.kernel.org,
	Leif Lindholm <leif.lindholm@linaro.org>,
	linux-acpi@vger.kernel.org,
	Yury Norov <ynorov@caviumnetworks.com>,
	Christopher Covington <cov@codeaurora.org>,
	linux-serial@vger.kernel.org, Mark Salter <msalter@redhat.com>,
	Al Stone <ahs3@redhat.com>,
	linux-arm-kernel@lists.infradead.org, Len Brown <lenb@kernel.org>
Subject: Re: [PATCH v10 3/4] ARM64: ACPI: enable ACPI_SPCR_TABLE
Date: Wed, 7 Sep 2016 12:30:19 +0300	[thread overview]
Message-ID: <7e5486cc-4080-2d1e-8f6d-98874379887d@gmail.com> (raw)
In-Reply-To: <20160905123617.18775-4-aleksey.makarov@linaro.org>


On 09/05/2016 03:36 PM, Aleksey Makarov wrote:
> 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() that
> is called from setup_arch() and that's where we parse SPCR.
> So it has to be opted-in per-arch.
> 
> When ACPI_SPCR_TABLE is defined initialization of DT earlycon is
> deferred until the DT/ACPI decision is done.  Initialize DT earlycon
> if ACPI is disabled.

Hi Will, Catalin,

Can you review this patch and consider ACKing it please?

Thank you
Aleksey Makarov

> Signed-off-by: Aleksey Makarov <aleksey.makarov@linaro.org>
> Tested-by: Kefeng Wang <wangkefeng.wang@huawei.com>
> Tested-by: Christopher Covington <cov@codeaurora.org>
> ---
>  arch/arm64/Kconfig       |  1 +
>  arch/arm64/kernel/acpi.c | 11 ++++++++++-
>  2 files changed, 11 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
> index bc3f00f..11a2d36 100644
> --- a/arch/arm64/Kconfig
> +++ b/arch/arm64/Kconfig
> @@ -4,6 +4,7 @@ config ARM64
>  	select ACPI_GENERIC_GSI if ACPI
>  	select ACPI_REDUCED_HARDWARE_ONLY if ACPI
>  	select ACPI_MCFG if ACPI
> +	select ACPI_SPCR_TABLE if ACPI
>  	select ARCH_HAS_DEVMEM_IS_ALLOWED
>  	select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI
>  	select ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE
> diff --git a/arch/arm64/kernel/acpi.c b/arch/arm64/kernel/acpi.c
> index 3e4f1a4..252a6d9 100644
> --- a/arch/arm64/kernel/acpi.c
> +++ b/arch/arm64/kernel/acpi.c
> @@ -24,6 +24,7 @@
>  #include <linux/memblock.h>
>  #include <linux/of_fdt.h>
>  #include <linux/smp.h>
> +#include <linux/serial_core.h>
>  
>  #include <asm/cputype.h>
>  #include <asm/cpu_ops.h>
> @@ -206,7 +207,7 @@ void __init acpi_boot_table_init(void)
>  	if (param_acpi_off ||
>  	    (!param_acpi_on && !param_acpi_force &&
>  	     of_scan_flat_dt(dt_scan_depth1_nodes, NULL)))
> -		return;
> +		goto done;
>  
>  	/*
>  	 * ACPI is disabled at this point. Enable it in order to parse
> @@ -226,6 +227,14 @@ void __init acpi_boot_table_init(void)
>  		if (!param_acpi_force)
>  			disable_acpi();
>  	}
> +
> +done:
> +	if (acpi_disabled) {
> +		if (earlycon_init_is_deferred)
> +			early_init_dt_scan_chosen_stdout();
> +	} else {
> +		parse_spcr(earlycon_init_is_deferred);
> +	}
>  }
>  
>  #ifdef CONFIG_ACPI_APEI
> 

  reply	other threads:[~2016-09-07  9:33 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-05 12:36 [PATCH v10 0/4] ACPI: parse the SPCR table Aleksey Makarov
2016-09-05 12:36 ` [PATCH v10 1/4] of/serial: move earlycon early_param handling to serial Aleksey Makarov
2016-09-05 12:36 ` [PATCH v10 2/4] ACPI: parse SPCR and enable matching console Aleksey Makarov
2016-09-05 12:36 ` [PATCH v10 3/4] ARM64: ACPI: enable ACPI_SPCR_TABLE Aleksey Makarov
2016-09-07  9:30   ` Aleksey Makarov [this message]
2016-09-08 11:16     ` Will Deacon
2016-09-08 13:25       ` Graeme Gregory
2016-09-08 13:35       ` Hanjun Guo
2016-09-08 16:34       ` Mark Salter
2016-09-09  8:36         ` Graeme Gregory
2016-09-09  9:28         ` Hanjun Guo
2016-09-13 18:45           ` Mark Salter
2016-09-09  9:29     ` Will Deacon
2016-09-09 15:07       ` Aleksey Makarov
2016-09-09 15:17         ` Will Deacon
2016-09-05 12:36 ` [PATCH v10 4/4] serial: pl011: add console matching function Aleksey Makarov
2016-09-12 15:55 ` [PATCH v10 0/4] ACPI: parse the SPCR table Aleksey Makarov
2016-09-16 13:40 ` Aleksey Makarov
2016-09-21 10:27 ` Aleksey Makarov
2016-09-21 10:37   ` Greg Kroah-Hartman
2016-09-21 16:19     ` Timur Tabi
2016-09-21 16:38       ` Greg Kroah-Hartman
2016-09-21 17:22         ` Aleksey Makarov
2016-09-26 19:48           ` Aleksey Makarov
2016-09-27 15:19             ` Greg Kroah-Hartman
2016-09-27 20:54               ` [PATCH v11 1/4] of/serial: move earlycon early_param handling to serial Aleksey Makarov
2016-09-27 20:54                 ` [PATCH v11 2/4] ACPI: parse SPCR and enable matching console Aleksey Makarov
2017-09-11  9:11                   ` Andreas Schwab
2017-09-11 11:05                     ` Leif Lindholm
2017-09-11 11:39                       ` Andreas Schwab
2017-09-11 12:24                         ` Graeme Gregory
2017-09-11 12:28                           ` Andreas Schwab
2017-09-11 13:03                             ` Graeme Gregory
2017-09-11 13:23                             ` Leif Lindholm
2016-09-27 20:54                 ` [PATCH v11 3/4] ARM64: ACPI: enable ACPI_SPCR_TABLE Aleksey Makarov
2016-09-27 20:54                 ` [PATCH v11 4/4] serial: pl011: add console matching function Aleksey Makarov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7e5486cc-4080-2d1e-8f6d-98874379887d@gmail.com \
    --to=amakarov.linux@gmail.com \
    --cc=ahs3@redhat.com \
    --cc=aleksey.makarov@linaro.org \
    --cc=andy.shevchenko@gmail.com \
    --cc=catalin.marinas@arm.com \
    --cc=cov@codeaurora.org \
    --cc=graeme.gregory@linaro.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=leif.lindholm@linaro.org \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-serial@vger.kernel.org \
    --cc=linux@arm.linux.org.uk \
    --cc=lv.zheng@intel.com \
    --cc=msalter@redhat.com \
    --cc=peter@hurleysoftware.com \
    --cc=rjw@rjwysocki.net \
    --cc=wangkefeng.wang@huawei.com \
    --cc=will.deacon@arm.com \
    --cc=ynorov@caviumnetworks.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®