From: Rusty Russell <rusty@rustcorp.com.au>
To: Chris Wright <chrisw@sous-sol.org>
Cc: Andrew Morton <akpm@osdl.org>,
jeremy@xensource.com, linux-kernel@vger.kernel.org,
Christian.Limpach@cl.cam.ac.uk, clameter@sgi.com,
ebiederm@xmission.com, kraxel@suse.de, hollisb@us.ibm.com,
ian.pratt@xensource.com, zach@vmware.com
Subject: Re: [PATCH 7 of 13] Make __FIXADDR_TOP variable to allow it to make space for a hypervisor
Date: Wed, 02 Aug 2006 11:47:30 +1000 [thread overview]
Message-ID: <1154483250.2570.17.camel@localhost.localdomain> (raw)
In-Reply-To: <20060801213751.GA11244@sequoia.sous-sol.org>
On Tue, 2006-08-01 at 14:37 -0700, Chris Wright wrote:
> * Andrew Morton (akpm@osdl.org) wrote:
> > On Tue, 1 Aug 2006 02:03:30 -0700
> > Chris Wright <chrisw@sous-sol.org> wrote:
> >
> > > * Jeremy Fitzhardinge (jeremy@xensource.com) wrote:
> > > > -#define MAXMEM (-__PAGE_OFFSET-__VMALLOC_RESERVE)
> > > > +#define MAXMEM (__FIXADDR_TOP-__PAGE_OFFSET-__VMALLOC_RESERVE)
> > >
> > > In the native case we lose one page of lowmem now.
> >
> > erm, isn't this the hunk which gave one of my machines a 4kb highmem zone?
> > I have memories of reverting it.
>
> Yes, that does sound quite familiar. I couldn't find the thread, do you
> recall any of the details? I expect it's the same issue as the off by one
> page I mentioned above.
Good catch Andrew. I did say we'd fix this. Will frob this patch
further...
Here's my final reply from my archives:
Subject:
Re: sparsemem panic in 2.6.17-rc5-mm1 and -mm2
Date:
Wed, 07 Jun 2006 16:49:12 +1000
On Tue, 2006-06-06 at 22:50 -0700, Andrew Morton wrote:
> On Wed, 07 Jun 2006 15:36:25 +1000
> Rusty Russell <rusty@rustcorp.com.au> wrote:
> > You now have 1 page more memory available in your system.
>
> The kernel has differing opinions about that:
>
> BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
> BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
> BIOS-e820: 00000000000e0000 - 0000000000100000 (reserved)
> BIOS-e820: 0000000000100000 - 0000000038000000 (usable)
> BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
> BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
> BIOS-e820: 00000000fffc0000 - 0000000100000000 (reserved)
> 0MB HIGHMEM available.
> 896MB LOWMEM available.
Sure, the pages are reserved, but we still map them into the kernel
address space.
> > I'm sure Gerd will slap me if I'm wrong on this. Here's the patch
> > fragment:
> >
> > -#define MAXMEM (-__PAGE_OFFSET-__VMALLOC_RESERVE)
> > +#define MAXMEM (__FIXADDR_TOP-__PAGE_OFFSET-__VMALLOC_RESERVE)
>
> Well. Applying this with `patch -R' would presumably restore the situation.
> But not having a clue why this change was made, I didn't bother trying it.
Actually, the comment above __VMALLOC_RESERVE already says "This much
address space is reserved for vmalloc() and iomap() as well as fixmap
mappings.", so it should have already been taken into account there.
So, please revert this. When we introduce an actual CONFIG_MEMORY hole,
we'll patch in an explicit "-MEMHOLE_SIZE" or something here.
> From what you're saying, it appears that this patch is an unrelated change,
> to fix the off-by-one? And that if this machine had anything other than
> exactly 7*128MB of physical memory, I wouldn't have noticed?
You wouldn't have noticed, yes. But I'm not convinced the "fix" was
right anyway.
Thanks for chasing this!
Rusty.
--
Help! Save Australia from the worst of the DMCA: http://linux.org.au/law
next prev parent reply other threads:[~2006-08-02 1:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <patchbomb.1154421371@ezr.goop.org>
[not found] ` <b6c100bb5ca5e2839ac8.1154421378@ezr.goop.org>
2006-08-01 9:03 ` Chris Wright
2006-08-01 14:34 ` Andrew Morton
2006-08-01 21:37 ` Chris Wright
2006-08-02 1:47 ` Rusty Russell [this message]
2006-08-02 7:01 ` Chris Wright
2006-08-02 7:20 ` Rusty Russell
2006-08-02 8:26 ` Chris Wright
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=1154483250.2570.17.camel@localhost.localdomain \
--to=rusty@rustcorp.com.au \
--cc=Christian.Limpach@cl.cam.ac.uk \
--cc=akpm@osdl.org \
--cc=chrisw@sous-sol.org \
--cc=clameter@sgi.com \
--cc=ebiederm@xmission.com \
--cc=hollisb@us.ibm.com \
--cc=ian.pratt@xensource.com \
--cc=jeremy@xensource.com \
--cc=kraxel@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=zach@vmware.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
Powered by JetHome