Re: [PATCH] Reserve memory for kdump kernel within RMO region

2009-11-27 Thread M. Mohan Kumar
On 11/27/2009 12:56 AM, Bernhard Walle wrote: M. Mohan Kumar schrieb: On 11/26/2009 12:22 AM, Bernhard Walle wrote: M. Mohan Kumar schrieb: Reserve memory for kdump kernel within RMO region When the kernel size exceeds 32MB(observed with some distros), memory for kdump kernel can

Re: [PATCH] Reserve memory for kdump kernel within RMO region

2009-11-27 Thread M. Mohan Kumar
as 32MB, and it may also fail in reserving memory for kdump kernel. On 11/27/2009 12:56 AM, Bernhard Walle wrote: M. Mohan Kumar schrieb: On 11/26/2009 12:22 AM, Bernhard Walle wrote: M. Mohan Kumar schrieb: Reserve memory for kdump kernel within RMO region When the kernel size exceeds 32MB

Re: [PATCH] Reserve memory for kdump kernel within RMO region

2009-11-26 Thread M. Mohan Kumar
On 11/26/2009 12:22 AM, Bernhard Walle wrote: M. Mohan Kumar schrieb: Reserve memory for kdump kernel within RMO region When the kernel size exceeds 32MB(observed with some distros), memory for kdump kernel can not be reserved as kdump kernel base is assumed to be 32MB always. When the kernel

[PATCH] Reserve memory for kdump kernel within RMO region

2009-11-25 Thread M. Mohan Kumar
the memory for kdump kernel anywhere in the RMO region. Signed-off-by: M. Mohan Kumar mo...@in.ibm.com --- arch/powerpc/kernel/machine_kexec.c | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kernel/machine_kexec.c b/arch/powerpc/kernel

[PATCH] Write to HVC terminal from purgatory cod

2009-10-16 Thread M. Mohan Kumar
. Includes the changes suggested by Michael Ellerman Signed-off-by: M. Mohan Kumar mo...@in.ibm.com --- kexec/arch/ppc64/fs2dt.c | 62 +++- kexec/arch/ppc64/kexec-elf-ppc64.c |7 purgatory/arch/ppc64/Makefile |1 + purgatory

Re: [RFC] [PATCH] Write to HVC terminal from purgatory code

2009-09-17 Thread M. Mohan Kumar
On Mon, Sep 07, 2009 at 10:44:07AM +0530, M. Mohan Kumar wrote: Write to HVC terminal from purgatory code Current x86/x86-64 kexec-tools print the message I'm in purgatory to serial console/VGA while executing the purgatory code. Implement this feature for POWERPC pseries platform

[RFC] [PATCH] Write to HVC terminal from purgatory code

2009-09-06 Thread M. Mohan Kumar
. Signed-off-by: M. Mohan Kumar mo...@in.ibm.com --- kexec/arch/ppc64/fs2dt.c | 47 +++- kexec/arch/ppc64/kexec-elf-ppc64.c |7 + kexec/arch/ppc64/kexec-ppc64.h |1 + purgatory/arch/ppc64/Makefile |1 + purgatory/arch/ppc64

[PATCH] powerpc: Invoke kdump for system reset exception

2009-08-23 Thread M. Mohan Kumar
for system reset exception and kdump kernel will be invoked (if its loaded). If kdump kernel is not loaded, proceed with xmon Signed-off-by: M. Mohan Kumar mo...@in.ibm.com --- arch/powerpc/xmon/xmon.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/xmon

[PATCH 1/2] Make dtstruct variable to be 8 byte aligned

2009-08-10 Thread M. Mohan Kumar
word, the struct memory must start on an 8 byte boundary. Force the dtstruct variable to be always 8 bytes aligned. Signed-off-by: M. Mohan Kumar mo...@in.ibm.com --- kexec/arch/ppc64/fs2dt.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kexec/arch/ppc64/fs2dt.c b/kexec

[PATCH 2/2] Support R_PPC64_REL32 relocation type

