Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3487969ybl; Mon, 12 Aug 2019 01:04:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqwmikiGKy1La8u4gtzwWuw4XrMbHqVQk418MrgTMZg+8KgU72Y9CNfkh+uZBtvLZ1h0hFNC X-Received: by 2002:a62:8648:: with SMTP id x69mr6746978pfd.92.1565597053931; Mon, 12 Aug 2019 01:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565597053; cv=none; d=google.com; s=arc-20160816; b=JdB23FLE9NWsX7d4OXdNhjwCnsKxUDM493jb3MAryQsfy4TQvVx3U+qEaXxQzfnZyr c7m1mggpEUwIvHhVd5OO+HN78tgS9RI+cP2GBtYlrvfwopib9dnbBStKuPTJ3OKytmMu 2m7CduLsXvkuNqy7g7Erdkz4QYHT2rNg67J0vd6XzniBa71ibP0y0HbkhaPdFDtaSE07 d5hifiokcLj53E3N6mVCNtgL/AaifZsHw4YSjcpaQWkkIG+Pge42ngde6rZLoSrSBIV4 3gx2f2QqAH7T7Hq0FnBlrHnqZXntdtXi7cC68Yde8JAAd/5Vt9bjjOftQ4tsKS5TDUOd IRVQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=zAQHKdPKxK22fTyOB2eYre7yKYJKsu2FLPhXnHd0Uf4=; b=HH89eUtX/je0MuzZQXDEW0OsAPpCOXfsrQDz20t/avMBW6CUA5FR1hofDn1KkgvIei 5Bi0NeV6PUchLgO7rYA4VzyiJIsJkAYnMAWjYrTCfXpRABGeKYvdSnOKtVCCk5u3h+OB IUTv2WxQCxhxmj62mQVQeQj3wD5nV7aW/+BgOFAHWsW8AW5Bu2nBShHiI/6iimn6uebh cbdRx+wxPMwytAxjTo60VhFdyeod0NZGAwFTXXG2RQpe8Ljrx6ApKWK1GSltu/4PomEs vBvyqbmUOCgEI/1eysMUlh7fkG3RF5BxCnsOjyNh+3AUNH439Y21yaaEz/G8u1nRBEGG 6EAg== 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 t15si57023574ply.162.2019.08.12.01.03.53; Mon, 12 Aug 2019 01:04:13 -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 S1726996AbfHLIDU (ORCPT + 99 others); Mon, 12 Aug 2019 04:03:20 -0400 Received: from mga14.intel.com ([192.55.52.115]:13190 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726834AbfHLIDT (ORCPT ); Mon, 12 Aug 2019 04:03:19 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Aug 2019 01:03:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,376,1559545200"; d="scan'208";a="180776919" Received: from unknown (HELO [10.239.196.241]) ([10.239.196.241]) by orsmga006.jf.intel.com with ESMTP; 12 Aug 2019 01:03:16 -0700 Subject: Re: [PATCH] acpi/hmat: ACPI_HMAT_MEMORY_PD_VALID is deprecated in ACPI-6.3 To: Daniel Black Cc: "Rafael J. Wysocki" , Len Brown , "open list:ACPI" , open list References: <20190806042440.16445-1-daniel@linux.ibm.com> From: Tao Xu Message-ID: <67031b1d-5785-330d-ddd8-b862799e6f18@intel.com> Date: Mon, 12 Aug 2019 16:03:15 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190806042440.16445-1-daniel@linux.ibm.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/6/2019 12:24 PM, 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. Looks good to me. Reviewed-by: Tao Xu > > 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"); >