mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3] ACPI: OSL: Poweroff when encountering a fatal ACPI error
@ 2026-02-04 21:29 Armin Wolf
  2026-02-24 23:05 ` Armin Wolf
  0 siblings, 1 reply; 9+ messages in thread
From: Armin Wolf @ 2026-02-04 21:29 UTC (permalink / raw)
  To: rafael, lenb; +Cc: linux-acpi, linux-kernel

The ACPI spec states that the operating system should respond
to a fatal ACPI error by "performing a controlled OS shutdown in
a timely fashion". Comply with the ACPI specification by powering
off the system when ACPICA signals a fatal ACPI error. Users can
still disable this behavior by using the acpi.poweroff_on_fatal
kernel option to work around firmware bugs.

Link: https://uefi.org/specs/ACPI/6.6/19_ASL_Reference.html#fatal-fatal-error-check
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
---
Changes since v2:
- poweroff instead of triggering a kernel panic

Changes since v1:
- use IS_ENABLED() for checking the presence of CONFIG_ACPI_PANIC_ON_FATAL
---
 .../admin-guide/kernel-parameters.txt         |  9 +++++++++
 drivers/acpi/Kconfig                          | 11 +++++++++++
 drivers/acpi/osl.c                            | 19 ++++++++++++++++++-
 3 files changed, 38 insertions(+), 1 deletion(-)

diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
index 1058f2a6d6a8..1f2eaa0ec424 100644
--- a/Documentation/admin-guide/kernel-parameters.txt
+++ b/Documentation/admin-guide/kernel-parameters.txt
@@ -187,6 +187,15 @@ Kernel parameters
 			unusable.  The "log_buf_len" parameter may be useful
 			if you need to capture more output.
 
+	acpi.poweroff_on_fatal=	[ACPI]
+			{0 | 1}
+			Causes the system to poweroff when the ACPI bytecode signals
+			a fatal error. The default value of this setting can
+			be configured using CONFIG_ACPI_POWEROFF_ON_FATAL.
+			Overriding this value should only be done for diagnosing
+			ACPI firmware problems, as the system might behave erratically
+			after having encountered a fatal ACPI error.
+
 	acpi_enforce_resources=	[ACPI]
 			{ strict | lax | no }
 			Check for resource conflicts between native drivers
diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
index df0ff0764d0d..1610dd4c8278 100644
--- a/drivers/acpi/Kconfig
+++ b/drivers/acpi/Kconfig
@@ -65,6 +65,17 @@ config ACPI_THERMAL_LIB
        depends on THERMAL
        bool
 
+config ACPI_POWEROFF_ON_FATAL
+	bool "Poweroff on fatal ACPI error"
+	default y
+	help
+	  The ACPI bytecode can signal that a fatal error has occurred using the Fatal()
+	  ASL operator, normaly causing the system to poweroff. Disabling this option causes
+	  such a condition to be treated like a ordinary ACPI error.
+
+	  This setting can also be overridden during boot using the acpi.poweroff_on_fatal
+	  kernel parameter.
+
 config ACPI_DEBUGGER
 	bool "AML debugger interface"
 	select ACPI_DEBUG
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index 05393a7315fe..f2b45fa4a752 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -11,8 +11,10 @@
 
 #define pr_fmt(fmt) "ACPI: OSL: " fmt
 
+#include <linux/kconfig.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
+#include <linux/reboot.h>
 #include <linux/slab.h>
 #include <linux/mm.h>
 #include <linux/highmem.h>
@@ -70,6 +72,10 @@ static bool acpi_os_initialized;
 unsigned int acpi_sci_irq = INVALID_ACPI_IRQ;
 bool acpi_permanent_mmap = false;
 
+static bool poweroff_on_fatal = IS_ENABLED(CONFIG_ACPI_POWEROFF_ON_FATAL);
+module_param(poweroff_on_fatal, bool, 0);
+MODULE_PARM_DESC(poweroff_on_fatal, "Poweroff when encountering a fatal ACPI error");
+
 /*
  * This list of permanent mappings is for memory that may be accessed from
  * interrupt context, where we can't do the ioremap().
@@ -1381,9 +1387,20 @@ acpi_status acpi_os_notify_command_complete(void)
 
 acpi_status acpi_os_signal(u32 function, void *info)
 {
+	struct acpi_signal_fatal_info *fatal_info;
+
 	switch (function) {
 	case ACPI_SIGNAL_FATAL:
-		pr_err("Fatal opcode executed\n");
+		fatal_info = info;
+		pr_emerg("Fatal error while evaluating ACPI control method\n");
+		pr_emerg("Type 0x%X Code 0x%X Argument 0x%X\n",
+			 fatal_info->type, fatal_info->code, fatal_info->argument);
+
+		if (poweroff_on_fatal)
+			orderly_poweroff(true);
+		else
+			add_taint(TAINT_FIRMWARE_WORKAROUND, LOCKDEP_STILL_OK);
+
 		break;
 	case ACPI_SIGNAL_BREAKPOINT:
 		/*
-- 
2.39.5


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

* Re: [PATCH v3] ACPI: OSL: Poweroff when encountering a fatal ACPI error
  2026-02-04 21:29 [PATCH v3] ACPI: OSL: Poweroff when encountering a fatal ACPI error Armin Wolf
@ 2026-02-24 23:05 ` Armin Wolf
  2026-02-25 21:28   ` Rafael J. Wysocki
  0 siblings, 1 reply; 9+ messages in thread
From: Armin Wolf @ 2026-02-24 23:05 UTC (permalink / raw)
  To: rafael, lenb; +Cc: linux-acpi, linux-kernel

Am 04.02.26 um 22:29 schrieb Armin Wolf:

> The ACPI spec states that the operating system should respond
> to a fatal ACPI error by "performing a controlled OS shutdown in
> a timely fashion". Comply with the ACPI specification by powering
> off the system when ACPICA signals a fatal ACPI error. Users can
> still disable this behavior by using the acpi.poweroff_on_fatal
> kernel option to work around firmware bugs.

Any updates on this?

Thanks,
Armin Wolf

> Link: https://uefi.org/specs/ACPI/6.6/19_ASL_Reference.html#fatal-fatal-error-check
> Signed-off-by: Armin Wolf <W_Armin@gmx.de>
> ---
> Changes since v2:
> - poweroff instead of triggering a kernel panic
>
> Changes since v1:
> - use IS_ENABLED() for checking the presence of CONFIG_ACPI_PANIC_ON_FATAL
> ---
>   .../admin-guide/kernel-parameters.txt         |  9 +++++++++
>   drivers/acpi/Kconfig                          | 11 +++++++++++
>   drivers/acpi/osl.c                            | 19 ++++++++++++++++++-
>   3 files changed, 38 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
> index 1058f2a6d6a8..1f2eaa0ec424 100644
> --- a/Documentation/admin-guide/kernel-parameters.txt
> +++ b/Documentation/admin-guide/kernel-parameters.txt
> @@ -187,6 +187,15 @@ Kernel parameters
>   			unusable.  The "log_buf_len" parameter may be useful
>   			if you need to capture more output.
>   
> +	acpi.poweroff_on_fatal=	[ACPI]
> +			{0 | 1}
> +			Causes the system to poweroff when the ACPI bytecode signals
> +			a fatal error. The default value of this setting can
> +			be configured using CONFIG_ACPI_POWEROFF_ON_FATAL.
> +			Overriding this value should only be done for diagnosing
> +			ACPI firmware problems, as the system might behave erratically
> +			after having encountered a fatal ACPI error.
> +
>   	acpi_enforce_resources=	[ACPI]
>   			{ strict | lax | no }
>   			Check for resource conflicts between native drivers
> diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig
> index df0ff0764d0d..1610dd4c8278 100644
> --- a/drivers/acpi/Kconfig
> +++ b/drivers/acpi/Kconfig
> @@ -65,6 +65,17 @@ config ACPI_THERMAL_LIB
>          depends on THERMAL
>          bool
>   
> +config ACPI_POWEROFF_ON_FATAL
> +	bool "Poweroff on fatal ACPI error"
> +	default y
> +	help
> +	  The ACPI bytecode can signal that a fatal error has occurred using the Fatal()
> +	  ASL operator, normaly causing the system to poweroff. Disabling this option causes
> +	  such a condition to be treated like a ordinary ACPI error.
> +
> +	  This setting can also be overridden during boot using the acpi.poweroff_on_fatal
> +	  kernel parameter.
> +
>   config ACPI_DEBUGGER
>   	bool "AML debugger interface"
>   	select ACPI_DEBUG
> diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
> index 05393a7315fe..f2b45fa4a752 100644
> --- a/drivers/acpi/osl.c
> +++ b/drivers/acpi/osl.c
> @@ -11,8 +11,10 @@
>   
>   #define pr_fmt(fmt) "ACPI: OSL: " fmt
>   
> +#include <linux/kconfig.h>
>   #include <linux/module.h>
>   #include <linux/kernel.h>
> +#include <linux/reboot.h>
>   #include <linux/slab.h>
>   #include <linux/mm.h>
>   #include <linux/highmem.h>
> @@ -70,6 +72,10 @@ static bool acpi_os_initialized;
>   unsigned int acpi_sci_irq = INVALID_ACPI_IRQ;
>   bool acpi_permanent_mmap = false;
>   
> +static bool poweroff_on_fatal = IS_ENABLED(CONFIG_ACPI_POWEROFF_ON_FATAL);
> +module_param(poweroff_on_fatal, bool, 0);
> +MODULE_PARM_DESC(poweroff_on_fatal, "Poweroff when encountering a fatal ACPI error");
> +
>   /*
>    * This list of permanent mappings is for memory that may be accessed from
>    * interrupt context, where we can't do the ioremap().
> @@ -1381,9 +1387,20 @@ acpi_status acpi_os_notify_command_complete(void)
>   
>   acpi_status acpi_os_signal(u32 function, void *info)
>   {
> +	struct acpi_signal_fatal_info *fatal_info;
> +
>   	switch (function) {
>   	case ACPI_SIGNAL_FATAL:
> -		pr_err("Fatal opcode executed\n");
> +		fatal_info = info;
> +		pr_emerg("Fatal error while evaluating ACPI control method\n");
> +		pr_emerg("Type 0x%X Code 0x%X Argument 0x%X\n",
> +			 fatal_info->type, fatal_info->code, fatal_info->argument);
> +
> +		if (poweroff_on_fatal)
> +			orderly_poweroff(true);
> +		else
> +			add_taint(TAINT_FIRMWARE_WORKAROUND, LOCKDEP_STILL_OK);
> +
>   		break;
>   	case ACPI_SIGNAL_BREAKPOINT:
>   		/*

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

* Re: [PATCH v3] ACPI: OSL: Poweroff when encountering a fatal ACPI error
  2026-02-24 23:05 ` Armin Wolf
