[PATCH] lib: fwts_acpi_object_eval: sync up the AML exceptions from ACPICA

Ivan Hu ivan.hu at canonical.com
Tue Jun 27 08:30:27 UTC 2023


BugLink: https://bugs.launchpad.net/fwts/+bug/2025114

more AML exceptions come from ACPICA

AE_AML_UNINITIALIZED_NODE, A namespace node is uninitialized or unresolved.
AE_AML_TARGET_TYPE, A target operand of an incorrect type was encountered.
AE_AML_PROTOCOL, Violation of a fixed ACPI protocol.
AE_AML_BUFFER_LENGTH, The length of the buffer is invalid/incorrect.

Signed-off-by: Ivan Hu <ivan.hu at canonical.com>
---
 src/lib/src/fwts_acpi_object_eval.c | 19 +++++++++++++++++--
 1 file changed, 17 insertions(+), 2 deletions(-)

diff --git a/src/lib/src/fwts_acpi_object_eval.c b/src/lib/src/fwts_acpi_object_eval.c
index ffe40443..aaf885e1 100644
--- a/src/lib/src/fwts_acpi_object_eval.c
+++ b/src/lib/src/fwts_acpi_object_eval.c
@@ -265,9 +265,24 @@ static const acpi_eval_error errors[] = {
 		"The length of an ACPI Resource Descriptor was incorrect."
 	},
 	{ AE_AML_ILLEGAL_ADDRESS, 	LOG_LEVEL_CRITICAL,	"AEAMLIllegalAddr",	"Illegal address",
-		"An memory, PCI configuration or I/O address was encountered with an illegal address."
+		"A memory, PCI configuration or I/O address was encountered with an illegal address."
+	},
+	/* { AE_AML_INFINITE_LOOP, 	LOG_LEVEL_HIGH,		"AEAMLInfiniteLoop",	"Infinite loop", NULL },
+	{ AE_AML_INFINITE_LOOP, 	LOG_LEVEL_HIGH,		"AEAMLInfiniteLoop",	"Infinite loop",
+		"An AML While loop exceeded the maximum execution time."
+	}, */
+	{ AE_AML_UNINITIALIZED_NODE, 	LOG_LEVEL_HIGH,		"AEAMLUninitNode",	"Uninitialized node",
+		"A namespace node is uninitialized or unresolved."
+	},
+	{ AE_AML_TARGET_TYPE,		LOG_LEVEL_HIGH,		"AEAMLTargetType",	"Target type",
+		"A target operand of an incorrect type was encountered."
+	},
+	{ AE_AML_PROTOCOL,		LOG_LEVEL_HIGH,		"AEAMLViolateProtocol",	"Violattion protcol",
+		"Violation of a fixed ACPI protocol."
+	},
+	{ AE_AML_BUFFER_LENGTH, 	LOG_LEVEL_HIGH,		"AEAMLBadBufLength",	"Bad buffer length",
+		"The length of the buffer is invalid/incorrect."
 	},
-	/* { AE_AML_INFINITE_LOOP, 	LOG_LEVEL_HIGH,		"AEAMLInfiniteLoop",	"Infinite loop", NULL }, */
 	{ 0,				0,			NULL,			NULL , 		NULL}
 };
 
-- 
2.34.1




More information about the fwts-devel mailing list