* hard lockup problem
@ 2013-04-18 7:13 Lin Ming
2013-04-18 7:57 ` Lin Ming
2013-04-18 12:44 ` Ralf Baechle
0 siblings, 2 replies; 5+ messages in thread
From: Lin Ming @ 2013-04-18 7:13 UTC (permalink / raw)
To: linux-mips
Hi list,
I encounter a problem that cpu stuck with irq disabled, which is known
as hard lockup.
I know there is NMI hard lockup detector for x86, which can dump the
back trace of the hard lockup.
Is there any similar feature for MIPS?
Thanks,
Lin Ming
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: hard lockup problem
2013-04-18 7:13 hard lockup problem Lin Ming
@ 2013-04-18 7:57 ` Lin Ming
2013-04-18 12:44 ` Ralf Baechle
1 sibling, 0 replies; 5+ messages in thread
From: Lin Ming @ 2013-04-18 7:57 UTC (permalink / raw)
To: linux-mips
On Thu, Apr 18, 2013 at 3:13 PM, Lin Ming <minggr@gmail.com> wrote:
> Hi list,
>
> I encounter a problem that cpu stuck with irq disabled, which is known
> as hard lockup.
> I know there is NMI hard lockup detector for x86, which can dump the
> back trace of the hard lockup.
>
> Is there any similar feature for MIPS?
And it's MIPS32 4K cpu running 2.6.30 kernel.
>
> Thanks,
> Lin Ming
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: hard lockup problem
2013-04-18 7:13 hard lockup problem Lin Ming
2013-04-18 7:57 ` Lin Ming
@ 2013-04-18 12:44 ` Ralf Baechle
2013-04-18 16:24 ` Lin Ming
2013-04-18 16:30 ` Lin Ming
1 sibling, 2 replies; 5+ messages in thread
From: Ralf Baechle @ 2013-04-18 12:44 UTC (permalink / raw)
To: Lin Ming; +Cc: linux-mips
On Thu, Apr 18, 2013 at 03:13:55PM +0800, Lin Ming wrote:
> I encounter a problem that cpu stuck with irq disabled, which is known
> as hard lockup.
> I know there is NMI hard lockup detector for x86, which can dump the
> back trace of the hard lockup.
>
> Is there any similar feature for MIPS?
No, there isn't, unfortunately.
This is because on MIPS an NMI is very different from for example x86.
An NMI goes straight to a firmware address and most firmware implementations
don't provided a suitable hook for an OS to gain control back from an NMI.
Generally on MIPS NMIs are used to signal catastrophic problems, things
like a machine check exception but external to the CPU.
One of the notable exceptions is Octeon where (see the Octeon watchdog
driver) an OS can regain control after an NMI. Malta and SGI IP27 also
have somewhat useful NMIs.
Ralf
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: hard lockup problem
2013-04-18 12:44 ` Ralf Baechle
@ 2013-04-18 16:24 ` Lin Ming
2013-04-18 16:30 ` Lin Ming
1 sibling, 0 replies; 5+ messages in thread
From: Lin Ming @ 2013-04-18 16:24 UTC (permalink / raw)
To: Ralf Baechle; +Cc: linux-mips
On Thu, Apr 18, 2013 at 8:44 AM, Ralf Baechle <ralf@linux-mips.org> wrote:
> On Thu, Apr 18, 2013 at 03:13:55PM +0800, Lin Ming wrote:
>
>> I encounter a problem that cpu stuck with irq disabled, which is known
>> as hard lockup.
>> I know there is NMI hard lockup detector for x86, which can dump the
>> back trace of the hard lockup.
>>
>> Is there any similar feature for MIPS?
>
> No, there isn't, unfortunately.
>
> This is because on MIPS an NMI is very different from for example x86.
> An NMI goes straight to a firmware address and most firmware implementations
> don't provided a suitable hook for an OS to gain control back from an NMI.
>
> Generally on MIPS NMIs are used to signal catastrophic problems, things
> like a machine check exception but external to the CPU.
>
> One of the notable exceptions is Octeon where (see the Octeon watchdog
> driver) an OS can regain control after an NMI. Malta and SGI IP27 also
> have somewhat useful NMIs.
>
> Ralf
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: hard lockup problem
2013-04-18 12:44 ` Ralf Baechle
2013-04-18 16:24 ` Lin Ming
@ 2013-04-18 16:30 ` Lin Ming
1 sibling, 0 replies; 5+ messages in thread
From: Lin Ming @ 2013-04-18 16:30 UTC (permalink / raw)
To: Ralf Baechle; +Cc: linux-mips
On Thu, Apr 18, 2013 at 8:44 AM, Ralf Baechle <ralf@linux-mips.org> wrote:
> On Thu, Apr 18, 2013 at 03:13:55PM +0800, Lin Ming wrote:
>
>> I encounter a problem that cpu stuck with irq disabled, which is known
>> as hard lockup.
>> I know there is NMI hard lockup detector for x86, which can dump the
>> back trace of the hard lockup.
>>
>> Is there any similar feature for MIPS?
>
> No, there isn't, unfortunately.
>
> This is because on MIPS an NMI is very different from for example x86.
> An NMI goes straight to a firmware address and most firmware implementations
> don't provided a suitable hook for an OS to gain control back from an NMI.
>
> Generally on MIPS NMIs are used to signal catastrophic problems, things
> like a machine check exception but external to the CPU.
>
> One of the notable exceptions is Octeon where (see the Octeon watchdog
> driver) an OS can regain control after an NMI. Malta and SGI IP27 also
> have somewhat useful NMIs.
Thanks for the explanation.
Since no NMI available, what I am trying to do is:
- reserve some boot memory
- write a ftrace tracer, save ftrace functions to the reserved memory
- when hard lockup happens, hardware watch dog will reboot the board
- get the functions from the reserved memory, see what it was doing
when hard lockup happened.
Or any other hints to debug such kind of hard lockup on MIPS?
Thanks,
Lin Ming
>
> Ralf
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-04-18 16:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-18 7:13 hard lockup problem Lin Ming
2013-04-18 7:57 ` Lin Ming
2013-04-18 12:44 ` Ralf Baechle
2013-04-18 16:24 ` Lin Ming
2013-04-18 16:30 ` Lin Ming
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox