Skip to contentSkip to conversation

Non-APIC setup broken for 2.4-SVN?

Xenomai-help Jan Kiszka 6 participants 31 messages Sep 25, 2007 – Oct 9, 2007 2 messages not in the archive

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

Hi,

to make it short has anyone or could anyone try latest SVN over kernel 2.6.20 (i-pipe for 2.6.22 is instable) _without_ LAPIC? It works for me, but exposes milliseconds of latencies. Same setup with LAPIC enabled is fine and obviously stable. Before digging into this (time is short anyway), I would like to exclude problems of my notebook hardware.

Thanks,
Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
#1 lore raw

A Dimarts 25 Setembre 2007 16:09, Jan Kiszka va escriure:

Quoted 4 lines

Hi,

to make it short has anyone or could anyone try latest SVN over kernel 2.6.20 (i-pipe for 2.6.22 is instable) _without_ LAPIC?

I'm running a 2.6.22 kernel patched with xenomai trunk (last week) and booting with noapic in the grub.

In the test, I got:

running: ./run -- -sh -T 120 -t0 # latency
*
*
* Type ^C to stop this application.
*
*
== Sampling period: 100 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...

RTT|  00:00:01  (periodic user-mode task, 100 us period, priority 99)
RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat worst
RTD|     -16.738|     -16.613|     -14.489|       0|     -16.738|     -14.489
RTD|     -16.726|     -16.602|      -9.150|       0|     -16.738|      -9.150
RTD|     -16.738|     -16.587|     -10.463|       0|     -16.738|      -9.150
RTD|     -16.731|     -16.602|     -11.780|       0|     -16.738|      -9.150
RTD|     -16.731|     -16.605|     -13.943|       0|     -16.738|      -9.150
RTD|     -16.733|     -16.586|     -10.669|       0|     -16.738|      -9.150
RTD|     -16.732|     -16.604|     -13.736|       0|     -16.738|      -9.150
RTD|     -16.740|     -16.603|     -10.243|       0|     -16.740|      -9.150
RTD|     -16.732|     -16.585|     -10.725|       0|     -16.740|      -9.150
RTD|     -16.727|     -16.601|     -13.796|       0|     -16.740|      -9.150
RTD|     -16.726|     -16.603|     -13.741|       0|     -16.740|      -9.150       
Quoted 4 lines

It works for me,
but exposes milliseconds of latencies. Same setup with LAPIC enabled is fine and obviously stable. Before digging into this (time is short anyway), I would like to exclude problems of my notebook hardware.

I cannot run it with lapic because the system hung.

Regards,

Leo

#2 lore raw
In reply to Jan Kiszka
Quoted 8 lines · Jan Kiszka

Hi,

to make it short has anyone or could anyone try latest SVN over kernel 2.6.20 (i-pipe for 2.6.22 is instable) _without_ LAPIC? It works for me, but exposes milliseconds of latencies. Same setup with LAPIC enabled is fine and obviously stable. Before digging into this (time is short anyway), I would like to exclude problems of my notebook hardware.

Not confirmed here. Everything looks ok.

Quoted 3 lines

Thanks,
Jan

Signature · 1 line
Philippe.
author
#3 lore raw
Quoted 7 lines · Philippe Gerum
Quoted 4 lines · Jan Kiszka

Hi,

to make it short has anyone or could anyone try latest SVN over kernel 2.6.20 (i-pipe for 2.6.22 is instable) _without_ LAPIC? It works for me, but exposes milliseconds of latencies. Same setup with LAPIC enabled is fine and obviously stable. Before digging into this (time is short anyway), I would like to exclude problems of my notebook hardware.

Not confirmed here. Everything looks ok.

Yes, I found a second box working fine with a comparable (though not identical) config. I suspect some hw issue of my notebook now, but I will try to look into this a bit deeper once time permits.

More important is to understand and fix the consistent 2.6.22 issues I see. Only works in qemu for me, all real i386 boxes lock up sooner or later. :-/

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
author
#4 lore raw
Quoted 10 lines · Jan Kiszka
Quoted 9 lines · Philippe Gerum
Quoted 8 lines · Jan Kiszka

Hi,

to make it short has anyone or could anyone try latest SVN over kernel 2.6.20 (i-pipe for 2.6.22 is instable) _without_ LAPIC? It works for me, but exposes milliseconds of latencies. Same setup with LAPIC enabled is fine and obviously stable. Before digging into this (time is short anyway), I would like to exclude problems of my notebook hardware.

Quoted 5 lines
Quoted 1 line

Not confirmed here. Everything looks ok.

Yes, I found a second box working fine with a comparable (though not identical) config. I suspect some hw issue of my notebook now, but I will try to look into this a bit deeper once time permits.

It was a correlation between trying to use the PIT while Linux fiddled with the HPET (when HPET is in use, the PIT cannot be programmed). See my attached warning patch which may prevent others from pulling hairs.

Quoted 3 lines

More important is to understand and fix the consistent 2.6.22 issues I see. Only works in qemu for me, all real i386 boxes lock up sooner or later. :-/

I'm on this. Multiple bugs are involved, at least one of them is visible already with vanilla on my work notebook. Another one is related to Xenomai not dealing with the lapic device being in CLOCK_EVT_MODE_SHUTDOWN whenever the NMI watchdog is in use. And a third one only gives me "Detected illicit call from domain Xenomai" before the box reboots. :(

Jan

scripts/Kconfig.frag +6 -1
Index: xenomai/scripts/Kconfig.frag
===================================================================
@@ -11,8 +11,13 @@ comment "NOTE: Xenomai conflicts with PC
 comment "(menu Device Drivers/Input device support/Miscellaneous devices)"
 	depends on !X86_TSC && X86 && INPUT_PCSPKR
 
+comment "NOTE: Xenomai conflicts with HPET Timer support."
+	depends on !X86_LOCAL_APIC && X86 && HPET_TIMER
+comment "(menu Processor type and features/HPET Timer Support)"
+	depends on !X86_LOCAL_APIC && X86 && HPET_TIMER
+
 config XENOMAI
-	depends on (X86_TSC || !X86 || !INPUT_PCSPKR)
+	depends on ((X86_TSC || !X86 || !INPUT_PCSPKR) && (!HPET_TIMER || !X86 || X86_LOCAL_APIC))
 	bool "Xenomai"
 	default y
         select IPIPE
#5 lore raw
Quoted 13 lines · Jan Kiszka
Quoted 12 lines · Jan Kiszka
Quoted 10 lines · Philippe Gerum
Quoted 8 lines · Jan Kiszka

Hi,

to make it short has anyone or could anyone try latest SVN over kernel 2.6.20 (i-pipe for 2.6.22 is instable) _without_ LAPIC? It works for me, but exposes milliseconds of latencies. Same setup with LAPIC enabled is fine and obviously stable. Before digging into this (time is short anyway), I would like to exclude problems of my notebook hardware.

Not confirmed here. Everything looks ok.

Quoted 8 lines
Quoted 3 lines

Yes, I found a second box working fine with a comparable (though not identical) config. I suspect some hw issue of my notebook now, but I will try to look into this a bit deeper once time permits.

It was a correlation between trying to use the PIT while Linux fiddled with the HPET (when HPET is in use, the PIT cannot be programmed). See my attached warning patch which may prevent others from pulling hairs.

Yes, this one looks better than the previous attempt to prevent HPET +Xenomai globally which would create unwanted situations with x86_64 IIRC. I'll test this, and will probably merge.

Quoted 6 lines
Quoted 3 lines

More important is to understand and fix the consistent 2.6.22 issues I see. Only works in qemu for me, all real i386 boxes lock up sooner or later. :-/

I'm on this. Multiple bugs are involved, at least one of them is visible already with vanilla on my work notebook.

Do you work with 2.6.22 baseline, or the latest stable update?

Quoted 3 lines

Another one is related to
Xenomai not dealing with the lapic device being in CLOCK_EVT_MODE_SHUTDOWN whenever the NMI watchdog is in use.

Btw, I have a patch for the latest issue we talked about regarding kernel-disabled LAPIC. It changes the generic inner interface a bit for other archs too, so I will commit this asap.

Quoted 3 lines

