Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1100349ybe; Mon, 2 Sep 2019 14:31:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqzxB7NySIxdAS4q18RG/rorhEjxWAu1Ew3+KWoo3zaY6tH2ykJxiW5IrQBOu4+iEQRuyDus X-Received: by 2002:a62:4e52:: with SMTP id c79mr11147526pfb.28.1567459885851; Mon, 02 Sep 2019 14:31:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567459885; cv=none; d=google.com; s=arc-20160816; b=EB3KytZrNaJqmSX1r8Djl/h6C8erwvUayLJrgT2QgY6YUhKl81sILfa6MkPiknVXSd 2rkaASUOX5w1a4dd9PxUiSFRi4u6xIvT0DVzQS/jVuditAOZM4BjmNTPGsqTnS1j/VZ0 CW48TVyJ2yPJWXvPDGujzjGMVW/w3rm+GoYXrqNo4VwdFLtvOLyfwJc9iYRgbuPH+dWg Aqj7HHYRn00tc9pLEM21Er5rGXF3POIr4qtlH2IlM6/0STxGqnHNj5WhdXHbQkY3pvZW 7cIioQEWxwOH4sy6U8YJScL3wypj9axAraRKe4gZvhStD/eOrPpgE4vcSO7LvBRK0dIw okQw== 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; bh=XyEcBZbH1GhXCdZ3FGf7pSNInmzgfSYlTtfzGsz7yT4=; b=fsU5xEJHf5VGlDm3OCc/XGTzne9mELwyAD+1FwbAmBnUu6uH2iJbhz4JsT0zOWhTOC 5bWt/UANWBq7Sl5gvDwiKurC+rEq6mdOWdEqxPMsUpRTo4gEMj6CXQmSaITqzoSlGHDh 4vtkI+pK6mNBp6XLPOamsFde8Grdn4cIjJ+L6Zy8gV2DIak1E5oF5Thy5Uh1qLT3cYRO s3ooWLZ/rwFUMdXbAc1aHI7UkhVBVqaU3AU9n3/yX9oUP1UuQFrBIZH1cPvQljXU6EQh 1BK/D0lvprEgj9WIqs0cxCZlD015pj0DdF0JhlQlB9/mASiyYIAy8mH86SZRHDdM6SIn iiDA== 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6si12900914pgr.378.2019.09.02.14.31.10; Mon, 02 Sep 2019 14:31:25 -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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727686AbfIBV3D (ORCPT + 99 others); Mon, 2 Sep 2019 17:29:03 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:35385 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726964AbfIBV3D (ORCPT ); Mon, 2 Sep 2019 17:29:03 -0400 Received: by mail-oi1-f194.google.com with SMTP id a127so11269977oii.2; Mon, 02 Sep 2019 14:29:02 -0700 (PDT) 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=XyEcBZbH1GhXCdZ3FGf7pSNInmzgfSYlTtfzGsz7yT4=; b=FnAlRYRBhYiU+9FuKbpo2Tv9TKa2xwTn4KwLptzu/72PJ5/N2dl74w2DZhT4yhpbFf BaSgKUiXO/KAneq7pAE/xzDQi4k4pzMjcOfR+T/Q/KRNBDNQqnnAd2UPUZ6Ccivn2Aje 82BKuM3pFNsY6js6cmsc2/vOHmQkddb4QrjEy7cD7q2yFSQm4wvQwpSixvROurPcLjFk nPoGiETbNbV/2Z1UAwNw17wtY5dxTdE7ji0Vpfv6MrCiaNnsO3WRUASJYX4QZsMGFc4c k3oVv0dQzWrplGsqhzY7V8ACvlRG8DSHJABtpi/YK6Fz85W8GrZT6TUBtGcnon4cSOYZ C6jw== X-Gm-Message-State: APjAAAXJlD7S/CW9CDA8XrJYnP4/za5kmrByKZy4Y2h4Bvc6UFvZ7vZu JfDx/8OcgrIhjy9lBYbSznUqaM2lGE/nX5BXEkaOxQ== X-Received: by 2002:aca:f105:: with SMTP id p5mr12414543oih.57.1567459742390; Mon, 02 Sep 2019 14:29:02 -0700 (PDT) MIME-Version: 1.0 References: <20190806042440.16445-1-daniel@linux.ibm.com> In-Reply-To: <20190806042440.16445-1-daniel@linux.ibm.com> From: "Rafael J. Wysocki" Date: Mon, 2 Sep 2019 23:28:50 +0200 Message-ID: Subject: Re: [PATCH] acpi/hmat: ACPI_HMAT_MEMORY_PD_VALID is deprecated in ACPI-6.3 To: Daniel Black , Keith Busch Cc: "Rafael J. Wysocki" , Len Brown , "open list:ACPI" , open list 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 Tue, Aug 6, 2019 at 6:24 AM 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 Keith, any comments? > --- > 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"); > -- > 2.21.0 >