Message ID | 20240704073544.670249-44-sughosh.ganu@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:a199:0:b0:367:895a:4699 with SMTP id u25csp1044070wru; Thu, 4 Jul 2024 00:44:06 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXqc/LJ2xdrSCnVqf1nxFTqMXK1wArFz+oDS19j2BzHjgyhQ+oYJP3EYlEEgxICq9E+euxEYLATuNMUl/vIubb7 X-Google-Smtp-Source: AGHT+IGPFr+Yr7/oPDpUZzu1XHDzjpCw8N+qK6SbFkMBcOuZeuCyjOugmybUc8ii7VodnAOSfMRP X-Received: by 2002:a05:6402:27cf:b0:58b:8e59:abe3 with SMTP id 4fb4d7f45d1cf-58e7c29be7cmr533770a12.16.1720079045964; Thu, 04 Jul 2024 00:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1720079045; cv=none; d=google.com; s=arc-20160816; b=gasEAjkWBhYKA8DzcUDDjfkYrKvkTuiviXM1eEVnHsAmgv0OqGTft9E8vQQKoOvBth iaNBGRYo6qa2zfpNBNbNTj9hke/k8rSidBuABM95lSvLwv6I0cfXpvRO/VPhniFs683f 9ZlhOON/LNsirVHekuChF9C/MfLmavfl64Ab5jMir7biPa6DFZtML2jM14xhM1tdVgWe 7fTBcJsKhabrEwRZe4j/wToH7iu2SAWZex+lj6vbsziZzApmrwItZSboQXiyaB4V8Zh6 33LOQKnh9r4fhR/bxYsvHt4xjdhSeSVp0e5ihShGGYsiM1MqvxfcUoLS+hvR0onHt6cf Lidg== 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=LcUluNumM5vGWsGaRxC8H3tkjKLswtIBO2rA4IU4sS0=; fh=ez1zzjhC0XWyqTp7tWutqrA/nFdALDnQKrnQnXYhk5Q=; b=UMQ1KHyWJSI+EaVaQdSq5D+Y5xSybj+yOrTtZs0aP8KRJEbK5wj3yvMhymmovlWbbQ XB0zk4z2+YPoaVva7JeH6sc5SM2TCO7CZ8rwaFmb7PyZ+8+WqtLL4fV3R7dDuwXx9Uk8 x02wTLPbZ/M0Q9EGu/j9SBXwJufwSvySJziyYgOZrK/IdvN0vWMK6PR1u6OptEX+ta83 0WwbcmoHez9i1mne7exdWzZ7YXHhOAvOGFi6/AP+8fOGEiyHd0RAyVaALQFNSltGWg8A 3wTbzTGnn61Bg5RDgemBf2csNdnoOTgvOqDT9gAfPY4yr+J1ddPJfQhzgNsFfgJaTsTN xJGg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-58c5ded9743si1929438a12.463.2024.07.04.00.44.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jul 2024 00:44:05 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 F19908889D; Thu, 4 Jul 2024 09:38:47 +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 10ACB88979; Thu, 4 Jul 2024 09:38:47 +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 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 7035D8897A for <u-boot@lists.denx.de>; Thu, 4 Jul 2024 09:38:43 +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 EC84FDA7; Thu, 4 Jul 2024 00:39:07 -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 B24603F762; Thu, 4 Jul 2024 00:38:39 -0700 (PDT) From: Sughosh Ganu <sughosh.ganu@linaro.org> To: u-boot@lists.denx.de Cc: Tom Rini <trini@konsulko.com>, Ilias Apalodimas <ilias.apalodimas@linaro.org>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org>, Marek Vasut <marex@denx.de>, Mark Kettenis <mark.kettenis@xs4all.nl>, Fabio Estevam <festevam@gmail.com>, Michal Simek <michal.simek@amd.com>, Sughosh Ganu <sughosh.ganu@linaro.org> Subject: [RFC PATCH v2 43/48] layerscape: use the lmb API's to add RAM memory Date: Thu, 4 Jul 2024 13:05:39 +0530 Message-Id: <20240704073544.670249-44-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240704073544.670249-1-sughosh.ganu@linaro.org> References: <20240704073544.670249-1-sughosh.ganu@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
Make U-Boot memory reservations coherent
|
expand
|
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c index d2dbfdd08a..dacb95f1a8 100644 --- a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c +++ b/arch/arm/cpu/armv8/fsl-layerscape/cpu.c @@ -10,6 +10,7 @@ #include <env.h> #include <init.h> #include <hang.h> +#include <lmb.h> #include <log.h> #include <net.h> #include <vsprintf.h> @@ -1525,8 +1526,8 @@ int dram_init_banksize(void) return 0; } -#if CONFIG_IS_ENABLED(EFI_LOADER) -void efi_add_known_memory(void) +#if CONFIG_IS_ENABLED(LMB) +void lmb_add_memory(void) { int i; phys_addr_t ram_start; @@ -1548,8 +1549,7 @@ void efi_add_known_memory(void) gd->arch.resv_ram < ram_start + ram_size) ram_size = gd->arch.resv_ram - ram_start; #endif - efi_add_memory_map(ram_start, ram_size, - EFI_CONVENTIONAL_MEMORY); + lmb_add(ram_start, ram_size); } } #endif
The EFI memory allocations are now being done through the LMB module, and hence the memory map is maintained by the LMB module. Use the lmb_add_memory() API function to add the usable RAM memory to the LMB's memory map. Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org> --- Changes since V1: New patch arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)