WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

Re: [Xen-ia64-devel] [patch 06/16] Kexec/Kdump: honour non-zero crashker

To: Simon Horman <horms@xxxxxxxxxxxx>
Subject: Re: [Xen-ia64-devel] [patch 06/16] Kexec/Kdump: honour non-zero crashkernel offset
From: Alex Williamson <alex.williamson@xxxxxx>
Date: Wed, 12 Sep 2007 15:38:31 -0600
Cc: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 12 Sep 2007 14:38:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20070912083044.855938929@xxxxxxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: OSLO R&D
References: <20070912082834.175658477@xxxxxxxxxxxx> <20070912083044.855938929@xxxxxxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Wed, 2007-09-12 at 17:28 +0900, Simon Horman wrote:

> Index: linux-2.6.18-xen.hg/arch/ia64/kernel/setup.c
> ===================================================================
> --- linux-2.6.18-xen.hg.orig/arch/ia64/kernel/setup.c 2007-07-09 
> 15:00:34.000000000 +0900
> +++ linux-2.6.18-xen.hg/arch/ia64/kernel/setup.c      2007-07-09 
> 15:03:32.000000000 +0900
> @@ -299,7 +299,7 @@ reserve_memory (void)
>  
>  #ifdef CONFIG_KEXEC
>       /* crashkernel=size@offset specifies the size to reserve for a crash
> -      * kernel.(offset is ingored for keep compatibility with other archs)
> +      * kernel. If offset is 0, then it is determined automatically.
>        * By reserving this memory we guarantee that linux never set's it
>        * up as a DMA target.Useful for holding code to do something
>        * appropriate after a kernel panic.
> @@ -310,10 +310,16 @@ reserve_memory (void)
>  #ifndef CONFIG_XEN
>               if (from) {
>                       size = memparse(from + 12, &from);
> +                     if (*from == '@')
> +                             base = memparse(from+1, &from);
> +                     else
> +                             base = 0;
>                       if (size) {
> -                             sort_regions(rsvd_region, n);
> -                             base = kdump_find_rsvd_region(size,
> -                             rsvd_region, n);
> +                             if (!base) {
> +                                     sort_regions(rsvd_region, n);
> +                                     base = kdump_find_rsvd_region(size,
> +                                                             rsvd_region, n);
> +                                     }
>                               if (base != ~0UL) {

   I don't understand why we want this change in our kernel.  Its
changing code within #ifndef CONFIG_XEN.  Should this just be fixed
upstream and we'll absorb it at the next merge up?  thanks,

        Alex

-- 
Alex Williamson                             HP Open Source & Linux Org.


_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>