From: "David S. Miller" <davem@davemloft.net>
To: akpm@osdl.org
Cc: linux-arch@vger.kernel.org, apw@shadowen.org,
haveblue@us.ibm.com, matthew.e.tolentino@intel.com,
bob.picco@hp.com
Subject: Re: sparsemem patches in -mm
Date: Wed, 27 Jul 2005 15:42:43 -0700 (PDT) [thread overview]
Message-ID: <20050727.154243.131915305.davem@davemloft.net> (raw)
In-Reply-To: <20050621230024.4cd8d2fd.akpm@osdl.org>
From: Andrew Morton <akpm@osdl.org>
Date: Tue, 21 Jun 2005 23:00:24 -0700
[ Old email, something I want to bring closure to :-) ]
> "David S. Miller" <davem@davemloft.net> wrote:
> > The only thing that sticks out to me in this patch is that
> > sparc64 uses a field starting at bit 24 in page->flags to
> > determine the cpu which needs a D-cache flush for a page.
>
> <looks>
>
> That's a bit hacky. Doesn't it conflict with the way in which we stuff the
> page's zone index into the top of page->flags? I guess with a small number
> of zones and a smallish number of CPUs you got lucky.
>
> It'd be safer to use bit 32.
I disagree. In fact, using bit 24 is the current optimal place.
When page->flags is 64-bit, FLAGS_RESERVED is 32, which means
that all of this node, zone, section stuff will be stored in
the top 32-bits of the page->flags. The highest defined flag
for the bottom 32-bits is PG_uncached which is 19.
This leaves bits 24-->31 free to sparc64 to use in this way.
It of course limits the number of cpus I support to 256
but that limitation also exists in the form of thread_info()->cpu
being a "u8" on sparc64, so not a big deal.
next prev parent reply other threads:[~2005-07-27 22:42 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-21 9:13 sparsemem patches in -mm Andrew Morton
2005-06-21 9:50 ` Andi Kleen
2005-06-21 10:09 ` Andrew Morton
2005-06-21 15:49 ` Andy Whitcroft
2005-06-21 15:58 ` Andi Kleen
2005-06-21 11:00 ` Bob Picco
2005-06-21 15:57 ` Dave Hansen
2005-06-21 16:45 ` Bob Picco
2005-06-21 14:17 ` Matthew Wilcox
2005-06-21 15:51 ` Andy Whitcroft
2005-06-21 20:01 ` Andrew Morton
2005-06-21 23:39 ` Dave Hansen
2005-06-22 5:46 ` David S. Miller
2005-06-22 6:00 ` Andrew Morton
2005-07-27 22:42 ` David S. Miller [this message]
2005-06-23 22:48 ` Roman Zippel
2005-06-23 22:56 ` Dave Hansen
2005-06-23 23:53 ` Roman Zippel
-- strict thread matches above, loose matches on Subject: below --
2005-06-21 15:52 Luck, Tony
2005-06-21 15:58 ` Andy Whitcroft
2005-06-21 16:09 Luck, Tony
2005-06-21 16:17 ` Dave Hansen
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=20050727.154243.131915305.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=akpm@osdl.org \
--cc=apw@shadowen.org \
--cc=bob.picco@hp.com \
--cc=haveblue@us.ibm.com \
--cc=linux-arch@vger.kernel.org \
--cc=matthew.e.tolentino@intel.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