Skip to content

Commit aa1e9e2

Browse files
Yann-lmsspasdeloup
authored andcommitted
feat(stm32mp1): disable MMU earlier when going to standby
The disabling of MMU before entering standby mode is no more done in stm32_pwr_down_wfi_wrapper(). It has to be done by BL32. This is OK for OP-TEE, but it was not the case for SP_MIN. The call to the function disable_mmu_icache_secure() is then done before stm32_pwr_down_wfi() in stm32_pwr_domain_pwr_down_wfi(). Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: I31ea5b38e98e381069573aee646debe90a2935dc Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/tf-a/+/315669 ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com> ACI: CIBUILD <MDG-smet-aci-builds@list.st.com> Domain-Review: Patrick DELAUNAY <patrick.delaunay@foss.st.com>
1 parent a3f57eb commit aa1e9e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plat/st/stm32mp1/stm32mp1_pm.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015-2021, ARM Limited and Contributors. All rights reserved.
2+
* Copyright (c) 2015-2023, ARM Limited and Contributors. All rights reserved.
33
*
44
* SPDX-License-Identifier: BSD-3-Clause
55
*/
@@ -169,13 +169,13 @@ static void __dead2 stm32_pwr_domain_pwr_down_wfi(const psci_power_state_t
169169
void (*warm_entrypoint)(void) =
170170
(void (*)(void))stm32_sec_entrypoint;
171171

172+
disable_mmu_icache_secure();
173+
172174
stm32_pwr_down_wfi(stm32_is_cstop_done(),
173175
stm32mp1_get_lp_soc_mode(PSCI_MODE_SYSTEM_SUSPEND));
174176

175177
stm32_exit_cstop();
176178

177-
disable_mmu_icache_secure();
178-
179179
warm_entrypoint();
180180
}
181181

0 commit comments

Comments
 (0)