Re: [PATCH] kexec: allocate buffer in top-down, if specified, correctly

2017-04-28 Thread Thiago Jung Bauermann
Am Freitag, 28. April 2017, 09:51:39 BRT schrieb AKASHI Takahiro: > On Thu, Apr 27, 2017 at 07:00:04PM -0300, Thiago Jung Bauermann wrote: > > Hello, > > > > Am Mittwoch, 26. April 2017, 17:22:09 BRT schrieb AKASHI Takahiro: > > > The current kexec_locate_mem_hole(kbuf.top_down == 1) stops

Re: [PATCH] kexec: allocate buffer in top-down, if specified, correctly

2017-04-28 Thread Thiago Jung Bauermann
Am Freitag, 28. April 2017, 09:51:39 BRT schrieb AKASHI Takahiro: > On Thu, Apr 27, 2017 at 07:00:04PM -0300, Thiago Jung Bauermann wrote: > > Hello, > > > > Am Mittwoch, 26. April 2017, 17:22:09 BRT schrieb AKASHI Takahiro: > > > The current kexec_locate_mem_hole(kbuf.top_down == 1) stops

Re: [PATCH] kexec: allocate buffer in top-down, if specified, correctly

2017-04-27 Thread Dave Young
Correct Vivek's email address On 04/28/17 at 01:19pm, Dave Young wrote: > Vivek, can you help to give some comments about the locate hole isssue > in kexec_file? > > On 04/28/17 at 09:51am, AKASHI Takahiro wrote: > > Thiago, > > > > Thank you for the comment. > > > > On Thu, Apr 27, 2017 at

Re: [PATCH] kexec: allocate buffer in top-down, if specified, correctly

2017-04-27 Thread Dave Young
Correct Vivek's email address On 04/28/17 at 01:19pm, Dave Young wrote: > Vivek, can you help to give some comments about the locate hole isssue > in kexec_file? > > On 04/28/17 at 09:51am, AKASHI Takahiro wrote: > > Thiago, > > > > Thank you for the comment. > > > > On Thu, Apr 27, 2017 at

Re: [PATCH] kexec: allocate buffer in top-down, if specified, correctly

2017-04-27 Thread Dave Young
Vivek, can you help to give some comments about the locate hole isssue in kexec_file? On 04/28/17 at 09:51am, AKASHI Takahiro wrote: > Thiago, > > Thank you for the comment. > > On Thu, Apr 27, 2017 at 07:00:04PM -0300, Thiago Jung Bauermann wrote: > > Hello, > > > > Am Mittwoch, 26. April

Re: [PATCH] kexec: allocate buffer in top-down, if specified, correctly

2017-04-27 Thread Dave Young
Vivek, can you help to give some comments about the locate hole isssue in kexec_file? On 04/28/17 at 09:51am, AKASHI Takahiro wrote: > Thiago, > > Thank you for the comment. > > On Thu, Apr 27, 2017 at 07:00:04PM -0300, Thiago Jung Bauermann wrote: > > Hello, > > > > Am Mittwoch, 26. April

Re: [PATCH] kexec: allocate buffer in top-down, if specified, correctly

2017-04-27 Thread Dave Young
Hi AKASHI On 04/26/17 at 05:22pm, AKASHI Takahiro wrote: > The current kexec_locate_mem_hole(kbuf.top_down == 1) stops searching at > the first memory region that has enough space for requested size even if > some of higher regions may also have. > This behavior is not consistent with

Re: [PATCH] kexec: allocate buffer in top-down, if specified, correctly

2017-04-27 Thread Dave Young
Hi AKASHI On 04/26/17 at 05:22pm, AKASHI Takahiro wrote: > The current kexec_locate_mem_hole(kbuf.top_down == 1) stops searching at > the first memory region that has enough space for requested size even if > some of higher regions may also have. > This behavior is not consistent with

Re: [PATCH] kexec: allocate buffer in top-down, if specified, correctly

2017-04-27 Thread AKASHI Takahiro
Thiago, Thank you for the comment. On Thu, Apr 27, 2017 at 07:00:04PM -0300, Thiago Jung Bauermann wrote: > Hello, > > Am Mittwoch, 26. April 2017, 17:22:09 BRT schrieb AKASHI Takahiro: > > The current kexec_locate_mem_hole(kbuf.top_down == 1) stops searching at > > the first memory region that

Re: [PATCH] kexec: allocate buffer in top-down, if specified, correctly

2017-04-27 Thread AKASHI Takahiro
Thiago, Thank you for the comment. On Thu, Apr 27, 2017 at 07:00:04PM -0300, Thiago Jung Bauermann wrote: > Hello, > > Am Mittwoch, 26. April 2017, 17:22:09 BRT schrieb AKASHI Takahiro: > > The current kexec_locate_mem_hole(kbuf.top_down == 1) stops searching at > > the first memory region that

Re: [PATCH] kexec: allocate buffer in top-down, if specified, correctly

2017-04-27 Thread Thiago Jung Bauermann
Hello, Am Mittwoch, 26. April 2017, 17:22:09 BRT schrieb AKASHI Takahiro: > The current kexec_locate_mem_hole(kbuf.top_down == 1) stops searching at > the first memory region that has enough space for requested size even if > some of higher regions may also have. kexec_locate_mem_hole expects

Re: [PATCH] kexec: allocate buffer in top-down, if specified, correctly

2017-04-27 Thread Thiago Jung Bauermann
Hello, Am Mittwoch, 26. April 2017, 17:22:09 BRT schrieb AKASHI Takahiro: > The current kexec_locate_mem_hole(kbuf.top_down == 1) stops searching at > the first memory region that has enough space for requested size even if > some of higher regions may also have. kexec_locate_mem_hole expects

[PATCH] kexec: allocate buffer in top-down, if specified, correctly

2017-04-26 Thread AKASHI Takahiro
The current kexec_locate_mem_hole(kbuf.top_down == 1) stops searching at the first memory region that has enough space for requested size even if some of higher regions may also have. This behavior is not consistent with locate_hole(hole_end == -1) function of kexec-tools. This patch fixes the

[PATCH] kexec: allocate buffer in top-down, if specified, correctly

2017-04-26 Thread AKASHI Takahiro
The current kexec_locate_mem_hole(kbuf.top_down == 1) stops searching at the first memory region that has enough space for requested size even if some of higher regions may also have. This behavior is not consistent with locate_hole(hole_end == -1) function of kexec-tools. This patch fixes the