From patchwork Fri Jun 7 18:52:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 802339 Delivered-To: patch@linaro.org Received: by 2002:adf:f147:0:b0:35b:5a80:51b4 with SMTP id y7csp950069wro; Fri, 7 Jun 2024 11:58:32 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWCENyjW9mOTTv4jeG1WtdrTlj30qpNIS9SVlyiqlPxpC5ck82BQMJhyr0o3+tv157oaN1cCDye7pcCIJtnTMHT X-Google-Smtp-Source: AGHT+IEG0gRn6p7wW+wQWKqQMOlHbVM7Ak9cExoMquEGeiwHI7HcLvNbP6N9CawHhVtBYvAmE+4q X-Received: by 2002:a05:6512:3f21:b0:524:43b2:d326 with SMTP id 2adb3069b0e04-52bb9f83689mr2684630e87.37.1717786712145; Fri, 07 Jun 2024 11:58:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1717786712; cv=none; d=google.com; s=arc-20160816; b=RrPelFibZ7O0vQzy1sewKvwIKIw44X8k3woXa632uPp7bswioAQ/WKYHz2ApKJhl6Q +06jQdbBZkXnBROgp8TC/ndJ7hVElRuWdLLSZltdfrvmY2stPbqx83VIMJZeaemZnUDo AOP34HPf1qJGY6x1MQdLhObhvVGVJ5/nLPXHRX2byXEL8Y3bqb8yzKqyd14GlpWULP8H cKn7EhjYCl3yBrkvcff8jU0wDZCfOxq9An5dd5AsztMSYT2jinDqLzn25HC1OPx7HNEc 9IPyq4/3nHvTtfnvbrqWdl+JqwpDZ/kJzKhvEWUou+3L6ByPyAU22lhUBuCOlFPAOzOD ywHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=UruoXrac+395O/WjVFbqiPdEEUvQ2zVFcIsPs1LvA7A=; fh=xLSOOz5Q0Mrmzd+lwBRTYS7D/8TpUWM8TEHgIjpMzow=; b=mP8GfD7vEcX2vX8l1l/Gwj9BTj1mIlsr4/kkNKlxE4qizqaYtqJxe5gGzmo1iCBzyY 9dk6lHrVeUcegVMGX2A9ac2YJImQiZgrCmL/bR/hwTg7sa79s9KjcdKDXQgDJ64A412H 0aHE3mxwPGnjW3VNnxrJj3qjyH3NX9YiX/SdFKDm5UqbCWl6wIjoYxtev+BoagyPrYt6 pNgcZghKHFjBJYDMYnqG61YGme6P5rDrkgVemgAN1iZWVPn9lAXZcus30gIPeRUpS10a SVCv0Vc00alOQC2Vrctes0+laaLytT1uhnCRk7As8lk7Oyt5rKeylJP8Qm/nCaAMV0aA 6Glw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id a640c23a62f3a-a6c80726a3asi207765766b.719.2024.06.07.11.58.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 11:58:32 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2F0AA8856F; Fri, 7 Jun 2024 20:55:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 43BE088445; Fri, 7 Jun 2024 20:55:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 96C6888445 for ; Fri, 7 Jun 2024 20:55:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 804EB1480; Fri, 7 Jun 2024 11:55:27 -0700 (PDT) Received: from a079122.blr.arm.com (a079122.arm.com [10.162.17.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 556C93F792; Fri, 7 Jun 2024 11:55:00 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Tom Rini , Ilias Apalodimas , Heinrich Schuchardt , Simon Glass , Marek Vasut , Mark Kettenis , Fabio Estevam , Sughosh Ganu Subject: [RFC PATCH 28/31] cmd: bdinfo: only dump the current LMB memory Date: Sat, 8 Jun 2024 00:22:37 +0530 Message-Id: <20240607185240.1892031-29-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240607185240.1892031-1-sughosh.ganu@linaro.org> References: <20240607185240.1892031-1-sughosh.ganu@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean The LMB memory map is now persistent and global. There is therefore no need to add memory to the LMB memory map as part of the bdinfo command. Only dump the current available and reserved memory as part of the bdinfo command. Signed-off-by: Sughosh Ganu --- cmd/bdinfo.c | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index fc408e9820..0f343203ef 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -163,7 +163,6 @@ static int bdinfo_print_all(struct bd_info *bd) bdinfo_print_num_l("multi_dtb_fit", (ulong)gd->multi_dtb_fit); #endif if (IS_ENABLED(CONFIG_LMB) && gd->fdt_blob) { - lmb_add_memory(gd->bd); lmb_dump_all_force(); if (IS_ENABLED(CONFIG_OF_REAL)) printf("devicetree = %s\n", fdtdec_get_srcname());