imx8x reserved-memory

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

imx8x reserved-memory

368 次查看
songhongliang
Contributor II

I set the reserved memory in the dts. I only reserved dozens of megabytes of memory, but the kernel log shows that more than 200 megabytes of memory are reserved, imx8x. Is there any other place besides the dts set the reserved memory

log:

[ 0.000000] Memory: 492256K/1046528K available (18560K kernel code, 1558K rwdata, 7180K rodata, 3840K init, 544K bss, 226592K reserved, 327680K cma-reserved)

dtb->dts:

reserved-memory {
#address-cells = <0x02>;
#size-cells = <0x02>;
ranges;

decoder-boot@0x84000000 {
reg = <0x00 0x84000000 0x00 0x2000000>;
no-map;
phandle = <0x40>;
};

encoder-boot@0x86000000 {
reg = <0x00 0x86000000 0x00 0x200000>;
no-map;
phandle = <0x43>;
};

decoder-rpc@0x86200000 {
reg = <0x00 0x86200000 0x00 0x100000>;
no-map;
phandle = <0x41>;
};

encoder-rpc@0x94400000 {
reg = <0x00 0x94400000 0x00 0x700000>;
no-map;
phandle = <0x44>;
};

linux,cma {
compatible = "shared-dma-pool";
reusable;
size = <0x00 0x14000000>;
alloc-ranges = <0x00 0x98000000 0x00 0x14000000>;
linux,cma-default;
};
};

0 项奖励
1 回复

347 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport
 
I hope you are doing well.
 
Please refer to Chapter 7 Memory Assignment and Table 1. DDR memory assignment in i.MX Porting Guide, where DRAM memory regions are reserved for ATF, SCFW, etc...
 
One can also try to debug with the below sysfs directory to cross-check if any overlay is not applied to device tree.
$ cd sys/firmware/devicetree/base/reserved-memory/
$ ls
 
Thanks & Regards,
Sanket Parekh
0 项奖励