From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9954EC2D0C0 for ; Tue, 24 Dec 2019 01:11:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 757CA2070E for ; Tue, 24 Dec 2019 01:11:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726877AbfLXBLN (ORCPT ); Mon, 23 Dec 2019 20:11:13 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:47338 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726833AbfLXBLN (ORCPT ); Mon, 23 Dec 2019 20:11:13 -0500 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 31C863129C7C45629912; Tue, 24 Dec 2019 09:11:10 +0800 (CST) Received: from [127.0.0.1] (10.177.223.23) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.439.0; Tue, 24 Dec 2019 09:11:03 +0800 Subject: Re: [RFC PATCH 1/2] ACPICA/IORT: Correct the comment for id_count To: John Garry , Lorenzo Pieralisi , Sudeep Holla , "Rafael J. Wysocki" , Pankaj Bansal , "Erik Schmauss" CC: , , References: <1577092997-9852-1-git-send-email-guohanjun@huawei.com> From: Hanjun Guo Message-ID: <02a5dc75-d1f1-9df5-3ce2-482fbf86075b@huawei.com> Date: Tue, 24 Dec 2019 09:10:33 +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: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.177.223.23] X-CFilter-Loop: Reflected Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org On 2019/12/23 18:35, John Garry wrote: > On 23/12/2019 09:23, Hanjun Guo wrote: >> In IORT spec >> (http://infocenter.arm.com/help/topic/com.arm.doc.den0049d/DEN0049D_IO_Remapping_Table.pdf), >> id_num means Number of IDs minus one, update the comment. >> >> Signed-off-by: Hanjun Guo >> --- >> >> This patch just for comments, needs to be upstream in ACPICA first. >> >>   include/acpi/actbl2.h | 2 +- >>   1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h >> index e45ced2..382642f 100644 >> --- a/include/acpi/actbl2.h >> +++ b/include/acpi/actbl2.h >> @@ -104,7 +104,7 @@ enum acpi_iort_node_type { >>     struct acpi_iort_id_mapping { >>       u32 input_base;        /* Lowest value in input range */ >> -    u32 id_count;        /* Number of IDs */ >> +    u32 id_count;        /* Number of IDs in the range minus one */ > > The IORT spec also uses the term "Length" in the examples... More confusing...