linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* How to make a memory region to be cache disabled ? Cpu is mpc82XX or mpc83XX.
@ 2012-03-14  2:37 hellohello
  2012-03-14  4:34 ` Vineeth
  2012-03-14  5:09 ` tiejun.chen
  0 siblings, 2 replies; 3+ messages in thread
From: hellohello @ 2012-03-14  2:37 UTC (permalink / raw)
  To: linuxppc-dev

SG93IHRvIG1ha2UgYSBtZW1vcnkgcmVnaW9uICB0byBiZSBjYWNoZSBkaXNhYmxlZCBpbiBsaW51
eD8NCkknbSBwb3J0aW5nIG1wYzgzWFggZnJvbSB2eHdvcmtzIHRvIGxpbnV4LiBOb3cgbWVldCBh
IHF1ZXN0aW9uOiBDcHUgdXNlIGEgbWVtb3J5IHJlZ2lvbiAoR1BDTSBtb2RlIG9mIGJ1cykgIHRv
IGFjY2VzcyBwZXJpcGhlcmFscywgd2UgbmVlZCB0aGlzIG1lbW9yeSB0byBiZSBjYWNoZSBkaXNh
YmxlZC4NCkxpbnV4IEtlcm5lbCBpcyAyLjYuMjUuDQpUaGFua3MgdmVyeSBtdWNoIGZvciBhbnkg
aGludCEgDQoNCg==

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to make a memory region to be cache disabled ? Cpu is mpc82XX or mpc83XX.
  2012-03-14  2:37 How to make a memory region to be cache disabled ? Cpu is mpc82XX or mpc83XX hellohello
@ 2012-03-14  4:34 ` Vineeth
  2012-03-14  5:09 ` tiejun.chen
  1 sibling, 0 replies; 3+ messages in thread
From: Vineeth @ 2012-03-14  4:34 UTC (permalink / raw)
  To: hellohello; +Cc: linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 662 bytes --]

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

On Wed, Mar 14, 2012 at 8:07 AM, hellohello <hellohello008@163.com> wrote:

> 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
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev
>

[-- Attachment #2: Type: text/html, Size: 1052 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to make a memory region to be cache disabled ? Cpu is mpc82XX or mpc83XX.
  2012-03-14  2:37 How to make a memory region to be cache disabled ? Cpu is mpc82XX or mpc83XX hellohello
  2012-03-14  4:34 ` Vineeth
@ 2012-03-14  5:09 ` tiejun.chen
  1 sibling, 0 replies; 3+ messages in thread
From: tiejun.chen @ 2012-03-14  5:09 UTC (permalink / raw)
  To: hellohello; +Cc: linuxppc-dev

hellohello wrote:
> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-03-14  5:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-14  2:37 How to make a memory region to be cache disabled ? Cpu is mpc82XX or mpc83XX hellohello
2012-03-14  4:34 ` Vineeth
2012-03-14  5:09 ` tiejun.chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).