Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754544AbdLOAtw (ORCPT ); Thu, 14 Dec 2017 19:49:52 -0500 Received: from mail-ot0-f195.google.com ([74.125.82.195]:43330 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754459AbdLOAts (ORCPT ); Thu, 14 Dec 2017 19:49:48 -0500 X-Google-Smtp-Source: ACJfBovDy77s21qGWkeB2kV56DvGDmqrr68v+qghcuIGkpUcrn5m8Z3ZG6EmCPMHRsZAoAxC88FQGlWPd8hZVDVLDcg= MIME-Version: 1.0 In-Reply-To: <20171214021019.13579-2-ross.zwisler@linux.intel.com> References: <20171214021019.13579-1-ross.zwisler@linux.intel.com> <20171214021019.13579-2-ross.zwisler@linux.intel.com> From: "Rafael J. Wysocki" Date: Fri, 15 Dec 2017 01:49:47 +0100 X-Google-Sender-Auth: JORh1nbT4DCWvA2Am6xohCgryV4 Message-ID: Subject: Re: [PATCH v3 1/3] acpi: HMAT support in acpi_parse_entries_array() To: Ross Zwisler Cc: Linux Kernel Mailing List , "Anaczkowski, Lukasz" , "Box, David E" , "Kogut, Jaroslaw" , "Koss, Marcin" , "Koziej, Artur" , "Lahtinen, Joonas" , "Moore, Robert" , "Nachimuthu, Murugasamy" , "Odzioba, Lukasz" , "Rafael J. Wysocki" , "Rafael J. Wysocki" , "Schmauss, Erik" , "Verma, Vishal L" , "Zheng, Lv" , Andrew Morton , Balbir Singh , Brice Goglin , Dan Williams , Dave Hansen , Jerome Glisse , John Hubbard , Len Brown , Tim Chen , devel@acpica.org, ACPI Devel Maling List , Linux Memory Management List , "linux-nvdimm@lists.01.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 702 Lines: 17 On Thu, Dec 14, 2017 at 3:10 AM, Ross Zwisler 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 This one is fine by me.