deleted>Frq08988 mNo edit summary |
Registered User No edit summary |
||
Line 1: | Line 1: | ||
== Article purpose == | == Article purpose == | ||
The '''Reserved-memory''' mechanism<ref>https://www.kernel.org/doc/Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt</ref> allows reserving memory regions in the kernel. This mechanism is used by drivers to allocate buffers in specific memory regions (such as [[MCU SRAM internal memory|MCU SRAM]]) or to get a dedicated memory pool that will not be managed by Linux<sup>®</sup> conventionnal memory allocator (in [[DDRCTRL and DDRPHYC internal peripherals|DDR]]).<br /> | The '''Reserved-memory''' mechanism<ref>https://www.kernel.org/doc/Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt</ref> allows reserving memory regions in the kernel. This mechanism is used by drivers to allocate buffers in specific memory regions (such as [[MCU SRAM internal memory|MCU SRAM]]) or to get a dedicated memory pool that will not be managed by Linux<sup>®</sup> conventionnal memory allocator (in [[DDRCTRL and DDRPHYC internal peripherals|DDR]]).<br /> | ||
Line 16: | Line 11: | ||
== References == | == References == | ||
<references/> | <references/> | ||
<noinclude> | |||
[[Category:RAM]] | |||
{{PublicationRequestId | 8903 | 2018-09-25 - AnneJ}} | |||
</noinclude> |
Revision as of 15:47, 31 January 2020
1. Article purpose
The Reserved-memory mechanism[1] allows reserving memory regions in the kernel. This mechanism is used by drivers to allocate buffers in specific memory regions (such as MCU SRAM) or to get a dedicated memory pool that will not be managed by Linux® conventionnal memory allocator (in DDR).
2. Use cases
In STM32 MPU Linux OS, the reserved-memory is used by:
- the dmaengine driver to reserve the region where DMA buffers are allocated, typically MCU SRAM.
- the remoteproc driver to reserve the regions in RETRAM and MCU SRAM where the coprocessor firmware will be loaded.
- the RPMsg driver to reserve the region where RPMsg buffers used for interprocess communication with the coprocessor, are allocated, typically MCU SRAM.
- the Vivante Gcnano driver to reserve the region where the GPU working memory is allocated, typically the DDR.
3. References