From: Yinghai Lu <yhlu.kernel@gmail.com>
To: jing zhang <zj.barak@gmail.com>, Andi Kleen <andi@firstfloor.org>
Cc: linux-kernel@vger.kernel.org, mingo@redhat.com
Subject: Re: patch for linux-2.6.30/arch/x86_64/mm/init.c
Date: Sun, 21 Jun 2009 13:27:13 -0700 [thread overview]
Message-ID: <86802c440906211327o7b6d1532x2fac9d85fec7148@mail.gmail.com> (raw)
In-Reply-To: <ac8f92700906202326u4de4311bjc77bb81ef93b81f9@mail.gmail.com>
On Sat, Jun 20, 2009 at 11:26 PM, jing zhang<zj.barak@gmail.com> wrote:
> hi,
>
> I have no way sending to Andi Kleen, then try Mr. linux-kernel and Mr.
> Ingo Molnar.
>
> btw, AC's mailbox @ suse closed, and why?
he is not working for them.
>
> thank you
>
> ---------- Forwarded message ----------
> From: jing zhang <zj.barak@gmail.com>
> Date: Sun, 21 Jun 2009 14:15:09 +0800
> Subject: patch for linux-2.6.30/arch/x86_64/mm/init.c
> To: ak@suse.de
>
> Good Sunday Mr. Andi Kleen,
>
> It seems that in function
> unsigned long __init_refok
> init_memory_mapping(unsigned long start, unsigned long end)
>
> CONFIG_DEBUG_PAGEALLOC conflicts with use_pse and use_gbpages when
> CONFIG_X86_32 also defined.
>
> The following is my patch to you,
>
> best
>
> look forwar to your opion.
> zj
>
> //<<<<<<<<<<<<<<<<<<<<<
>
> #ifdef CONFIG_DEBUG_PAGEALLOC
> /*
> * For CONFIG_DEBUG_PAGEALLOC, identity mapping will use small pages.
> * This will simplify cpa(), which otherwise needs to support splitting
> * large pages into small in interrupt context, etc.
> */
> use_pse = use_gbpages = 0;
> #else
> use_pse = cpu_has_pse;
> use_gbpages = direct_gbpages;
> #endif
>
> #ifdef CONFIG_X86_32
> #ifdef CONFIG_X86_PAE
> set_nx();
> if (nx_enabled)
> printk(KERN_INFO "NX (Execute Disable) protection: active\n");
> #endif
> /* Enable PSE if available */
> - if (cpu_has_pse)
> + /* and #ifdef CONFIG_DEBUG_PAGEALLOC */
> + if (cpu_has_pse && use_pse)
> set_in_cr4(X86_CR4_PSE);
>
> /* Enable PGE if available */
> - if (cpu_has_pge) {
> + /* and #ifdef CONFIG_DEBUG_PAGEALLOC */
> + if (cpu_has_pge && use_gbpages) {
> set_in_cr4(X86_CR4_PGE);
> __supported_pte_mask |= _PAGE_GLOBAL;
pge and gbpages is not same ...
also wonder what is code based for?
please check tip/master
http://people.redhat.com/mingo/tip.git/readme.txt
YH
prev parent reply other threads:[~2009-06-21 20:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <ac8f92700906202315w7d274a98oa3abe6dcc7f9ede1@mail.gmail.com>
2009-06-21 6:26 ` Fwd: " jing zhang
2009-06-21 20:27 ` Yinghai Lu [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=86802c440906211327o7b6d1532x2fac9d85fec7148@mail.gmail.com \
--to=yhlu.kernel@gmail.com \
--cc=andi@firstfloor.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=zj.barak@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
all inboxes | Powered by JetHome®