Re: [PATCH] um: Fix to call read_initrd after init_bootmem

2017-05-03 Thread Richard Weinberger
On Thu, Apr 27, 2017 at 5:15 AM, Masami Hiramatsu wrote: > Since read_initrd() invokes alloc_bootmem() for allocating > memory to load initrd image, it must be called after init_bootmem. > > This makes read_initrd() called directly from setup_arch() > after init_bootmem() and

Re: [PATCH] um: Fix to call read_initrd after init_bootmem

2017-05-03 Thread Richard Weinberger
On Thu, Apr 27, 2017 at 5:15 AM, Masami Hiramatsu wrote: > Since read_initrd() invokes alloc_bootmem() for allocating > memory to load initrd image, it must be called after init_bootmem. > > This makes read_initrd() called directly from setup_arch() > after init_bootmem() and mem_total_pages(). >

Re: [PATCH] um: Fix to call read_initrd after init_bootmem

2017-04-27 Thread Richard Weinberger
Masami, Am 28.04.2017 um 00:40 schrieb Masami Hiramatsu: > Finally, git bisect shows that below commit caused this issue. > > b63236972e1344b247750451e2be0a06cd125f21 is the first bad commit > commit b63236972e1344b247750451e2be0a06cd125f21 > Author: Richard Weinberger Meh,

Re: [PATCH] um: Fix to call read_initrd after init_bootmem

2017-04-27 Thread Richard Weinberger
Masami, Am 28.04.2017 um 00:40 schrieb Masami Hiramatsu: > Finally, git bisect shows that below commit caused this issue. > > b63236972e1344b247750451e2be0a06cd125f21 is the first bad commit > commit b63236972e1344b247750451e2be0a06cd125f21 > Author: Richard Weinberger Meh, it's always me. ;-)

Re: [PATCH] um: Fix to call read_initrd after init_bootmem

2017-04-27 Thread Masami Hiramatsu
On Fri, 28 Apr 2017 07:04:14 +0900 Masami Hiramatsu wrote: > Hi Richard, > > On Thu, 27 Apr 2017 15:53:25 +0200 > Richard Weinberger wrote: > > > Masami, > > > > Am 27.04.2017 um 05:15 schrieb Masami Hiramatsu: > > > Since read_initrd() invokes

Re: [PATCH] um: Fix to call read_initrd after init_bootmem

2017-04-27 Thread Masami Hiramatsu
On Fri, 28 Apr 2017 07:04:14 +0900 Masami Hiramatsu wrote: > Hi Richard, > > On Thu, 27 Apr 2017 15:53:25 +0200 > Richard Weinberger wrote: > > > Masami, > > > > Am 27.04.2017 um 05:15 schrieb Masami Hiramatsu: > > > Since read_initrd() invokes alloc_bootmem() for allocating > > > memory to

Re: [PATCH] um: Fix to call read_initrd after init_bootmem

2017-04-27 Thread Masami Hiramatsu
Hi Richard, On Thu, 27 Apr 2017 15:53:25 +0200 Richard Weinberger wrote: > Masami, > > Am 27.04.2017 um 05:15 schrieb Masami Hiramatsu: > > Since read_initrd() invokes alloc_bootmem() for allocating > > memory to load initrd image, it must be called after init_bootmem. > > > >

Re: [PATCH] um: Fix to call read_initrd after init_bootmem

2017-04-27 Thread Masami Hiramatsu
Hi Richard, On Thu, 27 Apr 2017 15:53:25 +0200 Richard Weinberger wrote: > Masami, > > Am 27.04.2017 um 05:15 schrieb Masami Hiramatsu: > > Since read_initrd() invokes alloc_bootmem() for allocating > > memory to load initrd image, it must be called after init_bootmem. > > > > This makes

Re: [PATCH] um: Fix to call read_initrd after init_bootmem

2017-04-27 Thread Richard Weinberger
Masami, Am 27.04.2017 um 05:15 schrieb Masami Hiramatsu: > Since read_initrd() invokes alloc_bootmem() for allocating > memory to load initrd image, it must be called after init_bootmem. > > This makes read_initrd() called directly from setup_arch() > after init_bootmem() and mem_total_pages().

Re: [PATCH] um: Fix to call read_initrd after init_bootmem

2017-04-27 Thread Richard Weinberger
Masami, Am 27.04.2017 um 05:15 schrieb Masami Hiramatsu: > Since read_initrd() invokes alloc_bootmem() for allocating > memory to load initrd image, it must be called after init_bootmem. > > This makes read_initrd() called directly from setup_arch() > after init_bootmem() and mem_total_pages().

[PATCH] um: Fix to call read_initrd after init_bootmem

2017-04-26 Thread Masami Hiramatsu
Since read_initrd() invokes alloc_bootmem() for allocating memory to load initrd image, it must be called after init_bootmem. This makes read_initrd() called directly from setup_arch() after init_bootmem() and mem_total_pages(). Signed-off-by: Masami Hiramatsu ---

[PATCH] um: Fix to call read_initrd after init_bootmem

2017-04-26 Thread Masami Hiramatsu
Since read_initrd() invokes alloc_bootmem() for allocating memory to load initrd image, it must be called after init_bootmem. This makes read_initrd() called directly from setup_arch() after init_bootmem() and mem_total_pages(). Signed-off-by: Masami Hiramatsu --- arch/um/kernel/initrd.c |