@ 2026-02-25 21:28   ` Rafael J. Wysocki
  2026-02-26  6:35     ` Armin Wolf
  0 siblings, 1 reply; 9+ messages in thread
From: Rafael J. Wysocki @ 2026-02-25 21:28 UTC (permalink / raw)
  To: Armin Wolf; +Cc: rafael, lenb, linux-acpi, linux-kernel

On Wed, Feb 25, 2026 at 12:06 AM Armin Wolf <W_Armin@gmx.de> wrote:
>
> Am 04.02.26 um 22:29 schrieb Armin Wolf:
>
> > The ACPI spec states that the operating system should respond
> > to a fatal ACPI error by "performing a controlled OS shutdown in
> > a timely fashion". Comply with the ACPI specification by powering
> > off the system when ACPICA signals a fatal ACPI error. Users can
> > still disable this behavior by using the acpi.poweroff_on_fatal
> > kernel option to work around firmware bugs.
>
> Any updates on this?

I was about to apply it, but then I thought that I was not sure about
the Kconfig option.

 I don't see much value in it TBH.  If you agree, I'll just apply the
patch without that part.

Thanks!

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

* Re: [PATCH v3] ACPI: OSL: Poweroff when encountering a fatal ACPI error
  2026-02-25 21:28   ` Rafael J. Wysocki
@ 2026-02-26  6:35     ` Armin Wolf
  2026-02-26 18:46       ` Rafael J. Wysocki
  0 siblings, 1 reply; 9+ messages in thread
From: Armin Wolf @ 2026-02-26  6:35 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: lenb, linux-acpi, linux-kernel

Am 25.02.26 um 22:28 schrieb Rafael J. Wysocki:

> On Wed, Feb 25, 2026 at 12:06 AM Armin Wolf <W_Armin@gmx.de> wrote:
>> Am 04.02.26 um 22:29 schrieb Armin Wolf:
>>
>>> The ACPI spec states that the operating system should respond
>>> to a fatal ACPI error by "performing a controlled OS shutdown in
>>> a timely fashion". Comply with the ACPI specification by powering
>>> off the system when ACPICA signals a fatal ACPI error. Users can
>>> still disable this behavior by using the acpi.poweroff_on_fatal
>>> kernel option to work around firmware bugs.
>> Any updates on this?
> I was about to apply it, but then I thought that I was not sure about
> the Kconfig option.
>
>   I don't see much value in it TBH.  If you agree, I'll just apply the
> patch without that part.
>
> Thanks!

You can drop the Kconfig option if you want.

Thanks,
Armin Wolf


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

* Re: [PATCH v3] ACPI: OSL: Poweroff when encountering a fatal ACPI error
  2026-02-26  6:35     ` Armin Wolf
