Re: userspace latency test hang on rtai4.0
Paolo Mantegazza <[email protected]>
| Newsgroups | gmane.linux.real-time.rtai |
|---|---|
| Message-ID | <[email protected]> |
Hard periodic mode timing has to be forgotten with Linux 3.x onward. To avoid problems like yours in the new 5.0 version, i.e. the actual Vulcano CVS, the related functions are kept for compatibility but are voided. Paolo On 04/21/2016 08:41 AM, Neeraj Agrawal wrote: > > Hi, > > Setup Env: > > -rtai4.0 (on x86) > > -Linux version 3.8.13 > > -[ 1371.585504] SYSINFO: CPUs 4, LINUX APIC IRQ 4352, TIM_FREQ > 6234609, CLK_FREQ 2893274000, CPU_FREQ 2893274000 > > -[ 1371.586653] RTAI_APIC_TIMER_IPI: RTAI DEFINED 4354, VECTOR 4354; > LINUX_APIC_TIMER_IPI: RTAI DEFINED 4352, VECTOR 4352 > > -CONFIG_RTAI_TSC is true > > Experiment : > > Default usermode latency test runs fine ($./run) > > However on setting ‘TIMER_MODE’ to 1 (in latency.c) get a hang. > > On further debugging and running only $./latency, I could see that > hang is coming from :- > > rt_task_make_periodic(task, expected = rt_get_tscnt() + 10*period, > period); > > On replacing rt_get_tscnt with rt_get_time in the above line, there is > no hang. > > I could not explain this, as rt_get_tscnt does not lead to hang when > ‘TIMER_MODE’ is 0. > > Regards > > Neeraj > > -------------------------------------------------------------------------------------------------- > This email and any attachments are confidential and are for the use of the > addressee only. If you are not the addressee, you must not use or > disclose the > contents to any other person. Please immediately notify the sender and > delete the email. Statements and opinions expressed here may not > represent those of the company. Email correspondence is monitored by > the company. This information may be subject to export control > regulation. You are obliged to comply with such regulations. > > Renishaw plc (company number 1106260) and Wotton Travel Limited (company > number 01973158) are companies registered in England and Wales with a > registered office > at New Mills, Wotton-under-Edge, Gloucestershire, GL12 8JR, > United Kingdom, Telephone +44 1453 524524. > -------------------------------------------------------------------------------------------------- > > > > _______________________________________________ > Rtai mailing list > [email protected] > https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai _______________________________________________ Rtai mailing list [email protected] https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai