Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3566448ybh; Mon, 5 Aug 2019 21:25:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqymb3upzDY1JK4LnAiQWBG2unfHPnb3HOfX7knIvvF3hNkOcSgWJE3sVKFgvkxpQDNOHzQh X-Received: by 2002:a17:90a:24e4:: with SMTP id i91mr1147112pje.9.1565065540614; Mon, 05 Aug 2019 21:25:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565065540; cv=none; d=google.com; s=arc-20160816; b=AVJi4ICrUOxhgLWkz9XKCKwS2R3ST0zuZ3pRDC4sDgl9oEhP5N+wHqltrNYmezwa3B dNaB4ueLEtgwQ8MvGQig3xyyuy3mkMRdhwMDjdr3oGxnzqYkDJzhoWFyk8CEmJ4d2j4T CVNn7Vmk22KmlXzfUttdam9CS0U5cQAizF/TNpNeOEQmLod8SbQSaZtF+leqd3xbQVNT XV2E7UCYNYb3SJtqDdJD6juC5QS6D9A9LTME/PDQufE8PWk6w0P94uMsVVywF93BvabL biEMm3KdMtGcMfiL/AZvU4S/SEGTesLpZPL7IkwDxIw2Qz1Q6/tqDhMzBqvc5nb1FPpR +Guw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:message-id:content-transfer-encoding :mime-version:date:subject:cc:from; bh=2GCj29ErnSiRD0SSBpMU2epFLhsyv7GiBJFcEZCOqQU=; b=qMHG6BSPDLh+AtoxqCCHKL8KwuNDcjf+aeLEJFZH/8Krw4QPJiTX9s99llJ6KIzyS2 oyB3f/EiGwJtkMGHX3J/38anihkDKLxqFMHdrwryFZGBl2AjgGJff8IRAez8ZcH4L8rG 5iCh2BqhbXdCcwgL7Sos5rvqh18hU8y9cQtEwScutRELq3whcXFMwjA0k3kunRxiiHpl dhvzffQHRw5hLKZZKh2757sHpLX36f0naYg/JhiIZKLihreveU6igodiqXPcradAN9AK bNgYpvYDtP7f6ZVYuX3DqCuz6vjygWjiad60MmSyvSUCPJEY2q+pwcw27vds85oIYN9S h8Tw== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1si11349740pgn.300.2019.08.05.21.25.25; Mon, 05 Aug 2019 21:25:40 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726373AbfHFEYw (ORCPT + 99 others); Tue, 6 Aug 2019 00:24:52 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:59900 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725798AbfHFEYw (ORCPT ); Tue, 6 Aug 2019 00:24:52 -0400 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x764Ls2c084837 for ; Tue, 6 Aug 2019 00:24:51 -0400 Received: from e06smtp02.uk.ibm.com (e06smtp02.uk.ibm.com [195.75.94.98]) by mx0b-001b2d01.pphosted.com with ESMTP id 2u6wy70gf1-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 06 Aug 2019 00:24:50 -0400 Received: from localhost by e06smtp02.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 6 Aug 2019 05:24:49 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp02.uk.ibm.com (192.168.101.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 6 Aug 2019 05:24:47 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x764OkN238207620 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 6 Aug 2019 04:24:46 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AE4E6A404D; Tue, 6 Aug 2019 04:24:46 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5A244A4059; Tue, 6 Aug 2019 04:24:46 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 6 Aug 2019 04:24:46 +0000 (GMT) Received: from volution.ozlabs.ibm.com (haven.au.ibm.com [9.192.254.114]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id 22B8CA01F6; Tue, 6 Aug 2019 14:24:45 +1000 (AEST) From: Daniel Black Cc: Daniel Black , "Rafael J. Wysocki" , Len Brown , linux-acpi@vger.kernel.org (open list:ACPI), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] acpi/hmat: ACPI_HMAT_MEMORY_PD_VALID is deprecated in ACPI-6.3 Date: Tue, 6 Aug 2019 14:24:39 +1000 X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 x-cbid: 19080604-0008-0000-0000-00000305A25B X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19080604-0009-0000-0000-0000A17FA9E0 Message-Id: <20190806042440.16445-1-daniel@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-08-06_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=868 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1906280000 definitions=main-1908060051 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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"); -- 2.21.0