Received: by 2002:a17:90a:c8b:0:0:0:0 with SMTP id v11csp2305164pja; Fri, 19 Apr 2019 11:39:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqxm5yK4YbC4Fdcx6JsEILYBPQh9ddLJR11xe4B5PuFgp3RTayWx+PFIJB/OEc9Lpv0PuGq6 X-Received: by 2002:a17:902:b605:: with SMTP id b5mr3731607pls.206.1555699159776; Fri, 19 Apr 2019 11:39:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555699159; cv=none; d=google.com; s=arc-20160816; b=z0XUhXjZxldQuhs5gEaIHfJtwGGEall2yu6+36utlZrJvG/CL2pwhQf90qzfHXv9t9 17KG5eDOvEj5D/quLxgssEY9m7XhNtSguguiMyLTOpG6KxP7ZWMNEhJ6SJgZ6dMFlJpW t4f9OeUZddC1mH+OARVistd85DNvNKgSGX7TVkmIQ7rPfrgFqGFnkcVywZF5fuqwALYy Q8R2W1MUgyMatVlgiDhVEUpvCoGWG77PwJQq01Mj1bnMy09cM41bx2/A5j+snHlfsfdL RPcwASfL2ci3oy6RLWn2yGJpA6Hf3nJzymBVBZPVhV86qWa7WuRftigpaY7ltk6+v9gd XNDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=gKz9YSJ5+xabxzD6FGuUCytcRqTYwx0RaS360GqSxKs=; b=NCXpOd2Vj/qsAuRLbiE8JbCHEGKbK2eSduifGxEoyTkNRLXoV9Vsj8PzxpjIwp54my URD6ABKUlKq5K6XqNj/+7/Nxx61jZmEclqJbdSwq+0O0iJ/1noHtC9/8DW0HL+gP8wxY wF9EaNPBgjR0hLH1Q7c/T0UYus2BABNxszsNcfRVgH43Hg1ECQuYGAGOJm04dk4kDRvK Y07eWxeIdCvPHD42I9O3zDjniMyBRQBHJmFAGV33vQceiVviE6t7umt8nqOEbQ0jDJWO lNT32/csReAC94M6MyrGVng2hOX3tyqkE5HNl91adYIHPIoPOWKVM2uB/5/AqPJyVncu qZEw== ARC-Authentication-Results: i=1; mx.google.com; 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 cs8si6009366plb.393.2019.04.19.11.39.05; Fri, 19 Apr 2019 11:39:19 -0700 (PDT) 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; 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 S1728371AbfDSShx (ORCPT + 99 others); Fri, 19 Apr 2019 14:37:53 -0400 Received: from mga18.intel.com ([134.134.136.126]:62980 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726960AbfDSShv (ORCPT ); Fri, 19 Apr 2019 14:37:51 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Apr 2019 10:16:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,370,1549958400"; d="scan'208";a="163345283" Received: from unknown (HELO localhost.localdomain) ([10.232.112.69]) by fmsmga004.fm.intel.com with ESMTP; 19 Apr 2019 10:16:09 -0700 Date: Fri, 19 Apr 2019 11:09:59 -0600 From: Keith Busch To: Alison Schofield Cc: "Rafael J. Wysocki" , "Rafael J. Wysocki" , Robert Moore , "Schmauss, Erik" , ACPI Devel Maling List , Linux Kernel Mailing List Subject: Re: [PATCH] acpi/hmat: Update acpi_hmat_type enum with ACPI_HMAT_TYPE_PROXIMITY Message-ID: <20190419170958.GA9331@localhost.localdomain> References: <20190417181310.27613-1-alison.schofield@intel.com> <20190418145640.GA7659@localhost.localdomain> <20190419165435.GA2284@alison-desk.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190419165435.GA2284@alison-desk.jf.intel.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 19, 2019 at 09:54:35AM -0700, Alison Schofield wrote: > On Thu, Apr 18, 2019 at 05:07:12PM +0200, Rafael J. Wysocki wrote: > > On Thu, Apr 18, 2019 at 5:02 PM Keith Busch wrote: > > > > > > On Wed, Apr 17, 2019 at 11:13:10AM -0700, Alison Schofield wrote: > > > > ACPI 6.3 changed the subtable "Memory Subsystem Address Range Structure" > > > > to "Memory Proximity Domain Attributes Structure". > > > > > > > > Updating and renaming of the structure was included in commit: > > > > ACPICA: ACPI 6.3: HMAT updates (9a8d961f1ef835b0d338fbe13da03cb424e87ae5) > > > > > > I was not really happy with that HMAT update. Platforms implementing > > > 6.2's HMAT continue to exist even if 6.3 isn't backward compatible. We > > > just lost the original subtable definition. > > > > Well, that's true, sadly, but the question is what to do in the kernel. > > > > Definitely, the 6.3 format needs to be supported, but if the 6.2 ships > > anywhere in practice, that will need to be supported too. > > So, what's the usual practice when ACPI tables are updated? > Do we define separate 6.2 and 6.3 versions of this subtable and let > the kernel figure out which one its looking at? Yeah, I think either new struct definitions for incompatible versions, or unions for conflicting members would be good. But I think Rafael is saying we only care if someone's shipping platform implements a particular version. I don't happen to know which ACPI version platforms I'm interested are going to release with, so I have HMAT supporting either right now. The 6.3 update wasn't difficult to handle this time.