@ 2026-02-26 18:46       ` Rafael J. Wysocki
  2026-02-27 19:50         ` Armin Wolf
  0 siblings, 1 reply; 9+ messages in thread
From: Rafael J. Wysocki @ 2026-02-26 18:46 UTC (permalink / raw)
  To: Armin Wolf; +Cc: Rafael J. Wysocki, lenb, linux-acpi, linux-kernel

On Thu, Feb 26, 2026 at 7:35 AM Armin Wolf <W_Armin@gmx.de> wrote:
>
> Am 25.02.26 um 22:28 schrieb Rafael J. Wysocki:
>
> > On Wed, Feb 25, 2026 at 12:06 AM Armin Wolf <W_Armin@gmx.de> wrote:
> >> Am 04.02.26 um 22:29 schrieb Armin Wolf:
> >>
> >>> The ACPI spec states that the operating system should respond
> >>> to a fatal ACPI error by "performing a controlled OS shutdown in
> >>> a timely fashion". Comply with the ACPI specification by powering
> >>> off the system when ACPICA signals a fatal ACPI error. Users can
> >>> still disable this behavior by using the acpi.poweroff_on_fatal
> >>> kernel option to work around firmware bugs.
> >> Any updates on this?
> > I was about to apply it, but then I thought that I was not sure about
> > the Kconfig option.
> >
> >   I don't see much value in it TBH.  If you agree, I'll just apply the
> > patch without that part.
> >
> > Thanks!
>
> You can drop the Kconfig option if you want.

