Message ID | 20231107161802.855154-3-thomas.richard@bootlin.com |
---|---|
State | Deferred |
Delegated to: | Tom Rini |
Headers | show |
Series | Suspend to RAM support for K3 J7200 | expand |
On Tue, Nov 07, 2023 at 05:17:56PM +0100, Thomas Richard wrote: > From: Gregory CLEMENT <gregory.clement@bootlin.com> > > 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 <gregory.clement@bootlin.com> > Signed-off-by: Thomas Richard <thomas.richard@bootlin.com> > --- > > (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 This is fine but I want to see a previous change that sets CONFIG_SPL_SIZE_LIMIT and related to the right / useful values (j721e/j721s2 and some other K3 platforms set this as well) for j7200, and then SPL_SIZE_LIMIT_PROVIDE_STACK being set in this patch, and other options adjusted as needed.
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