All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Henri Roosen <henriroosen@gmail.com>
Cc: "Xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] xnarch_xchg infinite loop
Date: Mon, 20 Jan 2014 10:48:01 +0100	[thread overview]
Message-ID: <52DCF0D1.4000307@xenomai.org> (raw)
In-Reply-To: <CANKLDmv_hfbVcWzoxjerWOTEWqEWPnQzUu44GF=SbC0iSopDOg@mail.gmail.com>

On 01/20/2014 09:31 AM, Henri Roosen wrote:
> Hi all,
> 
> We have the problem that (hot-)rebooting our Xenomai system fails every 1
> out of 10 times.
> 
> The system is an ARM iMX6Solo (Cortex-A9) running Xenomai 2.6.2.1 and
> kernel 3.0 (freescale branch).
> 
> When the system hangs at reboot, it is in an infinite loop in the Xenomai
> atomic exchange implementation, with STREX always returning 1:
> 
> __xnarch_xchg
> S:0xC0094B2C : ADD      r3,r6,#0x890
> S:0xC0094B30 : LDREX    r2,[r3]
> S:0xC0094B34 : STREX    r1,r9,[r3]
> S:0xC0094B38 : TEQ      r1,#0
> S:0xC0094B3C : BNE      {pc}-0xc ; 0xc0094b30
> 
> Does anyone know what is causing the STREX to always return 0 and why it
> might get into this state?

Normally, strex fails if "something else" stores data in between ldrex
and strex. Do you have the full stack trace?

-- 
                                                                Gilles.


  reply	other threads:[~2014-01-20  9:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-20  8:31 [Xenomai] xnarch_xchg infinite loop Henri Roosen
2014-01-20  9:48 ` Gilles Chanteperdrix [this message]
2014-01-20 10:02   ` Henri Roosen
2014-01-20 20:40     ` Gilles Chanteperdrix
2014-01-22  8:31       ` Henri Roosen
2014-01-22 10:47         ` Gilles Chanteperdrix
2014-01-22 14:49           ` Henri Roosen
2014-01-22 20:20             ` Gilles Chanteperdrix

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=52DCF0D1.4000307@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=henriroosen@gmail.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.