Re: RTAI 5.0.1 calibrate program: BUG: unable to handle kernel paging request at 00007ffe78e450f0
Vivian McPhail <[email protected]> Mon, 18 Sep 2017 08:16:36 +1200
| Newsgroups | gmane.linux.real-time.rtai |
|---|---|
| Message-ID | <CAGSp+B5gnCSG006hD6-S9dTHwAhMX-4a2iL28iCbfYWBTdF02Q@mail.gmail.com> |
Hi, I have disabled hyperthreading in the BIOS and recompiled the kernel. The frequencies as listed in dmesg are now different from previous attempt. And this seems to be an important line: [ 244.577493] CPU: 1 PID: 17141 Comm: calibrate Tainted: G O 4.4.43-rtai #19 but the BUG is: [ 244.575450] BUG: unable to handle kernel paging request at 00007ffc87925de0 [ 244.575859] IP: [<ffffffffa00be7d5>] rtai_lxrt_invoke+0xda5/0x1b30 [rtai_sched] here is the invocation that crashes: sc-qi4 /usr/realtime/calibration # ./calibrate Killed sc-qi4 /usr/realtime/calibration # dmesg <snip> [ 244.564581] I-pipe: head domain RTAI registered. [ 244.564583] RTAI[hal]: mounted. ISOL_CPUS_MASK: 0. [ 244.564584] SYSINFO - # CPUs: 2, TIMER NAME: 'lapic', TIMER IRQ: 4354, TIMER FREQ: 115501999, CLOCK NAME: 'tsc', CLOCK FREQ: 3696093000, CPU FREQ: 3696093000, LINUX TIMER IRQ: 4354. [ 244.574962] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>. [ 244.574984] , kstacks pool size = 524288 bytes. [ 244.574985] RTAI[sched]: hard timer type/freq = lapic/115501999(Hz); timing: ONESHOT; linear timed lists. [ 244.574986] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 3696093000 hz. [ 244.574987] RTAI[sched]: timer setup = 60 ns, resched latency = 0 ns. [ 244.575450] BUG: unable to handle kernel paging request at 00007ffc87925de0 [ 244.575859] IP: [<ffffffffa00be7d5>] rtai_lxrt_invoke+0xda5/0x1b30 [rtai_sched] [ 244.576265] PGD 46af9a067 PUD 46bcf4067 PMD 46af9e067 PTE 80000004689ec067 [ 244.576672] Oops: 0001 [#1] SMP [ 244.577072] Modules linked in: rtai_sched(O+) rtai_hal(O) x86_pkg_temp_thermal sha256_generic igb [ 244.577493] CPU: 1 PID: 17141 Comm: calibrate Tainted: G O 4.4.43-rtai #19 [ 244.577911] Hardware name: Supermicro Super Server/X11SSA-F, BIOS 2.0a 03/07/2017 [ 244.578334] task: ffff88046a47a340 ti: ffff88046aedc000 task.ti: ffff88046aedc000 [ 244.578763] RIP: 0010:[<ffffffffa00be7d5>] [<ffffffffa00be7d5>] rtai_lxrt_invoke+0xda5/0x1b30 [rtai_sched] [ 244.579207] RSP: 0018:ffff88046aedfe90 EFLAGS: 00010206 [ 244.579644] RAX: 0000000000000407 RBX: ffff88046aedff58 RCX: 00007f54c33155c9 [ 244.580082] RDX: 0000000000000000 RSI: 00007ffc87925de0 RDI: 0000000000407818 [ 244.580518] RBP: ffff88046aedff10 R08: 0000000000000000 R09: 00007ffc87925f10 [ 244.580948] R10: 00007ffc87925d98 R11: 0000000000000202 R12: 00007ffc87925de0 [ 244.581380] R13: 0000000000407818 R14: 0000000000000000 R15: 0000000000000000 [ 244.581814] FS: 00007f54c3c00700(0000) GS:ffff88047fd00000(0000) knlGS:0000000000000000 [ 244.582252] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 244.582690] CR2: 00007ffc87925de0 CR3: 000000046af99000 CR4: 00000000003406e0 [ 244.583133] I-pipe domain Linux [ 244.583572] Stack: [ 244.584008] 00000000ffffff9c 0000000000000010 0000000000000000 ffff88046ac06a80 [ 244.584462] ffff88046aedfec0 ffffffff81089f82 ffff88046aedfed0 ffffffff8105f3c5 [ 244.584917] ffff88046aedff38 ffffffff810fa6cf ffff88046ac06980 ffff88046aedff58 [ 244.585374] Call Trace: [ 244.585830] [<ffffffff81089f82>] ? call_rcu_sched+0x12/0x20 [ 244.586292] [<ffffffff8105f3c5>] ? __put_cred+0x35/0x40 [ 244.586752] [<ffffffff810fa6cf>] ? SyS_faccessat+0x1bf/0x200 [ 244.587213] [<ffffffffa00bc886>] lxrt_intercept_syscall+0xb6/0x180 [rtai_sched] [ 244.587846] [<ffffffff810ab142>] __ipipe_notify_syscall+0x12/0x20 [ 244.588311] [<ffffffff814fd12c>] pipeline_syscall+0x9/0x16 [ 244.588772] Code: e1 07 89 c8 c1 f9 1f f7 ea c1 fa 05 29 ca 48 63 f2 31 d2 48 89 b3 68 11 00 00 e8 c7 68 00 00 48 89 83 58 11 00 00 e9 dd f4 ff ff <48> 8b 1e 8d 90 18 fc ff ff 83 fa 20 48 89 d9 0f 87 e2 04 00 00 [ 244.589808] RIP [<ffffffffa00be7d5>] rtai_lxrt_invoke+0xda5/0x1b30 [rtai_sched] [ 244.590311] RSP <ffff88046aedfe90> [ 244.590808] CR2: 00007ffc87925de0 [ 244.594242] ---[ end trace 4ea9ba1f69997fdc ]--- [ 244.594277] ------------[ cut here ]------------ [ 244.594281] WARNING: CPU: 1 PID: 17141 at kernel/softirq.c:150 __local_bh_enable_ip+0x7c/0xa0() [ 244.594281] Modules linked in: rtai_sched(O+) rtai_hal(O) x86_pkg_temp_thermal sha256_generic igb [ 244.594286] CPU: 1 PID: 17141 Comm: calibrate Tainted: G D O 4.4.43-rtai #19 [ 244.594287] Hardware name: Supermicro Super Server/X11SSA-F, BIOS 2.0a 03/07/2017 [ 244.594287] 0000000000000000 ffff88046aedfb60 ffffffff811f3c41 0000000000000000 [ 244.594289] ffffffff817079d9 ffff88046aedfb98 ffffffff81044b78 0000000000000200 [ 244.594291] ffffffff818287e0 ffff88046b95d180 0000000000000009 ffff88046b95d1e8 [ 244.594292] Call Trace: [ 244.594295] [<ffffffff811f3c41>] dump_stack+0x96/0xc5 [ 244.594296] [<ffffffff81044b78>] warn_slowpath_common+0x78/0xb0 [ 244.594297] [<ffffffff81044c65>] warn_slowpath_null+0x15/0x20 [ 244.594299] [<ffffffff81047e2c>] __local_bh_enable_ip+0x7c/0xa0 [ 244.594300] [<ffffffff814fcc85>] _raw_write_unlock_bh+0x15/0x20 [ 244.594302] [<ffffffff814fcc99>] _raw_spin_unlock_bh+0x9/0x10 [ 244.594303] [<ffffffff810a65c8>] cgroup_exit+0x48/0x60 [ 244.594305] [<ffffffff81046328>] do_exit+0x328/0xa10 [ 244.594306] [<ffffffff8100632a>] oops_end+0x7a/0xa0 [ 244.594309] [<ffffffff8103a705>] no_context+0x135/0x370 [ 244.594310] [<ffffffff8103aa4a>] __bad_area_nosemaphore+0x10a/0x220 [ 244.594312] [<ffffffff810d9fd5>] ? list_lru_add+0x15/0x50 [ 244.594313] [<ffffffff8103ab6e>] bad_area_nosemaphore+0xe/0x10 [ 244.594314] [<ffffffff8103adc2>] __do_page_fault+0x82/0x370 [ 244.594316] [<ffffffff81104638>] ? terminate_walk+0xb8/0xd0 [ 244.594318] [<ffffffff8103b135>] do_page_fault+0x55/0x90 [ 244.594319] [<ffffffff814fee82>] page_fault+0x22/0x60 [ 244.594325] [<ffffffffa00be7d5>] ? rtai_lxrt_invoke+0xda5/0x1b30 [rtai_sched] [ 244.594326] [<ffffffff81089f82>] ? call_rcu_sched+0x12/0x20 [ 244.594328] [<ffffffff8105f3c5>] ? __put_cred+0x35/0x40 [ 244.594329] [<ffffffff810fa6cf>] ? SyS_faccessat+0x1bf/0x200 [ 244.594332] [<ffffffffa00bc886>] lxrt_intercept_syscall+0xb6/0x180 [rtai_sched] [ 244.594333] [<ffffffff810ab142>] __ipipe_notify_syscall+0x12/0x20 [ 244.594334] [<ffffffff814fd12c>] pipeline_syscall+0x9/0x16 [ 244.594335] ---[ end trace 4ea9ba1f69997fdd ]--- [ 244.594354] USERMODE CHECK: ERROR. [ 244.594355] USERMODE CHECK PROVIDED (ns): KernelLatency 0, UserLatency 0. [ 244.594355] FINAL CALIBRATION SUMMARY (ns): KernelLatency 0, UserLatency 0. [ 273.323587] BUG: unable to handle kernel paging request at 00007fffede460c0 [ 273.324097] IP: [<ffffffffa00be7d5>] rtai_lxrt_invoke+0xda5/0x1b30 [rtai_sched] [ 273.324605] PGD 46b776067 PUD 46a325067 PMD 46a0e7067 PTE 80000004590b6067 [ 273.325115] Oops: 0001 [#2] SMP [ 273.325620] Modules linked in: latency_rt(O) rtai_fifos(O) rtai_sched(O) rtai_hal(O) x86_pkg_temp_thermal sha256_generic igb [ 273.326158] CPU: 1 PID: 17278 Comm: calibrate Tainted: G D W O 4.4.43-rtai #19 [ 273.326692] Hardware name: Supermicro Super Server/X11SSA-F, BIOS 2.0a 03/07/2017 [ 273.327230] task: ffff88046a47d240 ti: ffff88046a63c000 task.ti: ffff88046a63c000 [ 273.327772] RIP: 0010:[<ffffffffa00be7d5>] [<ffffffffa00be7d5>] rtai_lxrt_invoke+0xda5/0x1b30 [rtai_sched] [ 273.328328] RSP: 0018:ffff88046a63fe90 EFLAGS: 00010206 [ 273.329045] RAX: 0000000000000407 RBX: ffff88046a63ff58 RCX: 00007fa1eeb205c9 [ 273.329608] RDX: 0000000000000000 RSI: 00007fffede460c0 RDI: 0000000000407818 [ 273.330170] RBP: ffff88046a63ff10 R08: 0000000000000000 R09: 00007fffede461f0 [ 273.330734] R10: 00007fffede46078 R11: 0000000000000206 R12: 00007fffede460c0 [ 273.331299] R13: 0000000000407818 R14: 0000000000000000 R15: 0000000000000000 [ 273.331862] FS: 00007fa1ef40b700(0000) GS:ffff88047fd00000(0000) knlGS:0000000000000000 [ 273.332429] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 273.332996] CR2: 00007fffede460c0 CR3: 000000046953c000 CR4: 00000000003406e0 [ 273.333572] I-pipe domain Linux [ 273.334147] Stack: [ 273.334719] 00000000ffffff9c 0000000000000010 0000000000000000 ffff88046948c680 [ 273.335310] ffff88046a63fec0 ffffffff81089f82 ffff88046a63fed0 ffffffff8105f3c5 [ 273.335907] ffff88046a63ff38 ffffffff810fa6cf ffff88046948c000 ffff88046a63ff58 [ 273.336502] Call Trace: [ 273.337093] [<ffffffff81089f82>] ? call_rcu_sched+0x12/0x20 [ 273.337692] [<ffffffff8105f3c5>] ? __put_cred+0x35/0x40 [ 273.338292] [<ffffffff810fa6cf>] ? SyS_faccessat+0x1bf/0x200 [ 273.338892] [<ffffffffa00bc886>] lxrt_intercept_syscall+0xb6/0x180 [rtai_sched] [ 273.339498] [<ffffffff810ab142>] __ipipe_notify_syscall+0x12/0x20 [ 273.340096] [<ffffffff814fd12c>] pipeline_syscall+0x9/0x16 [ 273.340689] Code: e1 07 89 c8 c1 f9 1f f7 ea c1 fa 05 29 ca 48 63 f2 31 d2 48 89 b3 68 11 00 00 e8 c7 68 00 00 48 89 83 58 11 00 00 e9 dd f4 ff ff <48> 8b 1e 8d 90 18 fc ff ff 83 fa 20 48 89 d9 0f 87 e2 04 00 00 [ 273.341976] RIP [<ffffffffa00be7d5>] rtai_lxrt_invoke+0xda5/0x1b30 [rtai_sched] [ 273.342598] RSP <ffff88046a63fe90> [ 273.343208] CR2: 00007fffede460c0 [ 273.343812] ---[ end trace 4ea9ba1f69997fde ]--- Any ideas? Thanks, Vivian On 15 September 2017 at 20:21, Paolo Mantegazza <[email protected]> wrote: > For what I know to see not any hyperthreading option in Linux it must be > disabled in BIOS. > I missed the "7000" in "intel i3". > Try what found at "https://www.rtai.org/userfiles/downloads/ > RTAICONTRIB/rtai-5.0.1.tar.bz2" > <https://www.rtai.org/userfiles/downloads/RTAICONTRIB/rtai-5.0.1.tar.bz2>, > then report the outcome. > Paolo. > > > On 09/15/2017 10:01 AM, Vivian McPhail wrote: > > Hi, > > I set maximum no. of cpus as 2 in kernel and in RTAI. > > Module version was already disabled. > > The difference is that this time RTAI latency `./run` worked with 2 CPUs > configured as opposed to previously when it failed so there is progress. > > However I still get 'Killed' when running `calibrate` > > Is there a BIOS option to disable hyperthreading? I have not seen this. > > [ 185.389229] I-pipe: head domain RTAI registered. > [ 185.389230] RTAI[hal]: mounted. ISOL_CPUS_MASK: 0. > [ 185.389232] SYSINFO - # CPUs: 2, TIMER NAME: 'lapic', TIMER IRQ: 4354, > TIMER FREQ: 115510001, CLOCK NAME: 'tsc', CLOCK FREQ: 3696332000, CPU FREQ: > 3696332000, LINUX TIMER IRQ: 4354. > [ 185.397321] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>. > [ 185.397341] , kstacks pool size = 524288 bytes. > [ 185.397342] RTAI[sched]: hard timer type/freq = lapic/115510001(Hz); > timing: ONESHOT; linear timed lists. > [ 185.397343] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = > 3696332000 hz. > [ 185.397343] RTAI[sched]: timer setup = 60 ns, resched latency = 0 ns. > [ 185.397655] BUG: unable to handle kernel paging request at > 00007ffe161581d0 > [ 185.398073] IP: [<ffffffffa00b17d5>] rtai_lxrt_invoke+0xda5/0x1b30 > [rtai_sched] > [ 185.398491] PGD 46ba3a067 PUD 46ba3d067 PMD 46ba3e067 PTE > 800000045d9a6067 > [ 185.398907] Oops: 0001 [#1] SMP > [ 185.399316] Modules linked in: rtai_sched(O+) rtai_hal(O) > x86_pkg_temp_thermal sha256_generic igb > [ 185.399925] CPU: 1 PID: 17584 Comm: calibrate Tainted: G O > 4.4.43-rtai #16 > [ 185.400352] Hardware name: Supermicro Super Server/X11SSA-F, BIOS 2.0a > 03/07/2017 > [ 185.400782] task: ffff88046a2b5e00 ti: ffff88046b978000 task.ti: > ffff88046b978000 > [ 185.401219] RIP: 0010:[<ffffffffa00b17d5>] [<ffffffffa00b17d5>] > rtai_lxrt_invoke+0xda5/0x1b30 [rtai_sched] > [ 185.401673] RSP: 0018:ffff88046b97be90 EFLAGS: 00010206 > [ 185.402123] RAX: 0000000000000407 RBX: ffff88046b97bf58 RCX: > 00007fc80329c5c9 > [ 185.402576] RDX: 0000000000000000 RSI: 00007ffe161581d0 RDI: > 0000000000407818 > [ 185.403026] RBP: ffff88046b97bf10 R08: 0000000000000000 R09: > 000000006562b026 > [ 185.403479] R10: 00007ffe16158188 R11: 0000000000000202 R12: > 00007ffe161581d0 > [ 185.403935] R13: 0000000000407818 R14: 0000000000000000 R15: > 0000000000000000 > [ 185.404391] FS: 00007fc803b87700(0000) GS:ffff88047fd00000(0000) > knlGS:0000000000000000 > [ 185.404851] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 185.405304] CR2: 00007ffe161581d0 CR3: 000000046ba39000 CR4: > 00000000003406e0 > [ 185.405759] I-pipe domain Linux > [ 185.406205] Stack: > [ 185.406651] 00000000ffffff9c 0000000000000010 0000000000000000 > ffff8800751aab00 > [ 185.407112] ffff88046b97bec0 ffffffff81089f92 ffff88046b97bed0 > ffffffff8105f3c5 > [ 185.407575] ffff88046b97bf38 ffffffff810fa6df ffff88046c00fa80 > ffff88046b97bf58 > [ 185.408036] Call Trace: > [ 185.408494] [<ffffffff81089f92>] ? call_rcu_sched+0x12/0x20 > [ 185.408954] [<ffffffff8105f3c5>] ? __put_cred+0x35/0x40 > [ 185.409410] [<ffffffff810fa6df>] ? SyS_faccessat+0x1bf/0x200 > [ 185.409869] [<ffffffffa00af886>] lxrt_intercept_syscall+0xb6/0x180 > [rtai_sched] > [ 185.410331] [<ffffffff810ab152>] __ipipe_notify_syscall+0x12/0x20 > [ 185.410791] [<ffffffff815a526c>] pipeline_syscall+0x9/0x16 > [ 185.411252] Code: e1 07 89 c8 c1 f9 1f f7 ea c1 fa 05 29 ca 48 63 f2 31 > d2 48 89 b3 68 11 00 00 e8 c7 68 00 00 48 89 83 58 11 00 00 e9 dd f4 ff ff > <48> 8b 1e 8d 90 18 fc ff ff 83 fa 20 48 89 d9 0f 87 e2 04 00 00 > [ 185.412295] RIP [<ffffffffa00b17d5>] rtai_lxrt_invoke+0xda5/0x1b30 > [rtai_sched] > [ 185.412801] RSP <ffff88046b97be90> > [ 185.413303] CR2: 00007ffe161581d0 > [ 185.416920] ---[ end trace bd605cdf05605763 ]--- > [ 185.416954] ------------[ cut here ]------------ > [ 185.416958] WARNING: CPU: 1 PID: 17584 at kernel/softirq.c:150 > __local_bh_enable_ip+0x7c/0xa0() > [ 185.416959] Modules linked in: rtai_sched(O+) rtai_hal(O) > x86_pkg_temp_thermal sha256_generic igb > [ 185.416963] CPU: 1 PID: 17584 Comm: calibrate Tainted: G D O > 4.4.43-rtai #16 > [ 185.416964] Hardware name: Supermicro Super Server/X11SSA-F, BIOS 2.0a > 03/07/2017 > [ 185.416965] 0000000000000000 ffff88046b97bb60 ffffffff811f3c51 > 0000000000000000 > [ 185.416967] ffffffff81727e21 ffff88046b97bb98 ffffffff81044b78 > 0000000000000200 > [ 185.416968] ffffffff81828820 ffff88046b504e00 0000000000000009 > ffff88046b504e68 > [ 185.416970] Call Trace: > [ 185.416973] [<ffffffff811f3c51>] dump_stack+0x96/0xc5 > [ 185.416974] [<ffffffff81044b78>] warn_slowpath_common+0x78/0xb0 > [ 185.416976] [<ffffffff81044c65>] warn_slowpath_null+0x15/0x20 > [ 185.416977] [<ffffffff81047e2c>] __local_bh_enable_ip+0x7c/0xa0 > [ 185.416979] [<ffffffff815a4dc5>] _raw_write_unlock_bh+0x15/0x20 > [ 185.416980] [<ffffffff815a4dd9>] _raw_spin_unlock_bh+0x9/0x10 > [ 185.416982] [<ffffffff810a65d8>] cgroup_exit+0x48/0x60 > [ 185.416983] [<ffffffff81046328>] do_exit+0x328/0xa10 > [ 185.416985] [<ffffffff8100632a>] oops_end+0x7a/0xa0 > [ 185.416986] [<ffffffff8103a705>] no_context+0x135/0x370 > [ 185.416988] [<ffffffff8103aa4a>] __bad_area_nosemaphore+0x10a/0x220 > [ 185.416989] [<ffffffff810d9fe5>] ? list_lru_add+0x15/0x50 > [ 185.416991] [<ffffffff8103ab6e>] bad_area_nosemaphore+0xe/0x10 > [ 185.416992] [<ffffffff8103adc2>] __do_page_fault+0x82/0x370 > [ 185.416994] [<ffffffff81104648>] ? terminate_walk+0xb8/0xd0 > [ 185.416995] [<ffffffff8103b135>] do_page_fault+0x55/0x90 > [ 185.416996] [<ffffffff815a6fc2>] page_fault+0x22/0x60 > [ 185.417001] [<ffffffffa00b17d5>] ? rtai_lxrt_invoke+0xda5/0x1b30 > [rtai_sched] > [ 185.417003] [<ffffffff81089f92>] ? call_rcu_sched+0x12/0x20 > [ 185.417005] [<ffffffff8105f3c5>] ? __put_cred+0x35/0x40 > [ 185.417006] [<ffffffff810fa6df>] ? SyS_faccessat+0x1bf/0x200 > [ 185.417009] [<ffffffffa00af886>] lxrt_intercept_syscall+0xb6/0x180 > [rtai_sched] > [ 185.417010] [<ffffffff810ab152>] __ipipe_notify_syscall+0x12/0x20 > [ 185.417011] [<ffffffff815a526c>] pipeline_syscall+0x9/0x16 > [ 185.417012] ---[ end trace bd605cdf05605764 ]--- > [ 185.417028] USERMODE CHECK: ERROR. > [ 185.417029] USERMODE CHECK PROVIDED (ns): KernelLatency 0, UserLatency > 0. > [ 185.417030] FINAL CALIBRATION SUMMARY (ns): KernelLatency 0, > UserLatency 0. > [ 212.807143] BUG: unable to handle kernel paging request at > 00007ffd67990df0 > [ 212.807664] IP: [<ffffffffa00b17d5>] rtai_lxrt_invoke+0xda5/0x1b30 > [rtai_sched] > [ 212.808184] PGD 46ba3c067 PUD 46c2bf067 PMD 46c2bb067 PTE > 800000045dbac067 > [ 212.808701] Oops: 0001 [#2] SMP > [ 212.809211] Modules linked in: latency_rt(O) rtai_fifos(O) > rtai_sched(O) rtai_hal(O) x86_pkg_temp_thermal sha256_generic igb > [ 212.809753] CPU: 0 PID: 17723 Comm: calibrate Tainted: G D W O > 4.4.43-rtai #16 > [ 212.810289] Hardware name: Supermicro Super Server/X11SSA-F, BIOS 2.0a > 03/07/2017 > [ 212.810830] task: ffff88046a4ac680 ti: ffff88046c0b8000 task.ti: > ffff88046c0b8000 > [ 212.811378] RIP: 0010:[<ffffffffa00b17d5>] [<ffffffffa00b17d5>] > rtai_lxrt_invoke+0xda5/0x1b30 [rtai_sched] > [ 212.811940] RSP: 0018:ffff88046c0bbe90 EFLAGS: 00010206 > [ 212.812498] RAX: 0000000000000407 RBX: ffff88046c0bbf58 RCX: > 00007f9eb7cbe5c9 > [ 212.813063] RDX: 0000000000000000 RSI: 00007ffd67990df0 RDI: > 0000000000407818 > [ 212.813625] RBP: ffff88046c0bbf10 R08: 0000000000000000 R09: > 000000006562b026 > [ 212.814188] R10: 00007ffd67990da8 R11: 0000000000000206 R12: > 00007ffd67990df0 > [ 212.814755] R13: 0000000000407818 R14: 0000000000000000 R15: > 0000000000000000 > [ 212.815326] FS: 00007f9eb85a9700(0000) GS:ffff88047fc00000(0000) > knlGS:0000000000000000 > [ 212.815901] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > [ 212.816478] CR2: 00007ffd67990df0 CR3: 000000046949d000 CR4: > 00000000003406f0 > [ 212.817064] I-pipe domain Linux > [ 212.817647] Stack: > [ 212.818225] 00000000ffffff9c 0000000000000010 0000000000000000 > ffff880469661280 > [ 212.818823] ffff88046c0bbec0 ffffffff81089f92 ffff88046c0bbed0 > ffffffff8105f3c5 > [ 212.819425] ffff88046c0bbf38 ffffffff810fa6df ffff88046b90c700 > ffff88046c0bbf58 > [ 212.820025] Call Trace: > [ 212.820623] [<ffffffff81089f92>] ? call_rcu_sched+0x12/0x20 > [ 212.821228] [<ffffffff8105f3c5>] ? __put_cred+0x35/0x40 > [ 212.821831] [<ffffffff810fa6df>] ? SyS_faccessat+0x1bf/0x200 > [ 212.822612] [<ffffffffa00af886>] lxrt_intercept_syscall+0xb6/0x180 > [rtai_sched] > [ 212.823223] [<ffffffff810ab152>] __ipipe_notify_syscall+0x12/0x20 > [ 212.823828] [<ffffffff815a526c>] pipeline_syscall+0x9/0x16 > [ 212.824428] Code: e1 07 89 c8 c1 f9 1f f7 ea c1 fa 05 29 ca 48 63 f2 31 > d2 48 89 b3 68 11 00 00 e8 c7 68 00 00 48 89 83 58 11 00 00 e9 dd f4 ff ff > <48> 8b 1e 8d 90 18 fc ff ff 83 fa 20 48 89 d9 0f 87 e2 04 00 00 > [ 212.825733] RIP [<ffffffffa00b17d5>] rtai_lxrt_invoke+0xda5/0x1b30 > [rtai_sched] > [ 212.826363] RSP <ffff88046c0bbe90> > [ 212.826980] CR2: 00007ffd67990df0 > [ 212.827589] ---[ end trace bd605cdf05605765 ]--- > > > On 15 September 2017 at 19:27, Paolo Mantegazza < > [email protected]> wrote: > >> Disable module version in the kernel and hyperthreading (BIOS-Kernel). >> Configure 2 cpus both in the kernel and RTAI. Then remove the RTAI >> installation dir and redo RTAI make install anew >> As it is a dual CPU I'm using myself, I would not not expect any >> particular problem on an I3. >> Paolo >> >> >> On 09/15/2017 03:45 AM, Vivian McPhail wrote: >> >> Dear list, >> >> I have an Intel i3 7100 dual core CPU system that reports itself as >> having 4 cores (hyperthreaded). >> >> I have patched the kernel (4.4.43) with rtai path from rtai-5.0.1 >> >> After make menuconfig in rtai-5.0.1 directory and selecting number of >> CPUs as 2 and leaving all else unchanged, after make && make install, I get >> the following: >> >> sc-qi4 /usr/realtime/testsuite/kern/latency # ./run >> * >> * >> * Type ^C to stop this application. >> * >> * >> insmod: ERROR: could not insert module /usr/realtime/modules/rtai_hal.ko: >> Operation not permitted >> ERROR: cannot load /usr/realtime/modules/rtai_hal.ko >> insmod: ERROR: could not insert module /usr/realtime/modules/latency_rt.ko: >> Unknown symbol in module >> ERROR: cannot load /usr/realtime/modules/latency_rt.ko >> Error opening /dev/rtf1 >> >> dmesg output: >> <snip> >> [ 235.688089] RTAI[hal]: RTAI CONFIGURED WITH LESS THAN NUM ONLINE CPUS. >> [ 235.727326] latency_rt: Unknown symbol nano2count (err 0) >> [ 235.727329] latency_rt: Unknown symbol rt_get_time (err 0) >> [ 235.727330] latency_rt: Unknown symbol rt_task_make_periodic (err 0) >> [ 235.727331] latency_rt: Unknown symbol rt_set_runnable_on_cpus (err 0) >> [ 235.727332] latency_rt: Unknown symbol start_rt_timer (err 0) >> [ 235.727333] latency_rt: Unknown symbol rt_task_delete (err 0) >> [ 235.727334] latency_rt: Unknown symbol rtf_put (err 0) >> [ 235.727336] latency_rt: Unknown symbol stop_rt_timer (err 0) >> [ 235.727336] latency_rt: Unknown symbol rtf_destroy (err 0) >> [ 235.727337] latency_rt: Unknown symbol rt_get_cpu_time_ns (err 0) >> [ 235.727338] latency_rt: Unknown symbol rt_linux_use_fpu (err 0) >> [ 235.727340] latency_rt: Unknown symbol rt_set_oneshot_mode (err 0) >> [ 235.727341] latency_rt: Unknown symbol rtf_create (err 0) >> [ 235.727342] latency_rt: Unknown symbol rt_task_init (err 0) >> [ 235.727343] latency_rt: Unknown symbol count2nano (err 0) >> [ 235.727344] latency_rt: Unknown symbol rt_set_periodic_mode (err 0) >> [ 235.727346] latency_rt: Unknown symbol rt_task_wait_period (err 0) >> >> So I now make menuconfig and set number of CPUs to 4 >> >> sc-qi4 /usr/realtime/testsuite/kern/latency # ./run >> * >> * >> * Type ^C to stop this application. >> * >> * >> RTAI Testsuite - KERNEL space latency test (output data in nanoseconds) >> >> *** latency verification tool with RTAI own real time kernel tasks *** >> *** period = 100000 (ns), avrgtime = 1 (s) *** >> >> RTH| lat min| ovl min| lat avg| lat max| ovl max| >> overruns >> RTD| 0| 0| 1150| 160725| 160725| >> 73 >> RTD| 0| 0| 1187| 159405| 160725| >> 113 >> RTD| 0| 0| 1152| 165728| 165728| >> 152 >> RTD| 0| 0| 1162| 163048| 165728| >> 190 >> RTD| 0| 0| 1180| 164419| 165728| >> 231 >> RTD| 0| 0| 1165| 163306| 165728| >> 267 >> RTD| 0| 0| 1158| 165418| 165728| >> 304 >> RTD| 0| 0| 1172| 161802| 165728| >> 343 >> RTD| 0| 0| 1154| 161838| 165728| >> 380 >> RTD| 0| 0| 1162| 166058| 166058| >> 416 >> RTD| 0| 0| 1148| 162495| 166058| >> 453 >> RTD| 0| 0| 1272| 1259694| 1259694| >> 502 >> RTD| 0| 0| 1267| 1058307| 1259694| >> 549 >> RTD| 0| 0| 1226| 859009| 1259694| >> 594 >> RTD| 0| 0| 1191| 560218| 1259694| >> 635 >> RTD| 0| 0| 1188| 354817| 1259694| >> 676 >> RTD| 0| 0| 1156| 161124| 1259694| >> 713 >> RTD| 0| 0| 1165| 163014| 1259694| >> 752 >> RTD| 0| 0| 1183| 174834| 1259694| >> 792 >> RTD| 0| 0| 1159| 160292| 1259694| >> 830 >> ^CRTD| 0| 0| 1159| 160292| 1259694| >> 830 >> rmmod: ERROR: Module latency_rt is in use >> rmmod: ERROR: Module rtai_fifos is in use >> rmmod: ERROR: Module rtai_sched is in use >> rmmod: ERROR: Module rtai_hal is in use >> >> so then I try to run the calibration program: >> >> sc-qi4 /usr/realtime/calibration # ./calibrate >> Killed >> >> <snip> >> [ 959.562388] RTAI[hal]: mounted. ISOL_CPUS_MASK: 0. >> [ 959.562390] SYSINFO - # CPUs: 4, TIMER NAME: 'lapic', TIMER IRQ: 4354, >> TIMER FREQ: 115510001, CLOCK NAME: 'tsc', CLOCK FREQ: 3696332000, CPU FREQ: >> 3696332000, LINUX TIMER IRQ: 4354. >> [ 959.570145] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>. >> [ 959.570167] , kstacks pool size = 524288 bytes. >> [ 959.570168] RTAI[sched]: hard timer type/freq = lapic/115510001(Hz); >> timing: ONESHOT; linear timed lists. >> [ 959.570169] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = >> 3696332000 hz. >> [ 959.570170] RTAI[sched]: timer setup = 62 ns, resched latency = 0 ns. >> [ 959.570435] BUG: unable to handle kernel paging request at >> 00007ffe78e450f0 >> [ 959.570939] IP: [<ffffffffa01aa785>] rtai_lxrt_invoke+0xda5/0x1b30 >> [rtai_sched] >> [ 959.571356] PGD 46c2ae067 PUD 46c13a067 PMD 46a06c067 PTE >> 800000045d255067 >> [ 959.571772] Oops: 0001 [#1] SMP >> [ 959.572177] Modules linked in: rtai_sched(O+) rtai_hal(O) >> x86_pkg_temp_thermal sha256_generic igb >> [ 959.572605] CPU: 3 PID: 23288 Comm: calibrate Tainted: G >> O 4.4.43-rtai #15 >> [ 959.573030] Hardware name: Supermicro Super Server/X11SSA-F, BIOS 2.0a >> 03/07/2017 >> [ 959.573459] task: ffff88046a338bc0 ti: ffff88046c330000 task.ti: >> ffff88046c330000 >> [ 959.573896] RIP: 0010:[<ffffffffa01aa785>] [<ffffffffa01aa785>] >> rtai_lxrt_invoke+0xda5/0x1b30 [rtai_sched] >> [ 959.574349] RSP: 0018:ffff88046c333e90 EFLAGS: 00010206 >> [ 959.574796] RAX: 0000000000000407 RBX: ffff88046c333f58 RCX: >> 00007f16b91ce5c9 >> [ 959.575248] RDX: 0000000000000000 RSI: 00007ffe78e450f0 RDI: >> 0000000000407818 >> [ 959.575703] RBP: ffff88046c333f10 R08: 0000000000000000 R09: >> 000000006562b026 >> [ 959.576152] R10: 00007ffe78e450a8 R11: 0000000000000206 R12: >> 00007ffe78e450f0 >> [ 959.576605] R13: 0000000000407818 R14: 0000000000000000 R15: >> 0000000000000000 >> [ 959.577060] FS: 00007f16b9ab9700(0000) GS:ffff88047fd80000(0000) >> knlGS:0000000000000000 >> [ 959.577514] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 >> [ 959.577961] CR2: 00007ffe78e450f0 CR3: 0000000469ede000 CR4: >> 00000000003406e0 >> [ 959.578411] I-pipe domain Linux >> [ 959.578852] Stack: >> [ 959.579293] 00000000ffffff9c 0000000000000010 0000000000000000 >> ffff880075760d80 >> [ 959.579757] ffff88046c333ec0 ffffffff81089ec2 ffff88046c333ed0 >> ffffffff8105f365 >> [ 959.580219] ffff88046c333f38 ffffffff810fad4f ffff880075760500 >> ffff88046c333f58 >> [ 959.580678] Call Trace: >> [ 959.581137] [<ffffffff81089ec2>] ? call_rcu_sched+0x12/0x20 >> [ 959.581597] [<ffffffff8105f365>] ? __put_cred+0x35/0x40 >> [ 959.582056] [<ffffffff810fad4f>] ? SyS_faccessat+0x1bf/0x200 >> [ 959.582519] [<ffffffffa01a8876>] lxrt_intercept_syscall+0xb6/0x180 >> [rtai_sched] >> [ 959.582983] [<ffffffff810ab022>] __ipipe_notify_syscall+0x12/0x20 >> [ 959.583448] [<ffffffff815a592c>] pipeline_syscall+0x9/0x16 >> [ 959.583916] Code: e1 07 89 c8 c1 f9 1f f7 ea c1 fa 05 29 ca 48 63 f2 >> 31 d2 48 89 b3 68 11 00 00 e8 c7 68 00 00 48 89 83 58 11 00 00 e9 dd f4 ff >> ff <48> 8b 1e 8d 90 18 fc ff ff 83 fa 20 48 89 d9 0f 87 e2 04 00 00 >> [ 959.584963] RIP [<ffffffffa01aa785>] rtai_lxrt_invoke+0xda5/0x1b30 >> [rtai_sched] >> [ 959.585476] RSP <ffff88046c333e90> >> [ 959.586158] CR2: 00007ffe78e450f0 >> [ 959.589612] ---[ end trace a7110ad5d5eae434 ]--- >> [ 959.589649] ------------[ cut here ]------------ >> [ 959.589653] WARNING: CPU: 3 PID: 23288 at kernel/softirq.c:150 >> __local_bh_enable_ip+0x7c/0xa0() >> [ 959.589654] Modules linked in: rtai_sched(O+) rtai_hal(O) >> x86_pkg_temp_thermal sha256_generic igb >> [ 959.589658] CPU: 3 PID: 23288 Comm: calibrate Tainted: G D >> O 4.4.43-rtai #15 >> [ 959.589659] Hardware name: Supermicro Super Server/X11SSA-F, BIOS 2.0a >> 03/07/2017 >> [ 959.589660] 0000000000000000 ffff88046c333b60 ffffffff811f4341 >> 0000000000000000 >> [ 959.589661] ffffffff81727e51 ffff88046c333b98 ffffffff81044ad8 >> 0000000000000200 >> [ 959.589663] ffffffff81828820 ffff880469f81180 0000000000000009 >> ffff880469f811e8 >> [ 959.589665] Call Trace: >> [ 959.589667] [<ffffffff811f4341>] dump_stack+0x96/0xc5 >> [ 959.589668] [<ffffffff81044ad8>] warn_slowpath_common+0x78/0xb0 >> [ 959.589670] [<ffffffff81044bc5>] warn_slowpath_null+0x15/0x20 >> [ 959.589671] [<ffffffff81047dbc>] __local_bh_enable_ip+0x7c/0xa0 >> [ 959.589673] [<ffffffff815a5485>] _raw_write_unlock_bh+0x15/0x20 >> [ 959.589674] [<ffffffff815a5499>] _raw_spin_unlock_bh+0x9/0x10 >> [ 959.589676] [<ffffffff810a64d8>] cgroup_exit+0x48/0x60 >> [ 959.589677] [<ffffffff8104628c>] do_exit+0x32c/0xa40 >> [ 959.589679] [<ffffffff8100632a>] oops_end+0x7a/0xa0 >> [ 959.589681] [<ffffffff8103a645>] no_context+0x135/0x370 >> [ 959.589682] [<ffffffff8103a98a>] __bad_area_nosemaphore+0x10a/0x220 >> [ 959.589684] [<ffffffff810d9ed5>] ? list_lru_add+0x15/0x50 >> [ 959.589685] [<ffffffff8103aaae>] bad_area_nosemaphore+0xe/0x10 >> [ 959.589686] [<ffffffff8103ad02>] __do_page_fault+0x82/0x370 >> [ 959.589688] [<ffffffff81104cd8>] ? terminate_walk+0xb8/0xd0 >> [ 959.589690] [<ffffffff8103b075>] do_page_fault+0x55/0x90 >> [ 959.589691] [<ffffffff815a7682>] page_fault+0x22/0x60 >> [ 959.589697] [<ffffffffa01aa785>] ? rtai_lxrt_invoke+0xda5/0x1b30 >> [rtai_sched] >> [ 959.589699] [<ffffffff81089ec2>] ? call_rcu_sched+0x12/0x20 >> [ 959.589700] [<ffffffff8105f365>] ? __put_cred+0x35/0x40 >> [ 959.589702] [<ffffffff810fad4f>] ? SyS_faccessat+0x1bf/0x200 >> [ 959.589705] [<ffffffffa01a8876>] lxrt_intercept_syscall+0xb6/0x180 >> [rtai_sched] >> [ 959.589706] [<ffffffff810ab022>] __ipipe_notify_syscall+0x12/0x20 >> [ 959.589707] [<ffffffff815a592c>] pipeline_syscall+0x9/0x16 >> [ 959.589708] ---[ end trace a7110ad5d5eae435 ]--- >> [ 959.589722] USERMODE CHECK: ERROR. >> [ 959.589723] USERMODE CHECK PROVIDED (ns): KernelLatency 0, UserLatency >> 0. >> [ 959.589724] FINAL CALIBRATION SUMMARY (ns): KernelLatency 0, >> UserLatency 0. >> [ 1036.125661] BUG: unable to handle kernel paging request at >> 00007ffed16a44d0 >> [ 1036.126181] IP: [<ffffffffa01aa785>] rtai_lxrt_invoke+0xda5/0x1b30 >> [rtai_sched] >> [ 1036.126700] PGD 46b8d4067 PUD 469e8a067 PMD 46a1f1067 PTE >> 80000004566c6067 >> [ 1036.127390] Oops: 0001 [#2] SMP >> [ 1036.127906] Modules linked in: latency_rt(O) rtai_fifos(O) >> rtai_sched(O) rtai_hal(O) x86_pkg_temp_thermal sha256_generic igb >> [ 1036.128446] CPU: 3 PID: 23428 Comm: calibrate Tainted: G D W >> O 4.4.43-rtai #15 >> [ 1036.128980] Hardware name: Supermicro Super Server/X11SSA-F, BIOS 2.0a >> 03/07/2017 >> [ 1036.129522] task: ffff88046ab68000 ti: ffff88046c09c000 task.ti: >> ffff88046c09c000 >> [ 1036.130071] RIP: 0010:[<ffffffffa01aa785>] [<ffffffffa01aa785>] >> rtai_lxrt_invoke+0xda5/0x1b30 [rtai_sched] >> [ 1036.130635] RSP: 0018:ffff88046c09fe90 EFLAGS: 00010206 >> [ 1036.131195] RAX: 0000000000000407 RBX: ffff88046c09ff58 RCX: >> 00007f90fb5305c9 >> [ 1036.131763] RDX: 0000000000000000 RSI: 00007ffed16a44d0 RDI: >> 0000000000407818 >> [ 1036.132327] RBP: ffff88046c09ff10 R08: 0000000000000000 R09: >> 000000006562b026 >> [ 1036.132894] R10: 00007ffed16a4488 R11: 0000000000000202 R12: >> 00007ffed16a44d0 >> [ 1036.133462] R13: 0000000000407818 R14: 0000000000000000 R15: >> 0000000000000000 >> [ 1036.134032] FS: 00007f90fbe1b700(0000) GS:ffff88047fd80000(0000) >> knlGS:0000000000000000 >> [ 1036.134605] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 >> [ 1036.135178] CR2: 00007ffed16a44d0 CR3: 000000046a1a6000 CR4: >> 00000000003406e0 >> [ 1036.135762] I-pipe domain Linux >> [ 1036.136342] Stack: >> [ 1036.136916] 00000000ffffff9c 0000000000000010 0000000000000000 >> ffff880469581e80 >> [ 1036.137512] ffff88046c09fec0 ffffffff81089ec2 ffff88046c09fed0 >> ffffffff8105f365 >> [ 1036.138111] ffff88046c09ff38 ffffffff810fad4f ffff880469e45180 >> ffff88046c09ff58 >> [ 1036.138708] Call Trace: >> [ 1036.139303] [<ffffffff81089ec2>] ? call_rcu_sched+0x12/0x20 >> [ 1036.139908] [<ffffffff8105f365>] ? __put_cred+0x35/0x40 >> [ 1036.140506] [<ffffffff810fad4f>] ? SyS_faccessat+0x1bf/0x200 >> [ 1036.141105] [<ffffffffa01a8876>] lxrt_intercept_syscall+0xb6/0x180 >> [rtai_sched] >> [ 1036.141715] [<ffffffff810ab022>] __ipipe_notify_syscall+0x12/0x20 >> [ 1036.142321] [<ffffffff815a592c>] pipeline_syscall+0x9/0x16 >> [ 1036.142919] Code: e1 07 89 c8 c1 f9 1f f7 ea c1 fa 05 29 ca 48 63 f2 >> 31 d2 48 89 b3 68 11 00 00 e8 c7 68 00 00 48 89 83 58 11 00 00 e9 dd f4 ff >> ff <48> 8b 1e 8d 90 18 fc ff ff 83 fa 20 48 89 d9 0f 87 e2 04 00 00 >> [ 1036.144391] RIP [<ffffffffa01aa785>] rtai_lxrt_invoke+0xda5/0x1b30 >> [rtai_sched] >> [ 1036.145016] RSP <ffff88046c09fe90> >> [ 1036.145629] CR2: 00007ffed16a44d0 >> [ 1036.146237] ---[ end trace a7110ad5d5eae436 ]--- >> >> Thanks in advance. >> >> Vivian >> -- >> Vivian McPhail >> PhD Candidate >> Department of Physics >> University of Auckland >> >> >> >> _______________________________________________ >> Rtai mailing [email protected]://mail.rtai.org/cgi-bin/mailman/listinfo/rtai >> >> >> > > > -- > Vivian McPhail > PhD Candidate > Department of Physics > University of Auckland > Ph: +64 9 373 7599 <+64%209-373%207599> x73728 > > > -- Vivian McPhail PhD Candidate Department of Physics University of Auckland Ph: +64 9 373 7599 x73728 _______________________________________________ Rtai mailing list [email protected] https://mail.rtai.org/cgi-bin/mailman/listinfo/rtai