All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] unwanted switch to secondary mode on call to rt_dev_ioctl
@ 2008-08-06 10:30 Jochen Behnke
  2008-08-06 12:11 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 3+ messages in thread
From: Jochen Behnke @ 2008-08-06 10:30 UTC (permalink / raw)
  To: xenomai

Hello,

my xenomai application performs unwanted mode switches to secondary mode. To find out 
which function is causing the mode switch I activated the T_WARNSW bit for the xenomai 
task involved.  I figured out that a call to rt_dev_ioctl is the cause. Then I found out that the 
responsible rtdm driver does only register an ioctl_nrt handler leaving the ioctl_rt handler 
set to NULL. It seemed logical to me, that  calling a nonrt  driver function  from a xenomai task
in primary mode would cause a switch to secondary mode. 

So I modified the rtdm driver to register the ioctl handler for  both ioctl_nrt and 
ioctl_rt. Unfortunately this did not solve the problem. 

As a next step I reduced the ioctl handler to a "return 0" statement, to be sure that 
no function calls inside the ioctl handler could generate a switch to secondary  mode. 
Again this did not improve the situation. It even seems as if the driver's ioctl handler is not 
called at all.

For the most recent test I wrote a smaller xenomai application that does cyclic  rt_dev_ioctl 
calls on the same rtdm driver from within a seperate xenomai task. The application runs 
without problems, the rt task does not perform any unwanted switches to secondary mode
thus not receiving any SIGXCPU signals.

My configuration
Processor Celeron 400Hz
xenomai 2.4.2
Kernel 2.6.24

I have no idea what is going wrong, any hint is appreciated.
Thanks.


Jochen

_________________________________________________________________________
In 5 Schritten zur eigenen Homepage. Jetzt Domain sichern und gestalten! 
Nur 3,99 EUR/Monat! http://www.maildomain.web.de/?mc=021114



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] unwanted switch to secondary mode on call to rt_dev_ioctl
  2008-08-06 10:30 [Xenomai-help] unwanted switch to secondary mode on call to rt_dev_ioctl Jochen Behnke
@ 2008-08-06 12:11 ` Gilles Chanteperdrix
  2008-08-06 18:30   ` Jochen Behnke
  0 siblings, 1 reply; 3+ messages in thread
From: Gilles Chanteperdrix @ 2008-08-06 12:11 UTC (permalink / raw)
  To: Jochen Behnke; +Cc: xenomai

Jochen Behnke wrote:
> My configuration Processor Celeron 400Hz xenomai 2.4.2 Kernel 2.6.24

This is a bit outdated. You should use Xenomai 2.4.4, the latest stable
release of the 2.4 branch.

> 
> I have no idea what is going wrong, any hint is appreciated. Thanks.

Please show us the driver and application sources.

-- 
                                                 Gilles.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai-help] unwanted switch to secondary mode on call to rt_dev_ioctl
  2008-08-06 12:11 ` Gilles Chanteperdrix
@ 2008-08-06 18:30   ` Jochen Behnke
  0 siblings, 0 replies; 3+ messages in thread
From: Jochen Behnke @ 2008-08-06 18:30 UTC (permalink / raw)
  To: Gilles Chanteperdrix; +Cc: xenomai

Hello Gilles,

> Jochen Behnke wrote:
>   
>> My configuration Processor Celeron 400Hz xenomai 2.4.2 Kernel 2.6.24
>>     
>
> This is a bit outdated. You should use Xenomai 2.4.4, the latest stable
> release of the 2.4 branch.
>   
OK, I'll give it a try.
>> I have no idea what is going wrong, any hint is appreciated. Thanks.
>>     
>
> Please show us the driver and application sources.
>
>   
It is big application, so  I would prefer to downgrade the application 
to a minimum that is required to generate the error and post the reduced 
source.


Thanks for your help

Jochen


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-06 18:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-06 10:30 [Xenomai-help] unwanted switch to secondary mode on call to rt_dev_ioctl Jochen Behnke
2008-08-06 12:11 ` Gilles Chanteperdrix
2008-08-06 18:30   ` Jochen Behnke

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.