Hi Antonio,
I re-added the ADEOS and Xenomai mailing lists to CC because others
might be able to help better.
[EMAIL PROTECTED] wrote:
Thanks for testing. And please read the complete thread at
http://ozlabs.org/pipermail/linuxppc-embedded/2006-December/thread.html#25455
containing some more infos.
Ok, so when you deciding the right way for the patch let me know it.
I will use the patch with the spin*_hw functions.
I've another question from you: I'm doing a data acquisition loop with my
hardware; I register an interrupt handler and on it (or on a task waiting
on a
sem/mutex) read the data over a VME bus. Result over some tests are:
linux interrupt handling (with ipipe and Xenomai loaded) : 75,763uS
xenomai interrupt handling (obiouvsly with ...): 75,489uS
In user- or kernel-space? Under what load? And what processor, clock,
memory, cache, etc. are you using?
Tests are in kernel-space, there is only network load: pings, ICMP, DHCP, NFS
server: not very loaded. The processor is a [EMAIL PROTECTED], 512MB RAM, L2
and L3
cache enabled (maybe, I'm not sure at 100%)... is a MVME5500 board!
Ah, this system is really fast. Then the 75 us are not really the
interrupt latency but include some further latencies (reading the data,
etc.), am I right?. And what does the latency test of the test suite report?
Testing with the native skin I notice (Xenomai2.2.0) that mutex doesn't behave
like I think:
1. create a mutex
2. lock the mutex (infinite)
3. start a RT task
4. lock the mutex in the RT task (infinite)
5. register an interrupt
6a. ...wait...
6. reach an interrupt and unlock the mutex
6b. ...then...
7. start 2-times the code after the previous rt_mutex_lock [this is not
correct!!!]
8. goto 6a.
the rt_mutex_lock is clearly in a for loop.
Probably I'm in truble. Using a semaphore resolve my problems.
When using mutex I lose the machine control.
I don't have a quick answer but maybe somebody else can help.
It's a long time ago that I have done something for RTAI and I'm not
up-to-date with recent RTAI implementations. Please ask this question on
the RTAI mailing list.
Ok, so I must ask to them.
Thanks a lot,
Antonio
Wolfgang.
_______________________________________________
Adeos-main mailing list
[email protected]
https://mail.gna.org/listinfo/adeos-main