From patchwork Tue May 29 18:29:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joakim Tjernlund X-Patchwork-Id: 161783 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 7FEA8B6FD5 for ; Wed, 30 May 2012 04:30:58 +1000 (EST) Received: by ozlabs.org (Postfix) id 823C0B6FAC; Wed, 30 May 2012 04:29:59 +1000 (EST) Delivered-To: linuxppc-dev@ozlabs.org Received: from gw1.transmode.se (gw1.transmode.se [195.58.98.146]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 20BBEB6FA3 for ; Wed, 30 May 2012 04:29:59 +1000 (EST) Received: from mail1.transmode.se (mail1.transmode.se [192.168.201.18]) by gw1.transmode.se (Postfix) with ESMTP id 3E9EE25801D; Tue, 29 May 2012 20:29:55 +0200 (CEST) In-Reply-To: <4FC511C1.4050007@mindchasers.com> References: <4FC511C1.4050007@mindchasers.com> Subject: Re: MSR loses DE bit in 3.3, BDI2000 cant handle breakpoints? X-KeepSent: 5076A83F:4EC6EBD3-C1257A0D:0064D589; type=4; name=$KeepSent To: Bob Cochran X-Mailer: Lotus Notes Release 8.5.3 September 15, 2011 Message-ID: From: Joakim Tjernlund Date: Tue, 29 May 2012 20:29:53 +0200 X-MIMETrack: Serialize by Router on mail1/Transmode(Release 8.5.3FP1|March 07, 2012) at 29/05/2012 20:29:54 MIME-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, support@abatron.ch X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Bob Cochran wrote on 2012/05/29 20:13:21: > > On 05/29/2012 08:00 AM, Joakim Tjernlund wrote: > > > > I cannot make simple break points using BDI2000 work in 3.3, abatro suggests that it > > depends on MSR[DE] is cleared by the kernel. With the emulator I can see that > > MSR[DE] is off quite often by just stopping at random times and looking at MSR so > > it seems like the kernel is turning MSR[DE] off most of the time. > > Anyone else having success debugging 3.3 with BDI2000? > > > > This is on a P2010(E500/BOOKE) CPU. > > > > _______________________________________________ > > Linuxppc-dev mailing list > > Linuxppc-dev@lists.ozlabs.org > > https://lists.ozlabs.org/listinfo/linuxppc-dev > > > > I debug using Freescale CodeWarrior and a USB tap, which also rely on > MSR[DE] being set. I develop from the mainline & have a patch set that > I just recently re-tweaked to support kernel debugging. > > If you want, I'll send you my set of patches for the kernel. They might > be useful (not sure since I don't use BDI). Thanks, that could be useful, however I just figured something out. Changing Made it work(possible one should change MSR_USER too?) Question now is why MSR_DE is not on by default? Especially since BDI2000 is supported by the kernel(CONFIG_BDI_SWITCH=y) is on in my kernel? Jocke diff --git a/arch/powerpc/include/asm/reg_booke.h b/arch/powerpc/include/asm/reg_booke.h index 500fe1d..0cb259b 100644 --- a/arch/powerpc/include/asm/reg_booke.h +++ b/arch/powerpc/include/asm/reg_booke.h @@ -37,7 +37,7 @@ #define MSR_KERNEL (MSR_ME|MSR_RI|MSR_IR|MSR_DR|MSR_CE) #define MSR_USER (MSR_KERNEL|MSR_PR|MSR_EE) #else -#define MSR_KERNEL (MSR_ME|MSR_RI|MSR_CE) +#define MSR_KERNEL (MSR_ME|MSR_RI|MSR_CE|MSR_DE) #define MSR_USER (MSR_KERNEL|MSR_PR|MSR_EE) #endif