From nobody Tue Nov 11 10:08:21 2025 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1566236692; cv=none; d=zoho.com; s=zohoarc; b=GhWHhN0o5t9BXjbPuwuHCf4Ez4+DezpWzF4GJyx/ukz+PR5ya4XYeBHyMIaO+PLYbsPpf6hm7RSjHjLIBpcdZECYEcGur6cuR1F2SrzZJNmn2s9dDQou2DkeoKBvEYkI2G6aZOxoiuNoqH6GzpaNnsF9p62tl/l4kZ3zRtQZZQk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1566236692; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=MrPFCBPdBGINSo0aYaj3To8+2tCpzBniKiSS9tfSkac=; b=QxJ9VbNJw1FW94FIClUpcdhpN3AaozLQwu4NZDAuvxOq1u5vUU0bvcQMKLHhtOilUHHwKAc2a60+O4/dvRjl2aZCARW0vDEclLS5LP+6yaUxJrXYihW6PL9bN2nhC4qK1J3MFFlVX7zZkgnj8WgfgSqYTDt3w0AK9eMBrf5ujqI= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1566236692032482.66556538082307; Mon, 19 Aug 2019 10:44:52 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hzlh2-0007eA-7S; Mon, 19 Aug 2019 17:43:44 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hzlh0-0007ce-VO for xen-devel@lists.xenproject.org; Mon, 19 Aug 2019 17:43:42 +0000 Received: from mail.kernel.org (unknown [198.145.29.99]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id e27c8ab0-c2a8-11e9-b90c-bc764e2007e4; Mon, 19 Aug 2019 17:43:42 +0000 (UTC) Received: from sstabellini-ThinkPad-T480s.xilinx.com (c-67-164-102-47.hsd1.ca.comcast.net [67.164.102.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A9D4222CF4; Mon, 19 Aug 2019 17:43:41 +0000 (UTC) X-Inumbo-ID: e27c8ab0-c2a8-11e9-b90c-bc764e2007e4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566236621; bh=5thd5wvD5iU/Igcl2ae2AdzNxU2d7IpJYwHOSpzdkK8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j1Yicx2lw05Cdq7NdZrttN2ANagXVLNvWMwYElu5K6vPp57FLnR//C8TUSE9j453y co7/3B9AEuNYAJgPQHCXdHLjvNiWvkcDdT7uld1WewCQ6F0PV9AMH7W0mOHkme4TiF 9Qrpn2AW2DEHdbi4KBUUBBTZWEh2YWZxeyZtYNt4= From: Stefano Stabellini To: xen-devel@lists.xenproject.org Date: Mon, 19 Aug 2019 10:43:35 -0700 Message-Id: <20190819174338.10466-5-sstabellini@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Subject: [Xen-devel] [PATCH v7 5/8] xen/arm: early_print_info print reserved_mem X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Stefano Stabellini , julien.grall@arm.com, sstabellini@kernel.org, Volodymyr_Babchuk@epam.com MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Improve early_print_info to also print the banks saved in bootinfo.reserved_mem. Print them right after RESVD, increasing the same index. Since we are at it, also switch the existing RESVD print to use unsigned int. Signed-off-by: Stefano Stabellini Reviewed-by: Volodymyr Babchuk Acked-by: Julien Grall --- Changes in v6: - add acked-by and reviewed-by - fix indentation Changes in v5: - switch to unsigned Changes in v4: - new patch --- xen/arch/arm/bootfdt.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/bootfdt.c b/xen/arch/arm/bootfdt.c index eb3dc13b06..defd793f8f 100644 --- a/xen/arch/arm/bootfdt.c +++ b/xen/arch/arm/bootfdt.c @@ -352,9 +352,10 @@ static int __init early_scan_node(const void *fdt, static void __init early_print_info(void) { struct meminfo *mi =3D &bootinfo.mem; + struct meminfo *mem_resv =3D &bootinfo.reserved_mem; struct bootmodules *mods =3D &bootinfo.modules; struct bootcmdlines *cmds =3D &bootinfo.cmdlines; - int i, nr_rsvd; + unsigned int i, j, nr_rsvd; =20 for ( i =3D 0; i < mi->nr_banks; i++ ) printk("RAM: %"PRIpaddr" - %"PRIpaddr"\n", @@ -376,7 +377,13 @@ static void __init early_print_info(void) continue; /* fdt_get_mem_rsv returns length */ e +=3D s; - printk(" RESVD[%d]: %"PRIpaddr" - %"PRIpaddr"\n", i, s, e); + printk(" RESVD[%u]: %"PRIpaddr" - %"PRIpaddr"\n", i, s, e); + } + for ( j =3D 0; j < mem_resv->nr_banks; j++, i++ ) + { + printk(" RESVD[%u]: %"PRIpaddr" - %"PRIpaddr"\n", i, + mem_resv->bank[j].start, + mem_resv->bank[j].start + mem_resv->bank[j].size - 1); } printk("\n"); for ( i =3D 0 ; i < cmds->nr_mods; i++ ) --=20 2.17.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel