From: mhocko@suse.cz (Michal Hocko)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] MM: Make Contiguous Memory Allocator depends on MMU
Date: Mon, 5 Aug 2013 11:04:55 +0200 [thread overview]
Message-ID: <20130805090455.GG10146@dhcp22.suse.cz> (raw)
In-Reply-To: <CAJFYCKGZte3FER8MNRX3T_c=jgYbCb+WEWtdz4wSPa9XZ8huGg@mail.gmail.com>
On Mon 05-08-13 14:07:41, Manjunath Goudar wrote:
> On 5 August 2013 13:02, Michal Hocko <mhocko@suse.cz> wrote:
>
> > On Mon 05-08-13 10:10:08, Manjunath Goudar wrote:
> > > On 4 August 2013 13:24, Wanpeng Li <liwanp@linux.vnet.ibm.com> wrote:
> > >
> > > > On Sun, Aug 04, 2013 at 10:41:01AM +0530, Manjunath Goudar wrote:
> > > > >s patch adds a Kconfig dependency on an MMU being available before
> > > > >CMA can be enabled. Without this patch, CMA can be enabled on an
> > > > >MMU-less system which can lead to issues. This was discovered during
> > > > >randconfig testing, in which CMA was enabled w/o MMU being enabled,
> > > > >leading to the following error:
> > > > >
> > > > > CC mm/migrate.o
> > > > >mm/migrate.c: In function ?remove_migration_pte?:
> > > > >mm/migrate.c:134:3: error: implicit declaration of function
> > > > ?pmd_trans_huge?
> > > > >[-Werror=implicit-function-declaration]
> > > > > if (pmd_trans_huge(*pmd))
> > > > > ^
> > > > >mm/migrate.c:137:3: error: implicit declaration of function
> > > > ?pte_offset_map?
> > > > >[-Werror=implicit-function-declaration]
> > > > > ptep = pte_offset_map(pmd, addr);
> > > > >
> > > >
> > > > Similar one.
> > > >
> > > > http://marc.info/?l=linux-mm&m=137532486405085&w=2
> > >
> > >
> > > In this patch MIGRATION config is not required MMU, because already CMA
> > > config depends
> > > on MMU and HAVE_MEMBLOCK if both are true then only selecting MIGRATION
> > and
> > > MEMORY_ISOLATION.
> >
> > No, I think it should be config MIGRATION that should depend on MMU
> > explicitly because that is where the problem exists. It shouldn't rely
> > on other configs to not select it automatically.
> >
> > Yes you are correct.
>
> > The question is. Does CMA need to depend on MMU as well? Why?
> > But please comment on the original thread instead.
> >
>
> I went through the mm/Kconfig, I think MMU dependence is not required
> for CMA.
OK, it turned out that it is needed in the end. Kcofing forces selects
so CMA config would force MIGRATION even if that one depends on MMU.
--
Michal Hocko
SUSE Labs
prev parent reply other threads:[~2013-08-05 9:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-04 5:11 [PATCH] MM: Make Contiguous Memory Allocator depends on MMU Manjunath Goudar
2013-08-04 7:54 ` Wanpeng Li
2013-08-04 8:09 ` Michal Hocko
[not found] ` <51fe08c6.87ef440a.10fc.1786SMTPIN_ADDED_BROKEN@mx.google.com>
[not found] ` <CAJFYCKEhJtG1x1PaiwpwOADxthXRSh0pQsE3uYWO2i4xnHGvYQ@mail.gmail.com>
2013-08-05 7:32 ` Michal Hocko
[not found] ` <CAJFYCKGZte3FER8MNRX3T_c=jgYbCb+WEWtdz4wSPa9XZ8huGg@mail.gmail.com>
2013-08-05 9:04 ` Michal Hocko [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=20130805090455.GG10146@dhcp22.suse.cz \
--to=mhocko@suse.cz \
--cc=linux-arm-kernel@lists.infradead.org \
/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