All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] I/O privilege losted and killed message
@ 2006-12-06 14:39 Nicolas BLANCHARD
  2006-12-07 14:09 ` Jan Kiszka
  2006-12-08 15:45 ` Maksym Veremeyenko
  0 siblings, 2 replies; 5+ messages in thread
From: Nicolas BLANCHARD @ 2006-12-06 14:39 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 1222 bytes --]

Hello,

Sometime i lose my i/o privilege put with the system call ioperm (in
the main function of my program).

My application stop with a "killed" message in the console and  in
/proc/xenomai/fault i've an "general fault".
To ignore this problem, i use the call system iopl (with full
privilege) or recall ioperm before each inb or outb.
But there is a problem, why i/o privilege are losted ?

In attachment you can find an archive with an example (application and
source) witch show the problem.
This program has 2 task :
- task_1 priority 23 period 100 ms, lock a mutex, access to /dev/rtc,
unlock the mutex, outb on hardware.
- task 2 priority 25 period 1 ms, do nothing !

I put a 1 ms period to task_2 because it's near the speedest period on
my cpu (166 MHz).
With this period it stop immediatly.
If i put 10 ms it's need 1 or 2 minutes.

On my Pentium 4 (Ubuntu on VmWare worstation under WindowsXP), i put 30
ms (the more speed before overrun).

If i use iopl (and not ioperm), no problem.
If i just have task_1, no problem.
If i don't use mutex (lock for Rtc access) on task_2, no problem.

I use Xenomai Xenomai 2.3-rc2 (adeos 1.5-02), same probleme with
2.2.3.

If you have an idea.

thanks
nicolas blanchard


[-- Attachment #2: xeno-Nico_04.tar.gz --]
[-- Type: application/octet-stream, Size: 6942 bytes --]

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

end of thread, other threads:[~2006-12-08 18:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-06 14:39 [Xenomai-help] I/O privilege losted and killed message Nicolas BLANCHARD
2006-12-07 14:09 ` Jan Kiszka
2006-12-08 14:34   ` Jan Kiszka
2006-12-08 18:44     ` Philippe Gerum
2006-12-08 15:45 ` Maksym Veremeyenko

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.