From: Ralf Baechle <ralf@linux-mips.org>
To: Franck Bui-Huu <vagabon.xyz@gmail.com>
Cc: linux-mips <linux-mips@linux-mips.org>
Subject: Re: [PATCH] Simplify pte_offset_{map,map_nested}() on 32 bits [try #2]
Date: Fri, 11 May 2007 12:36:13 +0100 [thread overview]
Message-ID: <20070511113613.GG2732@linux-mips.org> (raw)
In-Reply-To: <463B117F.1070009@innova-card.com>
On Fri, May 04, 2007 at 12:57:03PM +0200, Franck Bui-Huu wrote:
> From: Franck Bui-Huu <fbuihuu@gmail.com>
>
> Since both kernel and process page tables are never allocated in
> highmem these 2 macros were doing unnecessary extra works for getting
> a pte from a pmd.
>
> This patch also clean up pte allocation functions by passing
> __GFP_ZERO to alloc_pages() and by removing a useless local variable.
>
> With this patch the size of the kernel is slighly reduced.
These hook allows general mapping of pagetables, not just highmem. On MIPS
that's useful because fancy mapping stuff allows a faster implementation of
TLB exception handlers. That was more or less the official strategy for
the R2000. Then the R4000 came and broke this scheme with virtual aliases
which was hard to fix back then so I had to switch to the current
pagetable and TLB reload mechanism. If you care about the details,
take a look at Linux/MIPS 2.1.1.
The fact that getting this to work again would also allow putting pagetables
into highmem at virtually no extra effort is a nice side effect, of course.
Ralf
prev parent reply other threads:[~2007-05-11 11:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-04 10:57 [PATCH] Simplify pte_offset_{map,map_nested}() on 32 bits [try #2] Franck Bui-Huu
2007-05-11 11:36 ` Ralf Baechle [this message]
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=20070511113613.GG2732@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=linux-mips@linux-mips.org \
--cc=vagabon.xyz@gmail.com \
/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