ACK: [PATCH] acpi: iort: Update revision checking

Colin Ian King colin.king at canonical.com
Wed Feb 14 14:58:52 UTC 2018


On 14/02/18 14:55, Jeffrey Hugo wrote:
> 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",
> 

Thanks Jeffrey.

Acked-by: Colin Ian King <colin.king at canonical.com>



More information about the fwts-devel mailing list