From: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
To: "Penttilä Mika" <mika.penttila@ixonos.com>
Cc: Stefano Stabellini <Stefano.Stabellini@eu.citrix.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: RE: [PATCH] x86_64: do not assume head_64.S used 4KB pages when !use_pse
Date: Thu, 23 Jun 2011 16:19:32 +0100 [thread overview]
Message-ID: <alpine.DEB.2.00.1106231604070.12963@kaball-desktop> (raw)
In-Reply-To: <1A61D8EA6755AF458F06EA669A4EC8182F05B0C6@JKLMAIL02.ixonos.local>
[-- Attachment #1: Type: text/plain, Size: 1443 bytes --]
On Thu, 23 Jun 2011, Penttilä Mika wrote:
> > > And arch/x86/mm/init.c also has:
> > >
> > > #if defined(CONFIG_DEBUG_PAGEALLOC) || defined(CONFIG_KMEMCHECK)
> > > /*
> > > * 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
> > >
> > >
> > > So big pages are also not used for DEBUG_PAGEALLOC and KMEMCHECK
> > configs even if head_32.S did.
> >
> > Right, but that is not a problem because head_32.S always uses 4KB
> > pages.
>
> We use large pages FOR PAE kernels on x86-32 there
>
Do you mean we use large pages for PAE kernels on x86_32 in
arch/x86/mm/init.c:init_memory_mapping?
That wouldn't be a problem for this patch.
The problem I am trying to solve occurs when head_64.S doesn't allocate
any pte pages because it is using 2MB pages, while init_memory_mapping
wants to use 4KB pages (for example because the user set
CONFIG_DEBUG_PAGEALLOC).
So on x86_32 is not going to be an issue because head_32.S doesn't use
2MB or 4MB pages as far as I can tell, even if the hardware supports
them.
Please correct me if I am wrong but I don't see any _PAGE_PSE in
head_32.S.
next prev parent reply other threads:[~2011-06-23 15:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-23 12:38 Penttilä Mika
2011-06-23 12:56 ` Stefano Stabellini
2011-06-23 14:50 ` Penttilä Mika
2011-06-23 15:19 ` Stefano Stabellini [this message]
2011-06-23 16:25 ` Penttilä Mika
-- strict thread matches above, loose matches on Subject: below --
2011-06-23 11:14 stefano.stabellini
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=alpine.DEB.2.00.1106231604070.12963@kaball-desktop \
--to=stefano.stabellini@eu.citrix.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mika.penttila@ixonos.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®