Re: [rtl] pthread_setfp_np after pthread_make_periodic_np?

2000-05-15 Thread Michael Barabanov

Ivan Martinez ([EMAIL PROTECTED]) wrote:
> Hello all,
> Has calling "pthread_setfp_np" after "pthread_make_periodic_np" any
> effect?. Thank you.

Sure; it enables using FP. It doesn't matter when you call it as
long as it is before any FP operation in the thread.


Michael.
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] more RTAI and OSS

2000-05-15 Thread daniel sheltraw

RTAIers

Does this mean that I can't use RTAI and OSS on the same machine? Are
there any fixes or work arounds?

Does anyone have RT sound driver code? In particular for FM-synthesis and 
playback/record (DMA or PI/O).

Thanks Daniel



>From: Steve Papacharalambous <[EMAIL PROTECTED]>
>To: daniel sheltraw <[EMAIL PROTECTED]>
>CC: [EMAIL PROTECTED]
>Subject: Re: [rtl] RTAI and OSS
>Date: Tue, 16 May 2000 02:03:41 +0100
>
>daniel sheltraw wrote:
> >
> > Hello RTAIers
> >
> > I am running RTAI 0.7 (I will upgrade) and I am curious whether any of
> > you have any experience with installing OSS (open sound system) on
> > a machine running RTAI. In particular when installing OSS I
> > get the following error message and suggestion:
> >
> > Your kernel seems to be configured without loadable module versioning.
> > Please recompile the kernel with CONFIG_MODVERSIONS option enabled. This
> > option can be enabled by answering the following question:
> > "Set version information on all symbols for modules".
> >
> > My question is: Will setting the module versioning as suggested in
> > the error message disrupt RTAI.
>
>Hi Daniel,
>
>If you set CONFIG_MODVERSIONS then you will not be able to load the RTAI
>modules,
>
>Best regards,
>
>Steve
>
>
> >
> > Thanks
> > Daniel
> > 
> > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> >
> > -- [rtl] ---
> > To unsubscribe:
> > echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> > echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
> > ---
> > For more information on Real-Time Linux see:
> > http://www.rtlinux.org/rtlinux
>
>
>--
>
>Zentropix - A Lineo company.
>Visit http://www.zentropix.com/


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] RTAI and OSS

2000-05-15 Thread Steve Papacharalambous

daniel sheltraw wrote:
> 
> Hello RTAIers
> 
> I am running RTAI 0.7 (I will upgrade) and I am curious whether any of
> you have any experience with installing OSS (open sound system) on
> a machine running RTAI. In particular when installing OSS I
> get the following error message and suggestion:
> 
> Your kernel seems to be configured without loadable module versioning.
> Please recompile the kernel with CONFIG_MODVERSIONS option enabled. This
> option can be enabled by answering the following question:
> "Set version information on all symbols for modules".
> 
> My question is: Will setting the module versioning as suggested in
> the error message disrupt RTAI.

Hi Daniel,

If you set CONFIG_MODVERSIONS then you will not be able to load the RTAI
modules,

Best regards,

Steve


> 
> Thanks
> Daniel
> 
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> 
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
> ---
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux


-- 

Zentropix - A Lineo company.
Visit http://www.zentropix.com/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] RTAI and OSS

2000-05-15 Thread daniel sheltraw

Hello RTAIers

I am running RTAI 0.7 (I will upgrade) and I am curious whether any of
you have any experience with installing OSS (open sound system) on
a machine running RTAI. In particular when installing OSS I
get the following error message and suggestion:

Your kernel seems to be configured without loadable module versioning.
Please recompile the kernel with CONFIG_MODVERSIONS option enabled. This 
option can be enabled by answering the following question:
"Set version information on all symbols for modules".

My question is: Will setting the module versioning as suggested in
the error message disrupt RTAI.

Thanks
Daniel

Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] Where is NSECS_PER_SEC defined?

2000-05-15 Thread Cort Dougan

It's in ./include/rtl_time.h  Is this the latest snapshot of 3.0?

}   Hello all,
}   I'm trying to use the type "hrtime_t" in my library and when I include
} the file "/usr/include/rtlinux/arch/rtl_time.h", I get an error in that
} file saying that "NSECS_PER_SEC" is undefined. Where is it defined?. Why
} isn't there an include in "rtl_time.h" to the file with
} "NSECS_PER_SEC"?.
}   BTW, the new site is cool!.
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] interrupt reaction time

