Re: [RFC] 4xx hardware watchpoint support

2008-07-25 Thread Kumar Gala
On Jul 23, 2008, at 11:10 AM, Luis Machado wrote: On Wed, 2008-07-23 at 11:53 -0400, Josh Boyer wrote: Shouldn't this (and other places) be: #if defined(CONFIG_44x) || defined(CONFIG_BOOKE) if you are going to exclude 40x for now? Otherwise this is still enabled on 405 and setting the

Re: [RFC] 4xx hardware watchpoint support

2008-07-25 Thread Kumar Gala
On Jul 24, 2008, at 11:00 PM, Benjamin Herrenschmidt wrote: On Wed, 2008-07-23 at 13:10 -0300, Luis Machado wrote: On Wed, 2008-07-23 at 11:53 -0400, Josh Boyer wrote: Shouldn't this (and other places) be: #if defined(CONFIG_44x) || defined(CONFIG_BOOKE) if you are going to exclude 40x for

Re: [RFC] 4xx hardware watchpoint support

2008-07-25 Thread Kumar Gala
On Jul 25, 2008, at 10:23 AM, Kumar Gala wrote: On Jul 24, 2008, at 11:00 PM, Benjamin Herrenschmidt wrote: On Wed, 2008-07-23 at 13:10 -0300, Luis Machado wrote: On Wed, 2008-07-23 at 11:53 -0400, Josh Boyer wrote: Shouldn't this (and other places) be: #if defined(CONFIG_44x) ||

Re: [RFC] 4xx hardware watchpoint support

2008-07-25 Thread Benjamin Herrenschmidt
Josh pointed out that you went ahead and merged this. Curse you :) I've got a patch in my tree to address my initial concerns. Well, I asked Josh on IRC and he was fine, I got your email too late. Cheers, Ben. ___ Linuxppc-dev mailing list

Re: [RFC] 4xx hardware watchpoint support

2008-07-25 Thread Benjamin Herrenschmidt
On Fri, 2008-07-25 at 10:23 -0500, Kumar Gala wrote: Ben, I want to make sure this works on FSL Book-E before it gets into tree and I need to think about what SMP issues it might have. Hrm.. too late. I merged it. I talked to Josh about this at OLS and if you are ok I can deal with

Re: [RFC] 4xx hardware watchpoint support

2008-07-25 Thread Josh Boyer
On Sat, 26 Jul 2008 07:38:57 +1000 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: Josh pointed out that you went ahead and merged this. Curse you :) I've got a patch in my tree to address my initial concerns. Well, I asked Josh on IRC and he was fine, I got your email too late. I

Re: [RFC] 4xx hardware watchpoint support

2008-07-25 Thread Benjamin Herrenschmidt
On Fri, 2008-07-25 at 19:08 -0400, Josh Boyer wrote: On Sat, 26 Jul 2008 07:38:57 +1000 Benjamin Herrenschmidt [EMAIL PROTECTED] wrote: Josh pointed out that you went ahead and merged this. Curse you :) I've got a patch in my tree to address my initial concerns. Well, I

Re: [RFC] 4xx hardware watchpoint support

2008-07-24 Thread Benjamin Herrenschmidt
On Wed, 2008-07-23 at 13:10 -0300, Luis Machado wrote: On Wed, 2008-07-23 at 11:53 -0400, Josh Boyer wrote: Shouldn't this (and other places) be: #if defined(CONFIG_44x) || defined(CONFIG_BOOKE) if you are going to exclude 40x for now? Otherwise this is still enabled on 405 and

Re: [RFC] 4xx hardware watchpoint support

2008-07-23 Thread Kumar Gala
On Jul 22, 2008, at 8:47 PM, Luis Machado wrote: Hi, That, or adding a small function to move the bits to the appropriate registers (set_dbcr or set_dac_events). Do you think it's worth to support this facility on 405's processors? If so, i'll gladly work on a solution to it. I would

Re: [RFC] 4xx hardware watchpoint support

2008-07-23 Thread Luis Machado
Some comment, first the above negate conditional looks rather ugly, I'd rather do a #if defined(CONFIG_4xx) || defined(CONFIG_BOOKE) dbcr0 case #else dabr case #endif Yes, it makes sense. I'll switch it around. second I wonder why we have the notify_die only for one case,

Re: [RFC] 4xx hardware watchpoint support

2008-07-23 Thread Luis Machado
On Wed, 2008-07-23 at 11:53 -0400, Josh Boyer wrote: Shouldn't this (and other places) be: #if defined(CONFIG_44x) || defined(CONFIG_BOOKE) if you are going to exclude 40x for now? Otherwise this is still enabled on 405 and setting the wrong register. josh Yes, sorry. I wasn't aware

Re: [RFC] 4xx hardware watchpoint support

2008-07-23 Thread Kumar Gala
On Jul 23, 2008, at 10:53 AM, Josh Boyer wrote: On Tue, 22 Jul 2008 22:47:58 -0300 Luis Machado [EMAIL PROTECTED] wrote: Hi, That, or adding a small function to move the bits to the appropriate registers (set_dbcr or set_dac_events). Do you think it's worth to support this facility on

Re: [RFC] 4xx hardware watchpoint support

2008-07-22 Thread Luis Machado
Hi, That, or adding a small function to move the bits to the appropriate registers (set_dbcr or set_dac_events). Do you think it's worth to support this facility on 405's processors? If so, i'll gladly work on a solution to it. I would think so. There's really no difference from a

Re: [RFC] 4xx hardware watchpoint support

2008-07-21 Thread Luis Machado
This doesn't look right for how it's coded. This would be the CONFIG_4xx || CONFIG_BOOKE case, but CONFIG_4xx includes PowerPC 405. That has a different bit layout among the DBCR registers. Namely, on 405 you would be clearing the TDE and IAC1 events because the DAC events are in DBCR1,

Re: [RFC] 4xx hardware watchpoint support

2008-07-21 Thread Josh Boyer
On Mon, 21 Jul 2008 13:36:33 -0300 Luis Machado [EMAIL PROTECTED] wrote: This doesn't look right for how it's coded. This would be the CONFIG_4xx || CONFIG_BOOKE case, but CONFIG_4xx includes PowerPC 405. That has a different bit layout among the DBCR registers. Namely, on 405 you

Re: [RFC] 4xx hardware watchpoint support

2008-07-19 Thread Josh Boyer
On Fri, 20 Jun 2008 17:14:53 -0300 Luis Machado [EMAIL PROTECTED] wrote: Follows a re-worked patch that unifies the handling of hardware watchpoint structures for DABR-based and DAC-based processors. The flow is exactly the same for DABR-based processors. As for the DAC-based code, i've

Re: [RFC] 4xx hardware watchpoint support

2008-06-30 Thread Luis Machado
Hi guys, Did anyone have a chance to go over this patch? Looking forward to receive feedbacks on it. Thanks! Regards, Luis On Fri, 2008-06-20 at 17:14 -0300, Luis Machado wrote: On Thu, 2008-05-22 at 13:51 +1000, Paul Mackerras wrote: Luis Machado writes: This is a patch that has been

Re: [RFC] 4xx hardware watchpoint support

2008-06-20 Thread Luis Machado
On Thu, 2008-05-22 at 13:51 +1000, Paul Mackerras wrote: Luis Machado writes: This is a patch that has been sitting idle for quite some time. I decided to move it further because it is something useful. It was originally written by Michel Darneille, based off of 2.6.16. The original

Re: [RFC] 4xx hardware watchpoint support

2008-05-27 Thread Roland McGrath
Kumar was just mentioning this post a few messages ago: http://ozlabs.org/pipermail/linuxppc-dev/2008-May/055745.html That is a very interesting approach to handle all the differences between each processor's architecture, and a much cleaner way to set the facilities we want than the

Re: [RFC] 4xx hardware watchpoint support

2008-05-23 Thread Luis Machado
On Thu, 2008-05-22 at 13:51 +1000, Paul Mackerras wrote: Luis Machado writes: This is a patch that has been sitting idle for quite some time. I decided to move it further because it is something useful. It was originally written by Michel Darneille, based off of 2.6.16. The original

Re: [RFC] 4xx hardware watchpoint support

2008-05-23 Thread Luis Machado
On Wed, 2008-05-21 at 23:46 -0700, Roland McGrath wrote: I would think there would be a different REQUEST value to mean set a hardware breakpoint. Roland McGrath (cc'd) might be able to tell us what other architectures do. Other architectures don't give a good model to follow. (If

Re: [RFC] 4xx hardware watchpoint support

2008-05-22 Thread Roland McGrath
I would think there would be a different REQUEST value to mean set a hardware breakpoint. Roland McGrath (cc'd) might be able to tell us what other architectures do. Other architectures don't give a good model to follow. (If anything, they just trivally virtualize their own idiosyncratic

[RFC] 4xx hardware watchpoint support

2008-05-21 Thread Luis Machado
Hi, This is a patch that has been sitting idle for quite some time. I decided to move it further because it is something useful. It was originally written by Michel Darneille, based off of 2.6.16. The original patch, though, was not compatible with the current DABR logic. DABR's are used to

Re: [RFC] 4xx hardware watchpoint support

2008-05-21 Thread Kumar Gala
Two real quick notes. Take a look at: http://ozlabs.org/pipermail/linuxppc-dev/2008-May/055745.html and can you try and post the patch inline next time. Hard to provide review comments on it :) - k ___ Linuxppc-dev mailing list

Re: [RFC] 4xx hardware watchpoint support

2008-05-21 Thread Luis Machado
Thanks for the inlining tip. It should be now. :-) So, basically we are looking at a cleaner and much better interface to set such hardware features? That's something that would greatly improve the communication from, say, GDB to the kernel regarding these facilities. Regards, Luis On Wed,

Re: [RFC] 4xx hardware watchpoint support

2008-05-21 Thread Paul Mackerras
Luis Machado writes: This is a patch that has been sitting idle for quite some time. I decided to move it further because it is something useful. It was originally written by Michel Darneille, based off of 2.6.16. The original patch, though, was not compatible with the current DABR logic.