Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp138392ybp; Thu, 10 Oct 2019 15:21:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQv3V5p21cgmfnYYqDNg4IK+MfJNpjEh3BB5J7IC72+buCfwJr7yeJJbOo08w3h/3kVvgM X-Received: by 2002:a17:906:e113:: with SMTP id gj19mr10633757ejb.203.1570746084881; Thu, 10 Oct 2019 15:21:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570746084; cv=none; d=google.com; s=arc-20160816; b=pcbZA39VT2/gbPcy6qTrp97vpdJU5wdNcrfzmBnDXOcFnNHYWxG4g41qoD59Z6fnXo CNhyFLC8TVTjFCYMy+dIsM+IjNfipE3K0yWfJpKzCGZO5eqINCQfrtAhOkfxP5NNTWym 5YbBQiYK5TRpq71QrUL2lqQy1hJgKwIZ3YqOSiknceieb/rrm1fgdDbFUpFq+B9jwVyf UKTZB5CVZLheTA2xJ0rNbTrIYDNIfFVyELYovRGNVdBu5Ex46VRbJtn+IOTPmO6l9qZO kc4zUu3J1ZdCEWDtGsAigbH3Tojy5FtaWRDXuASBOzETaRG/4T42e3dyc4F4RgM41Kls Lszg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=bdNUrZs7zvg1Qfm71pvR4S6zKnoEVKoeHtmpNxS6A0U=; b=gcrXfnXFykfHOYUWkRHub6xzSary9/TYpNprQAylLcTUZrfnPWTpSHVKlGFJX5lO5t 0N+nmEMjUke9edbz3nZzwE0tFiFSArHdoxI4LCvILZ9pW2oXfUs2Is5WNeBwcAJySvRR jjGmbY97ZIu+/wKw9zg5wvOwBOzqUlW7jmguY9O0GeeMgM1xDFYiYq5LENPpLh3VODCK Mr4VT+PJgPCPHRdgUR/amcJSvEYidnYdG3NxcBn5QASFClXlLlsxlJjyXk+W5ncVwiFQ puwiteIs/KNX11iVc1wikkZY4ShzNroTVV6MfTWa84QAkJdPhYC+MWbiPU3V6ayo2urJ ixpg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l48si4444255edc.276.2019.10.10.15.21.00; Thu, 10 Oct 2019 15:21:24 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726532AbfJJWUe (ORCPT + 99 others); Thu, 10 Oct 2019 18:20:34 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:65011 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbfJJWUe (ORCPT ); Thu, 10 Oct 2019 18:20:34 -0400 Received: from 79.184.255.36.ipv4.supernova.orange.pl (79.184.255.36) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.292) id 86c559199dc39aa4; Fri, 11 Oct 2019 00:20:31 +0200 From: "Rafael J. Wysocki" To: Daniel Black Cc: Len Brown , "open list:ACPI" , open list Subject: Re: [PATCH] acpi/hmat: ACPI_HMAT_MEMORY_PD_VALID is deprecated in ACPI-6.3 Date: Fri, 11 Oct 2019 00:20:31 +0200 Message-ID: <5172949.9bKdBNxvUS@kreacher> In-Reply-To: <20190806042440.16445-1-daniel@linux.ibm.com> References: <20190806042440.16445-1-daniel@linux.ibm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday, August 6, 2019 6:24:39 AM CEST Daniel Black wrote: > ACPI-6.3 corresponds to when hmat revision was bumped from > 1 to 2. In this version ACPI_HMAT_MEMORY_PD_VALID was > deprecated and made reserved. > > As such in revision 2+ we shouldn't be testing this flag. > > This is as per ACPI-6.3, 5.2.27.3, Table 5-145 > "Memory Proximity Domain Attributes Structure" > for Flags. > > Signed-off-by: Daniel Black > --- > drivers/acpi/hmat/hmat.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/acpi/hmat/hmat.c b/drivers/acpi/hmat/hmat.c > index 96b7d39a97c6..e938e34673d9 100644 > --- a/drivers/acpi/hmat/hmat.c > +++ b/drivers/acpi/hmat/hmat.c > @@ -382,7 +382,7 @@ static int __init hmat_parse_proximity_domain(union acpi_subtable_headers *heade > pr_info("HMAT: Memory Flags:%04x Processor Domain:%d Memory Domain:%d\n", > p->flags, p->processor_PD, p->memory_PD); > > - if (p->flags & ACPI_HMAT_MEMORY_PD_VALID) { > + if (p->flags & ACPI_HMAT_MEMORY_PD_VALID && hmat_revision == 1) { > target = find_mem_target(p->memory_PD); > if (!target) { > pr_debug("HMAT: Memory Domain missing from SRAT\n"); > Applied as a fix for 5.4, thanks!