Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp250292imu; Wed, 19 Dec 2018 17:50:07 -0800 (PST) X-Google-Smtp-Source: AFSGD/VAnUPIxjUoyBXWJ3kT+7+Kw/r994qbCQkwxX+1gT7LPlotpGsazL3l9moNICrR/zYrVqzK X-Received: by 2002:a17:902:714c:: with SMTP id u12mr22165847plm.234.1545270607713; Wed, 19 Dec 2018 17:50:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545270607; cv=none; d=google.com; s=arc-20160816; b=VzigrrXn5ueLIAgEjwPkklbz5P5TtKNuByP5XDisbU/XSLqk4XsKu3CZjh7uhXMpWI YQdxSK3e45q+Me+mC8eYxiVFOOp5H+B0Dvtk0DCcVv5D+DR43IaynFxMU4DqEM19tcyX i99cJ/WJq+voUm/uHwHPrTHtyTWbgAjBXJEV7qdf4fh52XDcvwjoSKEfMm/jxO1TjmTM T+TH3e+dMlJzD8VTRD2PKMxNrOC3pWUzwV0aVwsii4rBdp0yyBD2qQjLVEeotVJzEND8 FK2rsDz4GLjb+7N7RNb8CG9BZoZx5KO/q3WI7bSDGeXvOeQ/xVepi065u4TaQInOWMg9 91vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bkdIVWdTDcU1xAlF1lj1kMy0qu2e2ktPr6qOzABEZZw=; b=uhgkerDha4fCbEuVCZjf8643CyBJRO/ul5r4w6wfWx+joKVQogvt5JDZcL5LLZ+2Pu W0X/1X78b/819clUFLw7IkNaN/vSdQqNghmNqwYiVmbmzK2o4SN50wfUXGxrjpv0XvHl HcOmGtT/tw7h8RhOY7BiWO673sl1kusXTVb8kPozvJeQvZum18P5ruKpk/c5npIeBIRV fvGj9COqilym7By5xTT81016YfnplVSQboZAi6LHHzfiw2EiBqYH5oiY1JnflqVFUO2M PvRlQnQb2aqoyT05AxYJQreoaU84qZiKluGbMQUoJ/QH1v1Pw6ts6z1t5+kpdiRamiH4 rMSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=D5iR2auQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cd16si17460895plb.47.2018.12.19.17.49.51; Wed, 19 Dec 2018 17:50:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=D5iR2auQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730093AbeLTAAA (ORCPT + 99 others); Wed, 19 Dec 2018 19:00:00 -0500 Received: from mail-ot1-f47.google.com ([209.85.210.47]:35610 "EHLO mail-ot1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727818AbeLTAAA (ORCPT ); Wed, 19 Dec 2018 19:00:00 -0500 Received: by mail-ot1-f47.google.com with SMTP id 81so20809265otj.2 for ; Wed, 19 Dec 2018 15:59:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bkdIVWdTDcU1xAlF1lj1kMy0qu2e2ktPr6qOzABEZZw=; b=D5iR2auQeAkJcy2RIlJWyV8hJCi4rX31aDvHWJ/XrqpY5RBdVQQ4j/kIJk9P4kNB6V PkR17sh6hsn6irY3+twmGUkato5wBOs2NgWJ49aMg9ymbVgTdkGqZC9FrwbJaV3SGyfd 7m3J09NCuzVIE98ONiaSrDRipHbxQobyhy7H//LRpLreNqOyAXzWNHnCA3Vix2FetM4G R2fKvIO8mMi9UDkOQ03xXGFSzHbNKvwP3u6TooTO5lFki8VQCmzZnfhd9GiIYPWxsDL7 CtDJP7DSBWOjDwpvYm1aqcapckRNecVEO1ikUPxSZlR+w/1218z+iLkmZv7Aov7GxZ6c PCFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bkdIVWdTDcU1xAlF1lj1kMy0qu2e2ktPr6qOzABEZZw=; b=O+fJAeXaxD0j6T7a9bTj+FVsDxeYTDJf32OhOuSCKRIbdG98KgMlBb328pG0N74pRt 0nfFJzWQUARX8sXP404EEb5wpuJ7U5bmJTosboZvJqxQ3D7YFUGR110t3ighnHxHHiQO 4rd55zbdSMbZNhKHBNtwy7EGtF3OJUf9DqOMeuaSrEO44Lqu0xxy6ZQQbpUtD8+xWsyY 9gxduTzT6x0yQUCXXR+mbZavxtrVXyQ1PNjVLNtWZEiCAkJZpCwQC3GNrwXqs8joxtTh 1VS1q6c6DYsD0XzoZB8nR17Ka0Zz4jTOXbQvPzjHs2nkmIKrprGVmX9bz98HeHtCxIOB 5p8A== X-Gm-Message-State: AA+aEWZ9TiHpRVzB0t5KdNamh9enKpur+77Ukuq+M3f3XL83Iyr1kzk9 TbJgyMUSkoxbMNbI4G3IhWG4AcVlgO7RX+hvBIOLRw== X-Received: by 2002:a9d:5cc2:: with SMTP id r2mr16558015oti.367.1545263999229; Wed, 19 Dec 2018 15:59:59 -0800 (PST) MIME-Version: 1.0 References: <20181211010310.8551-1-keith.busch@intel.com> <20181211010310.8551-2-keith.busch@intel.com> In-Reply-To: From: Dan Williams Date: Wed, 19 Dec 2018 15:59:48 -0800 Message-ID: Subject: Re: [PATCHv2 01/12] acpi: Create subtable parsing infrastructure To: "Schmauss, Erik" Cc: "Rafael J. Wysocki" , "Busch, Keith" , "Moore, Robert" , Linux Kernel Mailing List , ACPI Devel Maling List , Linux Memory Management List , Greg Kroah-Hartman , "Hansen, Dave" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 19, 2018 at 3:19 PM Schmauss, Erik wrote: > > > > > -----Original Message----- > > From: linux-acpi-owner@vger.kernel.org [mailto:linux-acpi- > > owner@vger.kernel.org] On Behalf Of Rafael J. Wysocki > > Sent: Tuesday, December 11, 2018 1:45 AM > > To: Busch, Keith > > Cc: Linux Kernel Mailing List ; ACPI Devel > > Maling List ; Linux Memory Management List > > ; Greg Kroah-Hartman > > ; Rafael J. Wysocki ; > > Hansen, Dave ; Williams, Dan J > > > > Subject: Re: [PATCHv2 01/12] acpi: Create subtable parsing infrastructure > > > > On Tue, Dec 11, 2018 at 2:05 AM Keith Busch > > wrote: > > > > > Hi Rafael and Bob, > > > > Parsing entries in an ACPI table had assumed a generic header > > > structure that is most common. There is no standard ACPI header, > > > though, so less common types would need custom parsers if they want go > > > through their sub-table entry list. > > > > It looks like the problem at hand is that acpi_hmat_structure is incompatible > > with acpi_subtable_header because of the different layout and field sizes. > > Just out of curiosity, why don't we use ACPICA code to parse static ACPI tables > in Linux? > > We have a disassembler for static tables that parses all supported tables. This > seems like a duplication of code/effort... Oh, I thought acpi_table_parse_entries() was the common code. What's the ACPICA duplicate?