How to show how much memory the VPU uses

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

How to show how much memory the VPU uses

597 次查看
erlend_eriksen
Contributor III

I need to decide how much memory to reserve for the VPU on my i.MX6Q. Therefore, I would like to see how much of the reserved memory it actually uses. Is there a way to check this?

标签 (3)
0 项奖励
回复
1 回复

527 次查看
joanxie
NXP TechSupport
NXP TechSupport

you can use tools like "Antutu" or you can debug vpu source code to get the memory allocation, refer to the vpu_alloc_dam_buffer function in the mxc_vpu.c, if you need to know how much cma, you can refer to the imx6q.dtsi:

reserved-memory {   
#address-cells = <1>;   
#size-cells = <1>;   
ranges;    
/* global autoconfigured region for contiguous allocations */   
linux,cma {    
compatible = "shared-dma-pool";    
reusable;    
size = <0x14000000>;    
linux,cma-default;   
};  
};
0 项奖励
回复