[Top] [All Lists]

Re: hard lockup problem

To: Ralf Baechle <>
Subject: Re: hard lockup problem
From: Lin Ming <>
Date: Thu, 18 Apr 2013 12:30:37 -0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=SapgNZX3amjHs0GSt8tL52cGPDSl/tVo74OQ1WL0mkU=; b=KvbDmpmadYAfeBVht37WUzGWWRoL/rphGGhSciP5Ec/NU0LxLLeEkOF/wjsCofLiYw 6p2p0Zy2Iwqi0Us7wfLSf8ljyn5s23huoHCcFFjMS+gysfHDSmOyWjfY4besaOxU1Xph b7kyRwcxGMKGOHxT8zmWijSXheshdDJPts7yUx5Ga84N/ROBn+FN/a/tM2e3d5REE9Ms wfXDriJiz3XRNSUPRgvVySrr85L+2LpnN9sGxOffpbTN4m3BJQDSPcNZrVkvOj5uYRzf 2D41yc6C/1xyj7cm93IEKNWvJM0e/kcNzS87jHcsXHMJCq2ZGqtsLT8ETF1/6eigPQzg 7TbQ==
In-reply-to: <>
List-archive: <>
List-help: <>
List-id: linux-mips <>
List-owner: <>
List-post: <>
List-software: Ecartis version 1.0.0
List-subscribe: <>
List-unsubscribe: <>
Original-recipient: rfc822;
References: <> <>
On Thu, Apr 18, 2013 at 8:44 AM, Ralf Baechle <> 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?

Lin Ming

>   Ralf

<Prev in Thread] Current Thread [Next in Thread>