From: Jan Kiszka <jan.kiszka@domain.hid>
To: juanba romance <juanba.romance@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] RTDM driver hints
Date: Mon, 30 Jul 2007 15:34:20 +0200 [thread overview]
Message-ID: <46ADE8DC.8030307@domain.hid> (raw)
In-Reply-To: <e39c9190707300602i43d94665v33adf44a9870e757@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 2945 bytes --]
juanba romance wrote:
> Thanks Jan..
> On 7/30/07, Jan Kiszka <jan.kiszka@domain.hid> wrote:
>> Before going into details on how to pass references between driver tasks
>> etc.:
>>
>> Why do you want to establish a dedicated task for transmission? Is the
>> job you have to perform there too heavy for IRQ context?
>
>
> The application has two issues related on:
> 1.- The transmission setup would be really time extensive, so the ISR will
> be really too busy sucking the data from the FIFO and pushing it into the
> chipset
> 2.- Due to system specifications, we have focused the ISR performance in the
> data reception flow, so the transmission irq context management must/need be
> really fast.
> We would like to hold as much as possible both features and this is the
> reason to evaluate the rt_task approach..
Ok, got it.
>
> Keep in mind that such a task requires additional management (assign
>> reasonable
>> priorities e.g.) and adds further latencies. It's no magic bullet, but
>> it may be appropriate if there is actually a lot of work to do that
>> shall not block other, more important jobs.
>
>
> I mean the application specifications allow us to block a little bit the
> internal driver write capabilities but the isr read management should be
> inherently the most priority program flow.
>
> Jan
>
>
> As I have mentioned in the previous mail the driver is also a formal design
> review, so lot of variables and data addresses have been re-arranged and
> re-structured, one of their was the killer one cause was pointed to the
> hyperspace into the thread symbol..
> I have checked the context pass argument with the decoded one at the thread
> and all is ok now, no troubles related on.
> The writer thread is always coupled to the "context" area reference through
> the "open" call softly. Anyway, I think that a more generic question could
> be stated right now.
>
> Could i assume that the memory references coupled with the context argument
> at the "open" call are stables along the context cycle life?
> I think that this is not any data trusting if i always link the thread
> creation/destroy to the "open"/"close" call entries, but i assume also that
> i could have a fully wrong picture about all this stuff.
If you create the task on "open", stuff its reference into the context,
maybe additionally pass the context as argument to the task function,
and then clean things up on "close", I see no problems of
stalled/inconsistent references. Problems may only arise from races
between the open/close and the task function. So make sure not to rely
on specific, only-valid-on-UP execution orders.
>
> If you are so kind to give me any extra hints i would be really grateful
> Thanks a lot..
If things are not fully clear yet, I would suggest to post some code
now. That is far more efficient than just describing the design.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]
prev parent reply other threads:[~2007-07-30 13:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-29 20:16 [Xenomai-help] RTDM driver hints juanba romance
2007-07-30 10:41 ` Jan Kiszka
2007-07-30 13:02 ` juanba romance
2007-07-30 13:34 ` Jan Kiszka [this message]
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=46ADE8DC.8030307@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=juanba.romance@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.