All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: "Michael Opdenacker" <michael@free-electrons.com>,
	"Thomas Petazzoni" <thomas@free-electrons.com>,
	"Boris Brezillon" <boris@free-electrons.com>,
	"Alexandre Belloni" <alexandre.belloni@free-electrons.com>,
	xenomai@xenomai.org,
	"Antoine Ténart" <antoine@free-electrons.com>
Subject: Re: [Xenomai] Xenomai on Atmel SAMA5D3 with a 3.14 kernel
Date: Tue, 10 Jun 2014 11:54:22 +0200	[thread overview]
Message-ID: <20140610095422.GK9791@lukather> (raw)
In-Reply-To: <5396D469.7060701@xenomai.org>

On Tue, Jun 10, 2014 at 11:48:25AM +0200, Gilles Chanteperdrix wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 06/10/2014 11:40 AM, Maxime Ripard wrote:
> > On Sat, Jun 07, 2014 at 04:34:34PM +0200, Gilles Chanteperdrix
> > wrote:
> >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
> >> 
> >> On 06/06/2014 04:00 PM, Maxime Ripard wrote:
> >>> On Fri, Jun 06, 2014 at 03:59:12PM +0200, Maxime Ripard wrote:
> >>>> Hi Gilles,
> >>>> 
> >>>> I've been experimenting these days with the i-pipe 3.14
> >>>> kernel, and current xenomai master branch on the Atmel
> >>>> SAMA5D3 SoC.
> >>>> 
> >>>> There's a few issues there, the first one being that 
> >>>> at91_ipipe_early_init crashes because of a NULL pointer 
> >>>> dereference. This is due to the clk_get_rate call on the
> >>>> clock returned by clk_get(NULL, "mck").
> >>>> 
> >>>> This clk_get call cannot since 3.14 because the clock code
> >>>> has been rewritten, and you can't use clkdev anymore.
> >>>> 
> >>>> This is quite simple to fix, and after actually fixing it,
> >>>> you get a more interesting issue: either the timers or the 
> >>>> interrupts don't work at all.
> >>>> 
> >>>> The first symptom is that it get stuck at the delay loop 
> >>>> calibration. Setting the loops per jiffy in the command line 
> >>>> make the boot go further, until the switch to the ipipe_tsc 
> >>>> clocksource. This actually makes me think that it's more the
> >>>>  timers that are broken rather than the interrupts. Changing
> >>>> the timer counter block doesn't solve anything.
> >>>> 
> >>>> Do you have an idea of what could be going on?
> >>> 
> >>> 
> >>> Actually, the boot seem just to be *much* slower, so maybe the
> >>>  timers are working after all, but it's just yet another issue
> >>> with the clocks.
> >>> 
> >> Does __ipipe_tsc_update get called in Linux timer interrupt?
> > 
> > Here is what's happening: http://pastebin.com/m2mz66pU
> > 
> > You can see that at line 35, the timer interrupt (a spurious one?) 
> > gets called, and calls __ipipe_tsc_update. At that point, 
> > ipipe_tsc_value seems to be NULL, and hence __ipipe_tsc_update 
> > returns.
> > 
> > The thing is, the timer interrupt doesn't seem to be called again.
> > The fact that it was actually called once makes me think that it's
> > rather the timer clock that is not running... I will dig into it.
> 
> If you have CONFIG_NO_HZ enabled, try to turn it off.

CONFIG_NO_HZ is disabled, here is the full config:
http://pastebin.com/fmVGTX4W

-- 
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20140610/c1fb2581/attachment.sig>

  reply	other threads:[~2014-06-10  9:54 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-06 13:59 [Xenomai] Xenomai on Atmel SAMA5D3 with a 3.14 kernel Maxime Ripard
2014-06-06 14:00 ` Maxime Ripard
2014-06-07 14:34   ` Gilles Chanteperdrix
2014-06-10  9:10     ` Maxime Ripard
2014-06-10  9:40     ` Maxime Ripard
2014-06-10  9:48       ` Gilles Chanteperdrix
2014-06-10  9:54         ` Maxime Ripard [this message]
2014-06-10 10:01           ` Gilles Chanteperdrix
2014-06-10 10:35             ` Gilles Chanteperdrix
2014-06-11  9:25             ` Maxime Ripard
2014-06-11 18:16               ` Gilles Chanteperdrix
2014-06-11 18:55                 ` Gilles Chanteperdrix
2014-06-12  7:54                 ` Maxime Ripard
2014-06-12  8:37                   ` Gilles Chanteperdrix
2014-06-12 15:03                     ` Maxime Ripard
2014-06-12 17:57                       ` Gilles Chanteperdrix
2014-06-12 22:58                         ` Gilles Chanteperdrix
2014-06-13 19:01                       ` Gilles Chanteperdrix
2014-06-17 17:11                         ` Maxime Ripard
2014-06-23 14:05                         ` Maxime Ripard
2014-06-23 23:44                           ` Gilles Chanteperdrix
2014-06-24  6:13                             ` Gilles Chanteperdrix
2014-06-25 17:14                               ` Maxime Ripard
2014-06-25 17:13                             ` Maxime Ripard
2014-06-25 18:03                               ` Gilles Chanteperdrix
2014-06-06 17:52 ` Gilles Chanteperdrix
     [not found]   ` <20140606180357.GE5594@piout.net>
2014-06-06 18:13     ` Gilles Chanteperdrix
2014-06-10  8:19   ` Maxime Ripard
2014-06-10  8:48     ` Gilles Chanteperdrix
2014-06-08 13:29 ` 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=20140610095422.GK9791@lukather \
    --to=maxime.ripard@free-electrons.com \
    --cc=alexandre.belloni@free-electrons.com \
    --cc=antoine@free-electrons.com \
    --cc=boris@free-electrons.com \
    --cc=gilles.chanteperdrix@xenomai.org \
    --cc=michael@free-electrons.com \
    --cc=thomas@free-electrons.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.