From: Wolfgang Grandegger <wg@domain.hid>
To: roland Tollenaar <rolandtollenaar@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>, Jan Kiszka <jan.kiszka@domain.hid>
Subject: Re: [Xenomai-help] your pending RT-Socket-CAN problems (was rtcan driver. rtcan_sja_interrupt made interruptible)
Date: Mon, 12 Mar 2007 21:01:52 +0100 [thread overview]
Message-ID: <45F5B1B0.70306@domain.hid> (raw)
In-Reply-To: <bc4264770703121117i2f8648dep853a2ef30301ab67@domain.hid>
roland Tollenaar wrote:
> Hi,
>
> I need some tutoring again if anyone cares to.
>
>> Threaded IRQs are no magic bullet. They can only help to push a problem
>> down the priority ladder, curing a problem symptom where possible.
>
> I keep going on about "interruptible" ISR's. Yet I never see the
> phrase used by anyone else. This either means that "Threaded IRQ's" or
E.g. Linux-rt has "threaded IRQs" (http://lwn.net/Articles/146861/).
> "service-tasks" are implicitly interruptible, i.e. do not hog the CPU
> for themselves exclusively, or I am missing something a lot more
> fundamental? Is a "threaded IRQ" a possible solution because threads
> (even real-time ones) will automatically share the CPU according to
> priority? Is this different to a "service task" as mentioned by
> Wolfgang or are the two basically the same?
Almost, threaded IRQs is a generic framework to manage interrupts by
threads. The CAN "service task" manages the CAN interrupts by threads.
>> Nevertheless, threaded IRQs for RTDM are planned. The yet open design
>> challenge is how to support driver writers best when they have to switch
>> between both models, e.g. during compile-time (keep in mind, you also
>> have to switch the locking: spinlock<->mutex).
> What is a mutex?
wikipedia mutex!
> This is slightly off the topic but is it ridiculous to ask whether it
> is possible to suppress interrupts from user space?
>
> A possible work-around to the long reading spell occurred to me in the
> following. I turn my 1ms task into for example a 0.5ms task. By
> releasing interrupt IRQ7 every second time the task is run and
> suppressing it on the other, then by using a corresponding toggle I
> can alternately read-out the can and calculate and set control outputs
> on every second time the task is run.
> I might have a bit of trouble preventing the FIFO buffer on the chip
> to overflow but it would be interesting to know what it takes to
> suppress an interrupt anyway.
This sounds wired. The IRQ is not manageable by the app and device
polling mode without interrupts is not for-seen by the driver.
Wolfgang.
next prev parent reply other threads:[~2007-03-12 20:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-10 13:55 [Xenomai-help] rtcan driver. rtcan_sja_interrupt made interruptible Roland Tollenaar
2007-03-10 16:34 ` [Xenomai-help] your pending RT-Socket-CAN problems (was rtcan driver. rtcan_sja_interrupt made interruptible) Wolfgang Grandegger
[not found] ` <bc4264770703110035g6625e8a1t4f195507d72aaf66@domain.hid>
2007-03-11 9:34 ` Wolfgang Grandegger
2007-03-11 11:02 ` roland Tollenaar
2007-03-11 12:03 ` Wolfgang Grandegger
2007-03-11 12:26 ` roland Tollenaar
2007-03-11 21:16 ` Jan Kiszka
2007-03-12 18:17 ` roland Tollenaar
2007-03-12 20:01 ` Wolfgang Grandegger [this message]
2007-03-12 20:28 ` [Xenomai-help] RT samples karre
2007-03-12 8:27 ` [Xenomai-help] your pending RT-Socket-CAN problems (was rtcan driver. rtcan_sja_interrupt made interruptible) Sebastian Smolorz
2007-03-12 9:19 ` Wolfgang Grandegger
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=45F5B1B0.70306@domain.hid \
--to=wg@domain.hid \
--cc=jan.kiszka@domain.hid \
--cc=rolandtollenaar@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.