From: Paul Mundt <lethal@linux-sh.org>
To: Dave Hansen <dave@linux.vnet.ibm.com>
Cc: Nishanth Aravamudan <nacc@us.ibm.com>,
Nish Aravamudan <nish.aravamudan@gmail.com>,
Adrian Bunk <bunk@kernel.org>,
wli@holomorphy.com, linux-sh@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: HugeTLB vs. SH3 cpu
Date: Thu, 3 Apr 2008 14:48:49 +0900 [thread overview]
Message-ID: <20080403054849.GB4171@linux-sh.org> (raw)
In-Reply-To: <1207181169.23710.84.camel@nimitz.home.sr71.net>
On Wed, Apr 02, 2008 at 05:06:09PM -0700, Dave Hansen wrote:
> On Wed, 2008-04-02 at 15:55 -0700, Nishanth Aravamudan wrote:
> > On 02.04.2008 [17:04:48 +0900], Paul Mundt wrote:
> > > On Tue, Apr 01, 2008 at 04:26:14PM -0700, Nish Aravamudan wrote:
> > > Sorting out the mess noted by Adrian is pretty trivial with a
> > > HAVE_HUGETLB_PAGE. How about this?
> >
> > I'm confused, isn't the following simpler fix equivalent?
> >
> > Fix sh3 build with HUGETLBFS=y. Only SH4 and SH5 actually support
> > HUGETLB_PAGE (which HUGETLBFS depends on).
> >
> > Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
> >
> > diff --git a/fs/Kconfig b/fs/Kconfig
> > index d731282..1981f8e 100644
> > --- a/fs/Kconfig
> > +++ b/fs/Kconfig
> > @@ -978,7 +978,7 @@ config TMPFS_POSIX_ACL
> >
> > config HUGETLBFS
> > bool "HugeTLB file system support"
> > - depends on X86 || IA64 || PPC64 || SPARC64 || (SUPERH && MMU) || BROKEN
> > + depends on X86 || IA64 || PPC64 || SPARC64 || ((CPU_SH4 || CPU_SH5) && MMU) || BROKEN
>
> Yeah, that's equivalent. But, you have to draw the line at some point
> on how complex that "depends on" is going to get. I think you each have
> unique pain tolerances. :)
>
> Personally, I kinda prefer to break it out per-arch, because that SUPERH
> logic is getting a bit screwy.
>
> You could also do something like this:
>
> > config HUGETLBFS
> > bool "HugeTLB file system support"
> > - depends on X86 || IA64 || PPC64 || SPARC64 || (SUPERH && MMU) || BROKEN
> > + depends on X86 || IA64 || PPC64 || SPARC64 || SUPERH_HUGETLBFS || BROKEN
>
> And then:
>
> config SUPERH_HUGETLBFS
> def_bool y
> depends on (CPU_SH4 || CPU_SH5) && MMU
>
> on the arch-specific side.
>
SUPERH has the MMU dependence because it's the only one out of that list
of architectures that supports both CONFIG_MMU=y and CONFIG_MMU=n
configurations. The dependence on CONFIG_MMU should be tied in to the
HUGETLBFS dependency directly, which is what my patch did.
The other issue is that the dependencies here are just totally backwards.
the file system has the architecture dependence which enables support for
the hugetlb page feature, while the architectures should simply select
whether they can support the hugetlb pages or not and have the file
system conditionalized on that. A bit more work is needed to have
HUGETLBFS and HUGETLB_PAGE toggling independently of each other without
breaking, but that's certainly the next logical step.
prev parent reply other threads:[~2008-04-03 5:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-01 22:58 HugeTLB vs. SH3 cpu Adrian Bunk
2008-04-01 23:26 ` Nish Aravamudan
2008-04-02 8:04 ` Paul Mundt
2008-04-02 10:15 ` Mel Gorman
2008-04-03 5:52 ` Paul Mundt
2008-04-02 22:55 ` Nishanth Aravamudan
2008-04-03 0:06 ` Dave Hansen
2008-04-03 5:48 ` Paul Mundt [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=20080403054849.GB4171@linux-sh.org \
--to=lethal@linux-sh.org \
--cc=bunk@kernel.org \
--cc=dave@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=nacc@us.ibm.com \
--cc=nish.aravamudan@gmail.com \
--cc=wli@holomorphy.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