2009-08-10 Thread M. Mohan Kumar
[PATCH 2/2] Support R_PPC64_REL32 relocation type gcc-4.4 compiler creates R_PPC64_REL32 relocation type in the ppc64 purgatory code. Add support to handle R_PPC64_REL32 relocation type. Signed-off-by: M. Mohan Kumar mo...@in.ibm.com --- kexec/arch/ppc64/kexec-elf-rel-ppc64.c |4 1

Re: [PATCH] Do not inline putprops function

2009-08-07 Thread M. Mohan Kumar
. This problem is not seen with gcc-3.4. Is it compiler issue? or bug in the code. Regards, M. Mohan Kumar. On Fri, Aug 07, 2009 at 12:24:20AM +1000, Michael Ellerman wrote: On Wed, 2009-08-05 at 22:19 +0530, M. Mohan Kumar wrote: Hi, When I align the dtstruct variable to 8 bytes, I am able

Re: [PATCH] Do not inline putprops function

2009-08-07 Thread M. Mohan Kumar
On Fri, Aug 07, 2009 at 08:05:49PM +0530, M. Mohan Kumar wrote: Hi, After enabling EARLY_DEBUG (and DEBUG in some of the files in arch/powerpc/kernel directory), without forcing the dtstruct variable to 8 byte alignment: # ./kexec -e Starting new kernel console [udbg0] enabled

Re: [PATCH] Do not inline putprops function

2009-08-05 Thread M. Mohan Kumar
Hi, When I align the dtstruct variable to 8 bytes, I am able to invoke kdump. When the line static unsigned dtstruct[TREEWORDS], *dt; changed to static unsigned dtstruct[TREEWORDS] __attribute__ ((aligned (8))), *dt; kexec-tool works. Regards, M. Mohan Kumar On Mon, Aug 03

Re: [PATCH] Do not inline putprops function

2009-08-02 Thread M. Mohan Kumar
On Wed, Jun 24, 2009 at 10:27:43AM +1000, Michael Ellerman wrote: On Tue, 2009-06-23 at 09:56 -0400, Neil Horman wrote: On Tue, Jun 23, 2009 at 06:25:34PM +0530, M. Mohan Kumar wrote: Well it definately looks like removing that variable had some code changes. It'll take some time

[PATCH] Do not inline putprops function

2009-06-17 Thread M. Mohan Kumar
Do not inline putprops function With the recent kexec-tools git tree, both kexec and kdump kernels hang (i.e kexec -l and kexec -p respectively). This happened after the patch ppc64: cleanups commit b43a84a31a4be6ed025c1bdef3bb1c3c12e01b16. I tried reverting each hunk and then found out that

Re: [PATCH] Do not inline putprops function

2009-06-17 Thread M. Mohan Kumar
, there was no code change in fs2dt.c Regards, M. Mohan Kumar ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH] Do not inline putprops function

2009-06-17 Thread M. Mohan Kumar
On Wed, Jun 17, 2009 at 10:05:14AM -0400, Neil Horman wrote: On Wed, Jun 17, 2009 at 07:04:35PM +0530, M. Mohan Kumar wrote: On Wed, Jun 17, 2009 at 09:04:13AM -0400, Neil Horman wrote: On Wed, Jun 17, 2009 at 10:26:35PM +1000, Michael Ellerman wrote: What compiler version are you

[PATCH] ppc64: Support for relocatable kernel in kexec-tools

2009-01-02 Thread M. Mohan Kumar
will be running as a relocatable kernel. Signed-off-by: M. Mohan Kumar mo...@in.ibm.com Signed-off-by: Milton Miller milt...@bga.com --- kexec/arch/ppc64/crashdump-ppc64.h |2 ++ kexec/arch/ppc64/kexec-elf-ppc64.c | 17 + purgatory/arch/ppc64/v2wrap.S | 25

[PATCH] ppc64: Enable RELOCATABLE option for CRASH_DUMP

2009-01-02 Thread M. Mohan Kumar
Enable RELOCATABLE option if user selects CRASH_DUMP option. Without this patch user has to first select RELOCATABLE option and then has to enable CRASH_DUMP option. Signed-off-by: M. Mohan Kumar mo...@in.ibm.com --- arch/powerpc/Kconfig |3 ++- 1 files changed, 2 insertions(+), 1 deletions