IPU/VPU cacheable memory access

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IPU/VPU cacheable memory access

Jump to solution
1,039 Views
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

Labels (4)
Tags (5)
0 Kudos
1 Solution
609 Views
rogerio_silva
NXP Employee
NXP Employee
0 Kudos
2 Replies
610 Views
rogerio_silva
NXP Employee
NXP Employee
0 Kudos
609 Views
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 Kudos