All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey Galakhov <agalakhov@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: adeos-main@gna.org
Subject: Re: [Adeos-main] mini2440: ipipe kernel stuck in idle loop after xenomai init
Date: Thu, 05 May 2011 21:23:56 +0600	[thread overview]
Message-ID: <4DC2C10C.9080102@domain.hid> (raw)
In-Reply-To: <4DC2B75C.8030503@domain.hid>

On 05/05/2011 08:42 PM, Gilles Chanteperdrix wrote:
> On 05/05/2011 04:12 PM, Alexey Galakhov wrote:
>> On 05/05/2011 08:02 PM, Gilles Chanteperdrix wrote:
>>> On 05/05/2011 03:16 PM, Alexey Galakhov wrote:
>>>> May it be caused by the following code from plat-samsung/time.c ?
>>>>
>>>> static inline void set_dec(unsigned long reload)
>>>> {
>>>>         __raw_writel(reload, S3C2410_TCNTB(4)); /* <-------- In fact,
>>>> TCNT is 16-bit, so what if reload > 0xffff and reload & 0xffff == 0 ??? */
>>> Try adding:
>>>
>>> if (reload > 0xffff)
>>> 	reload = 0xffff;
>>>
>>> before the raw_writel
>> No effect. It may make sense but does not fix this bug.
> It may also happen that the timer has a lower limit, when the reload
> parameter is below this limit, you shoud call ipipe_trigger_irq, as
> explained in the porting guide.
Seems to be not the case but tried it anyway (guessed lower limit
0x00ff), no effect. Also tried to add printk to __ipipe_mach_set_dec,
got the following:

I-pipe: Domain Xenomai registered.
Xenomai: hal/arm started.
ipipe_mach_set_dec: 42187
ipipe_mach_set_dec: 4294967295
- - (repeats many times) - -
ipipe_mach_set_dec: 4294967295
ipipe_mach_set_dec: 42186
Xenomai: scheduling class idle registered.
Xenomai: scheduling class rt registered.
Xenomai: real-time nucleus v2.5.6 (Wormhole Wizards) loaded.
ipipe_mach_set_dec: 42187
Xenomai: starting native API services.
Xenomai: starting POSIX services.
Xenomai: starting RTDM services.
msgmni has been set to 119
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered (default)
- - (hangs) - -

--
Alex


  reply	other threads:[~2011-05-05 15:23 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-05 12:20 [Adeos-main] mini2440: ipipe kernel stuck in idle loop after xenomai init Alexey Galakhov
2011-05-05 12:37 ` Gilles Chanteperdrix
2011-05-05 12:58   ` Alexey Galakhov
2011-05-05 13:16   ` Alexey Galakhov
2011-05-05 14:02     ` Gilles Chanteperdrix
2011-05-05 14:12       ` Alexey Galakhov
2011-05-05 14:42         ` Gilles Chanteperdrix
2011-05-05 15:23           ` Alexey Galakhov [this message]
2011-05-05 15:36             ` Gilles Chanteperdrix
     [not found]               ` <4DC2D0C9.3020605@domain.hid>
     [not found]                 ` <4DC2DDC6.8090909@domain.hid>
2011-05-06  9:28                   ` Alexey Galakhov
2011-05-06  9:33                     ` Gilles Chanteperdrix
2011-05-11 10:29                       ` Alexey Galakhov
2011-05-11 10:50                         ` Gilles Chanteperdrix
2011-05-11 12:24                           ` Gilles Chanteperdrix
2011-05-11 12:35                             ` Alexey Galakhov
2011-05-11 23:51                               ` Gilles Chanteperdrix
2011-05-06  9:55                     ` Gilles Chanteperdrix
2011-05-06 10:44                       ` Alexey Galakhov
2011-05-06 11:02                       ` Alexey Galakhov
2011-05-06  9:32                   ` Alexey Galakhov

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=4DC2C10C.9080102@domain.hid \
    --to=agalakhov@domain.hid \
    --cc=adeos-main@gna.org \
    --cc=gilles.chanteperdrix@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.