* [Xenomai-help] two questions about using rtdm [not found] <20060731095941.3C4F5EC8@domain.hid> @ 2006-07-31 11:39 ` Landau, Bracha 2006-07-31 11:54 ` Jan Kiszka 0 siblings, 1 reply; 7+ messages in thread From: Landau, Bracha @ 2006-07-31 11:39 UTC (permalink / raw) To: xenomai -----Original Message----- From: xenomai-help-bounces@domain.hid [mailto:xenomai-help-bounces@domain.hid Behalf Of xenomai-help-request@domain.hid Sent: Monday, July 31, 2006 1:00 PM To: xenomai@xenomai.org Subject: Xenomai-help Digest, Vol 10, Issue 48 Send Xenomai-help mailing list submissions to xenomai@xenomai.org To subscribe or unsubscribe via the World Wide Web, visit https://mail.gna.org/listinfo/xenomai-help or, via email, send a message with subject or body 'help' to xenomai-help-request@domain.hid You can reach the person managing the list at xenomai-help-owner@domain.hid When replying, please edit your Subject line so it is more specific than "Re: Contents of Xenomai-help digest..." Today's Topics: 1. Re: Beginner's question / testsuite / latency (Jan Kiszka) 2. Re: Beginner's question / testsuite / latency (Philippe Gerum) ---------------------------------------------------------------------- Message: 1 Date: Mon, 31 Jul 2006 00:00:44 +0200 From: Jan Kiszka <jan.kiszka@domain.hid> Subject: Re: [Xenomai-help] Beginner's question / testsuite / latency To: rpm@xenomai.org Cc: xenomai@xenomai.org Message-ID: <44CD2C0C.3@domain.hid> Content-Type: text/plain; charset="iso-8859-15" Philippe Gerum wrote: > On Sun, 2006-07-30 at 21:33 +0200, Jan Kiszka wrote: >> Philippe Gerum wrote: >>> On Sat, 2006-07-29 at 16:20 +0200, Jan Kiszka wrote: >>>>>> :|func 6 xnintr_clock_handler (__ipipe_dispatch_wired) >>>>>> :|func 6 xnintr_irq_handler (xnintr_clock_handler) >>>>>> :|func 7 xnpod_announce_tick (xnintr_irq_handler) >>>>>> :|func 8+ xntimer_do_tick_aperiodic (xnpod_announce_tick) >>>>>> :|func 9 xnthread_periodic_handler (xntimer_do_tick_aperiodic) >>>>>> :|func 10 xnpod_resume_thread (xnthread_periodic_handler) >>>>>> :|[21559] 11+ xnpod_resume_thread (xnthread_periodic_handler) >>>>>> :|func 13+ xnthread_periodic_handler (xntimer_do_tick_aperiodic) >>>> ... >>>> >>>>>> :|func 363+ xnthread_periodic_handler (xntimer_do_tick_aperiodic) >>>> That are a lot of overruns. Haven't counted, but it should be one >>>> xnthread_periodic_handler per missed 100 us period (20000 / 100 = 200!). >>>> [BTW, I think we should handle even this failure scenario without >>>> looping. Two questions regarding rtdm: 1) I would like to use the real-time system calls (bind,socket,send,recv, etc) that are included in the API (i.e., rt_dev_socket, rt_dev_bind...). I tried to replace the calls to their rt equivalents (e.g., socket becomes rt_dev_socket). But apparently that is not enough, because when I do a call to rt_dev_socket, I get an error. Are there any examples of how to use the r/t sockets? 2) I am running on an MPC8247 with two CPM serial ports. Can I use the 16650A driver provided by xenomai to "impersonate" the CPM serial driver? If not, can you instruct me how to do this? Bracha *********************************************************************************** This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster@domain.hid and destroy the original message. *********************************************************************************** ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-help] two questions about using rtdm 2006-07-31 11:39 ` [Xenomai-help] two questions about using rtdm Landau, Bracha @ 2006-07-31 11:54 ` Jan Kiszka 2006-07-31 12:02 ` Wolfgang Grandegger 0 siblings, 1 reply; 7+ messages in thread From: Jan Kiszka @ 2006-07-31 11:54 UTC (permalink / raw) To: Landau, Bracha; +Cc: xenomai [-- Attachment #1: Type: text/plain, Size: 1491 bytes --] Landau, Bracha wrote: > > -----Original Message----- > From: xenomai-help-bounces@domain.hid > [mailto:xenomai-help-bounces@domain.hid Behalf Of > xenomai-help-request@domain.hid <snip> Could you please avoid re-using posted mails for new threads? Thanks. > Two questions regarding rtdm: > > 1) I would like to use the real-time system calls (bind,socket,send,recv, etc) that are included in the API (i.e., rt_dev_socket, rt_dev_bind...). > I tried to replace the calls to their rt equivalents (e.g., socket becomes rt_dev_socket). But apparently that is not enough, because when I do a call to rt_dev_socket, I get an error. > Are there any examples of how to use the r/t sockets? RTnet for real-time networking over Ethernet, Firewire (eth1394 together with the RT-FireWire package), or WLAN (experimental rt2x00). Soon to come: RT-CAN via socket interface (patch is working, Wolfgang is currently cleaning up). Ah, and the special-purpose protocol driver TiMS (Tiny Messaging Service) that comes with RACK (developer.berlios.de/projects/rack). If you are missing something, feel free to write and register your own RTDM protocol driver. ;) > > 2) I am running on an MPC8247 with two CPM serial ports. Can I use the 16650A driver provided by xenomai to "impersonate" the CPM serial driver? If not, can you instruct me how to do this? That's one for the PPC experts, but I bet the UART is not compatible with the 16550A controller, is it? Jan [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 250 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-help] two questions about using rtdm 2006-07-31 11:54 ` Jan Kiszka @ 2006-07-31 12:02 ` Wolfgang Grandegger 2006-07-31 13:55 ` Landau, Bracha 0 siblings, 1 reply; 7+ messages in thread From: Wolfgang Grandegger @ 2006-07-31 12:02 UTC (permalink / raw) To: Jan Kiszka; +Cc: xenomai, Landau, Bracha Jan Kiszka wrote: > Landau, Bracha wrote: >> -----Original Message----- >> From: xenomai-help-bounces@domain.hid >> [mailto:xenomai-help-bounces@domain.hid Behalf Of >> xenomai-help-request@domain.hid > > <snip> > > Could you please avoid re-using posted mails for new threads? Thanks. > >> Two questions regarding rtdm: >> >> 1) I would like to use the real-time system calls (bind,socket,send,recv, etc) that are included in the API (i.e., rt_dev_socket, rt_dev_bind...). >> I tried to replace the calls to their rt equivalents (e.g., socket becomes rt_dev_socket). But apparently that is not enough, because when I do a call to rt_dev_socket, I get an error. >> Are there any examples of how to use the r/t sockets? > > RTnet for real-time networking over Ethernet, Firewire (eth1394 together > with the RT-FireWire package), or WLAN (experimental rt2x00). Soon to > come: RT-CAN via socket interface (patch is working, Wolfgang is > currently cleaning up). Ah, and the special-purpose protocol driver TiMS > (Tiny Messaging Service) that comes with RACK > (developer.berlios.de/projects/rack). > > If you are missing something, feel free to write and register your own > RTDM protocol driver. ;) > >> 2) I am running on an MPC8247 with two CPM serial ports. Can I use the 16650A driver provided by xenomai to "impersonate" the CPM serial driver? If not, can you instruct me how to do this? > > That's one for the PPC experts, but I bet the UART is not compatible > with the 16550A controller, is it? It is _not_ compatible and it requires porting to RTDM. Wolfgang. ^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [Xenomai-help] two questions about using rtdm 2006-07-31 12:02 ` Wolfgang Grandegger @ 2006-07-31 13:55 ` Landau, Bracha 2006-07-31 14:21 ` Jan Kiszka 0 siblings, 1 reply; 7+ messages in thread From: Landau, Bracha @ 2006-07-31 13:55 UTC (permalink / raw) To: Wolfgang Grandegger, Jan Kiszka; +Cc: xenomai I downloaded RTNet and tried to compile it for mpc8260 fcc enet. I use linux kernel 2.6.14. The file drivers/rt_mpc8260_fcc_enet.c did not compile. It's looking for files named "immap_8260.h" and "immap_cpm2.h", neither of which exists. -----Original Message----- From: Wolfgang Grandegger [mailto:wg@domain.hid] Sent: Monday, July 31, 2006 3:03 PM To: Jan Kiszka Cc: Landau, Bracha; xenomai@xenomai.org Subject: Re: [Xenomai-help] two questions about using rtdm Jan Kiszka wrote: > Landau, Bracha wrote: >> -----Original Message----- >> From: xenomai-help-bounces@domain.hid >> [mailto:xenomai-help-bounces@domain.hid Behalf Of >> xenomai-help-request@domain.hid > > <snip> > > Could you please avoid re-using posted mails for new threads? Thanks. > >> Two questions regarding rtdm: >> >> 1) I would like to use the real-time system calls (bind,socket,send,recv, etc) that are included in the API (i.e., rt_dev_socket, rt_dev_bind...). >> I tried to replace the calls to their rt equivalents (e.g., socket becomes rt_dev_socket). But apparently that is not enough, because when I do a call to rt_dev_socket, I get an error. >> Are there any examples of how to use the r/t sockets? > > RTnet for real-time networking over Ethernet, Firewire (eth1394 together > with the RT-FireWire package), or WLAN (experimental rt2x00). Soon to > come: RT-CAN via socket interface (patch is working, Wolfgang is > currently cleaning up). Ah, and the special-purpose protocol driver TiMS > (Tiny Messaging Service) that comes with RACK > (developer.berlios.de/projects/rack). > > If you are missing something, feel free to write and register your own > RTDM protocol driver. ;) > >> 2) I am running on an MPC8247 with two CPM serial ports. Can I use the 16650A driver provided by xenomai to "impersonate" the CPM serial driver? If not, can you instruct me how to do this? > > That's one for the PPC experts, but I bet the UART is not compatible > with the 16550A controller, is it? It is _not_ compatible and it requires porting to RTDM. Wolfgang. *********************************************************************************** This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster@domain.hid and destroy the original message. *********************************************************************************** ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-help] two questions about using rtdm 2006-07-31 13:55 ` Landau, Bracha @ 2006-07-31 14:21 ` Jan Kiszka 2006-07-31 14:33 ` Landau, Bracha 0 siblings, 1 reply; 7+ messages in thread From: Jan Kiszka @ 2006-07-31 14:21 UTC (permalink / raw) To: Landau, Bracha; +Cc: xenomai [-- Attachment #1: Type: text/plain, Size: 712 bytes --] Landau, Bracha wrote: > I downloaded RTNet and tried to compile it for mpc8260 fcc enet. > I use linux kernel 2.6.14. > The file drivers/rt_mpc8260_fcc_enet.c did not compile. It's looking for files named "immap_8260.h" and "immap_cpm2.h", neither of which exists. > I think to remember Wolfgang said that 2.6 is not yet supposed to work with this particular driver. So I better redirect this question for more details. But before digging to deep into this: What are you planning to do with RTnet? My point is if you actually need deterministic network access or if you may live with relaxed services via normal Linux. It's not that RTnet is bad :), but it might not be required here. Jan [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 250 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: [Xenomai-help] two questions about using rtdm 2006-07-31 14:21 ` Jan Kiszka @ 2006-07-31 14:33 ` Landau, Bracha 2006-07-31 14:43 ` Jan Kiszka 0 siblings, 1 reply; 7+ messages in thread From: Landau, Bracha @ 2006-07-31 14:33 UTC (permalink / raw) To: jan.kiszka; +Cc: xenomai I don't need deterministic network access, but I was hoping it would improve performance. -----Original Message----- From: jan.kiszka@domain.hid [mailto:jan.kiszka@domain.hid] Sent: Monday, July 31, 2006 5:22 PM To: Landau, Bracha Cc: Wolfgang Grandegger; xenomai@xenomai.org Subject: Re: [Xenomai-help] two questions about using rtdm Landau, Bracha wrote: > I downloaded RTNet and tried to compile it for mpc8260 fcc enet. > I use linux kernel 2.6.14. > The file drivers/rt_mpc8260_fcc_enet.c did not compile. It's looking for files named "immap_8260.h" and "immap_cpm2.h", neither of which exists. > I think to remember Wolfgang said that 2.6 is not yet supposed to work with this particular driver. So I better redirect this question for more details. But before digging to deep into this: What are you planning to do with RTnet? My point is if you actually need deterministic network access or if you may live with relaxed services via normal Linux. It's not that RTnet is bad :), but it might not be required here. Jan *********************************************************************************** This email message and any attachments thereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the postmaster@domain.hid and destroy the original message. *********************************************************************************** ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Xenomai-help] two questions about using rtdm 2006-07-31 14:33 ` Landau, Bracha @ 2006-07-31 14:43 ` Jan Kiszka 0 siblings, 0 replies; 7+ messages in thread From: Jan Kiszka @ 2006-07-31 14:43 UTC (permalink / raw) To: Landau, Bracha; +Cc: xenomai [-- Attachment #1: Type: text/plain, Size: 690 bytes --] Landau, Bracha wrote: > I don't need deterministic network access, but I was hoping it would improve performance. RTnet is designed to provide services deterministically, which doesn't necessarily means with improved performance (nevertheless, you /can/ gain performance this way - for supported protocols). But your problem can be that, by pulling networking services into the real-time domain of Xenomai, you affect the whole RT-system. If incoming traffic (e.g. broadcasts) is not strictly bounded and predictable, it can cause serious harm due to the CPU time spent on dropping or forwarding it. Just be warned, that RTnet is not a simple "performance booster". Jan [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 250 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-07-31 14:43 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20060731095941.3C4F5EC8@domain.hid>
2006-07-31 11:39 ` [Xenomai-help] two questions about using rtdm Landau, Bracha
2006-07-31 11:54 ` Jan Kiszka
2006-07-31 12:02 ` Wolfgang Grandegger
2006-07-31 13:55 ` Landau, Bracha
2006-07-31 14:21 ` Jan Kiszka
2006-07-31 14:33 ` Landau, Bracha
2006-07-31 14:43 ` Jan Kiszka
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.