Re: RTDM assertion failed RTAI 4.0 and 5.1test

Paolo Mantegazza <[email protected]>
Newsgroups gmane.linux.real-time.rtai
Message-ID <[email protected]>
As I told you already, your finding just tells me (us) that there is the 
need to check and fix the more recent versions of the rtdm support in RTAI.

Paolo.

On 05/11/2016 01:10 PM, Cédric wrote:
> Hi,
>
> HELLO , there is someone who uses Serial ports with RTAI 4/RTAI 5 ?
> When I try to open my serial port with rt_dev_open, I have a call 
> trace and RTDM error msg : [ 8008.399827] ------------[ cut here 
> ]------------ [ 8008.399839] WARNING: at arch/x86/kernel/ipipe.c:256 
> ipipe_set_irq_affinity+0x98/0xb0() [ 8008.399842] Hardware name: To Be 
> Filled By O.E.M. [ 8008.399845] Modules linked in: rtai_16550A(OF) 
> rtai_rtdm(OF) rtai_shm(OF) rtai_fifos(OF) rtai_tasklets(OF) 
> rtai_sem(OF) rtai_sched(OF) rtai_hal(OF) binfmt_misc parport_pc ppdev 
> i915 coretemp kvm_intel drm_kms_helper kvm drm hid_generic psmouse 
> usbhid hid serio_raw gpio_ich mei shpchp i2c_algo_bit mac_hid video 
> lpc_ich lp parport e1000e pata_acpi [last unloaded: mxser] [ 
> 8008.399900] Pid: 26903, comm: LocalisationRes Tainted: GF O 3.8.13 #1 
> [ 8008.399903] Call Trace: [ 8008.399910] [<ffffffff8104360f>] 
> warn_slowpath_common+0x7f/0xc0 [ 8008.399915] [<ffffffff8104366a>] 
> warn_slowpath_null+0x1a/0x20 [ 8008.399920] [<ffffffff810259a8>] 
> ipipe_set_irq_affinity+0x98/0xb0 [ 8008.399928] [<ffffffffa0290727>] 
> rt_assign_irq_to_cpu+0x97/0xc0 [rtai_hal] [ 8008.399936] 
> [<ffffffffa0367772>] xnintr_attach+0x82/0x280 [rtai_rtdm] [ 
> 8008.399942] [<ffffffff81634586>] ? _raw_spin_unlock+0x16/0x40 [ 
> 8008.399947] [<ffffffffa03658a2>] rtdm_irq_request+0x32/0x70 
> [rtai_rtdm] [ 8008.399953] [<ffffffffa03158cd>] 
> rt_16550_open+0x14d/0x1d0 [rtai_16550A] [ 8008.399958] 
> [<ffffffffa03637c6>] __rt_dev_open+0xf6/0x240 [rtai_rtdm] [ 
> 8008.399964] [<ffffffffa036728d>] sys_rtdm_open+0x7d/0xb0 [rtai_rtdm] 
> [ 8008.399974] [<ffffffffa032096f>] handle_lxrt_request+0x12f/0xd00 
> [rtai_sched] [ 8008.399979] [<ffffffff8107225d>] ? 
> lg_local_unlock+0x2d/0x60 [ 8008.399986] [<ffffffffa03215df>] 
> rtai_lxrt_invoke+0x9f/0x1a0 [rtai_sched] [ 8008.399990] 
> [<ffffffff8163465b>] ? _raw_spin_unlock_irq+0x1b/0x40 [ 8008.399998] 
> [<ffffffffa031fd7d>] lxrt_intercept_syscall+0x9d/0x170 [rtai_sched] [ 
> 8008.400027] [<ffffffff810daa78>] __ipipe_notify_kevent+0x18/0x20 [ 
> 8008.400038] [<ffffffff81025e7a>] __ipipe_syscall_root+0x3a/0xe0 [ 
> 8008.400045] [<ffffffff8130a0fa>] __ipipe_syscall_root_thunk+0x35/0x67 
> [ 8008.400051] [<ffffffff8163c6a7>] ? 
> system_call_after_swapgs+0x54/0x6d [ 8008.400054] ---[ end trace 
> 7cc492e439ec8545 ]--- [ 8008.400075] RTDM: assertion failed at 
> /usr/src/rtai/addons/rtdm/../rtdm/rtdm_driver.h:574 
> (CONTEXT_IS_LOCKED(context)) But if I don't use Serial Port, I have no 
> call trace and everything works as expected !
> Thx for your help.
>
>
> 2016-05-03 10:30 GMT+02:00 Cédric <[email protected] 
> <mailto:[email protected]>>:
>
>     Hi,
>
>     I work on RTAI3.8 using a MOXA CP114 4 serial ports card since 4
>     years...
>     I'm testing RTAI 4 (3.8.13 kernel) and RTAI5 (3.10.32 kernel) and
>     all seems to work fine (testsuite, simple prog).
>     With the same prog than I used on RTAI3.8, fd =
>     rt_dev_open(rtserfile, 0)... rt_dev_write(...)
>
>     When I try on newer versions I have this message :
>
>     RTDM: assertion failed at /usr/src/rtai/addons/rtdm/core.c:523
>     (!rthal_local_irq_disabled())
>
>
>     And every loop I have this one :
>     [ 1729.398443] RTDM: assertion failed at
>     /usr/src/rtai/addons/rtdm/../rtdm/rtdm_driver.h:581
>     (CONTEXT_IS_LOCKED(context))
>
>     My script to insert modules :
>
>     insmod rtai_hal.ko
>     insmod rtai_sched.ko
>     insmod rtai_sem.ko
>     insmod rtai_tasklets.ko
>     insmod rtai_fifos.ko
>     insmod rtai_rtdm.ko
>     insmod rtai_serial.ko
>     rmmod rtai_serial.ko
>     insmod rtai_16650A.ko io=...., irq=...., baud_base=...., start_index=0
>
>     If someone could help me... what's going wrong?
>     Thanks
>
>     Best regards
>
>
>
>
> _______________________________________________
> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.