Re: [PATCH 0/2] Kexec_file: Load kernel at top of system ram

2018-03-23 Thread Baoquan He
On 03/22/18 at 03:38pm, Andrew Morton wrote: > On Thu, 22 Mar 2018 11:37:20 +0800 Baoquan He wrote: > > > The current kexec_file ignores kexec_buf.top_down value when call > > arch_kexec_walk_mem() to allocate memory for loading kernel/initrd > > stuffs. This is not supposed to

Re: [PATCH 0/2] Kexec_file: Load kernel at top of system ram

2018-03-23 Thread Baoquan He
On 03/22/18 at 03:38pm, Andrew Morton wrote: > On Thu, 22 Mar 2018 11:37:20 +0800 Baoquan He wrote: > > > The current kexec_file ignores kexec_buf.top_down value when call > > arch_kexec_walk_mem() to allocate memory for loading kernel/initrd > > stuffs. This is not supposed to be what

Re: [PATCH 0/2] Kexec_file: Load kernel at top of system ram

2018-03-22 Thread Andrew Morton
On Thu, 22 Mar 2018 11:37:20 +0800 Baoquan He wrote: > The current kexec_file ignores kexec_buf.top_down value when call > arch_kexec_walk_mem() to allocate memory for loading kernel/initrd > stuffs. This is not supposed to be what kexec_buf.top_down is used > for. OK, but why

Re: [PATCH 0/2] Kexec_file: Load kernel at top of system ram

2018-03-22 Thread Andrew Morton
On Thu, 22 Mar 2018 11:37:20 +0800 Baoquan He wrote: > The current kexec_file ignores kexec_buf.top_down value when call > arch_kexec_walk_mem() to allocate memory for loading kernel/initrd > stuffs. This is not supposed to be what kexec_buf.top_down is used > for. OK, but why is this a

[PATCH 0/2] Kexec_file: Load kernel at top of system ram

2018-03-21 Thread Baoquan He
The current kexec_file ignores kexec_buf.top_down value when call arch_kexec_walk_mem() to allocate memory for loading kernel/initrd stuffs. This is not supposed to be what kexec_buf.top_down is used for. In patch 0001, introduce a new function walk_system_ram_res_rev() which is a variant of

[PATCH 0/2] Kexec_file: Load kernel at top of system ram

2018-03-21 Thread Baoquan He
The current kexec_file ignores kexec_buf.top_down value when call arch_kexec_walk_mem() to allocate memory for loading kernel/initrd stuffs. This is not supposed to be what kexec_buf.top_down is used for. In patch 0001, introduce a new function walk_system_ram_res_rev() which is a variant of