And a third
one only gives me "Detected illicit call from domain Xenomai" before the box reboots. :(

Grmff... Do you run with your smp_processor_id() instrumentation in?

Quoted 2 lines

Jan

Signature · 1 line
Philippe.
author
#6 lore raw
Quoted 16 lines · Philippe Gerum
Quoted 15 lines · Jan Kiszka
Quoted 14 lines · Jan Kiszka
Quoted 10 lines · Philippe Gerum
Quoted 8 lines · Jan Kiszka

Hi,

to make it short has anyone or could anyone try latest SVN over kernel 2.6.20 (i-pipe for 2.6.22 is instable) _without_ LAPIC? It works for me, but exposes milliseconds of latencies. Same setup with LAPIC enabled is fine and obviously stable. Before digging into this (time is short anyway), I would like to exclude problems of my notebook hardware.

Not confirmed here. Everything looks ok.

Yes, I found a second box working fine with a comparable (though not identical) config. I suspect some hw issue of my notebook now, but I will try to look into this a bit deeper once time permits.

Quoted 8 lines
Quoted 4 lines

It was a correlation between trying to use the PIT while Linux fiddled with the HPET (when HPET is in use, the PIT cannot be programmed). See my attached warning patch which may prevent others from pulling hairs.

Yes, this one looks better than the previous attempt to prevent HPET +Xenomai globally which would create unwanted situations with x86_64 IIRC. I'll test this, and will probably merge.

Great.

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

More important is to understand and fix the consistent 2.6.22 issues I see. Only works in qemu for me, all real i386 boxes lock up sooner or later. :-/

I'm on this. Multiple bugs are involved, at least one of them is visible already with vanilla on my work notebook.

Do you work with 2.6.22 baseline, or the latest stable update?

2.6.22.7 and .23-rc8. Both hang hard when I play with the backlight keys of my Fujitsu-Siemens Lifebook, while this works fine (with and without Xenomai) under 2.6.20.20. Weird.

Quoted 8 lines
Quoted 4 lines

Another one is related to
Xenomai not dealing with the lapic device being in CLOCK_EVT_MODE_SHUTDOWN whenever the NMI watchdog is in use.

Btw, I have a patch for the latest issue we talked about regarding kernel-disabled LAPIC. It changes the generic inner interface a bit for other archs too, so I will commit this asap.

Looking forward!

Quoted 6 lines
Quoted 4 lines

And a third
one only gives me "Detected illicit call from domain Xenomai" before the box reboots. :(

Grmff... Do you run with your smp_processor_id() instrumentation in?

Yes, but I suspect this is just a symptom of some severe memory corruption that (also?) hits I-pipe data structures. I just put in some different instrumentation, and that warning is gone, the box just hangs hard at a different point. Very unfriendly.

Jan

author
#7 lore raw

[Xenomai-core] crashing 2.6.22 (was: [Xenomai-help] Non-APIC setup broken for 2.4-SVN?)

Quoted 2 lines · Jan Kiszka
Quoted 1 line · Philippe Gerum

On Sun, 2007-09-30 at 12:22 +0200, Jan Kiszka wrote:

...

Quoted 9 lines
Quoted 4 lines
Quoted 3 lines

And a third
one only gives me "Detected illicit call from domain Xenomai" before the box reboots. :(

Grmff... Do you run with your smp_processor_id() instrumentation in?

Yes, but I suspect this is just a symptom of some severe memory corruption that (also?) hits I-pipe data structures. I just put in some different instrumentation, and that warning is gone, the box just hangs hard at a different point. Very unfriendly.

Hah! Got some crash log by hacking a raw printk-to-uart:

[...]
<6>Xenomai: starting RTDM services.
<6>NET: Registered protocol family 10
<6>lo: Disabled Privacy Extensions <6>ADDRCONF(NETDEV_UP): eth0: link is not ready <3>I-pipe: Detected illicit call from domain 'Xenomai'
<3> into a service reserved for domain 'Linux' and below.

       f3a6bc18 00000000 00000000 c05dad6c f3a6bc3c c0105fc3 c03513c7 c05dc100
       00000009 f3a6bc54 c01479cb c03592f8 c0357ae2 c035e069 f3a6bc88 f3a6bc70
       c0127224 c0111df8 00000000 f3a6bd74 00000000 f3a6bd74 f3a6bc80 c012727f
Call Trace:
 [<c010520f>] show_trace_log_lvl+0x1f/0x40
 [<c01052e1>] show_stack_log_lvl+0xb1/0xe0
 [<c0105fc3>] show_stack+0x33/0x40
 [<c01479cb>] ipipe_check_context+0x7b/0x90
 [<c0127224>] __atomic_notifier_call_chain+0x24/0x60
 [<c012727f>] atomic_notifier_call_chain+0x1f/0x30
 [<c0131e02>] notify_die+0x32/0x40
 [<c0105d29>] do_invalid_op+0x59/0xa0
 [<c0111d0b>] __ipipe_handle_exception+0x7b/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c
 [<c0111d13>] __ipipe_handle_exception+0x83/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c
 [<c01117df>] __ipipe_handle_irq+0x4f/0x140
 [<c0104c5e>] ipipe_ipi3+0x26/0x40
 [<c0111df8>] mcount+0x24/0x29
 [<c0115c49>] kunmap_atomic+0x9/0x60
 [<c015a040>] __handle_mm_fault+0x210/0x910
 [<c0114dac>] do_page_fault+0x1dc/0x5f0
 [<c0111d0b>] __ipipe_handle_exception+0x7b/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c
 =======================
I-pipe tracer log (30 points):
    #*func                    0 ipipe_trace_panic_freeze+0x8 (ipipe_check_context+0x40)
    #*func                    0 ipipe_check_context+0xc (__atomic_notifier_call_chain+0x24)
    #*func                    0 __atomic_notifier_call_chain+0x14 (atomic_notifier_call_chain+0x1f)
    #*func                    0 atomic_notifier_call_chain+0xb (notify_die+0x32)
    #*func                    0 notify_die+0xb (do_invalid_op+0x59)
    #*func                    0 do_invalid_op+0x10 (__ipipe_handle_exception+0x7b)
    #*func                   -1 __ipipe_handle_exception+0xe (error_code+0x6f)
    #*func                   -1 __ipipe_restore_root+0x8 (__ipipe_handle_exception+0x83)
 |  #*func                   -2 do_page_fault+0xe (__ipipe_handle_exception+0x7b)
 |  # func                   -2 __ipipe_handle_exception+0xe (error_code+0x6f)
 |   +func                   -3 __ipipe_dispatch_wired+0x16 (__ipipe_handle_irq+0x4f)
 |   +func                   -3 __ipipe_ack_apic+0x8 (__ipipe_handle_irq+0x8f)
 |   +func                   -3 __ipipe_handle_irq+0x14 (ipipe_ipi3+0x26)
     +func                   -3 kunmap_atomic+0x9 (__handle_mm_fault+0x210)
     +func                   -3 ipipe_check_context+0xc (__handle_mm_fault+0x204)
     +func                   -4 page_add_file_rmap+0x8 (__handle_mm_fault+0x586)
     +func                   -4 ipipe_check_context+0xc (__handle_mm_fault+0x196)
     +func                   -4 kmap_atomic_prot+0xb (kmap_atomic+0x13)
     +func                   -4 kmap_atomic+0x8 (__handle_mm_fault+0x186)
     +func                   -4 mark_page_accessed+0x9 (filemap_nopage+0x13c)
     +func                   -4 ipipe_check_context+0xc (find_get_page+0x65)
     #func                   -4 __ipipe_unstall_root+0x8 (find_get_page+0x5b)
     #func                   -4 radix_tree_lookup+0x16 (find_get_page+0x36)
     #func                   -4 ipipe_check_context+0xc (find_get_page+0x2d)
     +func                   -5 ipipe_check_context+0xc (find_get_page+0x18)
     +func                   -5 find_get_page+0xa (filemap_nopage+0x1de)
     +func                   -5 filemap_nopage+0xe (__handle_mm_fault+0x11f)
     +func                   -5 ipipe_check_context+0xc (kunmap_atomic+0x50)
     +func                   -5 kunmap_atomic+0x9 (__handle_mm_fault+0xcc)
     +func                   -5 kmap_atomic_prot+0xb (kmap_atomic+0x13)

<0>PANIC: double fault, gdt at c0392000 [255 bytes] <0>double fault, tss at c038d7e0
<0>eip = c0127266, esp = dfec1ff8
<0>eax = c05dad6c, ebx = dfec20f4, ecx = dfec2008, edx = 00000009 <0>esi = 00000000, edi = dfec20f4

Double fault, explains why it is so slippery... And the crash looks a bit like that backtrace I once posted for an earlier ipipe version.

Time for a break, will dig deeper later - now that I have the tools :)

Jan

#8 lore raw

Re: [Xenomai-core] crashing 2.6.22 (was: [Xenomai-help] Non-APIC setup broken for 2.4-SVN?)

Quoted 23 lines · Jan Kiszka
Quoted 2 lines · Jan Kiszka
Quoted 1 line · Philippe Gerum

On Sun, 2007-09-30 at 12:22 +0200, Jan Kiszka wrote:

...

Quoted 9 lines
Quoted 4 lines
Quoted 3 lines

And a third
one only gives me "Detected illicit call from domain Xenomai" before the box reboots. :(

Grmff... Do you run with your smp_processor_id() instrumentation in?

Yes, but I suspect this is just a symptom of some severe memory corruption that (also?) hits I-pipe data structures. I just put in some different instrumentation, and that warning is gone, the box just hangs hard at a different point. Very unfriendly.

Hah! Got some crash log by hacking a raw printk-to-uart:

[...]
<6>Xenomai: starting RTDM services.
<6>NET: Registered protocol family 10
<6>lo: Disabled Privacy Extensions <6>ADDRCONF(NETDEV_UP): eth0: link is not ready <3>I-pipe: Detected illicit call from domain 'Xenomai'
<3> into a service reserved for domain 'Linux' and below.

Quoted 14 lines
       f3a6bc18 00000000 00000000 c05dad6c f3a6bc3c c0105fc3 c03513c7 c05dc100
       00000009 f3a6bc54 c01479cb c03592f8 c0357ae2 c035e069 f3a6bc88 f3a6bc70
       c0127224 c0111df8 00000000 f3a6bd74 00000000 f3a6bd74 f3a6bc80 c012727f
Call Trace:
 [<c010520f>] show_trace_log_lvl+0x1f/0x40
 [<c01052e1>] show_stack_log_lvl+0xb1/0xe0
 [<c0105fc3>] show_stack+0x33/0x40
 [<c01479cb>] ipipe_check_context+0x7b/0x90
 [<c0127224>] __atomic_notifier_call_chain+0x24/0x60
 [<c012727f>] atomic_notifier_call_chain+0x1f/0x30
 [<c0131e02>] notify_die+0x32/0x40
 [<c0105d29>] do_invalid_op+0x59/0xa0
 [<c0111d0b>] __ipipe_handle_exception+0x7b/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

Wow. Why that?

Quoted 2 lines
 [<c0111d13>] __ipipe_handle_exception+0x83/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

And this? We should not get any exception over an IPI3 handler. I guess the double fault may be explained by this root cause.

Quoted 2 lines
 [<c01117df>] __ipipe_handle_irq+0x4f/0x140
 [<c0104c5e>] ipipe_ipi3+0x26/0x40

Our LAPIC timer vector. Are you running full modular or statically btw?

Quoted 51 lines
 [<c0111df8>] mcount+0x24/0x29
 [<c0115c49>] kunmap_atomic+0x9/0x60
 [<c015a040>] __handle_mm_fault+0x210/0x910
 [<c0114dac>] do_page_fault+0x1dc/0x5f0
 [<c0111d0b>] __ipipe_handle_exception+0x7b/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c
 =======================
I-pipe tracer log (30 points):
    #*func                    0 ipipe_trace_panic_freeze+0x8 (ipipe_check_context+0x40)
    #*func                    0 ipipe_check_context+0xc (__atomic_notifier_call_chain+0x24)
    #*func                    0 __atomic_notifier_call_chain+0x14 (atomic_notifier_call_chain+0x1f)
    #*func                    0 atomic_notifier_call_chain+0xb (notify_die+0x32)
    #*func                    0 notify_die+0xb (do_invalid_op+0x59)
    #*func                    0 do_invalid_op+0x10 (__ipipe_handle_exception+0x7b)
    #*func                   -1 __ipipe_handle_exception+0xe (error_code+0x6f)
    #*func                   -1 __ipipe_restore_root+0x8 (__ipipe_handle_exception+0x83)
 |  #*func                   -2 do_page_fault+0xe (__ipipe_handle_exception+0x7b)
 |  # func                   -2 __ipipe_handle_exception+0xe (error_code+0x6f)
 |   +func                   -3 __ipipe_dispatch_wired+0x16 (__ipipe_handle_irq+0x4f)
 |   +func                   -3 __ipipe_ack_apic+0x8 (__ipipe_handle_irq+0x8f)
 |   +func                   -3 __ipipe_handle_irq+0x14 (ipipe_ipi3+0x26)
     +func                   -3 kunmap_atomic+0x9 (__handle_mm_fault+0x210)
     +func                   -3 ipipe_check_context+0xc (__handle_mm_fault+0x204)
     +func                   -4 page_add_file_rmap+0x8 (__handle_mm_fault+0x586)
     +func                   -4 ipipe_check_context+0xc (__handle_mm_fault+0x196)
     +func                   -4 kmap_atomic_prot+0xb (kmap_atomic+0x13)
     +func                   -4 kmap_atomic+0x8 (__handle_mm_fault+0x186)
     +func                   -4 mark_page_accessed+0x9 (filemap_nopage+0x13c)
     +func                   -4 ipipe_check_context+0xc (find_get_page+0x65)
     #func                   -4 __ipipe_unstall_root+0x8 (find_get_page+0x5b)
     #func                   -4 radix_tree_lookup+0x16 (find_get_page+0x36)
     #func                   -4 ipipe_check_context+0xc (find_get_page+0x2d)
     +func                   -5 ipipe_check_context+0xc (find_get_page+0x18)
     +func                   -5 find_get_page+0xa (filemap_nopage+0x1de)
     +func                   -5 filemap_nopage+0xe (__handle_mm_fault+0x11f)
     +func                   -5 ipipe_check_context+0xc (kunmap_atomic+0x50)
     +func                   -5 kunmap_atomic+0x9 (__handle_mm_fault+0xcc)
     +func                   -5 kmap_atomic_prot+0xb (kmap_atomic+0x13)

<0>PANIC: double fault, gdt at c0392000 [255 bytes] <0>double fault, tss at c038d7e0
<0>eip = c0127266, esp = dfec1ff8
<0>eax = c05dad6c, ebx = dfec20f4, ecx = dfec2008, edx = 00000009 <0>esi = 00000000, edi = dfec20f4

Double fault, explains why it is so slippery... And the crash looks a bit like that backtrace I once posted for an earlier ipipe version.

Time for a break, will dig deeper later - now that I have the tools :)

Jan

Signature · 1 line
Philippe.
author
#9 lore raw

Re: [Xenomai-core] crashing 2.6.22

Quoted 42 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
Quoted 2 lines · Jan Kiszka
Quoted 1 line · Philippe Gerum

On Sun, 2007-09-30 at 12:22 +0200, Jan Kiszka wrote:

...

Quoted 8 lines
Quoted 4 lines
Quoted 3 lines

And a third
one only gives me "Detected illicit call from domain Xenomai" before the box reboots. :(

Grmff... Do you run with your smp_processor_id() instrumentation in?

Yes, but I suspect this is just a symptom of some severe memory corruption that (also?) hits I-pipe data structures. I just put in some different instrumentation, and that warning is gone, the box just hangs hard at a different point. Very unfriendly.

Hah! Got some crash log by hacking a raw printk-to-uart:

[...]
<6>Xenomai: starting RTDM services.
<6>NET: Registered protocol family 10
<6>lo: Disabled Privacy Extensions <6>ADDRCONF(NETDEV_UP): eth0: link is not ready <3>I-pipe: Detected illicit call from domain 'Xenomai'
<3> into a service reserved for domain 'Linux' and below.

Quoted 14 lines
       f3a6bc18 00000000 00000000 c05dad6c f3a6bc3c c0105fc3 c03513c7 c05dc100
       00000009 f3a6bc54 c01479cb c03592f8 c0357ae2 c035e069 f3a6bc88 f3a6bc70
       c0127224 c0111df8 00000000 f3a6bd74 00000000 f3a6bd74 f3a6bc80 c012727f
Call Trace:
 [<c010520f>] show_trace_log_lvl+0x1f/0x40
 [<c01052e1>] show_stack_log_lvl+0xb1/0xe0
 [<c0105fc3>] show_stack+0x33/0x40
 [<c01479cb>] ipipe_check_context+0x7b/0x90
 [<c0127224>] __atomic_notifier_call_chain+0x24/0x60
 [<c012727f>] atomic_notifier_call_chain+0x1f/0x30
 [<c0131e02>] notify_die+0x32/0x40
 [<c0105d29>] do_invalid_op+0x59/0xa0
 [<c0111d0b>] __ipipe_handle_exception+0x7b/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

Wow. Why that?

Quoted 2 lines
 [<c0111d13>] __ipipe_handle_exception+0x83/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c
Quoted 7 lines

And this? We should not get any exception over an IPI3 handler. I guess the double fault may be explained by this root cause.

Quoted 2 lines
 [<c01117df>] __ipipe_handle_irq+0x4f/0x140
 [<c0104c5e>] ipipe_ipi3+0x26/0x40

Our LAPIC timer vector. Are you running full modular or statically btw?

Fully modular. Compiling the nucleus in makes the lock-up move to another, once again invisible spot.

I nailed down the fault address in the scenario above. It's in the nucleus module, at the first byte of xntimer_tick_aperiodic. Are we loosing module text pages over the time? This functions must have been executed before as the timer was armed while I collected the /proc/modules and then triggered the crash.

Jan

#10 lore raw

Re: [Xenomai-core] crashing 2.6.22

Quoted 54 lines · Jan Kiszka
Quoted 42 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
Quoted 2 lines · Jan Kiszka
Quoted 1 line · Philippe Gerum

On Sun, 2007-09-30 at 12:22 +0200, Jan Kiszka wrote:

...

Quoted 8 lines
Quoted 4 lines
Quoted 3 lines

And a third
one only gives me "Detected illicit call from domain Xenomai" before the box reboots. :(

Grmff... Do you run with your smp_processor_id() instrumentation in?

Yes, but I suspect this is just a symptom of some severe memory corruption that (also?) hits I-pipe data structures. I just put in some different instrumentation, and that warning is gone, the box just hangs hard at a different point. Very unfriendly.

Hah! Got some crash log by hacking a raw printk-to-uart:

[...]
<6>Xenomai: starting RTDM services.
<6>NET: Registered protocol family 10
<6>lo: Disabled Privacy Extensions <6>ADDRCONF(NETDEV_UP): eth0: link is not ready <3>I-pipe: Detected illicit call from domain 'Xenomai'
<3> into a service reserved for domain 'Linux' and below.

Quoted 14 lines
       f3a6bc18 00000000 00000000 c05dad6c f3a6bc3c c0105fc3 c03513c7 c05dc100
       00000009 f3a6bc54 c01479cb c03592f8 c0357ae2 c035e069 f3a6bc88 f3a6bc70
       c0127224 c0111df8 00000000 f3a6bd74 00000000 f3a6bd74 f3a6bc80 c012727f
Call Trace:
 [<c010520f>] show_trace_log_lvl+0x1f/0x40
 [<c01052e1>] show_stack_log_lvl+0xb1/0xe0
 [<c0105fc3>] show_stack+0x33/0x40
 [<c01479cb>] ipipe_check_context+0x7b/0x90
 [<c0127224>] __atomic_notifier_call_chain+0x24/0x60
 [<c012727f>] atomic_notifier_call_chain+0x1f/0x30
 [<c0131e02>] notify_die+0x32/0x40
 [<c0105d29>] do_invalid_op+0x59/0xa0
 [<c0111d0b>] __ipipe_handle_exception+0x7b/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

Wow. Why that?

Quoted 2 lines
 [<c0111d13>] __ipipe_handle_exception+0x83/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c
Quoted 7 lines

And this? We should not get any exception over an IPI3 handler. I guess the double fault may be explained by this root cause.

Quoted 2 lines
 [<c01117df>] __ipipe_handle_irq+0x4f/0x140
 [<c0104c5e>] ipipe_ipi3+0x26/0x40

Our LAPIC timer vector. Are you running full modular or statically btw?

Fully modular. Compiling the nucleus in makes the lock-up move to another, once again invisible spot.

Quoted 6 lines

I nailed down the fault address in the scenario above. It's in the nucleus module, at the first byte of xntimer_tick_aperiodic. Are we loosing module text pages over the time?
This functions must have been
executed before as the timer was armed while I collected the /proc/modules and then triggered the crash.

The timer is routed when the first skin binds to the nucleus. Modules are unmapped while the box goes down for reboot, so maybe the timer is not released in the LAPIC case upon such event. IIRC, I fixed a similar issue in the PIT case recently, where rthal_timer_release() would not call ipipe_release_tickdev(). It would be interesting to know whether rthal_timer_release() is ever called at all upon shutdown. If not, the kernel event notifier is likely going to be our friend soon...

Quoted 3 lines

Jan

Signature · 1 line
Philippe.
#11 lore raw

Re: [Xenomai-core] crashing 2.6.22

In reply to Jan Kiszka
Quoted 51 lines · Jan Kiszka
Quoted 42 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
Quoted 2 lines · Jan Kiszka
Quoted 1 line · Philippe Gerum

On Sun, 2007-09-30 at 12:22 +0200, Jan Kiszka wrote:

...

Quoted 8 lines
Quoted 4 lines
Quoted 3 lines

And a third
one only gives me "Detected illicit call from domain Xenomai" before the box reboots. :(

Grmff... Do you run with your smp_processor_id() instrumentation in?

Yes, but I suspect this is just a symptom of some severe memory corruption that (also?) hits I-pipe data structures. I just put in some different instrumentation, and that warning is gone, the box just hangs hard at a different point. Very unfriendly.

Hah! Got some crash log by hacking a raw printk-to-uart:

[...]
<6>Xenomai: starting RTDM services.
<6>NET: Registered protocol family 10
<6>lo: Disabled Privacy Extensions <6>ADDRCONF(NETDEV_UP): eth0: link is not ready <3>I-pipe: Detected illicit call from domain 'Xenomai'
<3> into a service reserved for domain 'Linux' and below.

Quoted 14 lines
       f3a6bc18 00000000 00000000 c05dad6c f3a6bc3c c0105fc3 c03513c7 c05dc100
       00000009 f3a6bc54 c01479cb c03592f8 c0357ae2 c035e069 f3a6bc88 f3a6bc70
       c0127224 c0111df8 00000000 f3a6bd74 00000000 f3a6bd74 f3a6bc80 c012727f
Call Trace:
 [<c010520f>] show_trace_log_lvl+0x1f/0x40
 [<c01052e1>] show_stack_log_lvl+0xb1/0xe0
 [<c0105fc3>] show_stack+0x33/0x40
 [<c01479cb>] ipipe_check_context+0x7b/0x90
 [<c0127224>] __atomic_notifier_call_chain+0x24/0x60
 [<c012727f>] atomic_notifier_call_chain+0x1f/0x30
 [<c0131e02>] notify_die+0x32/0x40
 [<c0105d29>] do_invalid_op+0x59/0xa0
 [<c0111d0b>] __ipipe_handle_exception+0x7b/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

Wow. Why that?

Quoted 2 lines
 [<c0111d13>] __ipipe_handle_exception+0x83/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c
Quoted 7 lines

And this? We should not get any exception over an IPI3 handler. I guess the double fault may be explained by this root cause.

Quoted 2 lines
 [<c01117df>] __ipipe_handle_irq+0x4f/0x140
 [<c0104c5e>] ipipe_ipi3+0x26/0x40

Our LAPIC timer vector. Are you running full modular or statically btw?

Quoted 8 lines

Fully modular. Compiling the nucleus in makes the lock-up move to another, once again invisible spot.

I nailed down the fault address in the scenario above. It's in the nucleus module, at the first byte of xntimer_tick_aperiodic. Are we loosing module text pages over the time? This functions must have been executed before as the timer was armed while I collected the /proc/modules and then triggered the crash.

There is a pending issue about vmalloced areas, which I completely forgot:
https://mail.gna.org/public/xenomai-core/2007-02/msg00138.html

Signature · 1 line
                                               Gilles Chanteperdrix
author
#12 lore raw

Re: [Xenomai-core] crashing 2.6.22

Quoted 51 lines · Gilles Chanteperdrix
Quoted 50 lines · Jan Kiszka
Quoted 38 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
Quoted 2 lines · Jan Kiszka
Quoted 1 line · Philippe Gerum

On Sun, 2007-09-30 at 12:22 +0200, Jan Kiszka wrote:

...

Quoted 8 lines
Quoted 4 lines
Quoted 3 lines

And a third
one only gives me "Detected illicit call from domain Xenomai" before the box reboots. :(

Grmff... Do you run with your smp_processor_id() instrumentation in?

Yes, but I suspect this is just a symptom of some severe memory corruption that (also?) hits I-pipe data structures. I just put in some different instrumentation, and that warning is gone, the box just hangs hard at a different point. Very unfriendly.

Hah! Got some crash log by hacking a raw printk-to-uart:

[...]
<6>Xenomai: starting RTDM services.
<6>NET: Registered protocol family 10
<6>lo: Disabled Privacy Extensions <6>ADDRCONF(NETDEV_UP): eth0: link is not ready <3>I-pipe: Detected illicit call from domain 'Xenomai'
<3> into a service reserved for domain 'Linux' and below.

Quoted 14 lines
       f3a6bc18 00000000 00000000 c05dad6c f3a6bc3c c0105fc3 c03513c7 c05dc100
       00000009 f3a6bc54 c01479cb c03592f8 c0357ae2 c035e069 f3a6bc88 f3a6bc70
       c0127224 c0111df8 00000000 f3a6bd74 00000000 f3a6bd74 f3a6bc80 c012727f
Call Trace:
 [<c010520f>] show_trace_log_lvl+0x1f/0x40
 [<c01052e1>] show_stack_log_lvl+0xb1/0xe0
 [<c0105fc3>] show_stack+0x33/0x40
 [<c01479cb>] ipipe_check_context+0x7b/0x90
 [<c0127224>] __atomic_notifier_call_chain+0x24/0x60
 [<c012727f>] atomic_notifier_call_chain+0x1f/0x30
 [<c0131e02>] notify_die+0x32/0x40
 [<c0105d29>] do_invalid_op+0x59/0xa0
 [<c0111d0b>] __ipipe_handle_exception+0x7b/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

Wow. Why that?

Quoted 8 lines
Quoted 2 lines
 [<c0111d13>] __ipipe_handle_exception+0x83/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

And this? We should not get any exception over an IPI3 handler. I guess the double fault may be explained by this root cause.

Quoted 2 lines
 [<c01117df>] __ipipe_handle_irq+0x4f/0x140
 [<c0104c5e>] ipipe_ipi3+0x26/0x40

Our LAPIC timer vector. Are you running full modular or statically btw?

Fully modular. Compiling the nucleus in makes the lock-up move to another, once again invisible spot.

Quoted 9 lines
Quoted 5 lines

I nailed down the fault address in the scenario above. It's in the nucleus module, at the first byte of xntimer_tick_aperiodic. Are we loosing module text pages over the time? This functions must have been executed before as the timer was armed while I collected the /proc/modules and then triggered the crash.

There is a pending issue about vmalloced areas, which I completely forgot:
https://mail.gna.org/public/xenomai-core/2007-02/msg00138.html

Would this explain my problems which are already visible without any Xenomai application running (and also without unloading the modules again, to answer Philippe's question)? Hell, I would love to find the reason here, debugging this stuff stopped being fun a long time ago...

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
#13 lore raw

Re: [Xenomai-core] crashing 2.6.22

Quoted 58 lines · Jan Kiszka
Quoted 57 lines · Gilles Chanteperdrix
Quoted 55 lines · Jan Kiszka
Quoted 38 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
Quoted 2 lines · Jan Kiszka
Quoted 1 line · Philippe Gerum

On Sun, 2007-09-30 at 12:22 +0200, Jan Kiszka wrote:

...

Quoted 8 lines
Quoted 4 lines
Quoted 3 lines

And a third
one only gives me "Detected illicit call from domain Xenomai" before the box reboots. :(

Grmff... Do you run with your smp_processor_id() instrumentation in?

Yes, but I suspect this is just a symptom of some severe memory corruption that (also?) hits I-pipe data structures. I just put in some different instrumentation, and that warning is gone, the box just hangs hard at a different point. Very unfriendly.

Hah! Got some crash log by hacking a raw printk-to-uart:

[...]
<6>Xenomai: starting RTDM services.
<6>NET: Registered protocol family 10
<6>lo: Disabled Privacy Extensions <6>ADDRCONF(NETDEV_UP): eth0: link is not ready <3>I-pipe: Detected illicit call from domain 'Xenomai'
<3> into a service reserved for domain 'Linux' and below.

Quoted 14 lines
       f3a6bc18 00000000 00000000 c05dad6c f3a6bc3c c0105fc3 c03513c7 c05dc100
       00000009 f3a6bc54 c01479cb c03592f8 c0357ae2 c035e069 f3a6bc88 f3a6bc70
       c0127224 c0111df8 00000000 f3a6bd74 00000000 f3a6bd74 f3a6bc80 c012727f
Call Trace:
 [<c010520f>] show_trace_log_lvl+0x1f/0x40
 [<c01052e1>] show_stack_log_lvl+0xb1/0xe0
 [<c0105fc3>] show_stack+0x33/0x40
 [<c01479cb>] ipipe_check_context+0x7b/0x90
 [<c0127224>] __atomic_notifier_call_chain+0x24/0x60
 [<c012727f>] atomic_notifier_call_chain+0x1f/0x30
 [<c0131e02>] notify_die+0x32/0x40
 [<c0105d29>] do_invalid_op+0x59/0xa0
 [<c0111d0b>] __ipipe_handle_exception+0x7b/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

Wow. Why that?

Quoted 8 lines
Quoted 2 lines
 [<c0111d13>] __ipipe_handle_exception+0x83/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

And this? We should not get any exception over an IPI3 handler. I guess the double fault may be explained by this root cause.

Quoted 2 lines
 [<c01117df>] __ipipe_handle_irq+0x4f/0x140
 [<c0104c5e>] ipipe_ipi3+0x26/0x40

Our LAPIC timer vector. Are you running full modular or statically btw?

Fully modular. Compiling the nucleus in makes the lock-up move to another, once again invisible spot.

I nailed down the fault address in the scenario above. It's in the nucleus module, at the first byte of xntimer_tick_aperiodic. Are we loosing module text pages over the time? This functions must have been executed before as the timer was armed while I collected the /proc/modules and then triggered the crash.

Quoted 8 lines
Quoted 3 lines

There is a pending issue about vmalloced areas, which I completely forgot:
https://mail.gna.org/public/xenomai-core/2007-02/msg00138.html

Would this explain my problems which are already visible without any Xenomai application running (and also without unloading the modules again, to answer Philippe's question)? Hell, I would love to find the reason here, debugging this stuff stopped being fun a long time ago...

It would explain bugs involving a race between task creation and vmalloc/ioremap. But the bug would only happen with Xenomai tasks running,
otherwise, the vmalloced/ioremaped area would be mapped lazily as usual.

Signature · 1 line
                                               Gilles Chanteperdrix
author
#14 lore raw

Re: [Xenomai-core] crashing 2.6.22

Quoted 61 lines · Gilles Chanteperdrix
Quoted 60 lines · Jan Kiszka
Quoted 59 lines · Gilles Chanteperdrix
Quoted 47 lines · Jan Kiszka
Quoted 38 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
Quoted 2 lines · Jan Kiszka
Quoted 1 line · Philippe Gerum

On Sun, 2007-09-30 at 12:22 +0200, Jan Kiszka wrote:

...

Quoted 8 lines
Quoted 4 lines
Quoted 3 lines

And a third
one only gives me "Detected illicit call from domain Xenomai" before the box reboots. :(

Grmff... Do you run with your smp_processor_id() instrumentation in?

Yes, but I suspect this is just a symptom of some severe memory corruption that (also?) hits I-pipe data structures. I just put in some different instrumentation, and that warning is gone, the box just hangs hard at a different point. Very unfriendly.

Hah! Got some crash log by hacking a raw printk-to-uart:

[...]
<6>Xenomai: starting RTDM services.
<6>NET: Registered protocol family 10
<6>lo: Disabled Privacy Extensions <6>ADDRCONF(NETDEV_UP): eth0: link is not ready <3>I-pipe: Detected illicit call from domain 'Xenomai'
<3> into a service reserved for domain 'Linux' and below.

Quoted 14 lines
       f3a6bc18 00000000 00000000 c05dad6c f3a6bc3c c0105fc3 c03513c7 c05dc100
       00000009 f3a6bc54 c01479cb c03592f8 c0357ae2 c035e069 f3a6bc88 f3a6bc70
       c0127224 c0111df8 00000000 f3a6bd74 00000000 f3a6bd74 f3a6bc80 c012727f
Call Trace:
 [<c010520f>] show_trace_log_lvl+0x1f/0x40
 [<c01052e1>] show_stack_log_lvl+0xb1/0xe0
 [<c0105fc3>] show_stack+0x33/0x40
 [<c01479cb>] ipipe_check_context+0x7b/0x90
 [<c0127224>] __atomic_notifier_call_chain+0x24/0x60
 [<c012727f>] atomic_notifier_call_chain+0x1f/0x30
 [<c0131e02>] notify_die+0x32/0x40
 [<c0105d29>] do_invalid_op+0x59/0xa0
 [<c0111d0b>] __ipipe_handle_exception+0x7b/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

Wow. Why that?

Quoted 8 lines
Quoted 2 lines
 [<c0111d13>] __ipipe_handle_exception+0x83/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

And this? We should not get any exception over an IPI3 handler. I guess the double fault may be explained by this root cause.

Quoted 2 lines
 [<c01117df>] __ipipe_handle_irq+0x4f/0x140
 [<c0104c5e>] ipipe_ipi3+0x26/0x40

Our LAPIC timer vector. Are you running full modular or statically btw?

Quoted 8 lines

Fully modular. Compiling the nucleus in makes the lock-up move to another, once again invisible spot.

I nailed down the fault address in the scenario above. It's in the nucleus module, at the first byte of xntimer_tick_aperiodic. Are we loosing module text pages over the time? This functions must have been executed before as the timer was armed while I collected the /proc/modules and then triggered the crash.

There is a pending issue about vmalloced areas, which I completely forgot:
https://mail.gna.org/public/xenomai-core/2007-02/msg00138.html

Quoted 8 lines
Quoted 4 lines

Would this explain my problems which are already visible without any Xenomai application running (and also without unloading the modules again, to answer Philippe's question)? Hell, I would love to find the reason here, debugging this stuff stopped being fun a long time ago...

It would explain bugs involving a race between task creation and vmalloc/ioremap. But the bug would only happen with Xenomai tasks running,

I don't need to start any Xenomai task to trigger the problem.

Quoted 1 line

otherwise, the vmalloced/ioremaped area would be mapped lazily as usual.

I guess module text pages are not mapped lazily, otherwise quite a lot of things would have fallen apart much earlier, right?

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux
#15 lore raw

Re: [Xenomai-core] crashing 2.6.22

Quoted 71 lines · Jan Kiszka
Quoted 61 lines · Gilles Chanteperdrix
Quoted 60 lines · Jan Kiszka
Quoted 59 lines · Gilles Chanteperdrix
Quoted 47 lines · Jan Kiszka
Quoted 38 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
Quoted 2 lines · Jan Kiszka
Quoted 1 line · Philippe Gerum

On Sun, 2007-09-30 at 12:22 +0200, Jan Kiszka wrote:

...

Quoted 8 lines
Quoted 4 lines
Quoted 3 lines

And a third
one only gives me "Detected illicit call from domain Xenomai" before the box reboots. :(

Grmff... Do you run with your smp_processor_id() instrumentation in?

Yes, but I suspect this is just a symptom of some severe memory corruption that (also?) hits I-pipe data structures. I just put in some different instrumentation, and that warning is gone, the box just hangs hard at a different point. Very unfriendly.

Hah! Got some crash log by hacking a raw printk-to-uart:

[...]
<6>Xenomai: starting RTDM services.
<6>NET: Registered protocol family 10
<6>lo: Disabled Privacy Extensions <6>ADDRCONF(NETDEV_UP): eth0: link is not ready <3>I-pipe: Detected illicit call from domain 'Xenomai'
<3> into a service reserved for domain 'Linux' and below.

Quoted 14 lines
       f3a6bc18 00000000 00000000 c05dad6c f3a6bc3c c0105fc3 c03513c7 c05dc100
       00000009 f3a6bc54 c01479cb c03592f8 c0357ae2 c035e069 f3a6bc88 f3a6bc70
       c0127224 c0111df8 00000000 f3a6bd74 00000000 f3a6bd74 f3a6bc80 c012727f
Call Trace:
 [<c010520f>] show_trace_log_lvl+0x1f/0x40
 [<c01052e1>] show_stack_log_lvl+0xb1/0xe0
 [<c0105fc3>] show_stack+0x33/0x40
 [<c01479cb>] ipipe_check_context+0x7b/0x90
 [<c0127224>] __atomic_notifier_call_chain+0x24/0x60
 [<c012727f>] atomic_notifier_call_chain+0x1f/0x30
 [<c0131e02>] notify_die+0x32/0x40
 [<c0105d29>] do_invalid_op+0x59/0xa0
 [<c0111d0b>] __ipipe_handle_exception+0x7b/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

Wow. Why that?

Quoted 8 lines
Quoted 2 lines
 [<c0111d13>] __ipipe_handle_exception+0x83/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

And this? We should not get any exception over an IPI3 handler. I guess the double fault may be explained by this root cause.

Quoted 2 lines
 [<c01117df>] __ipipe_handle_irq+0x4f/0x140
 [<c0104c5e>] ipipe_ipi3+0x26/0x40

Our LAPIC timer vector. Are you running full modular or statically btw?

Quoted 8 lines

Fully modular. Compiling the nucleus in makes the lock-up move to another, once again invisible spot.

I nailed down the fault address in the scenario above. It's in the nucleus module, at the first byte of xntimer_tick_aperiodic. Are we loosing module text pages over the time? This functions must have been executed before as the timer was armed while I collected the /proc/modules and then triggered the crash.

There is a pending issue about vmalloced areas, which I completely forgot:
https://mail.gna.org/public/xenomai-core/2007-02/msg00138.html

Quoted 8 lines
Quoted 4 lines

Would this explain my problems which are already visible without any Xenomai application running (and also without unloading the modules again, to answer Philippe's question)? Hell, I would love to find the reason here, debugging this stuff stopped being fun a long time ago...

It would explain bugs involving a race between task creation and vmalloc/ioremap. But the bug would only happen with Xenomai tasks running,

Quoted 6 lines

I don't need to start any Xenomai task to trigger the problem.

Quoted 1 line

otherwise, the vmalloced/ioremaped area would be mapped lazily as usual.

I guess module text pages are not mapped lazily, otherwise quite a lot of things would have fallen apart much earlier, right?

This would happen when a task and a module are created at the same time, and the module would be mapped lazily only for the newly created task.

Signature · 1 line
                                               Gilles Chanteperdrix
#16 lore raw

[Xenomai-core] ARM compiling error

Hy,

I install Xenomai 2.3.4 for ARM on 2.6.20 kernel. The prepare-kernel script work well.

When I compiling my kernel I have the error message above:

CC kernel/xenomai/arch/generic/hal.o

LD kernel/xenomai/arch/generic/xeno_hal.o

LD kernel/xenomai/arch/generic/built-in.o

LD kernel/xenomai/arch/built-in.o

CC kernel/xenomai/nucleus/heap.o

CC kernel/xenomai/nucleus/intr.o

kernel/xenomai/nucleus/intr.c:60: warning: 'xnirqs' defined but not used

CC kernel/xenomai/nucleus/module.o

CC kernel/xenomai/nucleus/pod.o

CC kernel/xenomai/nucleus/synch.o

CC kernel/xenomai/nucleus/thread.o

CC kernel/xenomai/nucleus/timer.o

CC kernel/xenomai/nucleus/shadow.o

In file included from kernel/xenomai/nucleus/shadow.c:56:

include/asm/xenomai/bits/shadow.h: In function 'xnarch_local_syscall':

include/asm/xenomai/bits/shadow.h:180: error: 'struct <anonymous>' has no member named 'counter'

include/asm/xenomai/bits/shadow.h:181: error: 'struct <anonymous>' has no member named 'mask'

include/asm/xenomai/bits/shadow.h:182: error: 'struct <anonymous>' has no member named 'last_cnt'

include/asm/xenomai/bits/shadow.h:183: error: 'struct <anonymous>' has no member named 'tsc'

make[3]: *** [kernel/xenomai/nucleus/shadow.o] Erreur 1

make[2]: *** [kernel/xenomai/nucleus] Erreur 2

make[1]: *** [kernel/xenomai] Erreur 2

make: *** [kernel] Erreur 2

Do you have a solution for fix this problem?

Thanks in advance

Patrick

#17 lore raw

Re: [Xenomai-core] ARM compiling error

Quoted 10 lines · Patrick

Hy,

I install Xenomai 2.3.4 for ARM on 2.6.20 kernel. The prepare-kernel script work well.

Which ARM machine ?
Which version of the ARM patch ?

Quoted 1 line

From your compilation log, I would say that you are using an I-pipe

patch which is older than Xenomai v2.3.4, so the general advice is to use the I-pipe patch which comes with the version of Xenomai you use.

Signature · 1 line
                                               Gilles Chanteperdrix

A message that is not in the archive (sent off-list or not yet received): [email protected]

#19 lore raw

Re: [Xenomai-core] ARM compiling error

Quoted 12 lines · Patrick
Quoted 11 lines · Patrick
Quoted 4 lines

I install Xenomai 2.3.4 for ARM on 2.6.20 kernel. The prepare-kernel script
work well.

Which ARM machine ?
Which version of the ARM patch ?
From your compilation log, I would say that you are using an I-pipe patch which is older than Xenomai v2.3.4, so the general advice is to use the I-pipe patch which comes with the version of Xenomai you use.

Quoted 4 lines

I use an ARM PXA270 and adeos-ipipe-2.6.20-arm-1.7-05.

I use the latest stable version of Xenomai (2.3.4) and the latest version of ipipe for ARM (1.7).

The I-pipe patch which comes with Xenomai (2.3.4) is adeos-ipipe-2.6.20-arm-1.7-06, you will find it in the ksrc/arch/arm/patches subdirectory of Xenomai sources. If you call prepare-kernel without any argument it will pick the right patch.

Please do send your replies to the mailing list.

Signature · 1 line
                                               Gilles Chanteperdrix
#20 lore raw

Re: [Xenomai-core] ARM compiling error

I have already tried this (with arm-1.7-05 from adeos website and arm-1.7-06 from xenomai/ksrc/arch/arm/patches) but the result is the same.

Thanks for your help

Sorry for direct answers ;-)

-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:[email protected] Envoyé : lundi, 1. octobre 2007 15:11
À : Patrick
Cc : xenomai-core
Objet : Re: [Xenomai-core] ARM compiling error

Quoted 12 lines · Patrick
Quoted 11 lines · Patrick
Quoted 4 lines

I install Xenomai 2.3.4 for ARM on 2.6.20 kernel. The prepare-kernel script
work well.

Which ARM machine ?
Which version of the ARM patch ?
From your compilation log, I would say that you are using an I-pipe patch which is older than Xenomai v2.3.4, so the general advice is to use the I-pipe patch which comes with the version of Xenomai you use.

Quoted 3 lines

I use an ARM PXA270 and adeos-ipipe-2.6.20-arm-1.7-05.

I use the latest stable version of Xenomai (2.3.4) and the latest version

of

Quoted 1 line

ipipe for ARM (1.7).

The I-pipe patch which comes with Xenomai (2.3.4) is adeos-ipipe-2.6.20-arm-1.7-06, you will find it in the ksrc/arch/arm/patches subdirectory of Xenomai sources. If you call prepare-kernel without any argument it will pick the right patch.

Please do send your replies to the mailing list.

Signature · 1 line
                                               Gilles Chanteperdrix
#21 lore raw

Re: [Xenomai-core] ARM compiling error

Quoted 30 lines · Patrick
Quoted 30 lines

-----Message d'origine-----
De: Gilles Chanteperdrix [mailto:[email protected]] Envoyé: lundi, 1. octobre 2007 15:11
À: Patrick
Cc: xenomai-core
Objet: Re: [Xenomai-core] ARM compiling error

Quoted 13 lines · Patrick
Quoted 11 lines · Patrick
Quoted 4 lines

I install Xenomai 2.3.4 for ARM on 2.6.20 kernel. The prepare-kernel script
work well.

Which ARM machine ?
Which version of the ARM patch ?
From your compilation log, I would say that you are using an I-pipe patch which is older than Xenomai v2.3.4, so the general advice is to use the I-pipe patch which comes with the version of Xenomai you use.

Quoted 3 lines

I use an ARM PXA270 and adeos-ipipe-2.6.20-arm-1.7-05.

I use the latest stable version of Xenomai (2.3.4) and the latest version

of

Quoted 1 line

ipipe for ARM (1.7).

The I-pipe patch which comes with Xenomai (2.3.4) is adeos-ipipe-2.6.20-arm-1.7-06, you will find it in the ksrc/arch/arm/patches subdirectory of Xenomai sources. If you call prepare-kernel without any argument it will pick the right patch.

Quoted 4 lines
Quoted 1 line

Please do send your replies to the mailing list.

I have already tried this (with arm-1.7-05 from adeos website and arm-1.7-06 from xenomai/ksrc/arch/arm/patches) but the result is the same.

I have just tried to build Xenomai-2.3.4 for PXA 270 (LogicPD PXA270 Card Engine Development Platform), and it builds flawlessly. So, I suggest you erase everything, and restart from clean sources, use I-pipe for ARM version 1.7-06, and nothing else.

Signature · 1 line
                                               Gilles Chanteperdrix
#22 lore raw

Re: [Xenomai-core] crashing 2.6.22

In reply to Jan Kiszka
Quoted 82 lines

-----Original Message-----
From: [email protected] on behalf of Jan Kiszka
Sent: Mon 2007-10-01 11:32 AM
To: Gilles Chanteperdrix
Cc: xenomai-core
Subject: Re: [Xenomai-core] crashing 2.6.22

Quoted 61 lines · Gilles Chanteperdrix
Quoted 60 lines · Jan Kiszka
Quoted 59 lines · Gilles Chanteperdrix
Quoted 47 lines · Jan Kiszka
Quoted 38 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
Quoted 2 lines · Jan Kiszka
Quoted 1 line · Philippe Gerum

On Sun, 2007-09-30 at 12:22 +0200, Jan Kiszka wrote:

...

Quoted 8 lines
Quoted 4 lines
Quoted 3 lines

And a third
one only gives me "Detected illicit call from domain Xenomai" before the box reboots. :(

Grmff... Do you run with your smp_processor_id() instrumentation in?

Yes, but I suspect this is just a symptom of some severe memory corruption that (also?) hits I-pipe data structures. I just put in some different instrumentation, and that warning is gone, the box just hangs hard at a different point. Very unfriendly.

Hah! Got some crash log by hacking a raw printk-to-uart:

[...]
<6>Xenomai: starting RTDM services.
<6>NET: Registered protocol family 10
<6>lo: Disabled Privacy Extensions <6>ADDRCONF(NETDEV_UP): eth0: link is not ready <3>I-pipe: Detected illicit call from domain 'Xenomai'
<3> into a service reserved for domain 'Linux' and below.

Quoted 14 lines
       f3a6bc18 00000000 00000000 c05dad6c f3a6bc3c c0105fc3 c03513c7 c05dc100
       00000009 f3a6bc54 c01479cb c03592f8 c0357ae2 c035e069 f3a6bc88 f3a6bc70
       c0127224 c0111df8 00000000 f3a6bd74 00000000 f3a6bd74 f3a6bc80 c012727f
Call Trace:
 [<c010520f>] show_trace_log_lvl+0x1f/0x40
 [<c01052e1>] show_stack_log_lvl+0xb1/0xe0
 [<c0105fc3>] show_stack+0x33/0x40
 [<c01479cb>] ipipe_check_context+0x7b/0x90
 [<c0127224>] __atomic_notifier_call_chain+0x24/0x60
 [<c012727f>] atomic_notifier_call_chain+0x1f/0x30
 [<c0131e02>] notify_die+0x32/0x40
 [<c0105d29>] do_invalid_op+0x59/0xa0
 [<c0111d0b>] __ipipe_handle_exception+0x7b/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

Wow. Why that?

Quoted 8 lines
Quoted 2 lines
 [<c0111d13>] __ipipe_handle_exception+0x83/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

And this? We should not get any exception over an IPI3 handler. I guess the double fault may be explained by this root cause.

Quoted 2 lines
 [<c01117df>] __ipipe_handle_irq+0x4f/0x140
 [<c0104c5e>] ipipe_ipi3+0x26/0x40

Our LAPIC timer vector. Are you running full modular or statically btw?

Quoted 8 lines

Fully modular. Compiling the nucleus in makes the lock-up move to another, once again invisible spot.

I nailed down the fault address in the scenario above. It's in the nucleus module, at the first byte of xntimer_tick_aperiodic. Are we loosing module text pages over the time? This functions must have been executed before as the timer was armed while I collected the /proc/modules and then triggered the crash.

There is a pending issue about vmalloced areas, which I completely forgot:
https://mail.gna.org/public/xenomai-core/2007-02/msg00138.html

Quoted 8 lines
Quoted 4 lines

Would this explain my problems which are already visible without any Xenomai application running (and also without unloading the modules again, to answer Philippe's question)? Hell, I would love to find the reason here, debugging this stuff stopped being fun a long time ago...

It would explain bugs involving a race between task creation and vmalloc/ioremap. But the bug would only happen with Xenomai tasks running,

Quoted 6 lines

I don't need to start any Xenomai task to trigger the problem.

Quoted 1 line

otherwise, the vmalloced/ioremaped area would be mapped lazily as usual.

I guess module text pages are not mapped lazily, otherwise quite a lot of things would have fallen apart much earlier, right?

AFAIK Once inserted module text pages are part of the kernel, so have
to be reliably ready as long as the servicies offered are registred, is the insertion function which allocates memory, access it to write the text of the module and make it part of the kernel, so is keep in main memory.

Saverio

Quoted 7 lines

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

#23 lore raw

Re: [Xenomai-core] crashing 2.6.22

-----Original Message-----
From: [email protected] on behalf of Labozzetta, Saverio
Sent: Mon 2007-10-01 2:42 PM
To: Jan Kiszka; Gilles Chanteperdrix
Cc: xenomai-core
Subject: Re: [Xenomai-core] crashing 2.6.22

Quoted 82 lines
Quoted 5 lines

-----Original Message-----
From: [email protected] on behalf of Jan Kiszka
Sent: Mon 2007-10-01 11:32 AM
To: Gilles Chanteperdrix
Cc: xenomai-core

Subject: Re: [Xenomai-core] crashing 2.6.22

Quoted 76 lines
Quoted 61 lines · Gilles Chanteperdrix
Quoted 60 lines · Jan Kiszka
Quoted 59 lines · Gilles Chanteperdrix
Quoted 47 lines · Jan Kiszka
Quoted 38 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
Quoted 2 lines · Jan Kiszka
Quoted 1 line · Philippe Gerum

On Sun, 2007-09-30 at 12:22 +0200, Jan Kiszka wrote:

...

Quoted 8 lines
Quoted 4 lines
Quoted 3 lines

And a third
one only gives me "Detected illicit call from domain Xenomai" before the box reboots. :(

Grmff... Do you run with your smp_processor_id() instrumentation in?

Yes, but I suspect this is just a symptom of some severe memory corruption that (also?) hits I-pipe data structures. I just put in some different instrumentation, and that warning is gone, the box just hangs hard at a different point. Very unfriendly.

Hah! Got some crash log by hacking a raw printk-to-uart:

[...]
<6>Xenomai: starting RTDM services.
<6>NET: Registered protocol family 10
<6>lo: Disabled Privacy Extensions <6>ADDRCONF(NETDEV_UP): eth0: link is not ready <3>I-pipe: Detected illicit call from domain 'Xenomai'
<3> into a service reserved for domain 'Linux' and below.

Quoted 14 lines
       f3a6bc18 00000000 00000000 c05dad6c f3a6bc3c c0105fc3 c03513c7 c05dc100
       00000009 f3a6bc54 c01479cb c03592f8 c0357ae2 c035e069 f3a6bc88 f3a6bc70
       c0127224 c0111df8 00000000 f3a6bd74 00000000 f3a6bd74 f3a6bc80 c012727f
Call Trace:
 [<c010520f>] show_trace_log_lvl+0x1f/0x40
 [<c01052e1>] show_stack_log_lvl+0xb1/0xe0
 [<c0105fc3>] show_stack+0x33/0x40
 [<c01479cb>] ipipe_check_context+0x7b/0x90
 [<c0127224>] __atomic_notifier_call_chain+0x24/0x60
 [<c012727f>] atomic_notifier_call_chain+0x1f/0x30
 [<c0131e02>] notify_die+0x32/0x40
 [<c0105d29>] do_invalid_op+0x59/0xa0
 [<c0111d0b>] __ipipe_handle_exception+0x7b/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

Wow. Why that?

Quoted 8 lines
Quoted 2 lines
 [<c0111d13>] __ipipe_handle_exception+0x83/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

And this? We should not get any exception over an IPI3 handler. I guess the double fault may be explained by this root cause.

Quoted 2 lines
 [<c01117df>] __ipipe_handle_irq+0x4f/0x140
 [<c0104c5e>] ipipe_ipi3+0x26/0x40

Our LAPIC timer vector. Are you running full modular or statically btw?

Quoted 8 lines

Fully modular. Compiling the nucleus in makes the lock-up move to another, once again invisible spot.

I nailed down the fault address in the scenario above. It's in the nucleus module, at the first byte of xntimer_tick_aperiodic. Are we loosing module text pages over the time? This functions must have been executed before as the timer was armed while I collected the /proc/modules and then triggered the crash.

There is a pending issue about vmalloced areas, which I completely forgot:
https://mail.gna.org/public/xenomai-core/2007-02/msg00138.html

Quoted 8 lines
Quoted 4 lines

Would this explain my problems which are already visible without any Xenomai application running (and also without unloading the modules again, to answer Philippe's question)? Hell, I would love to find the reason here, debugging this stuff stopped being fun a long time ago...

It would explain bugs involving a race between task creation and vmalloc/ioremap. But the bug would only happen with Xenomai tasks running,

I don't need to start any Xenomai task to trigger the problem.

Quoted 1 line

otherwise, the vmalloced/ioremaped area would be mapped lazily as usual.

Quoted 9 lines
Quoted 2 lines

I guess module text pages are not mapped lazily, otherwise quite a lot of things would have fallen apart much earlier, right?

AFAIK Once inserted module text pages are part of the kernel, so have to be reliably ready as long as the servicies offered are registred, is the insertion function which allocates memory, access it to write the text of the module and make it part of the kernel, so is keep in main memory.

I've been silly: the pages are directly allocated in kernel space (GFP_KERNEL), and some of their addresses are pointed by the function offered in some kernel tables...

BTW: sorry about the following nasty copiright abuse patch, is automatically attached to any mail I send outside, an sorry also for the filthy email client I use, but I've not found other ways since they put exchange on...

Quoted 9 lines

Saverio

Quoted 7 lines

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

#24 lore raw

[Xenomai-help] rt_task crash kernel

Hi,

I'm using Xenomai 2.3.4 with 2.6.20 kernel on an ARM PXA270 board.

The installation was executed successfully.

Now I'm trying to insert a small test module (source code is attached) but the kernel crashes on rt_task_start().

I have tried the same module on another x86 machine and there is no problem.

I have tried with or without rt_task_set_periodic in aperiodic and periodic timer mode but the result is the same.

Do you have an idea?

Regards

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

/*******************************************************************
* isrtimer_m.c *******************************************************************/

#include <native/task.h>
#include <native/intr.h>
#include <native/alarm.h>

#define STACK_SIZE         8192        /* Taille de la pile par d�faut */
#define MS                 1000000     /* 1 ms exprim� en ns */
#define TIMER_PERIODIC     1           /* 1: timer p�riodique, 0: timer ap�riodique */

RT_TASK myTask;
RT_ALARM myAlarm;

int err; /* stockage du code d'erreur */

/* cleanup_module() */
void __exit cleanup_module (void) {

  printk("#irqtimer: cleanup\n");

  rt_task_delete(&myTask);

printk("Bye bye!\n");
}

/* T�che p�riodique */
void periodic(void *cookie) {

   while(1) {
      printk("debut 20ms\n");
      rt_timer_spin(20 * MS);
      printk("fin 20ms\n");
      rt_task_wait_period(NULL);

}
}

/* init_module() */
int __init init_module (void) {

  printk("#module de test: starting...\n");

/* Timer initialization */
if (TIMER_PERIODIC)
err = rt_timer_set_mode(MS); /* periodic mode, one tick will be equal to 1 ms */
else

    err = rt_timer_set_mode(TM_ONESHOT);
  if (err != 0) {
    printk("Error timer: %d\n", err);
    return -1;
  }


  /*Cr�ation de la tache*/
  rt_task_create(&myTask, "taskCharge", STACK_SIZE, 10, 0);
  //rt_task_set_periodic(&myTask,TM_NOW,50*(TIMER_PERIODIC?1:MS));
  rt_task_start(&myTask, periodic, NULL);

return 0;
}

MODULE_LICENSE("GPL");

#25 lore raw

Re: [Xenomai-help] rt_task crash kernel

Quoted 16 lines · Patrick

Hi,

I'm using Xenomai 2.3.4 with 2.6.20 kernel on an ARM PXA270 board.

The installation was executed successfully.

Now I'm trying to insert a small test module (source code is attached) but the kernel crashes on rt_task_start().

Quoted 7 lines

I have tried the same module on another x86 machine and there is no problem.

I have tried with or without rt_task_set_periodic in aperiodic and periodic timer mode but the result is the same.

Do you have an idea?

Do you observe the same behaviour with the latency test ?

Signature · 1 line
                                               Gilles Chanteperdrix

A message that is not in the archive (sent off-list or not yet received): [email protected]

#27 lore raw

Re: [Xenomai-core] [Xenomai-help] rt_task crash kernel

Quoted 6 lines · Patrick

Yes, I have tried with bin/latency user space application and the system crashes.

latency appears to crash on ARM when launched with the default 100us period, the system is just too busy. Do you observe the crash with a 1 ms period ?

Signature · 1 line
                                               Gilles Chanteperdrix
author
#28 lore raw

Re: [Xenomai-core] crashing 2.6.22

In reply to Gilles Chanteperdrix
Quoted 51 lines · Gilles Chanteperdrix
Quoted 50 lines · Jan Kiszka
Quoted 38 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
Quoted 2 lines · Jan Kiszka
Quoted 1 line · Philippe Gerum

On Sun, 2007-09-30 at 12:22 +0200, Jan Kiszka wrote:

...

Quoted 8 lines
Quoted 4 lines
Quoted 3 lines

And a third
one only gives me "Detected illicit call from domain Xenomai" before the box reboots. :(

Grmff... Do you run with your smp_processor_id() instrumentation in?

Yes, but I suspect this is just a symptom of some severe memory corruption that (also?) hits I-pipe data structures. I just put in some different instrumentation, and that warning is gone, the box just hangs hard at a different point. Very unfriendly.

Hah! Got some crash log by hacking a raw printk-to-uart:

[...]
<6>Xenomai: starting RTDM services.
<6>NET: Registered protocol family 10
<6>lo: Disabled Privacy Extensions <6>ADDRCONF(NETDEV_UP): eth0: link is not ready <3>I-pipe: Detected illicit call from domain 'Xenomai'
<3> into a service reserved for domain 'Linux' and below.

Quoted 14 lines
       f3a6bc18 00000000 00000000 c05dad6c f3a6bc3c c0105fc3 c03513c7 c05dc100
       00000009 f3a6bc54 c01479cb c03592f8 c0357ae2 c035e069 f3a6bc88 f3a6bc70
       c0127224 c0111df8 00000000 f3a6bd74 00000000 f3a6bd74 f3a6bc80 c012727f
Call Trace:
 [<c010520f>] show_trace_log_lvl+0x1f/0x40
 [<c01052e1>] show_stack_log_lvl+0xb1/0xe0
 [<c0105fc3>] show_stack+0x33/0x40
 [<c01479cb>] ipipe_check_context+0x7b/0x90
 [<c0127224>] __atomic_notifier_call_chain+0x24/0x60
 [<c012727f>] atomic_notifier_call_chain+0x1f/0x30
 [<c0131e02>] notify_die+0x32/0x40
 [<c0105d29>] do_invalid_op+0x59/0xa0
 [<c0111d0b>] __ipipe_handle_exception+0x7b/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

Wow. Why that?

Quoted 8 lines
Quoted 2 lines
 [<c0111d13>] __ipipe_handle_exception+0x83/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

And this? We should not get any exception over an IPI3 handler. I guess the double fault may be explained by this root cause.

Quoted 2 lines
 [<c01117df>] __ipipe_handle_irq+0x4f/0x140
 [<c0104c5e>] ipipe_ipi3+0x26/0x40

Our LAPIC timer vector. Are you running full modular or statically btw?

Fully modular. Compiling the nucleus in makes the lock-up move to another, once again invisible spot.

Quoted 9 lines
Quoted 5 lines

I nailed down the fault address in the scenario above. It's in the nucleus module, at the first byte of xntimer_tick_aperiodic. Are we loosing module text pages over the time? This functions must have been executed before as the timer was armed while I collected the /proc/modules and then triggered the crash.

There is a pending issue about vmalloced areas, which I completely forgot:
https://mail.gna.org/public/xenomai-core/2007-02/msg00138.html

Ooops. By reading all my mails, I would have avoided reinventing this wheel on my own. Your patch is almost what I posted yesterday to fix the vmalloc issue.

Looks like we no longer need the last hunk of it on recent kernels, right?

Jan

PS: We should really consider using bug trackers for Adeos and Xenomai! I have a few (minor) patches hanging around as well, but things quickly get lost when bigger problems pop up.

#29 lore raw

Re: [Xenomai-core] crashing 2.6.22

Quoted 62 lines · Jan Kiszka
Quoted 51 lines · Gilles Chanteperdrix
Quoted 50 lines · Jan Kiszka
Quoted 38 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
Quoted 2 lines · Jan Kiszka
Quoted 1 line · Philippe Gerum

On Sun, 2007-09-30 at 12:22 +0200, Jan Kiszka wrote:

...

Quoted 8 lines
Quoted 4 lines
Quoted 3 lines

And a third
one only gives me "Detected illicit call from domain Xenomai" before the box reboots. :(

Grmff... Do you run with your smp_processor_id() instrumentation in?

Yes, but I suspect this is just a symptom of some severe memory corruption that (also?) hits I-pipe data structures. I just put in some different instrumentation, and that warning is gone, the box just hangs hard at a different point. Very unfriendly.

Hah! Got some crash log by hacking a raw printk-to-uart:

[...]
<6>Xenomai: starting RTDM services.
<6>NET: Registered protocol family 10
<6>lo: Disabled Privacy Extensions <6>ADDRCONF(NETDEV_UP): eth0: link is not ready <3>I-pipe: Detected illicit call from domain 'Xenomai'
<3> into a service reserved for domain 'Linux' and below.

Quoted 14 lines
       f3a6bc18 00000000 00000000 c05dad6c f3a6bc3c c0105fc3 c03513c7 c05dc100
       00000009 f3a6bc54 c01479cb c03592f8 c0357ae2 c035e069 f3a6bc88 f3a6bc70
       c0127224 c0111df8 00000000 f3a6bd74 00000000 f3a6bd74 f3a6bc80 c012727f
Call Trace:
 [<c010520f>] show_trace_log_lvl+0x1f/0x40
 [<c01052e1>] show_stack_log_lvl+0xb1/0xe0
 [<c0105fc3>] show_stack+0x33/0x40
 [<c01479cb>] ipipe_check_context+0x7b/0x90
 [<c0127224>] __atomic_notifier_call_chain+0x24/0x60
 [<c012727f>] atomic_notifier_call_chain+0x1f/0x30
 [<c0131e02>] notify_die+0x32/0x40
 [<c0105d29>] do_invalid_op+0x59/0xa0
 [<c0111d0b>] __ipipe_handle_exception+0x7b/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

Wow. Why that?

Quoted 8 lines
Quoted 2 lines
 [<c0111d13>] __ipipe_handle_exception+0x83/0x144
 [<c02dfaeb>] error_code+0x6f/0x7c

And this? We should not get any exception over an IPI3 handler. I guess the double fault may be explained by this root cause.

Quoted 2 lines
 [<c01117df>] __ipipe_handle_irq+0x4f/0x140
 [<c0104c5e>] ipipe_ipi3+0x26/0x40

Our LAPIC timer vector. Are you running full modular or statically btw?

Fully modular. Compiling the nucleus in makes the lock-up move to another, once again invisible spot.

Quoted 9 lines
Quoted 5 lines

I nailed down the fault address in the scenario above. It's in the nucleus module, at the first byte of xntimer_tick_aperiodic. Are we loosing module text pages over the time? This functions must have been executed before as the timer was armed while I collected the /proc/modules and then triggered the crash.

There is a pending issue about vmalloced areas, which I completely forgot:
https://mail.gna.org/public/xenomai-core/2007-02/msg00138.html

Quoted 5 lines

Ooops. By reading all my mails, I would have avoided reinventing this wheel on my own. Your patch is almost what I posted yesterday to fix the vmalloc issue.

Looks like we no longer need the last hunk of it on recent kernels, right?

Yes, it fixes an issue which was fixed a long time ago.

Quoted 5 lines

Jan

PS: We should really consider using bug trackers for Adeos and Xenomai! I have a few (minor) patches hanging around as well, but things quickly get lost when bigger problems pop up.

We have bug trackers, the point is think about using them.

Signature · 1 line
                                               Gilles Chanteperdrix
#30 lore raw

Re: [Xenomai-core] crashing 2.6.22

Quoted 11 lines · Gilles Chanteperdrix
Quoted 1 line

Ooops. By reading all my mails, I would have avoided reinventing

this

Quoted 1 line

wheel on my own. Your patch is almost what I posted yesterday to fix

the

Quoted 3 lines

vmalloc issue.

Looks like we no longer need the last hunk of it on recent kernels,

right?

Yes, it fixes an issue which was fixed a long time ago.

Yeah, my mistake. I've postponed this patch and forgot to push it forward again after the testing period in my cooker. Sorry about that.

Quoted 9 lines
Quoted 3 lines

Jan

PS: We should really consider using bug trackers for Adeos and

Xenomai!

Quoted 1 line

I have a few (minor) patches hanging around as well, but things

quickly

Quoted 1 line

get lost when bigger problems pop up.

We have bug trackers, the point is think about using them.

Indeed. We even have patch trackers we could activate. Either we use them, or any patch sent for inclusion should be posted in a separate mail to the -core list, with a [PATCH] header. I'm sometimes missing them because they are part of a lengthy conversation, buried under lots of mail I could fast-forward a bit aggressively.

Quoted 1 line
Signature · 1 line
Philippe.
#31 lore raw

Re: [Xenomai-core] crashing 2.6.22 (was: [Xenomai-help] Non-APIC setup broken for 2.4-SVN?)

In reply to Jan Kiszka
Quoted 7 lines · Jan Kiszka
Quoted 2 lines · Jan Kiszka
Quoted 1 line · Philippe Gerum

On Sun, 2007-09-30 at 12:22 +0200, Jan Kiszka wrote:

...

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

And a third
one only gives me "Detected illicit call from domain Xenomai" before the box reboots. :(

Quoted 9 lines
Quoted 6 lines
Quoted 1 line

Grmff... Do you run with your smp_processor_id() instrumentation in?

Yes, but I suspect this is just a symptom of some severe memory corruption that (also?) hits I-pipe data structures. I just put in some different instrumentation, and that warning is gone, the box just hangs hard at a different point. Very unfriendly.

Hah! Got some crash log by hacking a raw printk-to-uart:

Btw, if it's based on fiddling with the 16550 directly as I imagine it is, you may want to push me a patch. We already have this feature for blackfin and powerpc (__ipipe_serial_debug(const char *fmt, ...)), and it definitely makes sense to have it for x86* too.

Signature · 1 line
Philippe.
#32 lore raw
In reply to Jan Kiszka
Quoted 5 lines · Jan Kiszka
Quoted 1 line

Do you work with 2.6.22 baseline, or the latest stable update?

2.6.22.7 and .23-rc8. Both hang hard when I play with the backlight keys
of my Fujitsu-Siemens Lifebook,

Hey, shameless plug, you have been caught. :o)

Quoted 4 lines
Quoted 1 line

Grmff... Do you run with your smp_processor_id() instrumentation in?

Yes, but I suspect this is just a symptom of some severe memory corruption that (also?) hits I-pipe data structures.

Unlikely, but a timing-dependent issue may explain this behaviour as well.

Quoted 7 lines

I just put in some
different instrumentation, and that warning is gone, the box just hangs
hard at a different point. Very unfriendly.

Jan

Signature · 1 line
Philippe.