2000-05-15 Thread Heinz Haeberle

Hi folk,

I work on a different realtime system and figured out, that te interrupt
reaction time 
on a isa-system with a 486 66MHz is about 25us.

What are you thinking about this value?

Heinz
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] RT constraints

2000-05-15 Thread Christophe Kumsta

roux jean-denis wrote:
> 
>Hi all,
> 
>   I would like to know what are the constraints on a
> IRQ handler which is called with
> rt_request_irq(irq_line,handler) under RTAI ?
> 
>   I mean is there anything to do (else than disable
> ant enabe the irq line) within the handler ?
> 
>   Regards
>   Jean-Denis ROUX
> 
Hi jean-denis,

 I just do an Irq acknowledgment for my PCI card in the Irq handler.
The things to do in your irq handler is specific to your card (like the
ack).
( If you use fp in the irq handler see in rtai.org the related
document.)

Carefull if there is shared Irq.
To prevent it , I use to call rt_pend_linux_irq at the end of my
handler,
 especially with PCI irqs.

Chris.

--
Kumsta Christophe
Machinery Agrobotic Fruit
<[EMAIL PROTECTED]>
Real-Time image processing developper
RT-Linux/RTAI ( Use the Source Luck !)
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] task states

2000-05-15 Thread Steve Papacharalambous

Daniel Krippner wrote:
> 
> hi there
> 
> I need a pointer to a list concerning the task states in
> /proc/rtai/scheduler
> what do those numbers mean?
> cu
> Daniel
> --
> [EMAIL PROTECTED]
> Student of Communication Engineering/Computer Networking
> Furtwangen University of Applied Sciences
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
> ---
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/

Hi Daniel,


The defines for task states are listed below and can be found in:
rtai-1.3/include/rtai_sched.h

#define READY1
#define SUSPENDED2
#define DELAYED  4
#define SEMAPHORE8
#define SEND16
#define RECEIVE 32
#define RPC 64
#define RETURN 128
#define RUNNING256
#define DELETED512

Best regards,

Steve

-- 

Zentropix - A Lineo company.
Visit http://www.zentropix.com/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] Where is NSECS_PER_SEC defined?

2000-05-15 Thread Steve Papacharalambous

Ivan Martinez wrote:
> 
> Hello all,
> To be able to use "hrtime_t" in my library I included
> "/usr/include/rtlinux/arch/rtl_time.h" file. The problem is that I get a
> "'NSECS_PER_SEC' undeclared" error in line 27 of that file. Where is it
> declared?. Why is not the file with its declaration included in
> "rtl_time.h"?.
> I'm using RTLinux 2.2. Thank you.
> --
> Ivan Martinez (Rodriguez)
> BEng in Software Engineering - MEng student
> http://www.student.dtu.dk/~u990873
> "Got fabes?"
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
> ---
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/

Hi Ivan,

NSECS_PER_SEC is declared in: include/rtl_time.h


Best regards,

Steve

-- 

Zentropix - A Lineo company.
Visit http://www.zentropix.com/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] RT constraints

2000-05-15 Thread roux jean-denis

   Hi all,

  I would like to know what are the constraints on a
IRQ handler which is called with
rt_request_irq(irq_line,handler) under RTAI ?

  I mean is there anything to do (else than disable
ant enabe the irq line) within the handler ?

  Regards
  Jean-Denis ROUX

__
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] task states

2000-05-15 Thread Daniel Krippner

hi there

I need a pointer to a list concerning the task states in
/proc/rtai/scheduler
what do those numbers mean?
cu
Daniel
-- 
[EMAIL PROTECTED]
Student of Communication Engineering/Computer Networking
Furtwangen University of Applied Sciences
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] Where is NSECS_PER_SEC defined?

2000-05-15 Thread Ivan Martinez

Hello all,
To be able to use "hrtime_t" in my library I included
"/usr/include/rtlinux/arch/rtl_time.h" file. The problem is that I get a
"'NSECS_PER_SEC' undeclared" error in line 27 of that file. Where is it
declared?. Why is not the file with its declaration included in
"rtl_time.h"?.
I'm using RTLinux 2.2. Thank you.
-- 
Ivan Martinez (Rodriguez)
BEng in Software Engineering - MEng student
http://www.student.dtu.dk/~u990873
"Got fabes?"
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] semaphore time with RTAI

