[PATCH] acpi: iort: Update revision checking
Jeffrey Hugo
jhugo at codeaurora.org
Wed Feb 14 14:55:06 UTC 2018
The IORT spec revC updated node types 1, 3, and 4 to revision 1, from
revision 0. Update the revision checking to allow these node types to
have either revision 0 or revision 1.
Signed-off-by: Jeffrey Hugo <jhugo at codeaurora.org>
---
src/acpi/iort/iort.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/acpi/iort/iort.c b/src/acpi/iort/iort.c
index 17ab1dc..a3a9a5a 100644
--- a/src/acpi/iort/iort.c
+++ b/src/acpi/iort/iort.c
@@ -74,7 +74,17 @@ static void iort_node_check(
{
fwts_acpi_table_iort_node *node = (fwts_acpi_table_iort_node *)data;
- if (node->revision != 0) {
+ if (node->type == 1 || node->type == 3 || node->type == 4) {
+ if (node->revision > 1) {
+ *passed = false;
+ fwts_failed(fw, LOG_LEVEL_LOW,
+ "IORTNodeRevisionInvalid",
+ "IORT Node Revision field is 0x%2.2" PRIx8
+ " and should be zero or one.",
+ node->revision);
+ }
+
+ } else if (node->revision != 0) {
*passed = false;
fwts_failed(fw, LOG_LEVEL_LOW,
"IORTNodeRevisionNonZero",
--
Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.
More information about the fwts-devel
mailing list