Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1495677ybd; Wed, 26 Jun 2019 19:11:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjD8qLo8KlIGwXQPHWgNLuWZM5p1tMWq5CUhue+1amosttxZ05iaL6YlUTAXsX5nAtFWZL X-Received: by 2002:a65:40cb:: with SMTP id u11mr1212925pgp.333.1561601490449; Wed, 26 Jun 2019 19:11:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561601490; cv=none; d=google.com; s=arc-20160816; b=P32V4b2RA+TWos4qmt+RsI6YzEAW9z3DAmQ62pT54L2TW7ORn5GvsjZ2gTaZ5ZNL6K 5o3pfKDcVFxmvV1VIQneccF44W8dWC2lIMlekgBYCbNake8QE6UJ3+sXY6xZiywNtyXM lRJ+HR3tfa1V1jYuupdECvHpa7RdZplkzSOKgTgAD07RXyg2jnIuBxhO7q6x3aQQhcYY D9RcK1fe63g4NFFekDZsA8n0gmfPiQ8vlDL4Fyca1iHQKNt9TuConGxgQMu7bx7izEtT m1cd2OdIBrYdmJJOxb3Bt3ce7IT6eZK8gyK4pj8EL8ieVBAZG0EmNjGbq0tQz/Nombw5 kczQ== 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=UaLYBvhGq3gd4Gu9tR3ZCecL27yTjW+SoEQCmywb1WE=; b=JHGgsIt5gKULhHS49yYrt1SZZQAKz48pD6o5fcHBhIA5X7PST8vgK0bajAtvr9ITl7 k1pn1/KDSQt3QP24chMl5DB/2zvs1IGbu8UVNzec2AYMq4+jEcgN5zD9LKan6YepDpLr 73h4t7jVHKDYcvVPY76uBIe4+yT7TOwit4tgvuPG8RQShUGlXQh8rCzHRGtri1VNsxm0 VEhWyKhYlsA/pl1WdIAUPyluB3J1Sf/SGfAdyOtivxZnnUcR7ek6xEwhc/x7WC2ekGUr CYXKqiA1p0HHYtHuCYd1Iorctiyk2SaQlzWpnVAiVe6yjYt6aOwOxMDCJTEEnw0RPcJ2 zxyQ== 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 92si872640plc.217.2019.06.26.19.11.13; Wed, 26 Jun 2019 19:11:30 -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 S1727085AbfF0CLB (ORCPT + 99 others); Wed, 26 Jun 2019 22:11:01 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:43104 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726884AbfF0CLA (ORCPT ); Wed, 26 Jun 2019 22:11:00 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 7A5856FB3196203F8FEE; Thu, 27 Jun 2019 10:10:58 +0800 (CST) Received: from [127.0.0.1] (10.177.223.23) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.439.0; Thu, 27 Jun 2019 10:10:55 +0800 Subject: Re: [PATCH v5 1/4] ACPI/PPTT: Modify node flag detection to find last IDENTICAL To: Jeremy Linton , CC: , , , , , , , , , Hanjun Gou References: <20190626213718.39423-1-jeremy.linton@arm.com> <20190626213718.39423-2-jeremy.linton@arm.com> From: Hanjun Guo Message-ID: Date: Thu, 27 Jun 2019 10:10:42 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20190626213718.39423-2-jeremy.linton@arm.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.223.23] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/6/27 5:37, Jeremy Linton wrote: > The ACPI specification implies that the IDENTICAL flag should be > set on all non leaf nodes where the children are identical. > This means that we need to be searching for the last node with > the identical flag set rather than the first one. > > Since this flag is also dependent on the table revision, we > need to add a bit of extra code to verify the table revision, > and the next node's state in the traversal. Since we want to > avoid function pointers here, lets just special case > the IDENTICAL flag. > > Tested-by: Hanjun Gou This is wrong, my family name is Guo, and please correct my email address as well (for all the 4 patches). Thanks Hanjun