[PATCH v7 2/9] ACPICA: Add EINJv2 get error type action

Zaid Alali posted 9 patches 7 months, 1 week ago
There is a newer version of this series
[PATCH v7 2/9] ACPICA: Add EINJv2 get error type action
Posted by Zaid Alali 7 months, 1 week ago
Add EINJV2_GET_ERROR_TYPE as defined in the approved new ACPI
specs[1][2].

Proposed ACPI spces for EINJv2:
Link: https://github.com/tianocore/edk2/issues/9449 [1]
Link: https://github.com/tianocore/edk2/issues/9017 [2]

This commit is not a direct merge, it will come from ACPICA
project, see pull request[3].

Link: https://github.com/acpica/acpica/pull/977 [3]

Signed-off-by: Zaid Alali <zaidal@os.amperecomputing.com>
---
 include/acpi/actbl1.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h
index c701c434976c..f52d5cafaf76 100644
--- a/include/acpi/actbl1.h
+++ b/include/acpi/actbl1.h
@@ -1034,7 +1034,8 @@ enum acpi_einj_actions {
 	ACPI_EINJ_GET_COMMAND_STATUS =		0x7,
 	ACPI_EINJ_SET_ERROR_TYPE_WITH_ADDRESS =	0x8,
 	ACPI_EINJ_GET_EXECUTE_TIMINGS =		0x9,
-	ACPI_EINJ_ACTION_RESERVED =		0xA,	/* 0xA and greater are reserved */
+	ACPI_EINJV2_GET_ERROR_TYPE =		0x11,
+	ACPI_EINJ_ACTION_RESERVED =		0x12,	/* 0x12 and greater are reserved */
 	ACPI_EINJ_TRIGGER_ERROR =		0xFF	/* Except for this value */
 };
 
-- 
2.43.0
Re: [PATCH v7 2/9] ACPICA: Add EINJv2 get error type action
Posted by Rafael J. Wysocki 7 months, 1 week ago
On Tue, May 6, 2025 at 11:38 PM Zaid Alali
<zaidal@os.amperecomputing.com> wrote:
>
> Add EINJV2_GET_ERROR_TYPE as defined in the approved new ACPI
> specs[1][2].
>
> Proposed ACPI spces for EINJv2:
> Link: https://github.com/tianocore/edk2/issues/9449 [1]
> Link: https://github.com/tianocore/edk2/issues/9017 [2]
>
> This commit is not a direct merge, it will come from ACPICA
> project, see pull request[3].
>
> Link: https://github.com/acpica/acpica/pull/977 [3]
>
> Signed-off-by: Zaid Alali <zaidal@os.amperecomputing.com>

An equivalent patch is already there in linux-next:

https://web.git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git/commit/?h=linux-next&id=56b594fdb6dd68d085067a69f5f78171aa6f1657

> ---
>  include/acpi/actbl1.h | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/include/acpi/actbl1.h b/include/acpi/actbl1.h
> index c701c434976c..f52d5cafaf76 100644
> --- a/include/acpi/actbl1.h
> +++ b/include/acpi/actbl1.h
> @@ -1034,7 +1034,8 @@ enum acpi_einj_actions {
>         ACPI_EINJ_GET_COMMAND_STATUS =          0x7,
>         ACPI_EINJ_SET_ERROR_TYPE_WITH_ADDRESS = 0x8,
>         ACPI_EINJ_GET_EXECUTE_TIMINGS =         0x9,
> -       ACPI_EINJ_ACTION_RESERVED =             0xA,    /* 0xA and greater are reserved */
> +       ACPI_EINJV2_GET_ERROR_TYPE =            0x11,
> +       ACPI_EINJ_ACTION_RESERVED =             0x12,   /* 0x12 and greater are reserved */
>         ACPI_EINJ_TRIGGER_ERROR =               0xFF    /* Except for this value */
>  };
>
> --
> 2.43.0
>