sof/zephyr/lib
Adrian Warecki eaddf533f9 regions_mm: Determine size of the mapped memory region before unmapping
The memory block allocated by the allocator may be larger than a requested
one. If the allocated block size exceeds the memory page size, only enough
pages are mapped to satisfy the request. Thanks to this optimization, it
don't map memory pages that will not be used. When freeing memory,
the allocator knows only size of the allocated block. Information about the
number of pages actually mapped isn't stored anywhere.

Before unmapping memory, determine the number of mapped pages to avoid
error when trying to unmap unmapped memory.

Signed-off-by: Adrian Warecki <adrian.warecki@intel.com>
2024-10-08 18:19:48 +03:00
..
alloc.c platform: imx93_a55: select `CONFIG_IMX` 2024-08-20 11:51:41 +03:00
clk.c zephyr: cavs: use zephyr pm, clk and dma glue 2023-03-27 12:37:26 +03:00
cpu.c zephyr: Explicitly manage DAI power states during D3 transitions 2024-09-24 12:56:32 +03:00
dma.c lib: dma: add entries for imx95's EDMA2 and HOST_DMA 2024-10-04 11:14:58 +03:00
pm_runtime.c zephyr: decouple from platform pm_runtime.h interface 2024-09-24 12:58:06 +03:00
regions_mm.c regions_mm: Determine size of the mapped memory region before unmapping 2024-10-08 18:19:48 +03:00