Skip to content

Commit afb156a

Browse files
jxstelterMaureenHelm
authored andcommitted
soc: ace_v1x: unmap entire unused virtual space
This patch corrects the initial unmapping of unused l2 memory to unmap until the end of virtual address space instead of unmapping until the end of l2 physical memory. Signed-off-by: Jaroslaw Stelter <[email protected]>
1 parent 8b59853 commit afb156a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/mm/mm_drv_intel_adsp_mtl_tlb.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,9 +681,10 @@ static int sys_mm_drv_mm_init(const struct device *dev)
681681
}
682682

683683
/*
684-
* Unmap unused physical pages from the TLB to save power
684+
* Unmap all unused physical pages from the entire
685+
* virtual address space to save power
685686
*/
686-
size_t unused_size = L2_SRAM_BASE + L2_SRAM_SIZE -
687+
size_t unused_size = CONFIG_KERNEL_VM_BASE + CONFIG_KERNEL_VM_SIZE -
687688
unused_l2_start_aligned;
688689

689690
ret = sys_mm_drv_unmap_region(UINT_TO_POINTER(unused_l2_start_aligned),

0 commit comments

Comments
 (0)