Re: [PATCH v3 1/3] acpi: HMAT support in acpi_parse_entries_array()

From: Rafael J. Wysocki
Date: Thu Dec 14 2017 - 19:49:55 EST


On Thu, Dec 14, 2017 at 3:10 AM, Ross Zwisler
<ross.zwisler@xxxxxxxxxxxxxxx> wrote:
> The current implementation of acpi_parse_entries_array() assumes that each
> subtable has a standard ACPI subtable entry of type struct
> acpi_subtable_header. This standard subtable header has a one byte length
> followed by a one byte type.
>
> The HMAT subtables have to allow for a longer length so they have subtable
> headers of type struct acpi_hmat_structure which has a 2 byte type and a 4
> byte length.
>
> Enhance the subtable parsing in acpi_parse_entries_array() so that it can
> handle these new HMAT subtables.
>
> Signed-off-by: Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx>

This one is fine by me.