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

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.


-- 
					    Gilles.


  reply	other threads:[~2011-05-05 14:42 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 [this message]
2011-05-05 15:23           ` Alexey Galakhov
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=4DC2B75C.8030503@domain.hid \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=adeos-main@gna.org \
    --cc=agalakhov@domain.hid \
    /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.