IPU/VPU cacheable memory access

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

IPU/VPU cacheable memory access

跳至解决方案
1,724 次查看
ofer_livny
Contributor III

Hi

I'm using iMX6Q, with freescale's linux 3.0.35, and my application is using the IPU and VPU intensively.

I have few processes which process the output of the IPU at the same time.

I noticed that my code runs a lot faster when the input is an image which is stored in regular memory (i.e. loaded from file), and slower when the image is in the IPU buffer (dma memory).

My guess is that the IPU buffers are not cached in the cpu's caches, which makes the memory access a lot slower.

While looking for a solution, I found the IMX6Q_GPR4_IPU_WR_CACHE_CTL / IMX6Q_GPR4_IPU_RD_CACHE_CTL bits in the reference manual.

However, these are not explained well in the documentation I have.

Is there a document somewhere explaining what these controls do?

If this bits can help me, is there a patch to freescale's linux that can help me control them (and set this memory to be cacheable) ?

Thanks,

Ofer

标签 (4)
标记 (5)
0 项奖励
回复
1 解答
1,294 次查看
rogerio_silva
NXP Employee
NXP Employee
0 项奖励
回复
2 回复数
1,295 次查看
rogerio_silva
NXP Employee
NXP Employee
0 项奖励
回复
1,294 次查看
ofer_livny
Contributor III

Thanks Rogerio

Turns out this patch was already present in our kernel. Missed that when I was looking for GPR4 references for some reason...

Ofer

0 项奖励
回复