LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] add additional symbols to /sys/kernel/vmcoreinfo data for ppc(64)
@ 2008-10-09 15:20 Neil Horman
  2008-10-10  0:20 ` Ken'ichi Ohmichi
  2008-10-17 21:08 ` Vivek Goyal
  0 siblings, 2 replies; 6+ messages in thread
From: Neil Horman @ 2008-10-09 15:20 UTC (permalink / raw)
  To: linux-kernel, kexec, vgoyal, hbabu; +Cc: nhorman

Hey-
	The makdumpdile dump filtering program, in some modes of operation needs
the node_data and/or contig_page_data symbols to function properly.  These
symbols are missing from the powerpc kernel.  This patch adds those symbols in
properly.  Tested successfully by myself and the reporter.

Regards
Neil

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>


 machine_kexec.c |   10 ++++++++++
 1 file changed, 10 insertions(+)


diff --git a/arch/powerpc/kernel/machine_kexec.c b/arch/powerpc/kernel/machine_kexec.c
index aab7688..2f9b5aa 100644
--- a/arch/powerpc/kernel/machine_kexec.c
+++ b/arch/powerpc/kernel/machine_kexec.c
@@ -44,6 +44,16 @@ void machine_kexec_cleanup(struct kimage *image)
 		ppc_md.machine_kexec_cleanup(image);
 }
 
+void arch_crash_save_vmcoreinfo(void)
+{
+#ifdef CONFIG_NEED_MULTIPLE_NODES
+	VMCOREINFO_SYMBOL(node_data);
+	VMCOREINFO_LENGTH(node_data, MAX_NUMNODES);
+#else
+	VMCOREINFO_SYMBOL(contig_page_data);
+#endif
+}
+
 /*
  * Do not allocate memory (or fail in any way) in machine_kexec().
  * We are past the point of no return, committed to rebooting now.
-- 
/***************************************************
 *Neil Horman
 *nhorman@tuxdriver.com
 *gpg keyid: 1024D / 0x92A74FA1
 *http://pgp.mit.edu
 ***************************************************/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] add additional symbols to /sys/kernel/vmcoreinfo data for ppc(64)
  2008-10-09 15:20 [PATCH] add additional symbols to /sys/kernel/vmcoreinfo data for ppc(64) Neil Horman
@ 2008-10-10  0:20 ` Ken'ichi Ohmichi
  2008-10-17 21:08 ` Vivek Goyal
  1 sibling, 0 replies; 6+ messages in thread
From: Ken'ichi Ohmichi @ 2008-10-10  0:20 UTC (permalink / raw)
  To: Neil Horman; +Cc: linux-kernel, kexec, vgoyal, hbabu


Hi Neil,

I had created similar patch, but your patch is better than mine because
your patch has right configuration dependency. So I think this patch is
fine.

Reviewed-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>


Thanks
Ken'ichi Ohmichi

* Reference:
http://lists.infradead.org/pipermail/kexec/2008-June/001970.html

