Re: get_irq_regs() from soft IRQ

2009-06-29 Thread Russell King - ARM Linux
On Mon, Jun 29, 2009 at 04:31:18PM +0200, Jean Pihet wrote: I am trying to get the latest IRQ registers from a timer or a work queue but I am running into problems: - get_irq_regs() returns NULL in some cases, It will always return NULL outside of IRQ context - and only returns valid pointers

Re: get_irq_regs() from soft IRQ

2009-06-29 Thread Jean Pihet
On Monday 29 June 2009 17:19:31 Russell King - ARM Linux wrote: On Mon, Jun 29, 2009 at 04:31:18PM +0200, Jean Pihet wrote: I am trying to get the latest IRQ registers from a timer or a work queue but I am running into problems: - get_irq_regs() returns NULL in some cases, It will always

Re: get_irq_regs() from soft IRQ

2009-06-29 Thread Russell King - ARM Linux
On Mon, Jun 29, 2009 at 05:35:37PM +0200, Jean Pihet wrote: On Monday 29 June 2009 17:19:31 Russell King - ARM Linux wrote: It's one of these things that nests itself - when you have several IRQs being processed on one CPU, there are several register contexts saved, and get_irq_regs()

Re: get_irq_regs() from soft IRQ

2009-06-29 Thread Jean Pihet
On Monday 29 June 2009 18:07:44 Russell King - ARM Linux wrote: On Mon, Jun 29, 2009 at 05:35:37PM +0200, Jean Pihet wrote: On Monday 29 June 2009 17:19:31 Russell King - ARM Linux wrote: It's one of these things that nests itself - when you have several IRQs being processed on one CPU,

Re: get_irq_regs() from soft IRQ

2009-06-29 Thread Siarhei Siamashka
On Monday 29 June 2009 17:31:18 ext Jean Pihet wrote: Hi, I am trying to get the latest IRQ registers from a timer or a work queue but I am running into problems: - get_irq_regs() returns NULL in some cases, so it is unsuable and even causes crash when trying to get the registers values from

Re: get_irq_regs() from soft IRQ

2009-06-29 Thread Jean Pihet
Hi Siarhei Siamashka, On Monday 29 June 2009 18:36:57 Siarhei Siamashka wrote: On Monday 29 June 2009 17:31:18 ext Jean Pihet wrote: Hi, I am trying to get the latest IRQ registers from a timer or a work queue but I am running into problems: - get_irq_regs() returns NULL in some cases,

Re: get_irq_regs() from soft IRQ

2009-06-29 Thread Russell King - ARM Linux
On Mon, Jun 29, 2009 at 07:36:57PM +0300, Siarhei Siamashka wrote: On Monday 29 June 2009 17:31:18 ext Jean Pihet wrote: I am trying to get the latest IRQ registers from a timer or a work queue but I am running into problems: - get_irq_regs() returns NULL in some cases, so it is unsuable

Re: get_irq_regs() from soft IRQ

2009-06-29 Thread Russell King - ARM Linux
On Mon, Jun 29, 2009 at 06:58:41PM +0200, Jean Pihet wrote: I am trying to get a different approach, starting from the errata description. The idea is to avoid the counters from overflowing, which could cause a PMNC unit reset or lock-up (or both). But this can't work. Oprofile essentially

Re: get_irq_regs() from soft IRQ

2009-06-29 Thread Jean Pihet
On Monday 29 June 2009 19:37:57 Russell King - ARM Linux wrote: On Mon, Jun 29, 2009 at 07:36:57PM +0300, Siarhei Siamashka wrote: On Monday 29 June 2009 17:31:18 ext Jean Pihet wrote: I am trying to get the latest IRQ registers from a timer or a work queue but I am running into problems:

Re: get_irq_regs() from soft IRQ

2009-06-29 Thread Jean Pihet
On Monday 29 June 2009 19:46:33 Russell King - ARM Linux wrote: On Mon, Jun 29, 2009 at 06:58:41PM +0200, Jean Pihet wrote: I am trying to get a different approach, starting from the errata description. The idea is to avoid the counters from overflowing, which could cause a PMNC unit reset

Re: get_irq_regs() from soft IRQ

2009-06-29 Thread Jean Pihet
On Monday 29 June 2009 19:54:23 Siarhei Siamashka wrote: On Monday 29 June 2009 19:58:41 ext Jean Pihet wrote: Hi Siarhei Siamashka, On Monday 29 June 2009 18:36:57 Siarhei Siamashka wrote: On Monday 29 June 2009 17:31:18 ext Jean Pihet wrote: Hi, I am trying to get the

Re: get_irq_regs() from soft IRQ

2009-06-29 Thread Siarhei Siamashka
On Monday 29 June 2009 20:37:57 ext Russell King - ARM Linux wrote: On Mon, Jun 29, 2009 at 07:36:57PM +0300, Siarhei Siamashka wrote: On Monday 29 June 2009 17:31:18 ext Jean Pihet wrote: I am trying to get the latest IRQ registers from a timer or a work queue but I am running into

Re: get_irq_regs() from soft IRQ

2009-06-29 Thread Jean Pihet
On Monday 29 June 2009 20:38:59 Siarhei Siamashka wrote: On Monday 29 June 2009 20:37:57 ext Russell King - ARM Linux wrote: On Mon, Jun 29, 2009 at 07:36:57PM +0300, Siarhei Siamashka wrote: On Monday 29 June 2009 17:31:18 ext Jean Pihet wrote: I am trying to get the latest IRQ

Re: get_irq_regs() from soft IRQ

2009-06-29 Thread Siarhei Siamashka
On Monday 29 June 2009 21:49:59 ext Jean Pihet wrote: [...] We just need to use not a periodic timer, but kind of a watchdog (this can be implemented with OMAP GPTIMER). As long as PMU interrupts are coming fast, watchdog is frequently reset and never shows up anywhere. Everything is