From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Sebastian Smolorz <ssm@domain.hid>
Cc: xenomai@xenomai.org, Bernard Dautrevaux <bernard.dautrevaux@domain.hid>
Subject: Re: [Xenomai-help] RTCAN and tsc
Date: Fri, 09 Mar 2007 11:16:44 +0100 [thread overview]
Message-ID: <45F1340C.20402@domain.hid> (raw)
In-Reply-To: <E1HPc72-0002bA-Ko@domain.hid>
Sebastian Smolorz wrote:
> Gilles Chanteperdrix wrote:
>
>>Sebastian Smolorz wrote:
>>
>>>If an RX interrupt appears it it necessary to read out up to 14 SJA1000
>>>regs and write one register before a CAN message can be distributed to
>>>the sockets. Do you really suggest that the reading of the SJA1000
>>>registers should be interruptible? One step towards chaos, I would say.
>>
>>Maybe it would make sense to handle the message reception in a thread (a
>>kind of bottom half), and to only disable the CAN irq when doing the
>>reception work. This way, the system would still be able to handle other
>>events while the can reception takes place.
>
>
> The SJA1000 interrupt handler consists of several parts:
> 1. Read out the interrupt register to determine which kind of CAN interrupt
> raised
> 2. Check for the different kind of interrupts (error, TX, RX)
> 3. If RX:
> 3a. read out HW registers
> 3b. Distribute to sockets
>
> It seems that an extended amount of time is spent for 3a. If we do this in a
> bottom-half we have to deal with things like priority inversion and under
> certain circumstances with lost CAN messages due to a full HW RX buffer of
> the CAN controller.
>
So, maybe it is possible to simply enable interrupts in the interrupt
handler with only the CAN interrupt disabled ?
--
Gilles Chanteperdrix
next prev parent reply other threads:[~2007-03-09 10:16 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-06 15:06 [Xenomai-help] RTCAN and tsc roland Tollenaar
2007-03-06 15:11 ` Gilles Chanteperdrix
2007-03-06 15:53 ` roland Tollenaar
2007-03-06 15:59 ` Gilles Chanteperdrix
2007-03-06 16:11 ` roland Tollenaar
2007-03-06 16:15 ` Gilles Chanteperdrix
2007-03-06 16:32 ` roland Tollenaar
2007-03-06 16:42 ` Gilles Chanteperdrix
2007-03-06 17:04 ` roland Tollenaar
2007-03-06 17:19 ` Gilles Chanteperdrix
2007-03-06 18:17 ` roland Tollenaar
2007-03-06 19:38 ` Gilles Chanteperdrix
2007-03-06 20:46 ` Roland Tollenaar
2007-03-07 9:04 ` Sebastian Smolorz
2007-03-08 12:14 ` Roland Tollenaar
2007-03-08 14:12 ` Sebastian Smolorz
2007-03-08 17:36 ` Bernard Dautrevaux
2007-03-08 19:06 ` Roland Tollenaar
2007-03-09 9:47 ` Sebastian Smolorz
2007-03-09 9:59 ` Gilles Chanteperdrix
2007-03-09 10:14 ` Sebastian Smolorz
2007-03-09 10:16 ` Gilles Chanteperdrix [this message]
2007-03-09 10:56 ` Sebastian Smolorz
2007-03-09 11:17 ` Gilles Chanteperdrix
2007-03-09 13:36 ` Sebastian Smolorz
2007-03-09 14:08 ` Dmitry Adamushko
2007-03-09 14:45 ` Sebastian Smolorz
2007-03-09 15:17 ` Dmitry Adamushko
2007-03-09 15:26 ` roland Tollenaar
2007-03-09 15:17 ` roland Tollenaar
2007-03-09 15:38 ` Paul
2007-03-09 16:12 ` roland Tollenaar
2007-03-09 16:36 ` Eric Noulard
2007-03-09 17:46 ` roland Tollenaar
2007-03-09 17:42 ` Daniel Schnell
2007-03-09 18:04 ` roland Tollenaar
2007-03-10 21:12 ` Wolfgang Grandegger
2007-03-11 8:15 ` roland Tollenaar
2007-03-09 16:37 ` Sebastian Smolorz
2007-03-09 17:55 ` roland Tollenaar
2007-03-09 18:10 ` roland Tollenaar
2007-03-06 16:45 ` Sebastian Smolorz
2007-03-06 16:54 ` roland Tollenaar
2007-03-06 16:58 ` roland Tollenaar
2007-03-06 16:21 ` Sebastian Smolorz
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=45F1340C.20402@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=bernard.dautrevaux@domain.hid \
--cc=ssm@domain.hid \
--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.