From cbaf4c83e33dbf287d2c421f37f272426980f39e Mon Sep 17 00:00:00 2001 From: Etienne Carriere Date: Mon, 20 Nov 2023 11:43:57 +0100 Subject: [PATCH] core: mmu: fix nsec ddr discovery regarding MEM_AREA_RAM_NSEC Memory registered as MEM_AREA_RAM_NSEC can be part of the non-secure shared memory. This change fixes core_mmu_set_discovered_nsec_ddr() to not check such memory area do not overlap with non-secure RAM. This is no issue physical pages from MEM_AREA_RAM_NSEC memory are also handled and mapped as dynamic non-secure memory by OP-TEE. Reviewed-by: Jens Wiklander Signed-off-by: Lionel Debieve Signed-off-by: Etienne Carriere --- core/mm/core_mmu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/mm/core_mmu.c b/core/mm/core_mmu.c index b46910e62cb..c894e3fc2fa 100644 --- a/core/mm/core_mmu.c +++ b/core/mm/core_mmu.c @@ -471,6 +471,7 @@ void core_mmu_set_discovered_nsec_ddr(struct core_mmu_phys_mem *start, break; case MEM_AREA_EXT_DT: case MEM_AREA_MANIFEST_DT: + case MEM_AREA_RAM_NSEC: case MEM_AREA_RES_VASPACE: case MEM_AREA_SHM_VASPACE: case MEM_AREA_TS_VASPACE: