From: Songmao Tian <tiansm@lemote.com>
To: Dajie Tan <jiankemeng@gmail.com>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH] 16KB page size in mips32
Date: Mon, 30 Jul 2007 22:11:09 +0800 [thread overview]
Message-ID: <46ADF17D.3090905@lemote.com> (raw)
In-Reply-To: <5861a7880707200110w588eacb8v98b1481b4a2dbd5c@mail.gmail.com>
Dajie Tan wrote:
> Hello,
>
> 32-bit Kernel for loongson2e currently use 16KB page size to avoid
> cache alias problem.So, the definiton of PGDIR_SHIFT muse be 14+12.
>
> The last is the patch. It's been tested on FuLong mini PC(loongson2e
> inside).
>
>
> --------------------
>
> --- a/include/asm-mips/pgtable-32.h 2007-07-19 08:22:43.000000000 +0800
> +++ b/include/asm-mips/pgtable-32.h 2007-07-20 11:12:40.000000000 +0800
> @@ -46,7 +46,7 @@
> #ifdef CONFIG_64BIT_PHYS_ADDR
> #define PGDIR_SHIFT 21
> #else
> -#define PGDIR_SHIFT 22
> +#define PGDIR_SHIFT (PAGE_SHIFT + (PAGE_SHIFT + PTE_ORDER - 2))
> #endif
> #define PGDIR_SIZE (1UL << PGDIR_SHIFT)
> #define PGDIR_MASK (~(PGDIR_SIZE-1))
>
>
>
Ralf, please take a look at this patch, and I suspect the "21" also need
to be fixed too.
Dajie Tan, would you please resend the patch with correct format and add
a detailed comment as you posted on lemote forum? Thanks.
prev parent reply other threads:[~2007-07-30 14:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-20 8:10 [PATCH] 16KB page size in mips32 Dajie Tan
2007-07-30 14:11 ` Songmao Tian [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=46ADF17D.3090905@lemote.com \
--to=tiansm@lemote.com \
--cc=jiankemeng@gmail.com \
--cc=linux-mips@linux-mips.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.