From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e23smtp06.au.ibm.com (e23smtp06.au.ibm.com [202.81.31.148]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e23smtp06.au.ibm.com", Issuer "Equifax" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 0667BDE052 for ; Fri, 15 May 2009 05:15:56 +1000 (EST) Received: from d23relay02.au.ibm.com (d23relay02.au.ibm.com [202.81.31.244]) by e23smtp06.au.ibm.com (8.13.1/8.13.1) with ESMTP id n4EJFl83030911 for ; Fri, 15 May 2009 05:15:47 +1000 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay02.au.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n4EJFtrO1589470 for ; Fri, 15 May 2009 05:15:55 +1000 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n4EJFskp025005 for ; Fri, 15 May 2009 05:15:55 +1000 Date: Fri, 15 May 2009 00:45:48 +0530 From: "K.Prasad" To: Geert Uytterhoeven Subject: Re: [RFC Patch 6/6] Adapt kexec and samples code to recognise PPC64hardware breakpoint usage Message-ID: <20090514191548.GC30963@in.ibm.com> References: <20090514133312.360702378@prasadkr_t60p.in.ibm.com> <20090514134614.GG14229@in.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Cc: Michael Neuling , Benjamin Herrenschmidt , linuxppc-dev@ozlabs.org, Alan Stern , paulus@samba.org, Roland McGrath Reply-To: prasad@linux.vnet.ibm.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, May 14, 2009 at 03:59:45PM +0200, Geert Uytterhoeven wrote: > On Thu, 14 May 2009, K.Prasad wrote: > > Modify kexec code to disable DABR registers before a reboot. Adapt the samples > > code to populate PPC64-arch specific fields. > > > > Signed-off-by: K.Prasad > > --- > > arch/powerpc/kernel/machine_kexec_64.c | 6 > > samples/hw_breakpoint/data_breakpoint.c | 4 > > > > Index: linux-2.6-tip.hbkpt/arch/powerpc/kernel/machine_kexec_64.c > > =================================================================== > > --- linux-2.6-tip.hbkpt.orig/arch/powerpc/kernel/machine_kexec_64.c 2009-05-14 00:17:24.000000000 +0530 > > +++ linux-2.6-tip.hbkpt/arch/powerpc/kernel/machine_kexec_64.c 2009-05-14 09:48:09.000000000 +0530 > > @@ -24,6 +24,7 @@ > > #include /* _end */ > > #include > > #include > > +#include > > > > int default_machine_kexec_prepare(struct kimage *image) > > { > > @@ -214,6 +215,9 @@ > > put_cpu(); > > > > local_irq_disable(); > > +#ifdef CONFIG_PPC64 > ^^^^^^^^^^^^^^^^^^^ > > + hw_breakpoint_disable(); > > +#endif > ^^^^^^ > > What about providing a dummy definition of hw_breakpoint_disable() > in if !CONFIG_PPC64? > Yes, that's a good idea. I will change it. Thanks, K.Prasad