linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ACPI: APEI: Don't warn if ACPI is disabled
@ 2021-05-14 15:34 Jon Hunter
  2021-05-21 17:01 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Jon Hunter @ 2021-05-14 15:34 UTC (permalink / raw)
  To: Rafael J . Wysocki, Len Brown
  Cc: linux-acpi, linux-kernel, linux-tegra, Jon Hunter

If ACPI is not enabled but support for ACPI and APEI is enabled in the
kernel, then the following warning is seen on boot ...

 WARNING KERN EINJ: ACPI disabled.

For ARM64 platforms, the 'acpi_disabled' variable is true by default
and hence, the above is often seen on ARM64. Given that it can be
normal for ACPI to be disabled, make this an informational print rather
that a warning.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
---
Please note that the motivation for this change is to filter out
any warnings that might not be actual issues. We have some automated
tests that we run to catch warnings and errors and although we could
add this to a list of non critical warnings, it is preferred to make
this an informational print.

 drivers/acpi/apei/einj.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/acpi/apei/einj.c b/drivers/acpi/apei/einj.c
index 328e8aeece6c..2882450c443e 100644
--- a/drivers/acpi/apei/einj.c
+++ b/drivers/acpi/apei/einj.c
@@ -673,7 +673,7 @@ static int __init einj_init(void)
 	struct apei_exec_context ctx;
 
 	if (acpi_disabled) {
-		pr_warn("ACPI disabled.\n");
+		pr_info("ACPI disabled.\n");
 		return -ENODEV;
 	}
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ACPI: APEI: Don't warn if ACPI is disabled
  2021-05-14 15:34 [PATCH] ACPI: APEI: Don't warn if ACPI is disabled Jon Hunter
@ 2021-05-21 17:01 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2021-05-21 17:01 UTC (permalink / raw)
  To: Jon Hunter
  Cc: Rafael J . Wysocki, Len Brown, ACPI Devel Maling List,
	Linux Kernel Mailing List, linux-tegra

On Fri, May 14, 2021 at 5:34 PM Jon Hunter <jonathanh@nvidia.com> wrote:
>
> If ACPI is not enabled but support for ACPI and APEI is enabled in the
> kernel, then the following warning is seen on boot ...
>
>  WARNING KERN EINJ: ACPI disabled.
>
> For ARM64 platforms, the 'acpi_disabled' variable is true by default
> and hence, the above is often seen on ARM64. Given that it can be
> normal for ACPI to be disabled, make this an informational print rather
> that a warning.
>
> Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
> ---
> Please note that the motivation for this change is to filter out
> any warnings that might not be actual issues. We have some automated
> tests that we run to catch warnings and errors and although we could
> add this to a list of non critical warnings, it is preferred to make
> this an informational print.
>
>  drivers/acpi/apei/einj.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/apei/einj.c b/drivers/acpi/apei/einj.c
> index 328e8aeece6c..2882450c443e 100644
> --- a/drivers/acpi/apei/einj.c
> +++ b/drivers/acpi/apei/einj.c
> @@ -673,7 +673,7 @@ static int __init einj_init(void)
>         struct apei_exec_context ctx;
>
>         if (acpi_disabled) {
> -               pr_warn("ACPI disabled.\n");
> +               pr_info("ACPI disabled.\n");
>                 return -ENODEV;
>         }
>
> --

Applied as 5.14 material, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-05-21 17:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-14 15:34 [PATCH] ACPI: APEI: Don't warn if ACPI is disabled Jon Hunter
2021-05-21 17:01 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).