Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 252D9C25B4E for ; Fri, 20 Jan 2023 15:09:54 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.481932.747170 (Exim 4.92) (envelope-from ) id 1pIt1Q-0006iG-Ts; Fri, 20 Jan 2023 15:09:40 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 481932.747170; Fri, 20 Jan 2023 15:09:40 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pIt1Q-0006i9-Qr; Fri, 20 Jan 2023 15:09:40 +0000 Received: by outflank-mailman (input) for mailman id 481932; Fri, 20 Jan 2023 15:09:40 +0000 Received: from mail.xenproject.org ([104.130.215.37]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pIt1Q-0006i3-0n for xen-devel@lists.xenproject.org; Fri, 20 Jan 2023 15:09:40 +0000 Received: from xenbits.xenproject.org ([104.239.192.120]) by mail.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pIt1P-0008To-MY; Fri, 20 Jan 2023 15:09:39 +0000 Received: from 54-240-197-230.amazon.com ([54.240.197.230] helo=[10.95.149.154]) by xenbits.xenproject.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pIt1P-00039Q-G4; Fri, 20 Jan 2023 15:09:39 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=xen.org; s=20200302mail; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=9qJtD2Yqcw0dYOgj4lUpYax2JUGRXYkvpooIw51hFoA=; b=WkR0FA36zUzIz5YtjGTdCoaIpq fN7o9d6ImHa4raAywCK6WfpUORschYW1KgfwDdMg29Agufi1uyVv3+MKYJgCasuYK7ZARoOZRa0Cm TsRQj62GcRYdWEd7DMbbyvVw2G0DmVZTjlnlUIaC1Ytce5WgR9adnlRZX2GZv3Cegy+8=; Message-ID: Date: Fri, 20 Jan 2023 15:09:37 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [XEN v2 02/11] xen/arm: Use the correct format specifier Content-Language: en-US To: Michal Orzel , Stefano Stabellini , Ayan Kumar Halder Cc: xen-devel@lists.xenproject.org, stefano.stabellini@amd.com, Volodymyr_Babchuk@epam.com, bertrand.marquis@arm.com References: <20230117174358.15344-1-ayan.kumar.halder@amd.com> <20230117174358.15344-3-ayan.kumar.halder@amd.com> From: Julien Grall In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 20/01/2023 14:40, Michal Orzel wrote: > Hello, Hi, > > On 20/01/2023 10:32, Julien Grall wrote: >> >> >> Hi, >> >> On 19/01/2023 22:54, Stefano Stabellini wrote: >>> On Tue, 17 Jan 2023, Ayan Kumar Halder wrote: >>>> 1. One should use 'PRIpaddr' to display 'paddr_t' variables. >>>> 2. One should use 'PRIx64' to display 'u64' in hex format. The current >>>> use of 'PRIpaddr' for printing PTE is buggy as this is not a physical >>>> address. >>>> >>>> Signed-off-by: Ayan Kumar Halder >>> >>> Reviewed-by: Stefano Stabellini >> >> >> I have committed the patch. > The CI test jobs (static-mem) failed on this patch: > https://gitlab.com/xen-project/xen/-/pipelines/752911309 Thanks for the report. > > I took a look at it and this is because in the test script we > try to find a node whose unit-address does not have leading zeroes. > However, after this patch, we switched to PRIpaddr which is defined as 016lx/016llx and > we end up creating nodes like: > > memory@0000000050000000 > > instead of: > > memory@60000000 > > We could modify the script, TBH, I think it was a mistake for the script to rely on how Xen describe the memory banks in the Device-Tree. For instance, from my understanding, it would be valid for Xen to create a single node for all the banks or even omitting the unit-address if there is only one bank. > but do we really want to create nodes > with leading zeroes? The dt spec does not mention it, although [1] > specifies that the Linux convention is not to have leading zeroes. Reading through the spec in [2], it suggested the current naming is fine. That said the example match the Linux convention (I guess that's not surprising...). I am open to remove the leading. However, I think the CI also needs to be updated (see above why). Cheers, [2] https://www.devicetree.org/ -- Julien Grall