RE: Question about DBCR0 initialization for 440

2009-04-17 Thread John Linn
:24 AM To: John Linn; jwbo...@linux.vnet.ibm.com; grant.lik...@secretlab.ca; linuxppc-dev@ozlabs.org Subject: RE: Question about DBCR0 initialization for 440 Some debuggers like BDI(Abatron) they setup the debug registers. If you have different debugger which doesn't support configuring debug

Re: Question about DBCR0 initialization for 440

2009-04-17 Thread Josh Boyer
On Fri, Apr 17, 2009 at 11:46 AM, John Linn john.l...@xilinx.com wrote: Josh, any thoughts on putting this into head_44x.S? The code in the fsl file looks like the right solution. I do have an odd question though, in that it's hard for the kernel to really know if something like a BDI is

Re: Question about DBCR0 initialization for 440

2009-04-17 Thread Hollis Blanchard
On Friday 17 April 2009 12:22:37 Josh Boyer wrote: On Fri, Apr 17, 2009 at 11:46 AM, John Linn john.l...@xilinx.com wrote: Josh, any thoughts on putting this into head_44x.S? The code in the fsl file looks like the right solution. I do have an odd question though, in that it's hard for the

Re: Question about DBCR0 initialization for 440

2009-04-17 Thread Grant Likely
Hey John We just discussed this on IRC. Go ahead and generate a patch to unconditionally turn on DBCR0[IDM] in head_44x.S. Don't even bother wrapping it in an #ifdef CONFIG_somthing block. It should be safe, but we'll throw it into -next and see if anyone complains. If it does cause problems,

Re: Question about DBCR0 initialization for 440

2009-04-17 Thread Benjamin Herrenschmidt
On Fri, 2009-04-17 at 13:07 -0500, Hollis Blanchard wrote: On Friday 17 April 2009 12:22:37 Josh Boyer wrote: On Fri, Apr 17, 2009 at 11:46 AM, John Linn john.l...@xilinx.com wrote: Josh, any thoughts on putting this into head_44x.S? The code in the fsl file looks like the right

Re: Question about DBCR0 initialization for 440

2009-04-17 Thread Grant Likely
On Fri, Apr 17, 2009 at 1:04 PM, Benjamin Herrenschmidt b...@kernel.crashing.org wrote: On Fri, 2009-04-17 at 13:07 -0500, Hollis Blanchard wrote: On Friday 17 April 2009 12:22:37 Josh Boyer wrote: On Fri, Apr 17, 2009 at 11:46 AM, John Linn john.l...@xilinx.com wrote: Josh, any thoughts on

RE: Question about DBCR0 initialization for 440

2009-04-17 Thread John Linn
Thanks everyone, will do. -Original Message- From: Grant Likely [mailto:grant.lik...@secretlab.ca] Sent: Friday, April 17, 2009 12:58 PM To: Josh Boyer Cc: John Linn; Tirumala Reddy Marri; linuxppc-dev@ozlabs.org; holl...@us.ibm.com Subject: Re: Question about DBCR0 initialization

RE: Question about DBCR0 initialization for 440

2009-04-17 Thread John Linn
-Original Message- From: Grant Likely [mailto:grant.lik...@secretlab.ca] Sent: Friday, April 17, 2009 1:10 PM To: Benjamin Herrenschmidt Cc: Hollis Blanchard; linuxppc-dev@ozlabs.org; John Linn; Tirumala Reddy Marri Subject: Re: Question about DBCR0 initialization for 440

Re: Question about DBCR0 initialization for 440

2009-04-17 Thread Josh Boyer
On Fri, Apr 17, 2009 at 02:30:45PM -0600, John Linn wrote: Might be worth checking if external debug is enabled, and override it only if it's not. ppc440x5_um.pdf says that both can be enabled. The code that I started the thread with, from the fsl file, has conditional for the BDI

RE: Question about DBCR0 initialization for 440

2009-04-17 Thread John Linn
-Original Message- From: Josh Boyer [mailto:jwbo...@linux.vnet.ibm.com] Sent: Friday, April 17, 2009 2:36 PM To: John Linn Cc: grant.lik...@secretlab.ca; Benjamin Herrenschmidt; linuxppc-dev@ozlabs.org; Hollis Blanchard; Tirumala Reddy Marri Subject: Re: Question about DBCR0

Re: Question about DBCR0 initialization for 440

2009-04-17 Thread Hollis Blanchard
On Friday 17 April 2009 15:30:45 John Linn wrote: We think that we still need that conditional as the code is not Oring in the enable such that it would disable external debug mode for the BDI. But we need it this way for our Xilinx pod. #if !defined(CONFIG_BDI_SWITCH) /*

Re: Question about DBCR0 initialization for 440

2009-04-17 Thread Josh Boyer
; Tirumala Reddy Marri Subject: Re: Question about DBCR0 initialization for 440 On Fri, Apr 17, 2009 at 02:30:45PM -0600, John Linn wrote: Might be worth checking if external debug is enabled, and override it only if it's not. ppc440x5_um.pdf says that both can be enabled

RE: Question about DBCR0 initialization for 440

2009-04-17 Thread John Linn
-Original Message- From: Hollis Blanchard [mailto:holl...@us.ibm.com] Sent: Friday, April 17, 2009 2:50 PM To: John Linn Cc: grant.lik...@secretlab.ca; Benjamin Herrenschmidt; linuxppc-dev@ozlabs.org; Tirumala Reddy Marri Subject: Re: Question about DBCR0 initialization for 440

RE: Question about DBCR0 initialization for 440

2009-04-15 Thread Tirumala Reddy Marri
@ozlabs.org] On Behalf Of John Linn Sent: Tuesday, April 14, 2009 1:33 PM To: jwbo...@linux.vnet.ibm.com; grant.lik...@secretlab.ca; linuxppc-dev@ozlabs.org Subject: Question about DBCR0 initialization for 440 The kernel does not initialize the PPC440 DBCR0 register. This prevents (among

Question about DBCR0 initialization for 440

2009-04-14 Thread John Linn
The kernel does not initialize the PPC440 DBCR0 register. This prevents (among other things) the use of software breakpoints with GDB. I realize that boot loaders probably do initialize this but we run a lot without a boot loader and so do our customers. The file, head_fsl_booke.S, does