From: Ingo Molnar <mingo@elte.hu>
To: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Yinghai Lu <yhlu.kernel@gmail.com>,
Li Zefan <lizf@cn.fujitsu.com>,
LKML <linux-kernel@vger.kernel.org>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
npiggin@suse.de, Lee Schermerhorn <Lee.Schermerhorn@hp.com>,
Rik Van Riel <riel@redhat.com>
Subject: Re: [mmotm] build failure on x86_64 pci-calgary_64.c
Date: Thu, 3 Jul 2008 11:07:22 +0200 [thread overview]
Message-ID: <20080703090722.GA17350@elte.hu> (raw)
In-Reply-To: <20080703174027.D6D7.KOSAKI.MOTOHIRO@jp.fujitsu.com>
* KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> wrote:
> > > Seems the problematic patch is :
> > > mmap-handle-mlocked-pages-during-map-remap-unmap.patch
> > >
> > > I'm using mmotm uploaded yesterday by Andrew, so I guess this bug
> > > has not been fixed ?
> > >
> > > BUG: sleeping function called from invalid context at include/linux/pagemap.h:290
> > > in_atomic():1, irqs_disabled():0
> >
> > sorry for that.
> > I started investigate this problem.
>
> Hi Andrew,
>
> on ia64, I can't reproduce this problem.
> on x86_64, I can't build kernel because following error happned.
> (end_pfn doesn't exist, but used)
>
>
> -----------------------------------------------------
> % LANG=C make -j 20
> CHK include/linux/version.h
> CHK include/linux/utsrelease.h
> CALL scripts/checksyscalls.sh
> CHK include/linux/compile.h
> CC arch/x86/kernel/pci-calgary_64.o
> arch/x86/kernel/pci-calgary_64.c: In function 'detect_calgary':
> arch/x86/kernel/pci-calgary_64.c:1413: error: 'end_pfn' undeclared (first use in this function)
> arch/x86/kernel/pci-calgary_64.c:1413: error: (Each undeclared identifier is reported only once
> arch/x86/kernel/pci-calgary_64.c:1413: error: for each function it appears in.)
> make[1]: *** [arch/x86/kernel/pci-calgary_64.o] Error 1
> make: *** [arch/x86/kernel] Error 2
> make: *** Waiting for unfinished jobs....
> make: *** wait: No child processes. Stop.
>
> -----------------------------------------------------
>
>
> I guess below commit or related commit is doubtfully.
>
> :commit 1b1b18f0bf62ec808784002382f2b5833701afda
> :Author: Yinghai Lu <yhlu.kernel@gmail.com>
> :Date: Tue Jun 24 22:14:09 2008 -0700
> :
> : x86: remove end_pfn in 64bit
> :
> : and use max_pfn directly.
> :
> : Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
> : Signed-off-by: Ingo Molnar <mingo@elte.hu>
no.
this a linux-next integration artifact AFAICT, there's no such build
failure in the x86 tree.
what happened is that the x86 tree got rid of end_pfn, the PCI tree grew
one more reference to it and it was not fixed up.
Ingo
WARNING: multiple messages have this Message-ID (diff)
From: Ingo Molnar <mingo@elte.hu>
To: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Yinghai Lu <yhlu.kernel@gmail.com>,
Li Zefan <lizf@cn.fujitsu.com>,
LKML <linux-kernel@vger.kernel.org>,
"linux-mm@kvack.org" <linux-mm@kvack.org>,
npiggin@suse.de, Lee Schermerhorn <Lee.Schermerhorn@hp.com>,
Rik Van Riel <riel@redhat.com>
Subject: Re: [mmotm] build failure on x86_64 pci-calgary_64.c
Date: Thu, 3 Jul 2008 11:07:22 +0200 [thread overview]
Message-ID: <20080703090722.GA17350@elte.hu> (raw)
In-Reply-To: <20080703174027.D6D7.KOSAKI.MOTOHIRO@jp.fujitsu.com>
* KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> wrote:
> > > Seems the problematic patch is :
> > > mmap-handle-mlocked-pages-during-map-remap-unmap.patch
> > >
> > > I'm using mmotm uploaded yesterday by Andrew, so I guess this bug
> > > has not been fixed ?
> > >
> > > BUG: sleeping function called from invalid context at include/linux/pagemap.h:290
> > > in_atomic():1, irqs_disabled():0
> >
> > sorry for that.
> > I started investigate this problem.
>
> Hi Andrew,
>
> on ia64, I can't reproduce this problem.
> on x86_64, I can't build kernel because following error happned.
> (end_pfn doesn't exist, but used)
>
>
> -----------------------------------------------------
> % LANG=C make -j 20
> CHK include/linux/version.h
> CHK include/linux/utsrelease.h
> CALL scripts/checksyscalls.sh
> CHK include/linux/compile.h
> CC arch/x86/kernel/pci-calgary_64.o
> arch/x86/kernel/pci-calgary_64.c: In function 'detect_calgary':
> arch/x86/kernel/pci-calgary_64.c:1413: error: 'end_pfn' undeclared (first use in this function)
> arch/x86/kernel/pci-calgary_64.c:1413: error: (Each undeclared identifier is reported only once
> arch/x86/kernel/pci-calgary_64.c:1413: error: for each function it appears in.)
> make[1]: *** [arch/x86/kernel/pci-calgary_64.o] Error 1
> make: *** [arch/x86/kernel] Error 2
> make: *** Waiting for unfinished jobs....
> make: *** wait: No child processes. Stop.
>
> -----------------------------------------------------
>
>
> I guess below commit or related commit is doubtfully.
>
> :commit 1b1b18f0bf62ec808784002382f2b5833701afda
> :Author: Yinghai Lu <yhlu.kernel@gmail.com>
> :Date: Tue Jun 24 22:14:09 2008 -0700
> :
> : x86: remove end_pfn in 64bit
> :
> : and use max_pfn directly.
> :
> : Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com>
> : Signed-off-by: Ingo Molnar <mingo@elte.hu>
no.
this a linux-next integration artifact AFAICT, there's no such build
failure in the x86 tree.
what happened is that the x86 tree got rid of end_pfn, the PCI tree grew
one more reference to it and it was not fixed up.
Ingo
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2008-07-03 12:56 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-03 6:41 [-mm] BUG: sleeping function called from invalid context at include/linux/pagemap.h:290 Li Zefan
2008-07-03 6:41 ` Li Zefan
2008-07-03 7:04 ` Andrew Morton
2008-07-03 7:04 ` Andrew Morton
2008-07-03 7:13 ` KOSAKI Motohiro
2008-07-03 7:13 ` KOSAKI Motohiro
2008-07-03 8:46 ` [mmotm] build failure on x86_64 pci-calgary_64.c KOSAKI Motohiro
2008-07-03 8:46 ` KOSAKI Motohiro
2008-07-03 9:02 ` Andrew Morton
2008-07-03 9:02 ` Andrew Morton
2008-07-03 9:07 ` Ingo Molnar [this message]
2008-07-03 9:07 ` Ingo Molnar
2008-07-03 9:38 ` KOSAKI Motohiro
2008-07-03 9:38 ` KOSAKI Motohiro
2008-07-03 9:41 ` [-mm] BUG: sleeping function called from invalid context at include/linux/pagemap.h:290 KOSAKI Motohiro
2008-07-03 9:41 ` KOSAKI Motohiro
2008-07-03 9:45 ` Li Zefan
2008-07-03 17:25 ` Hugh Dickins
2008-07-03 17:25 ` Hugh Dickins
2008-07-04 5:40 ` KOSAKI Motohiro
2008-07-04 5:40 ` KOSAKI Motohiro
2008-07-04 6:12 ` Li Zefan
2008-07-04 6:12 ` Li Zefan
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=20080703090722.GA17350@elte.hu \
--to=mingo@elte.hu \
--cc=Lee.Schermerhorn@hp.com \
--cc=akpm@linux-foundation.org \
--cc=kosaki.motohiro@jp.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=lizf@cn.fujitsu.com \
--cc=npiggin@suse.de \
--cc=riel@redhat.com \
--cc=yhlu.kernel@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.