All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Maxime Ripard <maxime.ripard@free-electrons.com>
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: Wed, 25 Jun 2014 20:03:53 +0200	[thread overview]
Message-ID: <53AB0F09.1020208@xenomai.org> (raw)
In-Reply-To: <20140625171329.GC19569@lukather>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/25/2014 07:13 PM, Maxime Ripard wrote:
> On Tue, Jun 24, 2014 at 01:44:22AM +0200, Gilles Chanteperdrix
> wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>> 
>> On 06/23/2014 04:05 PM, Maxime Ripard wrote:
>>> On Fri, Jun 13, 2014 at 09:01:25PM +0200, Gilles Chanteperdrix 
>>> wrote:
>>>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>>> 
>>>> On 06/12/2014 05:03 PM, Maxime Ripard wrote:
>>>>> On Thu, Jun 12, 2014 at 10:37:11AM +0200, Gilles
>>>>> Chanteperdrix wrote:
>>>>>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>>>>> 
>>>>>> On 06/12/2014 09:54 AM, Maxime Ripard wrote:
>>>>>>> On Wed, Jun 11, 2014 at 08:16:15PM +0200, Gilles 
>>>>>>> Chanteperdrix wrote:
>>>>>>>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>>>>>>> 
>>>>>>>> On 06/11/2014 11:25 AM, Maxime Ripard wrote:
>>>>>>>>> On Tue, Jun 10, 2014 at 12:01:36PM +0200, Gilles 
>>>>>>>>> Chanteperdrix wrote:
>>>>>>>>>> If you compile the kernel without I-pipe and
>>>>>>>>>> Xenomai support and enable the tcb_clksrc
>>>>>>>>>> clocksource driver does it work?
>>>>>>>>> 
>>>>>>>>> Yep, with the exact same config, except for 
>>>>>>>>> CONFIG_IPIPE and CONFIG_XENOMAI being disabled, it 
>>>>>>>>> boots fine.
>>>>>>>>> 
>>>>>>>> Read again, I am not insterested in exactly the same 
>>>>>>>> config, I am interested in the a config with
>>>>>>>> tcb_clksrc clocksource, which is disabled by
>>>>>>>> CONFIG_IPIPE. Only if you enable this clocksource do
>>>>>>>> you get to use the atmel_tclib code.
>>>>>>> 
>>>>>>> Let me rephrase then. It works with the exact same
>>>>>>> config, with CONFIG_IPIPE and CONFIG_XENOMAI disabled,
>>>>>>> and CONFIG_ATMEL_TCB_CLKSRC enabled.
>>>>>> 
>>>>>> Then I would tend to think that the clocksource is not
>>>>>> your problem and repeat that you should check everything
>>>>>> else in the porting guide.
>>>>> 
>>>>> Ok. I will.
>>>>> 
>>>> Looking rapidly at the code, at least the irq controller and
>>>> pic muting need fixing.
>>> 
>>> Ok, so, a bit of news on this one.
>>> 
>>> After fixing the irq controller to work on the AIC5, and
>>> disabling the pic muting, I get almost 100% of the time a
>>> system freeze when running: 
>>> http://git.free-electrons.com/training-materials/tree/lab-data/realtime/rttest/data/rttest.c
>>>
>>>
>>> 
The TCB timer is still ticking, at a rate around 1Hz, while, when
>>> the system hangs, the PIT interrupt isn't firing anymore
>>> (which explains the freeze). So there's probably something
>>> wrong related to the ipipe I guess, or the interrupt being
>>> masked and not unmasked at some point.
>> 
>> Well: - - the existing at91 I test also use a PIT and they do not
>> hang - - if you disabled the pic muting, noone is disabling the
>> PIT interrupt.
>> 
>> So, I would suggest looking carefully at the sama5 code.
> 
> Ok, that's good to know. I'll look a bit more at this and what we
> did for the AIC5 then.

I can make the AIC5 changes on my side and ask you to test, if you prefer.


- -- 
                                                                Gilles.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iD8DBQFTqw8JGpcgE6m/fboRAn2pAJ9sR2kDd4TF7ZF32C19PTOQnyEnMgCeMrTy
E64SP8AiYPlJzSaNi5uuq1M=
=YGOP
-----END PGP SIGNATURE-----


  reply	other threads:[~2014-06-25 18:03 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
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 [this message]
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=53AB0F09.1020208@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=alexandre.belloni@free-electrons.com \
    --cc=antoine@free-electrons.com \
    --cc=boris@free-electrons.com \
    --cc=maxime.ripard@free-electrons.com \
    --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.