IPU/VPU cacheable memory access

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

IPU/VPU cacheable memory access

ソリューションへジャンプ
1,886件の閲覧回数
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,456件の閲覧回数
rogerio_silva
NXP Employee
NXP Employee
0 件の賞賛
返信
2 返答(返信)
1,457件の閲覧回数
rogerio_silva
NXP Employee
NXP Employee
0 件の賞賛
返信
1,456件の閲覧回数
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 件の賞賛
返信