OK, applied as 7.1 material.

Please double check
https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?h=bleeding-edge&id=6f09a7009a1d7a132ddce3a8dd0c46aac66ad8e2

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

* Re: [PATCH v3] ACPI: OSL: Poweroff when encountering a fatal ACPI error
  2026-02-26 18:46       ` Rafael J. Wysocki
@ 2026-02-27 19:50         ` Armin Wolf
  2026-02-27 19:55           ` Armin Wolf
  0 siblings, 1 reply; 9+ messages in thread
From: Armin Wolf @ 2026-02-27 19:50 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: lenb, linux-acpi, linux-kernel

Am 26.02.26 um 19:46 schrieb Rafael J. Wysocki:

> On Thu, Feb 26, 2026 at 7:35 AM Armin Wolf <W_Armin@gmx.de> wrote:
>> Am 25.02.26 um 22:28 schrieb Rafael J. Wysocki:
>>
>>> On Wed, Feb 25, 2026 at 12:06 AM Armin Wolf <W_Armin@gmx.de> wrote:
>>>> Am 04.02.26 um 22:29 schrieb Armin Wolf:
>>>>
>>>>> The ACPI spec states that the operating system should respond
>>>>> to a fatal ACPI error by "performing a controlled OS shutdown in
>>>>> a timely fashion". Comply with the ACPI specification by powering
>>>>> off the system when ACPICA signals a fatal ACPI error. Users can
>>>>> still disable this behavior by using the acpi.poweroff_on_fatal
>>>>> kernel option to work around firmware bugs.
>>>> Any updates on this?
>>> I was about to apply it, but then I thought that I was not sure about
>>> the Kconfig option.
>>>
>>>    I don't see much value in it TBH.  If you agree, I'll just apply the
>>> patch without that part.
>>>
>>> Thanks!
>> You can drop the Kconfig option if you want.
> OK, applied as 7.1 material.
>
> Please double check
> https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?h=bleeding-edge&id=6f09a7009a1d7a132ddce3a8dd0c46aac66ad8e2

Looks good to me, except that the include of kconfig.h should be dropped now.

Thanks,
Armin Wolf


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

* Re: [PATCH v3] ACPI: OSL: Poweroff when encountering a fatal ACPI error
  2026-02-27 19:50         ` Armin Wolf
