Skip to contentSkip to conversation

How to make a memory region to be cache disabled ? Cpu is mpc82XX or mpc83XX.

DISCUSSION hellohello 3 participants 3 messages Mar 14, 2012

lore
Share & tools
lore

hellohello

author
#0 lore raw

SG93IHRvIG1ha2UgYSBtZW1vcnkgcmVnaW9uICB0byBiZSBjYWNoZSBkaXNhYmxlZCBpbiBsaW51 eD8NCkknbSBwb3J0aW5nIG1wYzgzWFggZnJvbSB2eHdvcmtzIHRvIGxpbnV4LiBOb3cgbWVldCBh IHF1ZXN0aW9uOiBDcHUgdXNlIGEgbWVtb3J5IHJlZ2lvbiAoR1BDTSBtb2RlIG9mIGJ1cykgIHRv IGFjY2VzcyBwZXJpcGhlcmFscywgd2UgbmVlZCB0aGlzIG1lbW9yeSB0byBiZSBjYWNoZSBkaXNh YmxlZC4NCkxpbnV4IEtlcm5lbCBpcyAyLjYuMjUuDQpUaGFua3MgdmVyeSBtdWNoIGZvciBhbnkg aGludCEgDQoNCg==

#1 lore raw

You can disable the cache with the help of TLBs. See where it is creating TLBs for the memory regions for that processor.

Quoted 12 lines · hellohello

How to make a memory region to be cache disabled in linux? I'm porting mpc83XX from vxworks to linux. Now meet a question: Cpu use a memory region (GPCM mode of bus) to access peripherals, we need this memory to be cache disabled.
Linux Kernel is 2.6.25.
Thanks very much for any hint!

_______________________________________________
Linuxppc-dev mailing list
[email protected]
https://lists.ozlabs.org/listinfo/linuxppc-dev

#2 lore raw
In reply to hellohello
Quoted 4 lines · hellohello

How to make a memory region to be cache disabled in linux?
I'm porting mpc83XX from vxworks to linux. Now meet a question: Cpu use a memory region (GPCM mode of bus) to access peripherals, we need this memory to be cache disabled. Linux Kernel is 2.6.25.
Thanks very much for any hint!

ioremap() is fine enough since it always set I|G as TLB entry attribute.

Tiejun