All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Romain Naour <romain.naour@openwide.fr>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] s3c24xx with clocksource/clockevent (kernel 3.2.21)
Date: Sun, 21 Oct 2012 20:29:16 +0200	[thread overview]
Message-ID: <50843EFC.2070409@xenomai.org> (raw)
In-Reply-To: <50835162.5020401@openwide.fr>

On 10/21/2012 03:35 AM, Romain Naour wrote:

>>> Until now, I used the latest supported kernel 3.2.21 with Xenomai 2.6.1.
>>> Without rework timer system with clocksource and clockevent,
>>> I need to set "s3c2410_itimer.min_delay_ticks" value
>>> (s3c24xx_fix_itimer.patch)
>>> Otherwise the timer hangs.
>>> And also, the last patch of my previous mail.
>>
>> You mean the patch for the UART ? I can not take that patch. You have to
>> understand what goes wrong in the I-pipe core, or irq chip callbacks
>> implementation for this processor, and fix it there, not in the irq
>> handler for the serial interrupt.
> I think there is a problem when Linux unmask an IRQ line with 
> irq_enable() and when there is an IRQ pending behind.
> I made some comments on the ipipe-tracer log 
> (UART-samsung-bug-ipipe-tracer.txt)
> 
> What do you think of this ?


Without looking at the trace, if the irqs need to be off during the
execution of an irq chip callback, we usually do this inside the chip
callback. When there is a spinlock, simply turn it into an ipipe
spinlock and use spin_lock_irqsave_cond, as explained here:
http://www.xenomai.org/index.php/I-pipe-core:ArmPorting#call-backs_implementation

> Are we need to disable IRQs before call  irq_enable() ?
Usually not.

-- 
                                                                Gilles.


  reply	other threads:[~2012-10-21 18:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-19 10:19 [Xenomai] s3c24xx with clocksource/clockevent (kernel 3.2.21) Romain Naour
2012-10-19 12:18 ` Gilles Chanteperdrix
2012-10-20 16:12   ` Romain Naour
2012-10-20 17:26     ` Gilles Chanteperdrix
2012-10-21  1:35       ` Romain Naour
2012-10-21 18:29         ` Gilles Chanteperdrix [this message]
2012-10-21 18:43         ` Gilles Chanteperdrix
2012-10-21 23:33           ` Romain Naour
2012-10-22 13:18             ` Gilles Chanteperdrix
2012-10-22 14:05               ` Gilles Chanteperdrix
2012-10-22 16:26                 ` Romain Naour

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=50843EFC.2070409@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=romain.naour@openwide.fr \
    --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.