From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752315AbZH0DRT (ORCPT ); Wed, 26 Aug 2009 23:17:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751882AbZH0DRR (ORCPT ); Wed, 26 Aug 2009 23:17:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:25043 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752002AbZH0DRO (ORCPT ); Wed, 26 Aug 2009 23:17:14 -0400 Date: Wed, 26 Aug 2009 23:16:31 -0400 From: Amerigo Wang To: linux-kernel@vger.kernel.org Cc: tony.luck@intel.com, linux-ia64@vger.kernel.org, Neil Horman , "Eric W. Biederman" , Andi Kleen , Ingo Molnar , Amerigo Wang , Michael Ellerman , "M. Mohan Kumar" , akpm@linux-foundation.org, bernhard.walle@gmx.de, Fenghua Yu , kamezawa.hiroyu@jp.fujitsu.com, Anton Vorontsov Message-Id: <20090827031858.4534.6233.sendpatchset@localhost.localdomain> In-Reply-To: <20090827031800.4534.94868.sendpatchset@localhost.localdomain> References: <20090827031800.4534.94868.sendpatchset@localhost.localdomain> Subject: [Patch 5/8] powerpc: add CONFIG_KEXEC_AUTO_RESERVE Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce a new config option KEXEC_AUTO_RESERVE for powerpc. Signed-off-by: WANG Cong Acked-by: Neil Horman --- Index: linux-2.6/arch/powerpc/Kconfig =================================================================== --- linux-2.6.orig/arch/powerpc/Kconfig +++ linux-2.6/arch/powerpc/Kconfig @@ -346,6 +346,17 @@ config KEXEC support. As of this writing the exact hardware interface is strongly in flux, so no good recommendation can be made. +config KEXEC_AUTO_RESERVE + bool "automatically reserve memory for kexec kernel" + depends on KEXEC + default y + ---help--- + Automatically reserve memory for a kexec kernel, so that you don't + need to specify numbers for the "crashkernel=X@Y" boot option, + instead you can use "crashkernel=auto". To make this work, you need + to have more than 2G memory. On PPC, 128M or 256M is reserved, on + PPC64 1/32 of your physical memory, but it will not exceed 4G. + config CRASH_DUMP bool "Build a kdump crash kernel" depends on PPC64 || 6xx