Re: [PATCH] ARM: hw_breakpoint: Trap undef instruction exceptions on wake-up

2014-09-23 Thread Geert Uytterhoeven
Hi Russell, On Wed, Sep 17, 2014 at 2:18 PM, Russell King - ARM Linux wrote: > On Wed, Sep 17, 2014 at 01:57:16PM +0200, 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 >> suspendi

Re: [PATCH] ARM: hw_breakpoint: Trap undef instruction exceptions on wake-up

2014-09-17 Thread Russell King - ARM Linux
On Wed, Sep 17, 2014 at 01:57:16PM +0200, 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: 0 [#1] AR

[PATCH] ARM: hw_breakpoint: Trap undef instruction exceptions on wake-up

2014-09-17 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