Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261264AbVAWJYs (ORCPT ); Sun, 23 Jan 2005 04:24:48 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261265AbVAWJYs (ORCPT ); Sun, 23 Jan 2005 04:24:48 -0500 Received: from e5.ny.us.ibm.com ([32.97.182.145]:21471 "EHLO e5.ny.us.ibm.com") by vger.kernel.org with ESMTP id S261264AbVAWJYa (ORCPT ); Sun, 23 Jan 2005 04:24:30 -0500 Subject: Re: [Fastboot] [PATCH] Reserving backup region for kexec based crashdumps. From: Vivek Goyal To: "Eric W. Biederman" Cc: Andrew Morton , fastboot , lkml , Maneesh Soni , Hariprasad Nellitheertha In-Reply-To: References: <1106294155.26219.26.camel@2fwv946.in.ibm.com> <1106305073.26219.46.camel@2fwv946.in.ibm.com> Content-Type: multipart/mixed; boundary="=-/NAU4xbRbszX3OkaAbZ6" Organization: Message-Id: <1106475280.26219.125.camel@2fwv946.in.ibm.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 23 Jan 2005 15:44:40 +0530 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 8871 Lines: 229 --=-/NAU4xbRbszX3OkaAbZ6 Content-Type: text/plain Content-Transfer-Encoding: 7bit On Fri, 2005-01-21 at 16:43, Eric W. Biederman wrote: > On deeper review your patch as it stands is incomplete. In particular > you don't provide a way to either hardcode or dynamically set > the area you are attempt to reserve to hold the backup region. Well. Here is the new patch. This one steals the 640k from top of memory region reserved for crash kernel. A new command line parameter (crashbackup=) has been introduced for crash dump kernels. This parameter specifies the location of backup region from where to retrieve the backup data. Thanks Vivek --=-/NAU4xbRbszX3OkaAbZ6 Content-Disposition: attachment; filename=crashdump-x86-reserve-640k-memory.patch Content-Type: text/plain; name=crashdump-x86-reserve-640k-memory.patch; charset=UTF-8 Content-Transfer-Encoding: 7bit This patch adds support for reserving 640k memory as backup region as required by crashdump kernel for x86. --- Signed-off-by: Vivek Goyal --- linux-2.6.11-rc1-root/Documentation/kernel-parameters.txt | 5 ++ linux-2.6.11-rc1-root/arch/i386/kernel/setup.c | 26 ++++++++++++-- linux-2.6.11-rc1-root/arch/i386/mm/discontig.c | 8 ++++ linux-2.6.11-rc1-root/include/linux/crash_dump.h | 1 linux-2.6.11-rc1-root/include/linux/kexec.h | 6 ++- linux-2.6.11-rc1-root/kernel/crash_dump.c | 3 + linux-2.6.11-rc1-root/kernel/kexec.c | 8 ++++ 7 files changed, 54 insertions(+), 3 deletions(-) diff -puN arch/i386/kernel/setup.c~crashdump-x86-reserve-640k-memory arch/i386/kernel/setup.c --- linux-2.6.11-rc1/arch/i386/kernel/setup.c~crashdump-x86-reserve-640k-memory 2005-01-22 14:16:27.000000000 +0530 +++ linux-2.6.11-rc1-root/arch/i386/kernel/setup.c 2005-01-22 14:22:41.000000000 +0530 @@ -41,6 +41,7 @@ #include #include #include +#include #include