Neil Horman wrote:
> Hey-
> 	The makdumpdile dump filtering program, in some modes of operation needs
> the node_data and/or contig_page_data symbols to function properly.  These
> symbols are missing from the powerpc kernel.  This patch adds those symbols in
> properly.  Tested successfully by myself and the reporter.
> 
> Regards
> Neil
> 
> Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
> 
> 
>  machine_kexec.c |   10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> 
> diff --git a/arch/powerpc/kernel/machine_kexec.c b/arch/powerpc/kernel/machine_kexec.c
> index aab7688..2f9b5aa 100644
> --- a/arch/powerpc/kernel/machine_kexec.c
> +++ b/arch/powerpc/kernel/machine_kexec.c
> @@ -44,6 +44,16 @@ void machine_kexec_cleanup(struct kimage *image)
>  		ppc_md.machine_kexec_cleanup(image);
>  }
>  
> +void arch_crash_save_vmcoreinfo(void)
> +{
> +#ifdef CONFIG_NEED_MULTIPLE_NODES
> +	VMCOREINFO_SYMBOL(node_data);
> +	VMCOREINFO_LENGTH(node_data, MAX_NUMNODES);
> +#else
> +	VMCOREINFO_SYMBOL(contig_page_data);
> +#endif
> +}
> +
>  /*
>   * Do not allocate memory (or fail in any way) in machine_kexec().
>   * We are past the point of no return, committed to rebooting now.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] add additional symbols to /sys/kernel/vmcoreinfo data for ppc(64)
  2008-10-09 15:20 [PATCH] add additional symbols to /sys/kernel/vmcoreinfo data for ppc(64) Neil Horman
  2008-10-10  0:20 ` Ken'ichi Ohmichi
@ 2008-10-17 21:08 ` Vivek Goyal
  2008-10-18  0:59   ` Neil Horman
  2008-10-20  0:28   ` Neil Horman
  1 sibling, 2 replies; 6+ messages in thread
From: Vivek Goyal @ 2008-10-17 21:08 UTC (permalink / raw)
  To: Neil Horman; +Cc: linux-kernel, kexec, hbabu

On Thu, Oct 09, 2008 at 11:20:27AM -0400, Neil Horman wrote:
> Hey-
> 	The makdumpdile dump filtering program, in some modes of operation needs
> the node_data and/or contig_page_data symbols to function properly.  These
> symbols are missing from the powerpc kernel.  This patch adds those symbols in
> properly.  Tested successfully by myself and the reporter.
> 
> Regards
> Neil
> 
> Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
> 
> 
>  machine_kexec.c |   10 ++++++++++
>  1 file changed, 10 insertions(+)
> 
> 
> diff --git a/arch/powerpc/kernel/machine_kexec.c b/arch/powerpc/kernel/machine_kexec.c
> index aab7688..2f9b5aa 100644
> --- a/arch/powerpc/kernel/machine_kexec.c
> +++ b/arch/powerpc/kernel/machine_kexec.c
> @@ -44,6 +44,16 @@ void machine_kexec_cleanup(struct kimage *image)
>  		ppc_md.machine_kexec_cleanup(image);
>  }
>  
> +void arch_crash_save_vmcoreinfo(void)
> +{
> +#ifdef CONFIG_NEED_MULTIPLE_NODES
> +	VMCOREINFO_SYMBOL(node_data);
> +	VMCOREINFO_LENGTH(node_data, MAX_NUMNODES);
> +#else
> +	VMCOREINFO_SYMBOL(contig_page_data);
> +#endif
> +}
> +

Hi Neil,

Looks like contig_page_data is already being saved in arch independent
portion of kexec (crash_save_vmcoreinfo_init()). We probably don't need
to save it here again?

#ifndef CONFIG_NEED_MULTIPLE_NODES
        VMCOREINFO_SYMBOL(mem_map);
        VMCOREINFO_SYMBOL(contig_page_data);
#endif

Thanks
Vivek

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] add additional symbols to /sys/kernel/vmcoreinfo data for ppc(64)
  2008-10-17 21:08 ` Vivek Goyal
@ 2008-10-18  0:59   ` Neil Horman
  2008-10-20  0:28   ` Neil Horman
  1 sibling, 0 replies; 6+ messages in thread
From: Neil Horman @ 2008-10-18  0:59 UTC (permalink / raw)
  To: Vivek Goyal; +Cc: linux-kernel, kexec, hbabu

On Fri, Oct 17, 2008 at 05:08:54PM -0400, Vivek Goyal wrote:
> On Thu, Oct 09, 2008 at 11:20:27AM -0400, Neil Horman wrote:
> > Hey-
> > 	The makdumpdile dump filtering program, in some modes of operation needs
> > the node_data and/or contig_page_data symbols to function properly.  These
> > symbols are missing from the powerpc kernel.  This patch adds those symbols in
> > properly.  Tested successfully by myself and the reporter.
> > 
> > Regards
> > Neil
> > 
> > Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
> > 
> > 
> >  machine_kexec.c |   10 ++++++++++
> >  1 file changed, 10 insertions(+)
> > 
> > 
> > diff --git a/arch/powerpc/kernel/machine_kexec.c b/arch/powerpc/kernel/machine_kexec.c
> > index aab7688..2f9b5aa 100644
> > --- a/arch/powerpc/kernel/machine_kexec.c
> > +++ b/arch/powerpc/kernel/machine_kexec.c
> > @@ -44,6 +44,16 @@ void machine_kexec_cleanup(struct kimage *image)
> >  		ppc_md.machine_kexec_cleanup(image);
> >  }
> >  
> > +void arch_crash_save_vmcoreinfo(void)
> > +{
> > +#ifdef CONFIG_NEED_MULTIPLE_NODES
> > +	VMCOREINFO_SYMBOL(node_data);
> > +	VMCOREINFO_LENGTH(node_data, MAX_NUMNODES);
> > +#else
> > +	VMCOREINFO_SYMBOL(contig_page_data);
> > +#endif
> > +}
> > +
> 
> Hi Neil,
> 
> Looks like contig_page_data is already being saved in arch independent
> portion of kexec (crash_save_vmcoreinfo_init()). We probably don't need
> to save it here again?
> 
> #ifndef CONFIG_NEED_MULTIPLE_NODES
>         VMCOREINFO_SYMBOL(mem_map);
>         VMCOREINFO_SYMBOL(contig_page_data);
> #endif
> 
> Thanks
> Vivek
> 
Oops your right.  I fixed that in RHEL and must not have searched for it
upstream.  I'll repost a corrected patch monday.
Thanks!
Neil


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] add additional symbols to /sys/kernel/vmcoreinfo data for ppc(64)
  2008-10-17 21:08 ` Vivek Goyal
  2008-10-18  0:59   ` Neil Horman
@ 2008-10-20  0:28   ` Neil Horman
  2008-10-20 12:51     ` Vivek Goyal
  1 sibling, 1 reply; 6+ messages in thread
From: Neil Horman @ 2008-10-20  0:28 UTC (permalink / raw)
  To: Vivek Goyal; +Cc: linux-kernel, kexec, hbabu

 Hey Vivek, as promised, a corrected patch
	
	The makdumpdile dump filtering program, in some modes of operation needs
the node_data and/or contig_page_data symbols to function properly.  These
symbols are missing from the powerpc kernel.  This patch adds those symbols in
properly.  Tested successfully by myself and the reporter.

Regards
Neil

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>


 machine_kexec.c |    8 ++++++++
 1 file changed, 8 insertions(+)


diff --git a/arch/powerpc/kernel/machine_kexec.c b/arch/powerpc/kernel/machine_kexec.c
index aab7688..5d51e75 100644
--- a/arch/powerpc/kernel/machine_kexec.c
+++ b/arch/powerpc/kernel/machine_kexec.c
@@ -44,6 +44,14 @@ void machine_kexec_cleanup(struct kimage *image)
 		ppc_md.machine_kexec_cleanup(image);
 }
 
+void arch_crash_save_vmcoreinfo(void)
+{
+#ifdef CONFIG_NEED_MULTIPLE_NODES
+	VMCOREINFO_SYMBOL(node_data);
+	VMCOREINFO_LENGTH(node_data, MAX_NUMNODES);
+#endif
+}
+
 /*
  * Do not allocate memory (or fail in any way) in machine_kexec().
  * We are past the point of no return, committed to rebooting now.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] add additional symbols to /sys/kernel/vmcoreinfo data for ppc(64)
  2008-10-20  0:28   ` Neil Horman
@ 2008-10-20 12:51     ` Vivek Goyal
  0 siblings, 0 replies; 6+ messages in thread
From: Vivek Goyal @ 2008-10-20 12:51 UTC (permalink / raw)
  To: Neil Horman; +Cc: linux-kernel, kexec, hbabu

On Sun, Oct 19, 2008 at 08:28:05PM -0400, Neil Horman wrote:
>  Hey Vivek, as promised, a corrected patch
> 	
> 	The makdumpdile dump filtering program, in some modes of operation needs
> the node_data and/or contig_page_data symbols to function properly.  These
> symbols are missing from the powerpc kernel.  This patch adds those symbols in
> properly.  Tested successfully by myself and the reporter.
> 
> Regards
> Neil
> 
> Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
> 
> 
>  machine_kexec.c |    8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> 
> diff --git a/arch/powerpc/kernel/machine_kexec.c b/arch/powerpc/kernel/machine_kexec.c
> index aab7688..5d51e75 100644
> --- a/arch/powerpc/kernel/machine_kexec.c
> +++ b/arch/powerpc/kernel/machine_kexec.c
> @@ -44,6 +44,14 @@ void machine_kexec_cleanup(struct kimage *image)
>  		ppc_md.machine_kexec_cleanup(image);
>  }
>  
> +void arch_crash_save_vmcoreinfo(void)
> +{
> +#ifdef CONFIG_NEED_MULTIPLE_NODES
> +	VMCOREINFO_SYMBOL(node_data);
> +	VMCOREINFO_LENGTH(node_data, MAX_NUMNODES);
> +#endif
> +}
> +

Looks good to me.

Acked-by: Vivek Goyal <vgoyal@redhat.com>

Thanks
Vivek

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-10-20 12:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-09 15:20 [PATCH] add additional symbols to /sys/kernel/vmcoreinfo data for ppc(64) Neil Horman
2008-10-10  0:20 ` Ken'ichi Ohmichi
2008-10-17 21:08 ` Vivek Goyal
2008-10-18  0:59   ` Neil Horman
2008-10-20  0:28   ` Neil Horman
2008-10-20 12:51     ` Vivek Goyal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).