2000-05-15 Thread Stuart Hughes

Michel Doyon wrote:
> 
> Hi,
> 
> I have been performing some timings with the semaphores under RTAI.
> I have a DUAL P-III 500 Mhz.
> 
> I find a 9 usec time between the moment a semaphore is released on one CPU
> and the time a task on the other CPU is started.  The initial semaphore
> release is done  by a user put to the rt fifo and the fifo handler make
> the real call.
> 
> On the other hand, I find that with a interrupt handler, releasing a
> semaphore to say task 1 running on the same CPU, it takes roughly the same
> time (10 usec) but if the task is set to run on a different cpu, than the
> irq hanbdler, it takes up to 16 usec.
> 
> Do these number make sense ? I run the scheduler for SMP and rtai 0.9a
> with kernel 13 of linux.
> 
> I took my measurements using a outb to the paralle port.
> 
> Any comments or suggestions to speed this up ? I have been told that
> Windows NT is around 5 usec ... BUT I have not seen it myself nor have
> details on the timing measurement system.

Hi Michael,

See Paolo's answer as to why, but one thing I'd like to add is the
figures are quite reasonable.  Remember that to make the measurement,
you are writing to the parallel port through the ISA bus, and this alone
can introduce several microseconds delays.  I suspect the NT figures you
quote would for instance remove this overhead in their calculation.  To
the largest extent, the performance is limited by hardware and
architecture rather than software.

Regards, Stuart
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




[rtl] pthread_setfp_np after pthread_make_periodic_np?

2000-05-15 Thread Ivan Martinez

Hello all,
Has calling "pthread_setfp_np" after "pthread_make_periodic_np" any
effect?. Thank you.
-- 
Ivan Martinez (Rodriguez)
BEng in Software Engineering - MEng student
http://www.student.dtu.dk/~u990873
"Got fabes?"
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] time origin question

2000-05-15 Thread Paolo Mantegazza

daniel sheltraw wrote:
> 
> Hello Paolo
> 
> By timestamp do you mean that I must reference all times
> with a call to rt_get_time() so that I should write
> rt_sleep_until(rt_get_time() + mytime) ?
> 
> Daniel

What you say above is more simply done with rt_sleep(mytime). What I
want to say is that there is no absolute solar time in RTAI. The only
way to have an absolute time is to mark a time as time zero at the
beginning of your application and refer everything to it. Note that
getting a base time, adding increments and doing rt_sleep_until is not
the same as doing rt_sleep on the very same increments.

Ciao, Paolo.
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/




Re: [rtl] semaphore time with RTAI

2000-05-15 Thread Paolo Mantegazza

Michel Doyon wrote:
> 
> Hi,
> 
> I have been performing some timings with the semaphores under RTAI.
> I have a DUAL P-III 500 Mhz.
> 
> I find a 9 usec time between the moment a semaphore is released on one CPU
> and the time a task on the other CPU is started.  The initial semaphore
> release is done  by a user put to the rt fifo and the fifo handler make
> the real call.
> 
> On the other hand, I find that with a interrupt handler, releasing a
> semaphore to say task 1 running on the same CPU, it takes roughly the same
> time (10 usec) but if the task is set to run on a different cpu, than the
> irq hanbdler, it takes up to 16 usec.
> 
> Do these number make sense ? I run the scheduler for SMP and rtai 0.9a
> with kernel 13 of linux.
> 
> I took my measurements using a outb to the paralle port.
> 
> Any comments or suggestions to speed this up ? I have been told that
> Windows NT is around 5 usec ... BUT I have not seen it myself nor have
> details on the timing measurement system.
> 
> Thank you
> 
> Michel

The extra time taken to go to another CPU is due to the need on sending
an interprocessor message to wake up the task on the other CPU, which in
turn is leads to another interrupt to cause a task switch to wake up the
signalled task.

If you think it can be better done, force your tasks assignement to CPUs
statically in the way you believe the best. It can be done with both the
SMP and MUP scheduler.

Ciao, Paolo.
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl " | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/