RE: [PATCH resend] arm:extend the reserved memory for initrd to be page aligned

2014-10-09 Thread Wang, Yalin
Who guarantees there's no valuable data in [start, initrd_start) and [initrd_end, end) being corrupted? mm.. I am not sure if the memblock_reserve will reserve Memory from page aligned address? If not, do we need also make memblock_reserve the initrd memory From page aligned start(round down)

Re: [PATCH resend] arm:extend the reserved memory for initrd to be page aligned

2014-10-08 Thread Geert Uytterhoeven
On Fri, Sep 19, 2014 at 9:09 AM, Wang, Yalin yalin.w...@sonymobile.com wrote: this patch extend the start and end address of initrd to be page aligned, so that we can free all memory including the un-page aligned head or tail page of initrd, if the start or end address of initrd are not page

Re: [PATCH resend] arm:extend the reserved memory for initrd to be page aligned

2014-09-30 Thread Uwe Kleine-König
Hello, On Mon, Sep 29, 2014 at 03:21:58PM -0400, valdis.kletni...@vt.edu wrote: On Fri, 26 Sep 2014 10:40:54 +0800, Wang, Yalin said: I am really confused, I read this web: http://www.arm.linux.org.uk/developer/patches/info.php it said use diff -urN to generate patch like this:

Re: [PATCH resend] arm:extend the reserved memory for initrd to be page aligned

2014-09-30 Thread Valdis . Kletnieks
On Tue, 30 Sep 2014 09:02:09 +0200, Uwe Kleine-König said: 'diff -urN' has the advantage that it will work against a tree extracted from a release tarball, and doesn't have a requirement that you have git That's wrong, patches generated by git-format-patch are also applicable just fine on

Re: [PATCH resend] arm:extend the reserved memory for initrd to be page aligned

2014-09-30 Thread Russell King - ARM Linux
On Mon, Sep 29, 2014 at 03:21:58PM -0400, valdis.kletni...@vt.edu wrote: On Fri, 26 Sep 2014 10:40:54 +0800, Wang, Yalin said: I am really confused, I read this web: http://www.arm.linux.org.uk/developer/patches/info.php it said use diff -urN to generate patch like this: diff -Nru

Re: [PATCH resend] arm:extend the reserved memory for initrd to be page aligned

2014-09-29 Thread Valdis . Kletnieks
On Fri, 26 Sep 2014 10:40:54 +0800, Wang, Yalin said: I am really confused, I read this web: http://www.arm.linux.org.uk/developer/patches/info.php it said use diff -urN to generate patch like this: diff -Nru linux.orig/lib/string.c linux/lib/string.c but I see other developers use git

RE: [PATCH resend] arm:extend the reserved memory for initrd to be page aligned

2014-09-27 Thread Wang, Yalin
-Original Message- On Thu, Sep 25, 2014 at 03:31:42PM +0100, Russell King - ARM Linux wrote: On Fri, Sep 19, 2014 at 11:00:02AM +0100, Catalin Marinas wrote: On Fri, Sep 19, 2014 at 08:09:47AM +0100, Wang, Yalin wrote: this patch extend the start and end address of initrd to be

Re: [PATCH resend] arm:extend the reserved memory for initrd to be page aligned

2014-09-25 Thread Russell King - ARM Linux
On Fri, Sep 19, 2014 at 11:00:02AM +0100, Catalin Marinas wrote: On Fri, Sep 19, 2014 at 08:09:47AM +0100, Wang, Yalin wrote: this patch extend the start and end address of initrd to be page aligned, so that we can free all memory including the un-page aligned head or tail page of initrd,

Re: [PATCH resend] arm:extend the reserved memory for initrd to be page aligned

2014-09-25 Thread Catalin Marinas
On Thu, Sep 25, 2014 at 03:31:42PM +0100, Russell King - ARM Linux wrote: On Fri, Sep 19, 2014 at 11:00:02AM +0100, Catalin Marinas wrote: On Fri, Sep 19, 2014 at 08:09:47AM +0100, Wang, Yalin wrote: this patch extend the start and end address of initrd to be page aligned, so that we can

RE: [PATCH resend] arm:extend the reserved memory for initrd to be page aligned

2014-09-25 Thread Wang, Yalin
On Fri, Sep 19, 2014 at 11:00:02AM +0100, Catalin Marinas wrote: On Fri, Sep 19, 2014 at 08:09:47AM +0100, Wang, Yalin wrote: this patch extend the start and end address of initrd to be page aligned, so that we can free all memory including the un-page aligned head or tail page of

[PATCH resend] arm:extend the reserved memory for initrd to be page aligned

2014-09-19 Thread Wang, Yalin
this patch extend the start and end address of initrd to be page aligned, so that we can free all memory including the un-page aligned head or tail page of initrd, if the start or end address of initrd are not page aligned, the page can't be freed by free_initrd_mem() function. Signed-off-by:

Re: [PATCH resend] arm:extend the reserved memory for initrd to be page aligned

2014-09-19 Thread Catalin Marinas
On Fri, Sep 19, 2014 at 08:09:47AM +0100, Wang, Yalin wrote: this patch extend the start and end address of initrd to be page aligned, so that we can free all memory including the un-page aligned head or tail page of initrd, if the start or end address of initrd are not page aligned, the page