From patchwork Wed Oct 1 18:25:01 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mohan Kumar M X-Patchwork-Id: 2292 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 66ABA47522 for ; Thu, 2 Oct 2008 04:26:34 +1000 (EST) X-Original-To: linuxppc-dev@ozlabs.org Delivered-To: linuxppc-dev@ozlabs.org Received: from e4.ny.us.ibm.com (e4.ny.us.ibm.com [32.97.182.144]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e4.ny.us.ibm.com", Issuer "Equifax" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id E3184DDF13 for ; Thu, 2 Oct 2008 04:26:19 +1000 (EST) Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234]) by e4.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id m91IQDuF012090 for ; Wed, 1 Oct 2008 14:26:13 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id m91IP43C204442 for ; Wed, 1 Oct 2008 14:25:04 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m91IP4oj002896 for ; Wed, 1 Oct 2008 14:25:04 -0400 Received: from explorer.in.ibm.com ([9.77.127.79]) by d01av02.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m91IP3uu002820; Wed, 1 Oct 2008 14:25:04 -0400 Received: by explorer.in.ibm.com (Postfix, from userid 500) id 93119280A2; Wed, 1 Oct 2008 23:55:01 +0530 (IST) Date: Wed, 1 Oct 2008 23:55:01 +0530 From: Mohan Kumar M To: paulus@samba.org Subject: [PATCH] Fix kdump kernel hang issue with relocatable kernel patches Message-ID: <20081001182501.GA20319@in.ibm.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Cc: ppcdev , kexec@lists.infradead.org X-BeenThere: linuxppc-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: mohan@in.ibm.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org One of the relocatable kernel support patches assumes that the target address will be 0. But for kdump kernels (without relocation support) it will be 32MB. The following patch fixes this issue. Fix kdump kernel issue Kdump kernel without relocation support needs to be moved to PHYSICAL_START (ie 32MB) instead of 0. This patch fixes this issue. Signed-off-by: Mohan Kumar M --- arch/powerpc/kernel/head_64.S | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/head_64.S index 84856be..8934500 100644 --- a/arch/powerpc/kernel/head_64.S +++ b/arch/powerpc/kernel/head_64.S @@ -1395,7 +1395,7 @@ _STATIC(__after_prom_start) * * Note: This process overwrites the OF exception vectors. */ - li r3,0 /* target addr */ + LOAD_REG_IMMEDIATE(r3, PHYSICAL_START) /* target addr */ mr. r4,r26 /* In some cases the loader may */ beq 9f /* have already put us at zero */ lis r5,(copy_to_here - _stext)@ha