On Sun, 2007-02-11 at 20:28 +0200, Maksym Veremeyenko wrote:
> Jan Kiszka пишет:
> 
> > You are holding the mutex across the serial transaction, i.e. a
> > secondary mode switch, right? If you haven't set
> > CONFIG_XENO_OPT_RPIDISABLE, you might be are affected by the bug in the
> > priority coupling between Xenomai and the Linux kernel. Already tried
> > latest v2.3.x SVN?
> i tried with r2170 and rewrited code for RT serial - situation the same.
> 
> Solution for me is to change tasks priority - set lower priority to task 
> that perform read/write serial driver operations under lock.
> 
> Perhaps i should rewrite code to exclude I/O operations under locked 
> mutex at all.
> 

In any case, possibly sleeping while holding a mutex and moreover in the
Linux context is not recommended, to say the least. This said, could you
try just replacing your mutex with a simple counting semaphore (RT_SEM)
and report the outcome? This would give us mome hints about what could
be involved in the issue. TIA,

> 
-- 
Philippe.



_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to