* Cachable / Non-cachable memory
@ 2000-01-28 9:31 raphael.bossek
2000-01-29 4:36 ` Dan Malek
0 siblings, 1 reply; 3+ messages in thread
From: raphael.bossek @ 2000-01-28 9:31 UTC (permalink / raw)
To: linuxppc-embedded
Hi,
how does Linux specify memory regions as cachable and non-
cachable? It is sometimes required to mark mapped memory
regions from devices as non-cachable by the MMU so the PowerPC
does not tune the write/read accesses.
Is there any function or sample driver code in the mpc8xx-linux
2.2.13 code ?
cu Raphael Bossek - http://www.solutions4linux.de/powerpc.html
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cachable / Non-cachable memory
@ 2000-01-28 11:13 szg98
0 siblings, 0 replies; 3+ messages in thread
From: szg98 @ 2000-01-28 11:13 UTC (permalink / raw)
To: raphael.bossek; +Cc: linuxppc-embedded
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 798 bytes --]
In arch/ppc/mm/init.c,
the mpc8xx-linux code use map_page(v,p,flags),
to set one memory page to some properities,like _NO_CACHE_PAGE,etc.
raphael.bossek@solutions4linux.de ÔÚ 2000-01-28 17:31:23
ÊÕ¼þÈË: linuxppc-embedded@lists.linuxppc.org
³ËÍ£º £¨ÃÜËÍ£ºµ¥Õý¹â/Ó²Ò»/ÉϺ£µÚ¶þÑо¿Ëù/zte_ltd)
Ö÷Ì⣺ Cachable / Non-cachable memory
Hi,
how does Linux specify memory regions as cachable and non-
cachable? It is sometimes required to mark mapped memory
regions from devices as non-cachable by the MMU so the PowerPC
does not tune the write/read accesses.
Is there any function or sample driver code in the mpc8xx-linux
2.2.13 code ?
cu Raphael Bossek - http://www.solutions4linux.de/powerpc.html
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Cachable / Non-cachable memory
2000-01-28 9:31 Cachable / Non-cachable memory raphael.bossek
@ 2000-01-29 4:36 ` Dan Malek
0 siblings, 0 replies; 3+ messages in thread
From: Dan Malek @ 2000-01-29 4:36 UTC (permalink / raw)
To: raphael.bossek; +Cc: linuxppc-embedded
raphael.bossek@solutions4linux.de wrote:
> how does Linux specify memory regions as cachable and non-
> cachable?
Any memory mapping request outside of the range of real
memory is mapped uncached/guarded. Look at drivers/char/mem.c
Driver requests to ioremap() are mapped uncached/guarded.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-01-29 4:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-01-28 9:31 Cachable / Non-cachable memory raphael.bossek
2000-01-29 4:36 ` Dan Malek
-- strict thread matches above, loose matches on Subject: below --
2000-01-28 11:13 szg98
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).