@ 2026-02-27 19:55           ` Armin Wolf
  2026-02-27 20:39             ` Rafael J. Wysocki
  0 siblings, 1 reply; 9+ messages in thread
From: Armin Wolf @ 2026-02-27 19:55 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: lenb, linux-acpi, linux-kernel

Am 27.02.26 um 20:50 schrieb Armin Wolf:

> Am 26.02.26 um 19:46 schrieb Rafael J. Wysocki:
>
>> On Thu, Feb 26, 2026 at 7:35 AM Armin Wolf <W_Armin@gmx.de> wrote:
>>> Am 25.02.26 um 22:28 schrieb Rafael J. Wysocki:
>>>
>>>> On Wed, Feb 25, 2026 at 12:06 AM Armin Wolf <W_Armin@gmx.de> wrote:
>>>>> Am 04.02.26 um 22:29 schrieb Armin Wolf:
>>>>>
>>>>>> The ACPI spec states that the operating system should respond
>>>>>> to a fatal ACPI error by "performing a controlled OS shutdown in
>>>>>> a timely fashion". Comply with the ACPI specification by powering
>>>>>> off the system when ACPICA signals a fatal ACPI error. Users can
>>>>>> still disable this behavior by using the acpi.poweroff_on_fatal
>>>>>> kernel option to work around firmware bugs.
>>>>> Any updates on this?
>>>> I was about to apply it, but then I thought that I was not sure about
>>>> the Kconfig option.
>>>>
>>>>    I don't see much value in it TBH.  If you agree, I'll just apply 
>>>> the
>>>> patch without that part.
>>>>
>>>> Thanks!
>>> You can drop the Kconfig option if you want.
>> OK, applied as 7.1 material.
>>
>> Please double check
>> https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?h=bleeding-edge&id=6f09a7009a1d7a132ddce3a8dd0c46aac66ad8e2 
>>
>
> Looks good to me, except that the include of kconfig.h should be 
> dropped now.
>
> Thanks,
> Armin Wolf
>
I also just noticed that we still need to include panic.h for add_taint(). Should i send
a new revision?

Thanks,
Armin Wolf


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

* Re: [PATCH v3] ACPI: OSL: Poweroff when encountering a fatal ACPI error
  2026-02-27 19:55           ` Armin Wolf
@ 2026-02-27 20:39             ` Rafael J. Wysocki
  2026-03-01 17:59               ` Armin Wolf
  0 siblings, 1 reply; 9+ messages in thread
From: Rafael J. Wysocki @ 2026-02-27 20:39 UTC (permalink / raw)
  To: Armin Wolf; +Cc: Rafael J. Wysocki, lenb, linux-acpi, linux-kernel

On Fri, Feb 27, 2026 at 8:55 PM Armin Wolf <W_Armin@gmx.de> wrote:
>
> Am 27.02.26 um 20:50 schrieb Armin Wolf:
>
> > Am 26.02.26 um 19:46 schrieb Rafael J. Wysocki:
> >
> >> On Thu, Feb 26, 2026 at 7:35 AM Armin Wolf <W_Armin@gmx.de> wrote:
> >>> Am 25.02.26 um 22:28 schrieb Rafael J. Wysocki:
> >>>
> >>>> On Wed, Feb 25, 2026 at 12:06 AM Armin Wolf <W_Armin@gmx.de> wrote:
> >>>>> Am 04.02.26 um 22:29 schrieb Armin Wolf:
> >>>>>
> >>>>>> The ACPI spec states that the operating system should respond
> >>>>>> to a fatal ACPI error by "performing a controlled OS shutdown in
> >>>>>> a timely fashion". Comply with the ACPI specification by powering
> >>>>>> off the system when ACPICA signals a fatal ACPI error. Users can
> >>>>>> still disable this behavior by using the acpi.poweroff_on_fatal
> >>>>>> kernel option to work around firmware bugs.
> >>>>> Any updates on this?
> >>>> I was about to apply it, but then I thought that I was not sure about
> >>>> the Kconfig option.
> >>>>
> >>>>    I don't see much value in it TBH.  If you agree, I'll just apply
> >>>> the
> >>>> patch without that part.
> >>>>
> >>>> Thanks!
> >>> You can drop the Kconfig option if you want.
> >> OK, applied as 7.1 material.
> >>
> >> Please double check
> >> https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?h=bleeding-edge&id=6f09a7009a1d7a132ddce3a8dd0c46aac66ad8e2
> >>
> >
> > Looks good to me, except that the include of kconfig.h should be
> > dropped now.
> >
> > Thanks,
> > Armin Wolf
> >
> I also just noticed that we still need to include panic.h for add_taint().

It complied regardless, likely because kernel.h was included, but yes.

> Should i send a new revision?

No need, I've just updated it by hand and pushed it out.

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

* Re: [PATCH v3] ACPI: OSL: Poweroff when encountering a fatal ACPI error
  2026-02-27 20:39             ` Rafael J. Wysocki
