[v2 1/3] makedumpfile: introduce struct cycle to store the cyclic region

2014-01-23 Thread Baoquan He
The cyclic mode uses two member variables in struct DumpInfo to store the cyclic region each time. Since there's a global instance of struct DumpInfo, then those two member variables, cyclic_start_pfn and cyclic_end_pfn would be the same as global variable on behavior. So with this attribute, the

[v2 0/3] Introduce struct cycle to store cyclic region and clean up

2014-01-23 Thread Baoquan He
v1-v2: In first_cycle(), start_pfn assignation is not aligned to info-pfn_cyclic. Now in v2 change this. Accordingly the pfn in write_elf_header() and write_elf_pages_cyclic() need be adjusted to the real beginning of a load segment, but not the cycle-start_pfn which may be lower

[v2 3/3] makedumpfile: remove member variables representing cyclic pfn region in struct DumpInfo

2014-01-23 Thread Baoquan He
Now member variables to store cyclic pfn region in struct DumpInfo is not needed any more, remove them. Signed-off-by: Baoquan He b...@redhat.com --- makedumpfile.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/makedumpfile.h b/makedumpfile.h index 38df2b3..0d5b086 100644 ---

[v2 2/3] makedumpfile: use struct cycle to update cyclic region and clean up

2014-01-23 Thread Baoquan He
Per struct cycle and the relevant helper functions, it's simple to update cyclic region only. update_cyclic_region() is broken and not needed any more. cycle containing the cyclic region is passed down, and not global. Related clean up is also done in this patch. Signed-off-by: Baoquan He

Re: [PATCH 3/3] ARM: allow kernel to be loaded in middle of phymem

2014-01-23 Thread Nicolas Pitre
On Wed, 22 Jan 2014, Wang Nan wrote: This patch allows the kernel to be loaded at the middle of kernel awared physical memory. Before this patch, users must use mem= or device tree to cheat kernel about the start address of physical memory. This feature is useful in some special cases,

Re: [PATCH 3/3] ARM: allow kernel to be loaded in middle of phymem

2014-01-23 Thread Russell King - ARM Linux
On Thu, Jan 23, 2014 at 02:15:07PM -0500, Nicolas Pitre wrote: On Wed, 22 Jan 2014, Wang Nan wrote: This patch allows the kernel to be loaded at the middle of kernel awared physical memory. Before this patch, users must use mem= or device tree to cheat kernel about the start address of

Re: [PATCH 3/3] ARM: allow kernel to be loaded in middle of phymem

2014-01-23 Thread Nicolas Pitre
On Thu, 23 Jan 2014, Russell King - ARM Linux wrote: On Thu, Jan 23, 2014 at 02:15:07PM -0500, Nicolas Pitre wrote: On Wed, 22 Jan 2014, Wang Nan wrote: This patch allows the kernel to be loaded at the middle of kernel awared physical memory. Before this patch, users must use mem= or