Which file do we use for TLB setting with i.MX6 ?

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

Which file do we use for TLB setting with i.MX6 ?

823件の閲覧回数
ko-hey
Senior Contributor II

Hi all

How can I set TLB setting in i.MX6 with Linux ?

I have a question about TLB setting.
My customer plan to use MRAM for backup data in their system but they don't want to access via cache.
Because they want to avoid that i.MX couldn't write the data to MRAM.

When the cache is ON, there are some delay between writing cache and MRAM so there are some possibility that the it fail to write the data to MRAM.

I know i.MX6 can disable L1 I/D cache with BOOT_CFG3[6] and BOOT_CFG3[7].
However, all data doesn't access via cache if user set those bit.
They want disable cache only MRAM so it doesn't suit for them.


In that situation, I found that TLB which is inculded in MMU can set memory region attributes.
I think that this can suit for my customer's request.
Please refer section B4.4 of following document.
https://www.scss.tcd.ie/~waldroj/3d1/arm_arm.pdf


Therefore I need to set the TLB setting.
Which file do we use for TLB setting with i.MX6 ?

Ko-hey

ラベル(3)
0 件の賞賛
返信
2 返答(返信)

661件の閲覧回数
Yuri
NXP Employee
NXP Employee

Hello,

 

  really You need to configure the MMU page table in order to define page

parameters (say, for caching). Please look at /arch/arm/mm/mmu.c

Tims Notes on ARM memory allocation - eLinux.org  

Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!

0 件の賞賛
返信

661件の閲覧回数
ko-hey
Senior Contributor II

Hello

Thanks, I'll check it.

Ko-hey

0 件の賞賛
返信