Re: general protection fault on RTAI 4.0

JB <[email protected]>
Newsgroups gmane.linux.real-time.rtai
Message-ID <[email protected]>
More info....this only shows up on the i5-3470 CPU.
I've tested it with some i3 processors and other quad core i5-4590's and 
some older E7500 core 2 duo's. All those work fine, but the rtai 
testsuite crashes on the i5-3470 within the first two iterations of output.

JB


On 3/18/2016 11:57, JB wrote:
> Hello again :)
>
> The reason I was attempting to get RTAI 5.0 test1 working is because I 
> ran into a problem using RTAI 4.0 on one particular CPU/motherboard 
> and I'm having a really hard time figuring out what the problem is. 
> Here is what I'm seeing with RTAI 4.0 on a 3.8.13 kernel which I've 
> been successfully using on other systems for months. I attached my 
> kernel config and rtai config.  Here is what I get when I try to run 
> the latency test:
>
> Mar 18 03:55:45 localhost kernel: [   91.508079]
> Mar 18 03:55:45 localhost kernel: [   91.508079] LXRT CHANGED MODE 
> (TRAP), PID = 1021, VEC = 13, SIGNO = 11.
> Mar 18 03:55:45 localhost kernel: [   91.508101] general protection 
> fault: 0000 [#1] PREEMPT SMP
> Mar 18 03:55:45 localhost kernel: [   91.508157] Modules linked in: 
> rtai_msg(OF) rtai_mbx(OF) rtai_sem(OF) rtai_sched(OF) rtai_malloc(POF) 
> rtai_hal(OF) snd_hda_codec_realtek snd_hda_intel snd_hda_codec 
> snd_hwdep snd_seq snd_seq_device snd_pcm e1000e iTCO_wdt 
> iTCO_vendor_support snd_page_alloc snd_timer snd mei tpm_tis tpm 
> coretemp crc32c_intel ghash_clmulni_intel microcode nfsd tpm_bios 
> pcspkr i2c_i801 lpc_ich shpchp mfd_core soundcore auth_rpcgss nfs_acl 
> lockd sunrpc i915 i2c_algo_bit drm_kms_helper drm video
> Mar 18 03:55:45 localhost kernel: [   91.508339] CPU 0
> Mar 18 03:55:45 localhost kernel: [   91.508348] Pid: 1021, comm: 
> latency Tainted: PF          O 3.8.13-ds #6 /DQ77MK
> Mar 18 03:55:45 localhost kernel: [   91.508374] RIP: 
> 0010:[<ffffffff8102b43b>]  [<ffffffff8102b43b>] 
> native_apic_msr_write+0x2b/0x30
> Mar 18 03:55:45 localhost kernel: [   91.508404] RSP: 
> 0018:ffff88006aeabde8  EFLAGS: 00010246
> Mar 18 03:55:45 localhost kernel: [   91.508420] RAX: 0000000002000000 
> RBX: 0000000000000001 RCX: 0000000000000831
> Mar 18 03:55:45 localhost kernel: [   91.508440] RDX: 0000000000000000 
> RSI: 0000000002000000 RDI: 0000000000000031
> Mar 18 03:55:45 localhost kernel: [   91.508460] RBP: ffff88006aeabde8 
> R08: 0000000000000001 R09: 0000000000000045
> Mar 18 03:55:45 localhost kernel: [   91.508481] R10: ffffffffa02b8d90 
> R11: 0000000000003246 R12: 0000000000000201
> Mar 18 03:55:45 localhost kernel: [   91.508501] R13: 0000000000051820 
> R14: ffffffffa02c4450 R15: fffffffffffffa1e
> Mar 18 03:55:45 localhost kernel: [   91.508522] FS: 
> 00007f5613b34740(0000) GS:ffff880100200000(0000) knlGS:0000000000000000
> Mar 18 03:55:45 localhost kernel: [   91.508545] CS:  0010 DS: 0000 
> ES: 0000 CR0: 0000000080050033
> Mar 18 03:55:45 localhost kernel: [   91.508562] CR2: 000000000042fad0 
> CR3: 000000006ae66000 CR4: 00000000001407f0
> Mar 18 03:55:45 localhost kernel: [   91.508582] DR0: 0000000000000000 
> DR1: 0000000000000000 DR2: 0000000000000000
> Mar 18 03:55:45 localhost kernel: [   91.508603] DR3: 0000000000000000 
> DR6: 00000000ffff0ff0 DR7: 0000000000000400
> Mar 18 03:55:45 localhost kernel: [   91.508623] I-pipe domain Linux
> Mar 18 03:55:45 localhost kernel: [   91.508633] Process latency (pid: 
> 1021, threadinfo ffff88006aea8000, task ffff88006b3d9770)
> Mar 18 03:55:45 localhost kernel: [   91.508657] Stack:
> Mar 18 03:55:45 localhost kernel: [   91.508664]  ffff88006aeabe18 
> ffffffffa02c3876 00007fff3e178bc0 0000000000051820
> Mar 18 03:55:45 localhost kernel: [   91.508690]  ffffc900046a1230 
> 00007fff3e178bc0 ffff88006aeabe58 ffffffffa02c45a1
> Mar 18 03:55:45 localhost kernel: [   91.508716]  00007fff3e178b90 
> 00007fff3e178bb8 0000000000000200 000000000000004b
> Mar 18 03:55:45 localhost kernel: [   91.508742] Call Trace:
> Mar 18 03:55:45 localhost kernel: [   91.508754] [<ffffffffa02c3876>] 
> mbx_signal.isra.4+0x1f6/0x290 [rtai_mbx]
> Mar 18 03:55:45 localhost kernel: [   91.508775] [<ffffffffa02c45a1>] 
> _rt_mbx_send_if+0x151/0x1f0 [rtai_mbx]
> Mar 18 03:55:45 localhost kernel: [   91.508798] [<ffffffffa02ad6a8>] 
> rtai_lxrt_invoke+0x108/0x1160 [rtai_sched]
> Mar 18 03:55:45 localhost kernel: [   91.508821] [<ffffffffa02acb95>] 
> lxrt_intercept_syscall+0x95/0x130 [rtai_sched]
> Mar 18 03:55:45 localhost kernel: [   91.508844] [<ffffffff810e01d8>] 
> __ipipe_notify_kevent+0x18/0x20
> Mar 18 03:55:45 localhost kernel: [   91.508863] [<ffffffff8102585a>] 
> __ipipe_syscall_root+0x3a/0xe0
> Mar 18 03:55:45 localhost kernel: [   91.508883] [<ffffffff812deada>] 
> __ipipe_syscall_root_thunk+0x35/0x67
> Mar 18 03:55:45 localhost kernel: [   91.508904] [<ffffffff815c7327>] 
> ? system_call_after_swapgs+0x54/0x6d
> Mar 18 03:55:45 localhost kernel: [   91.508923] Code: 55 81 ff e0 00 
> 00 00 48 89 e5 74 21 89 f8 83 e0 ef 83 f8 20 74 17 81 ff d0 00 00 00 
> 74 0f c1 ef 04 31 d2 89 f0 8d 8f 00 08 00 00 <0f> 30 5d c3 90 55 81 ff 
> e0 00 00 00 b8 ff ff ff ff 48 89 e5 74
> Mar 18 03:55:45 localhost kernel: [   91.509073] RIP 
> [<ffffffff8102b43b>] native_apic_msr_write+0x2b/0x30
> Mar 18 03:55:45 localhost kernel: [   91.509094]  RSP <ffff88006aeabde8>
> Mar 18 03:55:45 localhost kernel: [   91.530153] ---[ end trace 
> 4ad3f2f6dc4cb6a7 ]---
> Mar 18 03:55:45 localhost kernel:
> LXRT CHANGED MODE (TRAP), PID = 1021, VEC = 13, SIGNO = 11.
> Mar 18 03:55:45 localhost kernel: [   91.531685] LXRT releases PID 
> 1021 (ID: latency).
> Mar 18 03:55:45 localhost kernel: general protection fault: 0000 [#1] 
> PREEMPT SMP
> Mar 18 03:55:45 localhost kernel: Modules linked in: rtai_msg(OF) 
> rtai_mbx(OF) rtai_sem(OF) rtai_sched(OF) rtai_malloc(POF) rtai_hal(OF) 
> snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_seq 
> snd_seq_device snd_pcm e1000e iTCO_wdt iTCO_vendor_support 
> snd_page_alloc snd_timer snd mei tpm_tis tpm coretemp crc32c_intel 
> ghash_clmulni_intel microcode nfsd tpm_bios pcspkr i2c_i801 lpc_ich 
> shpchp mfd_core soundcore auth_rpcgss nfs_acl lockd sunrpc i915 
> i2c_algo_bit drm_kms_helper drm video
>
> ================================================================================ 
>
>
>
> Some of the CPUs we use are 4 cores but have 2 disabled so we can 
> maintain backward compatibility and this is from /proc/cpuinfo:
>
> processor       : 0
> vendor_id       : GenuineIntel
> cpu family      : 6
> model           : 58
> model name      : Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
> stepping        : 9
> microcode       : 0x1b
> cpu MHz         : 3192.803
> cache size      : 6144 KB
> physical id     : 0
> siblings        : 2
> core id         : 0
> cpu cores       : 2
> apicid          : 0
> initial apicid  : 0
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 13
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge 
> mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe 
> syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl 
> xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl 
> vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt 
> tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm arat epb xsaveopt 
> pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
> bogomips        : 6385.60
> clflush size    : 64
> cache_alignment : 64
> address sizes   : 36 bits physical, 48 bits virtual
> power management:
>
> processor       : 1
> vendor_id       : GenuineIntel
> cpu family      : 6
> model           : 58
> model name      : Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
> stepping        : 9
> microcode       : 0x1b
> cpu MHz         : 3192.803
> cache size      : 6144 KB
> physical id     : 0
> siblings        : 2
> core id         : 1
> cpu cores       : 2
> apicid          : 2
> initial apicid  : 2
> fpu             : yes
> fpu_exception   : yes
> cpuid level     : 13
> wp              : yes
> flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge 
> mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe 
> syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl 
> xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl 
> vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt 
> tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm arat epb xsaveopt 
> pln pts dtherm tpr_shadow vnmi flexpriority ept vpid fsgsbase smep erms
> bogomips        : 6385.60
> clflush size    : 64
> cache_alignment : 64
> address sizes   : 36 bits physical, 48 bits virtual
> power management:
> ======================================================================================= 
>
>
>
>
>
>
>
>
>

_______________________________________________
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.