From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Romain Naour <romain.naour@openwide.fr>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] s3c24xx: Priority rotate enable !?
Date: Thu, 23 Aug 2012 10:07:41 +0200 [thread overview]
Message-ID: <5035E4CD.9080302@xenomai.org> (raw)
In-Reply-To: <50350712.4020704@xenomai.org>
On 08/22/2012 06:21 PM, Gilles Chanteperdrix wrote:
> On 08/22/2012 06:04 PM, Romain Naour wrote:
>> Hello,
>>
>> On s3c24xx processors the interrupt source priority isn't fixed by Adeos
>> patch (ARB_SEL bits in PRIORITY register).
>> Is it intentional ?
>> It may be possible to give priority to an interrupt simultaneously
>> arrived that the interruption IRQ_TIMER4 (before being grabbed by
>> Adeos). Therefore, we can have more jitter for real time applications.
>
> This can always happen even with interrupt priorities: imagine that the
> first interrupt happens 1 microsecond before the timer interrupt, even
> with the priority, the handler for first interrupt will be executed and
> the timer interrupt will have to wait for the end of this handler before
> it is serviced.
>
>>
>> Do we need to fix the priority at this level ?
>
> I do not think so. However, what can be done is implement interrupt
> controller muting using the priority register, see:
> http://www.xenomai.org/index.php/I-pipe-core:ArmPorting#Priority_based_interrupt_controller_muting
Other things which could be done for s3c24xx are:
- convert the timers to clocksource/clockevent: since this platform is
the only one not to use clocksource/clockevent, we have to keep code
around for this case in xenomai-forge which could be removed. Having two
different timers for clocksource and clockevent would allow to avoid the
tsc emulation based on the decrementer, which I am not sure is really
reliable since the conversion to CONFIG_IPIPE_ARM_KUSER_TSC.
- failing that, check that the tsc emulation based on the decrementer
really works, and maybe fix it if it does not work. Or simply use a
different hardware timer for tsc emulation than for the timer.
--
Gilles.
next prev parent reply other threads:[~2012-08-23 8:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-22 16:04 [Xenomai] s3c24xx: Priority rotate enable !? Romain Naour
2012-08-22 16:21 ` Gilles Chanteperdrix
2012-08-23 8:07 ` Gilles Chanteperdrix [this message]
2012-08-23 14:41 ` Romain Naour
2012-08-23 14:44 ` Gilles Chanteperdrix
2012-08-23 14:52 ` Gilles Chanteperdrix
2012-08-23 16:22 ` Romain Naour
2012-08-23 17:53 ` Gilles Chanteperdrix
2012-08-24 12:51 ` Romain Naour
2012-08-24 13:27 ` 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=5035E4CD.9080302@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.