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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 03FF2D2A53C for ; Wed, 16 Oct 2024 18:30:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8C43C88DA0; Wed, 16 Oct 2024 20:30:54 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=foss.st.com header.i=@foss.st.com header.b="4cHoyynM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5312588DB8; Wed, 16 Oct 2024 20:30:53 +0200 (CEST) Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 5669C88D14 for ; Wed, 16 Oct 2024 20:30:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=prvs=0019cf4dfa=patrick.delaunay@foss.st.com Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49GDxOoh027926; Wed, 16 Oct 2024 20:30:45 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= uJUuuOo55ft7p+tTmxyn0uplLUz3mdYsM69h7AJJReg=; b=4cHoyynMlTe+BPd2 xFX3stBA7v5IcMFUwBfg4nRQ76i7FLO30GaieuKYJrEEYAy/26UGy39SOqGztPd2 L2Df8fEAkuLLqG65tJi5HvPGb6mq74m1SC2zsQRmysO9SfCTQMaqe/MN73s0ni26 XMp3NlR4U+xuOv/LuMJpqsy81SO+94QYt3Cx7BP4Ukizs2s8z8M5WegkZU3VC+V8 C69TyKpHD6Rzvus+GioHwoAIIQHDxHeiVRtWwOMi+SuUHR/INprJedBF/xaN9Opg nwUHckpFxswRpo6QouC0Y4hha8wY17fgmHZHEPb3TM/Aol47LJNDUZVlA8RS22Fc y5qV/w== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 427gex4a6k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 16 Oct 2024 20:30:45 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 798B14004F; Wed, 16 Oct 2024 20:29:50 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 585FB2695F7; Wed, 16 Oct 2024 20:29:29 +0200 (CEST) Received: from [10.48.86.243] (10.48.86.243) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.37; Wed, 16 Oct 2024 20:29:28 +0200 Message-ID: Date: Wed, 16 Oct 2024 20:29:27 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/4] stm32mp: compute ram_top based on the optee base address only for STM32MP1 To: CC: Etienne CARRIERE , Sughosh Ganu , Patrice Chotard , Simon Glass , Tom Rini , U-Boot STM32 References: <20241011153152.1637303-1-patrick.delaunay@foss.st.com> <20241011173140.1.I5df2535b9afa16b2649399c208ea0e05cafffce5@changeid> Content-Language: en-US From: Patrick DELAUNAY In-Reply-To: <20241011173140.1.I5df2535b9afa16b2649399c208ea0e05cafffce5@changeid> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.48.86.243] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 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 Hi On 10/11/24 17:31, Patrick Delaunay wrote: > Reserved memory for OP-TEE is located at end of DDR for STM32MP1 SoC only > (STM32MP13 and STM32MP15) and the OP-TEE reserved memory is located at the > beginning of DDR for STM32MP25 SoC, before CONFIG_TEXT_BASE and > with reserved memory for companion coprocessor. So the ram_top is limited > by OP-TEE reserved memory only for STM32MP1 SoC. > > This patch solves an issue for ram_top value on STM32MP25 SoC because the > generic reserved memory management, based on LMB, is no more used before > relocation. > > Fixes: 8242f14a3e6f ("stm32mp: compute ram_top based on the optee base address") > Signed-off-by: Patrick Delaunay > --- > > arch/arm/mach-stm32mp/dram_init.c | 12 +++++++++--- > 1 file changed, 9 insertions(+), 3 deletions(-) > Applied to u-boot-stm/master, thanks! Regards Patrick