Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932527Ab3DBO6g (ORCPT ); Tue, 2 Apr 2013 10:58:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53130 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932492Ab3DBO6e (ORCPT ); Tue, 2 Apr 2013 10:58:34 -0400 Date: Tue, 2 Apr 2013 10:58:20 -0400 From: Vivek Goyal To: Yinghai Lu Cc: "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , WANG Chao , "Eric W. Biederman" , Linux Kernel Mailing List Subject: Re: [PATCH] kexec: use Crash kernel for Crash kernel low Message-ID: <20130402145820.GF29506@redhat.com> References: <20130401192606.GA17951@redhat.com> <5159F27E.7060300@zytor.com> <515A03DB.6040107@zytor.com> <515A083B.7050508@zytor.com> <20130402135001.GC29506@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1491 Lines: 39 On Tue, Apr 02, 2013 at 07:45:36AM -0700, Yinghai Lu wrote: [..] > No, that make the logic too complicated. > > After those four patches: > if the user still use old kexec-tools, they are still with > crashkernel=X, nothing is changed. > if the user want to use crashkernel=X,high, they should update kexec-tools. > when high is used, memblock will search from top to low. > if the allocated one is above 4G, kernel will try to auto allocate > 72M under 4G for swiotlb > user could crashkernel=Y,low to change 72M to other value. Hm..., - Ok so atleast use a different delimiter. Otherwise one could specify rage1:size1,range2:size2,high which is confusing. - I think one can look at above as follows. crashkernel=;[];.... where option1 specifies range of memory where to look for specified amount of memory. Current valid values are high/low. High means look for memory above 4G or fail. Low means look for memory below 4G or fail. We can always extend range syntax later if need be. Similarly we can always add option2 to emulate where to begin search (high/low). So this still falls into the generic syntax category and extendable, if need be. I will test your patches again. Thanks Vivek -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/