Reserved memory region for M4 in ddr
Hello!
I try to understand how to exclude some memory from ddr for Linux, but M4 must have to access to that memory, because M4 needs to store about 40 Mb, but not RETRAM or SYSRAM doesn't allow it. So, I try to store this in ddr, but I don't want that Linux can use this memory region.
I try to use reserved memory in Linux dts like that:
in root node in stm32mp157a-dk1.dts
memory@c0000000 {
reg = <0xc0000000 0x20000000>;
};
reserved-memory {
#address-cells = <1>;
#size-cells = <1>;
ranges;
m4ddr: m4ddr@0xd7ffffff {
reg = <0xd7ffffff 0x4000000>;
no-map;
};
...
And in m4 node I added this region to memory-region:
&m4_rproc {
memory-region = <&retram>, <&mcuram>, <&mcuram2>, <&vdev0vring0>,
<&vdev0vring1>, <&vdev0buffer>, <&m4ddr>;
mboxes = <&ipcc 0>, <&ipcc 1>, <&ipcc 2>;
mbox-names = "vq0", "vq1", "shutdown";
interrupt-parent = <&exti>;
interrupts = <68 1>;
interrupt-names = "wdg";
recovery;
status = "okay";
};
After that, in Linux /proc/meminfo I don't see this 64 Mb, it's ok, but m4 cann't use this region too.
How can I reserved memory for M4?
