From: Russell King <rmk@arm.linux.org.uk>
To: linux-mm@kvack.org
Subject: ARM: page tables, caching, etc
Date: Fri, 26 Jul 2002 16:32:46 +0100 [thread overview]
Message-ID: <20020726163246.G19802@flint.arm.linux.org.uk> (raw)
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/
reply other threads:[~2002-07-26 15:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020726163246.G19802@flint.arm.linux.org.uk \
--to=rmk@arm.linux.org.uk \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox