* ARM: page tables, caching, etc
@ 2002-07-26 15:32 Russell King
0 siblings, 0 replies; only message in thread
From: Russell King @ 2002-07-26 15:32 UTC (permalink / raw)
To: linux-mm
I've been thinking about ARM page tables and cache stuff for 2.5...
On ARM, our caches aren't coherent with TLB fetches. Currently, we
handle this by writing back the cache line, and draining the write
buffer when we write to a PTE in set_pte.
I'd like to use pte_offset_map()/pte_offset_map_nested() to map user
space page tables uncached, and get rid of the cache handling within
set_pte().
However, kernel page tables can't currently be sanely remapped, and
set_pte() is also used to on kernel page tables. This means that
set_pte() would have to retain it's cache handling, unless...
What if set_pte_kernel() was introduced to replace set_pte() for
kernel page tables? ARM could have the extra cache maintainence for
set_pte_kernel() and remove it from set_pte(). Other architectures
where this is not an issue could just do the following:
#define set_pte_kernel set_pte
and ignore the issue. I'll be preparing some code today to try to
gauge if this is going to be a worthwhile improvement for ARM. If
anyone has any strong objections to this, I'd prefer to know now. 8)
--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-07-26 15:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-26 15:32 ARM: page tables, caching, etc Russell King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox