Re: [PATCH/RFC v2 1/4] ARM: hw_breakpoint: Add arm_dbg_regs_available flag

2014-10-01 Thread Geert Uytterhoeven
Hi Mathieu, On Wed, Oct 1, 2014 at 4:38 PM, Mathieu Poirier wrote: > On 1 October 2014 01:41, Geert Uytterhoeven wrote: >> On Tue, Sep 30, 2014 at 6:03 PM, Will Deacon wrote: >>> On Tue, Sep 30, 2014 at 01:26:24PM +0100, Geert Uytterhoeven wrote: If power area D4, which contains the Coresi

Re: [PATCH/RFC v2 1/4] ARM: hw_breakpoint: Add arm_dbg_regs_available flag

2014-10-01 Thread Mathieu Poirier
On 1 October 2014 01:41, Geert Uytterhoeven wrote: > Hi Will, > > On Tue, Sep 30, 2014 at 6:03 PM, Will Deacon wrote: >> On Tue, Sep 30, 2014 at 01:26:24PM +0100, Geert Uytterhoeven wrote: >>> If power area D4, which contains the Coresight-ETM hardware block, is >>> powered down on R-Mobile A1 (r

Re: [PATCH/RFC v2 1/4] ARM: hw_breakpoint: Add arm_dbg_regs_available flag

2014-10-01 Thread Geert Uytterhoeven
Hi Will, On Tue, Sep 30, 2014 at 6:03 PM, Will Deacon wrote: > On Tue, Sep 30, 2014 at 01:26:24PM +0100, Geert Uytterhoeven wrote: >> If power area D4, which contains the Coresight-ETM hardware block, is >> powered down on R-Mobile A1 (r8a7740), the kernel crashes when >> suspending from s2ram wi

Re: [PATCH/RFC v2 1/4] ARM: hw_breakpoint: Add arm_dbg_regs_available flag

2014-09-30 Thread Will Deacon
Hi Geert, On Tue, Sep 30, 2014 at 01:26:24PM +0100, Geert Uytterhoeven wrote: > If power area D4, which contains the Coresight-ETM hardware block, is > powered down on R-Mobile A1 (r8a7740), the kernel crashes when > suspending from s2ram with: > > Internal error: Oops - undefined instruction

[PATCH/RFC v2 1/4] ARM: hw_breakpoint: Add arm_dbg_regs_available flag

2014-09-30 Thread Geert Uytterhoeven
If power area D4, which contains the Coresight-ETM hardware block, is powered down on R-Mobile A1 (r8a7740), the kernel crashes when suspending from s2ram with: Internal error: Oops - undefined instruction: 0 [#1] ARM This happens because dbg_cpu_pm_notify() calls reset_ctrl_regs(), which can