@ 2026-03-01 17:59               ` Armin Wolf
  0 siblings, 0 replies; 9+ messages in thread
From: Armin Wolf @ 2026-03-01 17:59 UTC (permalink / raw)
  To: Rafael J. Wysocki; +Cc: lenb, linux-acpi, linux-kernel

Am 27.02.26 um 21:39 schrieb Rafael J. Wysocki:

> On Fri, Feb 27, 2026 at 8:55 PM Armin Wolf <W_Armin@gmx.de> wrote:
>> Am 27.02.26 um 20:50 schrieb Armin Wolf:
>>
>>> Am 26.02.26 um 19:46 schrieb Rafael J. Wysocki:
>>>
>>>> On Thu, Feb 26, 2026 at 7:35 AM Armin Wolf <W_Armin@gmx.de> wrote:
>>>>> Am 25.02.26 um 22:28 schrieb Rafael J. Wysocki:
>>>>>
>>>>>> On Wed, Feb 25, 2026 at 12:06 AM Armin Wolf <W_Armin@gmx.de> wrote:
>>>>>>> Am 04.02.26 um 22:29 schrieb Armin Wolf:
>>>>>>>
>>>>>>>> The ACPI spec states that the operating system should respond
>>>>>>>> to a fatal ACPI error by "performing a controlled OS shutdown in
>>>>>>>> a timely fashion". Comply with the ACPI specification by powering
>>>>>>>> off the system when ACPICA signals a fatal ACPI error. Users can
>>>>>>>> still disable this behavior by using the acpi.poweroff_on_fatal
>>>>>>>> kernel option to work around firmware bugs.
>>>>>>> Any updates on this?
>>>>>> I was about to apply it, but then I thought that I was not sure about
>>>>>> the Kconfig option.
>>>>>>
>>>>>>     I don't see much value in it TBH.  If you agree, I'll just apply
>>>>>> the
>>>>>> patch without that part.
>>>>>>
>>>>>> Thanks!
>>>>> You can drop the Kconfig option if you want.
>>>> OK, applied as 7.1 material.
>>>>
>>>> Please double check
>>>> https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?h=bleeding-edge&id=6f09a7009a1d7a132ddce3a8dd0c46aac66ad8e2
>>>>
>>> Looks good to me, except that the include of kconfig.h should be
>>> dropped now.
>>>
>>> Thanks,
>>> Armin Wolf
>>>
>> I also just noticed that we still need to include panic.h for add_taint().
> It complied regardless, likely because kernel.h was included, but yes.
>
>> Should i send a new revision?
> No need, I've just updated it by hand and pushed it out.

Thank you very much :)

Armin Wolf


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

end of thread, other threads:[~2026-03-01 18:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-04 21:29 [PATCH v3] ACPI: OSL: Poweroff when encountering a fatal ACPI error Armin Wolf
2026-02-24 23:05 ` Armin Wolf
2026-02-25 21:28   ` Rafael J. Wysocki
2026-02-26  6:35     ` Armin Wolf
2026-02-26 18:46       ` Rafael J. Wysocki
2026-02-27 19:50         ` Armin Wolf
2026-02-27 19:55           ` Armin Wolf
2026-02-27 20:39             ` Rafael J. Wysocki
2026-03-01 17:59               ` Armin Wolf

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®