From: Jan Kiszka <jan.kiszka@domain.hid>
To: Alexis Berlemont <berlemont.hauw@domain.hid>
Cc: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] COMEDI over RTDM (was: rtdm_event_timedwait hang-up)
Date: Tue, 21 Mar 2006 03:04:33 +0100 [thread overview]
Message-ID: <441F5F31.70206@domain.hid> (raw)
In-Reply-To: <200603210148.11118.berlemont.hauw@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 4461 bytes --]
Hi Alexis,
as this discussion starts to become architectural and low-level, I think
we should move it to xenomai-core and give people who are interested a
chance to jump onto it again there.
Alexis Berlemont wrote:
> Hi,
>
>>>>> I heard rumours of some COMEDI (www.comedi.org) port over RTDM recently,
>>>>> don't know the current status.
>>>> Indeed. The rumour is called Alex.
>>> Yes, I know. I just don't wanted to drag someone to public, saying: "Hey
>>> man, already doing your job?" ;)
>> It's part of the anti-shyness treatment I'm administering to Alex...
>>
>>> But, as we all know him now, what is the current status then?
>
> My comedi port over RTDM is not completely over (and far from perfect). The
> mmap functionnalities have not been rewritten yet. However, I have been
> working on
> -> the port of the comedi infrastructure layer (comedi/comedi_fops.c
> comedi/drivers.c comedi/range.c comedidev.h etc.)
> -> the rewriting of the driver comedi_test.c (which becomes comedi_test1.c)
> -> other test stuff has been written in comedi_test2.c (replications functions
> to test comedi_write operations)
> -> the ports of comedi_config and comedilib (partially done for comedilib),
> etc.
>
> This stuff is working (minor bugs appart) and I could give you a version in
> the next few days (I have to check "make dist" ;) and minor things).
>
> But there are plenty of things I am not happy with :
> -> the original comedilib version is not really well suited for rtdm. In this
> library for many reasons; for example, you can find calls to malloc/free
Oops, not so nice.
> functions. If I stick to the original implementation, I have to either to ask
> for adding alloc stuff in user mode in rtdm skin or use another skin to
> manage allocations. None of these solutions seems interesting for me for many
> reasons. A lot of people must be thinking I am overkill, it is true that the
> comedilib allocations should be done at init time (comedi_open, comedi_close)
> then no need to fulfull real-time constraints but I think comedi should be
> fully rtdm compliant; this would avoid tricky corner cases for
> developpers/users. The best and simplest solution for me would be some slight
> modifications in the comedilib API but I doubt everyone is OK with that.
Could you give some concrete use cases of the comedilib where dynamic
allocation is involved? I don't know that library actually. What does it
manage beyond calling the driver core?
>
> -> I think the comedi structures organization (comedi_device, subdevice,
> async, etc.) should be reviewed considering the rtdm architecture. Of course,
> these modifications should not induce big changes in the comedi drivers
> source.
Please also give concrete examples here. RTDM devices should be
manageable by the user via file descriptors, just like normal devices.
What is different, what extra information is needed?
>
> -> etc.
>
> In fact, I wanted to propose two versions :
> -> a first implementation as close as possible from the original
> implementation and API.
> -> a second one a bit more adapted for rtdm.
What would be different with RTDM compared to the existing RTLinux and
RTAI support of comedi? Don't they use comedilib at all? Isn't there
some LXRT adoption in RTAI? Is it providing a different API?
>
> Thus, we could have compared the two versions and see if everyone agrees with
> the idea of adapting comedi infrastructure. It would have been a good
> opportunity to work closely with comedi developers community.
Yes, that would be best. But I guess it will not be too easy, as there
seems to exist a limited interest in RT on their side. Maybe it just
takes some (more) users explaining the requirements and the need. ;)
>
> Unfortunately, my second version is not finished yet. I still have some work
> on it (non negligible). (I know I know I am slower than a turtle which learns
> programming with an amstrad cpc 6128 and damaged floppy disks ).
>
> If someone is interested in getting a version right now, I will try to send to
> him a tarball as soon as possible. Compared to original comedi deliveries, I
> have not created two autotools tarballs (comedi and comedilib) but only one.
Release early, release often ;). I would offer to have a look, maybe it
will clarify where the RTDM-specific problems are.
Jan
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
next prev parent reply other threads:[~2006-03-21 2:04 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-20 13:34 [Xenomai-help] rtdm_event_timedwait hang-up Petr Cervenka
2006-03-20 13:59 ` Jan Kiszka
2006-03-20 14:27 ` Philippe Gerum
2006-03-20 14:56 ` Jan Kiszka
2006-03-20 15:27 ` Philippe Gerum
2006-03-20 16:13 ` Jan Kiszka
2006-03-20 16:20 ` Jan Kiszka
2006-03-20 16:54 ` Philippe Gerum
2006-03-20 17:02 ` Jan Kiszka
2006-03-20 17:26 ` Philippe Gerum
2006-03-21 0:48 ` Alexis Berlemont
2006-03-21 2:04 ` Jan Kiszka
2006-03-21 2:04 ` Jan Kiszka [this message]
2006-03-22 1:24 ` [Xenomai-core] Re: COMEDI over RTDM (was: rtdm_event_timedwait hang-up) Alexis Berlemont
2006-03-24 17:31 ` [Xenomai-core] Re: COMEDI over RTDM Jan Kiszka
2006-03-20 18:01 ` [Xenomai-help] rtdm_event_timedwait hang-up Petr Cervenka
2006-03-20 23:02 ` Jan Kiszka
2006-03-20 23:31 ` Jeff Webb
2006-03-21 14:03 ` [Xenomai-help] rtdm_event_timedwait hang-up - SOLVED Petr Cervenka
2006-03-21 14:17 ` Philippe Gerum
2006-03-21 15:17 ` Jan Kiszka
2006-03-21 16:29 ` Philippe Gerum
2006-03-21 16:56 ` Jan Kiszka
2006-03-21 17:34 ` Philippe Gerum
2006-03-21 18:18 ` Jan Kiszka
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=441F5F31.70206@domain.hid \
--to=jan.kiszka@domain.hid \
--cc=berlemont.hauw@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.