All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: TALBI Ahmed -EXT <ahmed.talbi-ext@alstom.com>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] system freeze on IMX6
Date: Tue, 17 May 2016 11:41:27 +0200	[thread overview]
Message-ID: <20160517094127.GC2668@hermes.click-hack.org> (raw)
In-Reply-To: <28dcd6ac421c4696a7f60ccef160c8ef@AM3PR48MB0177.041d.mgd.msft.net>

On Tue, May 17, 2016 at 09:11:09AM +0000, TALBI Ahmed -EXT wrote:
> In the logs I attached I can see that xnlock  is locked in do_taskexit_event (by CPU0) and then in the same context we try to lock it a second time in xintr_clock_handler. May this be the issue ? or is xnlock a recursive lock ?

You are misreading the logs. xnintr_clock_handler tries to get the
lock on one cpu, while do_taskexit_event got it on another cpu. The
root cause of the problem is a fault when xnlock_spin is trying to
print some message. Probably because it has spin for too long. You
can try to disable spinlock debugging, but I am afraid you will get
a lockup instead.

-- 
					    Gilles.
https://click-hack.org


  parent reply	other threads:[~2016-05-17  9:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-13 13:25 [Xenomai] system freeze on IMX6 TALBI Ahmed -EXT
2016-05-14 12:30 ` Gilles Chanteperdrix
2016-05-14 13:01   ` Rolf Wöhrmann
2016-05-17  9:11     ` TALBI Ahmed -EXT
2016-05-17  9:31       ` Gilles Chanteperdrix
2016-05-17  9:41       ` Gilles Chanteperdrix [this message]
2016-05-17  9:52         ` TALBI Ahmed -EXT

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160517094127.GC2668@hermes.click-hack.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=ahmed.talbi-ext@alstom.com \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.