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 77532C3DA6E for ; Mon, 8 Jan 2024 16:58:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 57B9987ABA; Mon, 8 Jan 2024 17:58:14 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=bootlin.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=bootlin.com header.i=@bootlin.com header.b="Sed3m9QE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7529887463; Mon, 8 Jan 2024 17:58:13 +0100 (CET) Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) (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 1B2DA87AA4 for ; Mon, 8 Jan 2024 17:58:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=thomas.richard@bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 59A10FF815; Mon, 8 Jan 2024 16:58:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1704733090; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+UnjXEVnQYyie2JWwVQ4gSmHGi9QOVTvhU54k9n79VQ=; b=Sed3m9QEcg/T+ug1FPmm0gvka4GpeG1HgZ5G+mXtz/bRVbX4jr9v3bDZQeK5poK4gudxwl sbEIGXfa0pOOVneO15RX2aYstAqNqOCJNk1i+OEe2YmnZX94WKyEhy1ggorXt04SgZNBqG bhyisV6udFiuoKmNct/R0W30DSqvbR9ZAOto4YbnD3KLXL26LiCyU6WbelCkUWWnXWOUQZ Xs47CVqyEw92cZVE3h6OdWi2BhpE+JCSedfjKF/tNmZpRbtrlohJ4ijMAdJRbkzZXYUreU gvOYBOXMDhG75tnltsx8qRexW6Mi8766r2T0vJzgwxmwRrVLgbJNbjn24ZkO8Q== From: Thomas Richard To: u-boot@lists.denx.de Cc: thomas.petazzoni@bootlin.com, thomas.richard@bootlin.com, nm@ti.com, u-kumar1@ti.com, gregory.clement@bootlin.com Subject: [PATCH v3 2/8] configs: j7200_evm_r5: Used reserved memory in DDR for stack Date: Mon, 8 Jan 2024 17:56:22 +0100 Message-Id: <20240108165628.3935756-3-thomas.richard@bootlin.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240108165628.3935756-1-thomas.richard@bootlin.com> References: <20240108165628.3935756-1-thomas.richard@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-GND-Sasl: thomas.richard@bootlin.com 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 From: Gregory CLEMENT When resuming from suspend to ram, we load again the DM firmware. However, we have to be sure to not modify the memory used by Linux. Currently the SPL stack in DDR was in place that could be used by Linux. Instead of it use a memory address that is located in a reserved location that won't be used by Linux. Signed-off-by: Gregory CLEMENT Signed-off-by: Thomas Richard --- (no changes since v1) configs/j7200_evm_r5_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/j7200_evm_r5_defconfig b/configs/j7200_evm_r5_defconfig index c4dd33627b..7450529d66 100644 --- a/configs/j7200_evm_r5_defconfig +++ b/configs/j7200_evm_r5_defconfig @@ -20,7 +20,7 @@ CONFIG_DM_RESET=y CONFIG_SPL_MMC=y CONFIG_SPL_SERIAL=y CONFIG_SPL_DRIVERS_MISC=y -CONFIG_SPL_STACK_R_ADDR=0x82000000 +CONFIG_SPL_STACK_R_ADDR=0xa5300000 CONFIG_SPL_FS_FAT=y CONFIG_SPL_LIBDISK_SUPPORT=y CONFIG_SPL_SPI_FLASH_SUPPORT=y -- 2.39.2