Skip to contentSkip to conversation

Latency trace on ARM

Adeos-main Sebastian Smolorz 5 participants 14 messages Dec 14, 2006 – Dec 19, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Hi,

we all know that the latency test should not be run with a period of 100 us because it easily gets locked up. The attached trace illustrates this problem in detail. It shows that a timer interrupt needs about 50 us to be processed. Furthermore, there is not enough time between two timer interrupts for the latency task to get all its work done.

The current I-pipe tracer patch for ARM is available at
http://opensource.emlix.com/ipipe-s3c24xx/download/ipipe-tracer-arm.patch_v4

Comments welcome.

--
Sebastian

# /testsuite/latency/latency -f -p 150
== Sampling period: 150 us
== Test mode: periodic user-mode task
== All results in microseconds
warming up...
RTT|  00:00:01  (periodic user-mode task, 150 us period, priority 99)
RTH|-----lat min|-----lat avg|-----lat max|-overrun|----lat best|---lat worst
RTD|      59.294|      89.882|     246.823|       1|      59.294|     252.941
RTD|      60.235|      90.705|     252.941|       2|      59.294|     252.941
RTD|      60.588|      90.117|     224.823|       2|      59.294|     252.941
RTD|      60.352|      90.352|     235.882|       2|      59.294|     252.941
RTD|      60.823|      90.235|     223.058|       2|      59.294|     252.941
RTD|      58.588|      90.352|     232.941|       2|      58.588|     252.941
RTD|      58.705|      90.235|     234.941|       2|      58.588|     252.941
RTD|      60.470|      90.352|     220.470|       2|      58.588|     252.941
RTD|      61.176|      90.117|     236.117|       2|      58.588|     252.941
RTD|      59.176|      90.352|     230.000|       2|      58.588|     252.941
RTD|      59.882|      90.235|     222.235|       2|      58.588|     252.941
RTD|      60.235|      90.352|     224.470|       2|      58.588|     252.941
RTD|      62.705|      90.235|     222.705|       2|      58.588|     252.941
---|------------|------------|------------|--------|-------------------------
RTS|      58.588|      90.235|     252.941|       2|    00:00:14/00:00:14
# cat frozen
I-pipe frozen back-tracing service on 2.6.15/ipipe-1.5-03
------------------------------------------------------------
Freeze: 1606645685 cycles, Trace Points: 110 (+10)
 +----- Hard IRQs ('|': locked)
 |+---- <unused>
 ||+--- <unused>
 |||+-- Xenomai
 ||||+- Linux ('*': domain stalled, '+': current, '#': current+stalled)
 |||||                        +---------- Delay flag ('+': > 1 us, '!': > 10 us)
 |||||                        |        +- NMI noise ('N')
 |||||                        |        |
      Type    User Val.   Time    Delay  Function (Parent)
:|  +*end     0x80000001  -310+   2.000N __ipipe_dispatch_event+0xc4 (__ipipe_syscall_root+0x88)
:   +*func                -308+   5.625N hisyscall_event+0x14 [xeno_nucleus] (__ipipe_dispatch_event+0xe0)
:   +*func                -303+   5.125N __rt_sem_v+0x14 [xeno_native] (hisyscall_event+0x160 [xeno_nucleus])
:   +*func                -297+   1.875N xnregistry_fetch+0x10 [xeno_nucleus] (__rt_sem_v+0x50 [xeno_native])
:|  +*begin   0x80000001  -296+   6.750  xnregistry_fetch+0x34 [xeno_nucleus] (__rt_sem_v+0x50 [xeno_native])
:|  #*func                -289+   3.000N __ipipe_restore_pipeline_head+0x10 (xnregistry_fetch+0xec [xeno_nucleus])
:|  +*end     0x80000000  -286+   2.750N __ipipe_restore_pipeline_head+0x104 (xnregistry_fetch+0xec [xeno_nucleus])
:   +*func                -283+   1.875N rt_sem_v+0x10 [xeno_native] (__rt_sem_v+0x60 [xeno_native])
:|  +*begin   0x80000001  -281+   4.625  rt_sem_v+0x38 [xeno_native] (__rt_sem_v+0x60 [xeno_native])
:|  #*func                -277+   5.875N xnsynch_wakeup_one_sleeper+0x10 [xeno_nucleus] (rt_sem_v+0x80 [xeno_native])
:|  #*func                -271+   3.875N xnpod_resume_thread+0x10 [xeno_nucleus] (xnsynch_wakeup_one_sleeper+0xc4 [xeno_nucleus])
:|  #*[  749] -<?>-    0  -267+   5.500N xnpod_resume_thread+0x70 [xeno_nucleus] (xnsynch_wakeup_one_sleeper+0xc4 [xeno_nucleus])
:|  #*func                -261+   3.125N xnpod_schedule+0x14 [xeno_nucleus] (rt_sem_v+0x8c [xeno_native])
:|  #*[  750] -<?>-   99  -258+   3.750N xnpod_schedule+0xc8 [xeno_nucleus] (rt_sem_v+0x8c [xeno_native])
:|  #*func                -254+   2.000N __ipipe_restore_pipeline_head+0x10 (rt_sem_v+0xbc [xeno_native])
:|  +*end     0x80000000  -252+   3.375N __ipipe_restore_pipeline_head+0x104 (rt_sem_v+0xbc [xeno_native])
:|  +*begin   0x80000001  -249+   2.625  __ipipe_dispatch_event+0x10c (__ipipe_syscall_root+0x88)
:|  +*end     0x80000001  -246+   7.500N __ipipe_dispatch_event+0x1b0 (__ipipe_syscall_root+0x88)
:   +*func                -239+   2.500N __ipipe_syscall_root+0x10 (vector_swi+0x64)
:   +*func                -236+   1.875N __ipipe_dispatch_event+0x14 (__ipipe_syscall_root+0x88)
:|  +*begin   0x80000001  -235+   2.500  __ipipe_dispatch_event+0x44 (__ipipe_syscall_root+0x88)
:|  +*end     0x80000001  -232+   1.875N __ipipe_dispatch_event+0xc4 (__ipipe_syscall_root+0x88)
:   +*func                -230+   4.875N hisyscall_event+0x14 [xeno_nucleus] (__ipipe_dispatch_event+0xe0)
:|  +*func                -225+   2.125N __ipipe_grab_irq+0x10 (__irq_svc+0x24)
:|  +*begin   0xffffffff  -223+   2.625  __ipipe_grab_irq+0x98 (__irq_svc+0x24)
:|  +*func                -221+   2.750N __ipipe_handle_irq+0x10 (__ipipe_grab_irq+0xd0)
:|  +*func                -218+   2.125N __ipipe_ack_timerirq+0x10 (__ipipe_handle_irq+0x8c)
:|  +*func                -216+   1.625N ipipe_test_and_stall_pipeline_from+0x10 (__ipipe_ack_timerirq+0x20)
:|  #*func                -214+   2.250N __ipipe_mach_acktimer+0x10 (__ipipe_ack_timerirq+0x28)
:|  #*func                -212+   2.125N s3c_irq_ack+0x10 (__ipipe_ack_timerirq+0x44)
:|  #*func                -210+   2.375N s3c_irq_unmask+0x10 (__ipipe_ack_timerirq+0x50)
:|  +*func                -207+   1.875N __ipipe_dispatch_wired+0x10 (__ipipe_handle_irq+0x98)
:|  #*func                -205+   2.375N xnintr_clock_handler+0x10 [xeno_nucleus] (__ipipe_dispatch_wired+0xe0)
:|  #*func                -203+   2.125N xnintr_irq_handler+0x14 [xeno_nucleus] (xnintr_clock_handler+0x20 [xeno_nucleus])
:|  #*func                -201+   2.750N __ipipe_mach_get_tsc+0x10 (xnintr_irq_handler+0x34 [xeno_nucleus])
:|  #*func                -198+   1.875N xnpod_announce_tick+0x10 [xeno_nucleus] (xnintr_irq_handler+0x54 [xeno_nucleus])
:|  #*func                -196+   2.875N xntimer_do_tick_aperiodic+0x14 [xeno_nucleus] (xnpod_announce_tick+0x20 [xeno_nucleus])
:|  #*func                -193+   2.375N __ipipe_mach_get_tsc+0x10 (xntimer_do_tick_aperiodic+0x48 [xeno_nucleus])
:|  #*func                -191+   2.500N xnthread_periodic_handler+0x10 [xeno_nucleus] (xntimer_do_tick_aperiodic+0xc0 [xeno_nucleus])
:|  #*func                -189+   2.125N __ipipe_mach_get_tsc+0x10 (xntimer_do_tick_aperiodic+0x48 [xeno_nucleus])
:|  #*func                -186+   4.000N __ipipe_mach_get_tsc+0x10 (xntimer_do_tick_aperiodic+0x204 [xeno_nucleus])
:|  #*func                -182+   5.000N __ipipe_mach_set_dec+0x14 (xntimer_do_tick_aperiodic+0x2b8 [xeno_nucleus])
:|  #*func                -177+   2.375N __ipipe_mach_get_tsc+0x10 (xnintr_irq_handler+0x14c [xeno_nucleus])
:|  #*func                -175+   2.250N __ipipe_mach_get_tsc+0x10 (xnintr_irq_handler+0x180 [xeno_nucleus])
:|  +*func                -173+   2.250N __ipipe_walk_pipeline+0x10 (__ipipe_handle_irq+0x1a8)
:|  +*end     0xffffffff  -171+   3.000N __ipipe_grab_irq+0xd8 (__irq_svc+0x24)
:   +*func                -168+   2.125N __rt_task_wait_period+0x14 [xeno_native] (hisyscall_event+0x160 [xeno_nucleus])
:   +*func                -165+   2.125N rt_task_wait_period+0x10 [xeno_native] (__rt_task_wait_period+0x54 [xeno_native])
:   +*func                -163+   2.250N xnpod_wait_thread_period+0x14 [xeno_nucleus] (rt_task_wait_period+0x54 [xeno_native])
:|  +*begin   0x80000001  -161+   2.625  xnpod_wait_thread_period+0x50 [xeno_nucleus] (rt_task_wait_period+0x54 [xeno_native])
:|  #*func                -158+   4.375N __ipipe_mach_get_tsc+0x10 (xnpod_wait_thread_period+0x84 [xeno_nucleus])
:|  #*func                -154+   1.750N __ipipe_restore_pipeline_head+0x10 (xnpod_wait_thread_period+0x1c4 [xeno_nucleus])
:|  +*end     0x80000000  -152+   3.000N __ipipe_restore_pipeline_head+0x104 (xnpod_wait_thread_period+0x1c4 [xeno_nucleus])
:|  +*begin   0x80000001  -149+   2.750  __ipipe_dispatch_event+0x10c (__ipipe_syscall_root+0x88)
:|  +*end     0x80000001  -147+   4.500N __ipipe_dispatch_event+0x1b0 (__ipipe_syscall_root+0x88)
:   +*func                -142+   1.750N __ipipe_syscall_root+0x10 (vector_swi+0x64)
:   +*func                -140+   1.875N __ipipe_dispatch_event+0x14 (__ipipe_syscall_root+0x88)
:|  +*begin   0x80000001  -138+   2.875  __ipipe_dispatch_event+0x44 (__ipipe_syscall_root+0x88)
:|  +*end     0x80000001  -136+   1.750N __ipipe_dispatch_event+0xc4 (__ipipe_syscall_root+0x88)
:   +*func                -134+   2.500N hisyscall_event+0x14 [xeno_nucleus] (__ipipe_dispatch_event+0xe0)
:   +*func                -131+   2.000N __rt_timer_tsc+0x14 [xeno_native] (hisyscall_event+0x160 [xeno_nucleus])
:   +*func                -129+   1.875N rt_timer_tsc+0x10 [xeno_native] (__rt_timer_tsc+0x1c [xeno_native])
:   +*func                -127+   1.875N __ipipe_mach_get_tsc+0x10 (rt_timer_tsc+0x14 [xeno_native])
:|  +*begin   0x80000001  -126+   2.000  __ipipe_mach_get_tsc+0x30 (rt_timer_tsc+0x14 [xeno_native])
:|  +*end     0x80000001  -124+   2.625N __ipipe_mach_get_tsc+0x6c (rt_timer_tsc+0x14 [xeno_native])
:|  +*begin   0x80000001  -121+   2.375  __ipipe_dispatch_event+0x10c (__ipipe_syscall_root+0x88)
:|  +*end     0x80000001  -119+   7.750N __ipipe_dispatch_event+0x1b0 (__ipipe_syscall_root+0x88)
:   +*func                -111+   2.250N __ipipe_syscall_root+0x10 (vector_swi+0x64)
:   +*func                -109+   2.125N __ipipe_dispatch_event+0x14 (__ipipe_syscall_root+0x88)
:|  +*begin   0x80000001  -106+   2.250  __ipipe_dispatch_event+0x44 (__ipipe_syscall_root+0x88)
:|  +*end     0x80000001  -104+   1.875N __ipipe_dispatch_event+0xc4 (__ipipe_syscall_root+0x88)
:   +*func                -102+   2.500N hisyscall_event+0x14 [xeno_nucleus] (__ipipe_dispatch_event+0xe0)
:   +*func                -100+   4.000N __rt_timer_tsc2ns+0x14 [xeno_native] (hisyscall_event+0x160 [xeno_nucleus])
:   +*func                 -96+   7.125N rt_timer_tsc2ns+0x14 [xeno_native] (__rt_timer_tsc2ns+0x38 [xeno_native])
:|  +*begin   0x80000001   -89+   2.500  __ipipe_dispatch_event+0x10c (__ipipe_syscall_root+0x88)
:|  +*end     0x80000001   -86+   2.875N __ipipe_dispatch_event+0x1b0 (__ipipe_syscall_root+0x88)
:   +*func                 -83+   1.875N __ipipe_syscall_root+0x10 (vector_swi+0x64)
:   +*func                 -81+   2.000N __ipipe_dispatch_event+0x14 (__ipipe_syscall_root+0x88)
:|  +*begin   0x80000001   -79+   2.250  __ipipe_dispatch_event+0x44 (__ipipe_syscall_root+0x88)
:|  +*end     0x80000001   -77+   1.500N __ipipe_dispatch_event+0xc4 (__ipipe_syscall_root+0x88)
:   +*func                 -76+   3.250N hisyscall_event+0x14 [xeno_nucleus] (__ipipe_dispatch_event+0xe0)
:   +*func                 -72+   3.875N xnshadow_sys_trace+0x10 [xeno_nucleus] (hisyscall_event+0x160 [xeno_nucleus])
:   +*func                 -69+   2.625N ipipe_trace_frozen_reset+0x10 (xnshadow_sys_trace+0x98 [xeno_nucleus])
:|  +*func                 -66+   2.625N __ipipe_grab_irq+0x10 (__irq_svc+0x24)
:|  +*begin   0xffffffff   -63+   2.000  __ipipe_grab_irq+0x98 (__irq_svc+0x24)
:|  +*func                 -61+   2.000N __ipipe_handle_irq+0x10 (__ipipe_grab_irq+0xd0)
:|  +*func                 -59+   1.750N __ipipe_ack_timerirq+0x10 (__ipipe_handle_irq+0x8c)
:|  +*func                 -58+   1.875N ipipe_test_and_stall_pipeline_from+0x10 (__ipipe_ack_timerirq+0x20)
:|  #*func                 -56+   2.000N __ipipe_mach_acktimer+0x10 (__ipipe_ack_timerirq+0x28)
:|  #*func                 -54+   2.625N s3c_irq_ack+0x10 (__ipipe_ack_timerirq+0x44)
:|  #*func                 -51+   2.375N s3c_irq_unmask+0x10 (__ipipe_ack_timerirq+0x50)
:|  +*func                 -49+   1.625N __ipipe_dispatch_wired+0x10 (__ipipe_handle_irq+0x98)
:|  #*func                 -47+   1.750N xnintr_clock_handler+0x10 [xeno_nucleus] (__ipipe_dispatch_wired+0xe0)
:|  #*func                 -45+   3.000N xnintr_irq_handler+0x14 [xeno_nucleus] (xnintr_clock_handler+0x20 [xeno_nucleus])
:|  #*func                 -42+   2.625N __ipipe_mach_get_tsc+0x10 (xnintr_irq_handler+0x34 [xeno_nucleus])
:|  #*func                 -40+   1.500N xnpod_announce_tick+0x10 [xeno_nucleus] (xnintr_irq_handler+0x54 [xeno_nucleus])
:|  #*func                 -38+   3.250N xntimer_do_tick_aperiodic+0x14 [xeno_nucleus] (xnpod_announce_tick+0x20 [xeno_nucleus])
:|  #*func                 -35+   3.000N __ipipe_mach_get_tsc+0x10 (xntimer_do_tick_aperiodic+0x48 [xeno_nucleus])
:|  #*func                 -32+   2.875N xnthread_periodic_handler+0x10 [xeno_nucleus] (xntimer_do_tick_aperiodic+0xc0 [xeno_nucleus])
:|  #*func                 -29+   1.750N __ipipe_mach_get_tsc+0x10 (xntimer_do_tick_aperiodic+0x48 [xeno_nucleus])
:|  #*func                 -27+   3.625N __ipipe_mach_get_tsc+0x10 (xntimer_do_tick_aperiodic+0x204 [xeno_nucleus])
:|  #*func                 -24+   4.000N __ipipe_mach_set_dec+0x14 (xntimer_do_tick_aperiodic+0x2b8 [xeno_nucleus])
:|  #*func                 -20+   2.125N __ipipe_mach_get_tsc+0x10 (xnintr_irq_handler+0x14c [xeno_nucleus])
:|  #*func                 -18+   1.875N __ipipe_mach_get_tsc+0x10 (xnintr_irq_handler+0x180 [xeno_nucleus])
:|  +*func                 -16+   2.000N __ipipe_walk_pipeline+0x10 (__ipipe_handle_irq+0x1a8)
:|  +*end     0xffffffff   -14+   2.625N __ipipe_grab_irq+0xd8 (__irq_svc+0x24)
:   +*func                 -11+   2.125N __ipipe_global_path_lock+0x10 (ipipe_trace_frozen_reset+0x14)
:|  +*begin   0x80000001    -9+   6.125  __ipipe_global_path_lock+0x30 (ipipe_trace_frozen_reset+0x14)
:|  +*end     0x80000001    -3+   3.250N __ipipe_global_path_unlock+0x68 (ipipe_trace_frozen_reset+0x68)
<   +*freeze  0x0003dc0d     0    3.000N xnshadow_sys_trace+0xa4 [xeno_nucleus] (hisyscall_event+0x160 [xeno_nucleus])
 |  +*begin   0x80000001     3    2.000N __ipipe_dispatch_event+0x10c (__ipipe_syscall_root+0x88)
 |  +*end     0x80000001     5    5.625N __ipipe_dispatch_event+0x1b0 (__ipipe_syscall_root+0x88)
    +*func                  10    1.875N __ipipe_syscall_root+0x10 (vector_swi+0x64)
    +*func                  12    1.875N __ipipe_dispatch_event+0x14 (__ipipe_syscall_root+0x88)
 |  +*begin   0x80000001    14    2.375N __ipipe_dispatch_event+0x44 (__ipipe_syscall_root+0x88)
 |  +*end     0x80000001    16    1.625N __ipipe_dispatch_event+0xc4 (__ipipe_syscall_root+0x88)
    +*func                  18    3.375N hisyscall_event+0x14 [xeno_nucleus] (__ipipe_dispatch_event+0xe0)
    +*func                  21    1.750N __rt_task_wait_period+0x14 [xeno_native] (hisyscall_event+0x160 [xeno_nucleus])
    +*func                  23    2.125N rt_task_wait_period+0x10 [xeno_native] (__rt_task_wait_period+0x54 [xeno_native])
    +*func                  25    0.000N xnpod_wait_thread_period+0x14 [xeno_nucleus] (rt_task_wait_period+0x54 [xeno_native])
#1 lore raw
Quoted 7 lines · Sebastian Smolorz

Hi,

we all know that the latency test should not be run with a period of 100 us because it easily gets locked up. The attached trace illustrates this problem in detail. It shows that a timer interrupt needs about 50 us to be processed. Furthermore, there is not enough time between two timer interrupts for the latency task to get all its work done.

A minimum of 50 us is maybe a little bit pessimistic, probably the effect of the instrumentation itself. But it is true that it is easy to get high maximum latencies when running the cache calibrator in the background.

Quoted 5 lines

The current I-pipe tracer patch for ARM is available at
http://opensource.emlix.com/ipipe-s3c24xx/download/ipipe-tracer-arm.patch_v4

Comments welcome.

This tracer for arm is great.

Signature · 1 line
                                                 Gilles Chanteperdrix
#2 lore raw
In reply to Sebastian Smolorz
Quoted 8 lines · Sebastian Smolorz

Hi,

we all know that the latency test should not be run with a period of 100 us because it easily gets locked up. The attached trace illustrates this problem in detail. It shows that a timer interrupt needs about 50 us to be processed. Furthermore, there is not enough time between two timer interrupts for the latency task to get all its work done.

Quoted 4 lines

The current I-pipe tracer patch for ARM is available at
http://opensource.emlix.com/ipipe-s3c24xx/download/ipipe-tracer-arm.patch_v4

Comments welcome.

Something is still broken, given all those "N"s in Delay column. Is there something like NMI at all on your board?

BTW, two asses the tracer's overhead, you may want to run some consecutive ipipe_trace_specials and watch the result in the log. Should be around 1.something per trace point.

Jan

#3 lore raw
Quoted 9 lines · Jan Kiszka
Quoted 8 lines · Sebastian Smolorz

Hi,

we all know that the latency test should not be run with a period of 100 us because it easily gets locked up. The attached trace illustrates this problem in detail. It shows that a timer interrupt needs about 50 us to be processed. Furthermore, there is not enough time between two timer interrupts for the latency task to get all its work done.

Quoted 8 lines
Quoted 5 lines

The current I-pipe tracer patch for ARM is available at
http://opensource.emlix.com/ipipe-s3c24xx/download/ipipe-tracer-arm.patch
_v4

Comments welcome.

Something is still broken, given all those "N"s in Delay column. Is there something like NMI at all on your board?

There isn't AFAIK. What could be the reason for all this noise? Recursive spin-locking?

Quoted 4 lines

BTW, two asses the tracer's overhead, you may want to run some consecutive ipipe_trace_specials and watch the result in the log. Should be around 1.something per trace point.

It lies between 1.5 and 2.25 us. So the delay values get much more better.

--
Sebastian

#4 lore raw
Quoted 14 lines · Sebastian Smolorz
Quoted 13 lines · Jan Kiszka
Quoted 12 lines · Sebastian Smolorz

Hi,

we all know that the latency test should not be run with a period of 100 us because it easily gets locked up. The attached trace illustrates this problem in detail. It shows that a timer interrupt needs about 50 us to be processed. Furthermore, there is not enough time between two timer interrupts for the latency task to get all its work done.

The current I-pipe tracer patch for ARM is available at
http://opensource.emlix.com/ipipe-s3c24xx/download/ipipe-tracer-arm.patch
_v4

Quoted 6 lines
Quoted 3 lines
Quoted 1 line

Comments welcome.

Something is still broken, given all those "N"s in Delay column. Is there something like NMI at all on your board?

There isn't AFAIK. What could be the reason for all this noise? Recursive spin-locking?

Yes. If those Ns aren't false positive in the sense that IPIPE_TFLG_NMI_HIT is set accidentally, __ipipe_trace is re-entered while IPIPE_TFLG_NMI_LOCK is still set.

Jan

#5 lore raw
Quoted 20 lines · Jan Kiszka
Quoted 19 lines · Sebastian Smolorz
Quoted 17 lines · Jan Kiszka
Quoted 8 lines · Sebastian Smolorz

Hi,

we all know that the latency test should not be run with a period of 100 us because it easily gets locked up. The attached trace illustrates this problem in detail. It shows that a timer interrupt needs about 50 us to be processed. Furthermore, there is not enough time between two timer interrupts for the latency task to get all its work done.

Quoted 5 lines

The current I-pipe tracer patch for ARM is available at
http://opensource.emlix.com/ipipe-s3c24xx/download/ipipe-tracer-arm.pat
ch _v4

Comments welcome.

Something is still broken, given all those "N"s in Delay column. Is there something like NMI at all on your board?

Quoted 6 lines
Quoted 2 lines

There isn't AFAIK. What could be the reason for all this noise? Recursive spin-locking?

Yes. If those Ns aren't false positive in the sense that IPIPE_TFLG_NMI_HIT is set accidentally, __ipipe_trace is re-entered while IPIPE_TFLG_NMI_LOCK is still set.

Interesting: If I disable CONFIG_IPIPE_TRACE_MCOUNT the "Noise" doesn't appear at all.

--
Sebastian

#6 lore raw
Quoted 19 lines · Sebastian Smolorz
Quoted 18 lines · Jan Kiszka
Quoted 17 lines · Sebastian Smolorz
Quoted 16 lines · Jan Kiszka
Quoted 8 lines · Sebastian Smolorz

Hi,

we all know that the latency test should not be run with a period of 100 us because it easily gets locked up. The attached trace illustrates this problem in detail. It shows that a timer interrupt needs about 50 us to be processed. Furthermore, there is not enough time between two timer interrupts for the latency task to get all its work done.

Quoted 5 lines

The current I-pipe tracer patch for ARM is available at
http://opensource.emlix.com/ipipe-s3c24xx/download/ipipe-tracer-arm.pat
ch _v4

Comments welcome.

Something is still broken, given all those "N"s in Delay column. Is there something like NMI at all on your board?

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

There isn't AFAIK. What could be the reason for all this noise? Recursive spin-locking?

Yes. If those Ns aren't false positive in the sense that IPIPE_TFLG_NMI_HIT is set accidentally, __ipipe_trace is re-entered while IPIPE_TFLG_NMI_LOCK is still set.

Interesting: If I disable CONFIG_IPIPE_TRACE_MCOUNT the "Noise" doesn't appear at all.

Sounds like some function that __ipipe_trace calls is instrumented, thus the recursion. Could be something trivial like memcpy (if that happens to be uninlined here). You may want to check the disassembly... :)

Jan

#7 lore raw
Quoted 30 lines · Jan Kiszka
Quoted 29 lines · Sebastian Smolorz
Quoted 27 lines · Jan Kiszka
Quoted 15 lines · Sebastian Smolorz
Quoted 14 lines · Jan Kiszka
Quoted 13 lines · Sebastian Smolorz

Hi,

we all know that the latency test should not be run with a period of 100 us because it easily gets locked up. The attached trace illustrates this problem in detail. It shows that a timer interrupt needs about 50 us to be processed. Furthermore, there is not enough time between two timer interrupts for the latency task to get all its work done.

The current I-pipe tracer patch for ARM is available at
http://opensource.emlix.com/ipipe-s3c24xx/download/ipipe-tracer-arm.p
at ch _v4

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Comments welcome.

Something is still broken, given all those "N"s in Delay column. Is there something like NMI at all on your board?

There isn't AFAIK. What could be the reason for all this noise? Recursive spin-locking?

Yes. If those Ns aren't false positive in the sense that IPIPE_TFLG_NMI_HIT is set accidentally, __ipipe_trace is re-entered while IPIPE_TFLG_NMI_LOCK is still set.

Quoted 6 lines
Quoted 2 lines

Interesting: If I disable CONFIG_IPIPE_TRACE_MCOUNT the "Noise" doesn't appear at all.

Sounds like some function that __ipipe_trace calls is instrumented, thus the recursion. Could be something trivial like memcpy (if that happens to be uninlined here).

Ok, your hint was very useful! The problem was __ipipe_mach_get_tsc() which is no inline function (and can't be). I solved it by adding 'notrace' to the function. Now the 'N's don't appear at all!

--
Sebastian

#8 lore raw
Quoted 29 lines · Sebastian Smolorz
Quoted 28 lines · Jan Kiszka
Quoted 27 lines · Sebastian Smolorz
Quoted 16 lines · Jan Kiszka
Quoted 15 lines · Sebastian Smolorz
Quoted 14 lines · Jan Kiszka
Quoted 13 lines · Sebastian Smolorz

Hi,

we all know that the latency test should not be run with a period of 100 us because it easily gets locked up. The attached trace illustrates this problem in detail. It shows that a timer interrupt needs about 50 us to be processed. Furthermore, there is not enough time between two timer interrupts for the latency task to get all its work done.

The current I-pipe tracer patch for ARM is available at
http://opensource.emlix.com/ipipe-s3c24xx/download/ipipe-tracer-arm.p
at ch _v4

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Comments welcome.

Something is still broken, given all those "N"s in Delay column. Is there something like NMI at all on your board?

There isn't AFAIK. What could be the reason for all this noise? Recursive spin-locking?

Yes. If those Ns aren't false positive in the sense that IPIPE_TFLG_NMI_HIT is set accidentally, __ipipe_trace is re-entered while IPIPE_TFLG_NMI_LOCK is still set.

Interesting: If I disable CONFIG_IPIPE_TRACE_MCOUNT the "Noise" doesn't appear at all.

Quoted 7 lines
Quoted 3 lines

Sounds like some function that __ipipe_trace calls is instrumented, thus the recursion. Could be something trivial like memcpy (if that happens to be uninlined here).

Ok, your hint was very useful! The problem was __ipipe_mach_get_tsc() which is no inline function (and can't be). I solved it by adding 'notrace' to the function. Now the 'N's don't appear at all!

And I guess the overhead should drop a bit as well. Perfect.

If you have anything more pending, please post soon, Gilles is collecting the ARM stuff for Xenomai 2.3.

Jan

#9 lore raw
Quoted 3 lines · Jan Kiszka

If you have anything more pending, please post soon, Gilles is collecting the ARM stuff for Xenomai 2.3.

Attached are all patches that I posted in the last two months but didn't get into Ipipe CVS or Xenomai svn. The first file pools all patches for Ipipe, here comes an overview what it comprises:

- I-pipe for Samsung S3C24xx
- I-pipe tracer for ARM
- Introduce __ipipe_mach_release_timer()
- Fix ipipe_tsc2ns()
- Don't activate the tracer too early during the boot process

Please consider these patches for Xenomai 2.3. Thanks!

--
Sebastian

arch/arm/boot/compressed/head.S +10 -0
diff -upNr linux-2.6.15-ipipe.orig/arch/arm/boot/compressed/head.S linux-2.6.15-ipipe/arch/arm/boot/compressed/head.S
@@ -710,6 +710,16 @@ memdump:	mov	r12, r0
 		mov	pc, r10
 #endif
 
+#ifdef CONFIG_IPIPE_TRACE_MCOUNT
+                .text
+                .align 0
+                .type mcount %function
+                .global mcount
+mcount:
+		mov pc, lr	@ just return
+#endif
+
+
 reloc_end:
 
 		.align
arch/arm/kernel/entry-common.S +25 -0
diff -upNr linux-2.6.15-ipipe.orig/arch/arm/kernel/entry-common.S linux-2.6.15-ipipe/arch/arm/kernel/entry-common.S
@@ -294,3 +294,28 @@ sys_mmap2:
 		str	r5, [sp, #4]
 		b	do_mmap2
 #endif
+
+#ifdef CONFIG_FRAME_POINTER
+
+	.text
+	.align 0
+	.type arm_return_addr %function
+	.global arm_return_addr
+
+arm_return_addr:
+	mov	ip, r0
+	mov	r0, fp
+3:
+	cmp	r0, #0
+	beq	1f		@ frame list hit end, bail
+	cmp	ip, #0
+	beq	2f		@ reached desired frame
+	ldr	r0, [r0, #-12]  @ else continue, get next fp
+	sub	ip, ip, #1
+	b	3b
+2:
+	ldr	r0, [r0, #-4]   @ get target return address
+1:
+	mov	pc, lr
+
+#endif
arch/arm/kernel/ipipe-mcount.S +40 -0
diff -upNr linux-2.6.15-ipipe.orig/arch/arm/kernel/ipipe-mcount.S linux-2.6.15-ipipe/arch/arm/kernel/ipipe-mcount.S
@@ -0,0 +1,40 @@
+/*
+ *  linux/arch/arm/kernel/ipipe-mcount.S
+ *
+ *  Copyright (C) 2006 Sebastian Smolorz <[email protected]>, emlix GmbH
+ */
+
+#include <linux/config.h>
+
+#ifdef CONFIG_FRAME_POINTER
+
+	.text
+	.align 0
+	.type mcount %function
+	.global mcount
+
+mcount:
+
+	ldr	ip, =ipipe_trace_enable	@ leave early, if disabled
+	ldr	ip, [ip]
+	cmp	ip, #0
+	moveq	pc,lr
+
+	mov	ip,  sp
+	stmdb   sp!, {r0 - r3, fp, ip, lr, pc}	@ create stack frame
+
+	mov	r3, #0			@ no additional value (v)
+	ldr	r2, [fp, #-4]		@ get lr (the return address
+					@ of the caller of the
+					@ instrumented function)
+	mov	r1, lr			@ get lr - (the return address
+					@ of the instrumented function)
+	mov	r0, #0			@ IPIPE_TRACE_FN
+
+	sub	fp, ip, #4		@ point fp at this frame
+
+	bl	__ipipe_trace
+
+	ldmdb   fp, {r0 - r3, fp, sp, pc}	@ pop entry frame and return
+
+#endif
arch/arm/kernel/ipipe-root.c +13 -0
diff -upNr linux-2.6.15-ipipe.orig/arch/arm/kernel/ipipe-root.c linux-2.6.15-ipipe/arch/arm/kernel/ipipe-root.c
@@ -306,11 +306,19 @@ asmlinkage int __ipipe_grab_irq(int irq,
 		}
 	}
 
+#ifdef CONFIG_IPIPE_TRACE_IRQSOFF
+	ipipe_trace_begin(regs->ARM_ORIG_r0);
+#endif
+
 	if (__ipipe_mach_irq_mux_p(irq))
 		__ipipe_mach_demux_irq(irq, regs);
 	else
 		__ipipe_handle_irq(irq, regs);
 
+#ifdef CONFIG_IPIPE_TRACE_IRQSOFF
+	ipipe_trace_end(regs->ARM_ORIG_r0);
+#endif
+
 	ipipe_load_cpuid();
 
 	return (per_cpu(ipipe_percpu_domain, cpuid) == ipipe_root_domain &&
@@ -376,3 +384,8 @@ EXPORT_SYMBOL_GPL(show_stack);
 #ifndef MULTI_CPU
 EXPORT_SYMBOL_GPL(cpu_do_switch_mm);
 #endif
+
+#ifdef CONFIG_IPIPE_TRACE_MCOUNT
+void notrace mcount(void);
+EXPORT_SYMBOL(mcount);
+#endif /* CONFIG_IPIPE_TRACE_MCOUNT */
arch/arm/kernel/Makefile +1 -0
diff -upNr linux-2.6.15-ipipe.orig/arch/arm/kernel/Makefile linux-2.6.15-ipipe/arch/arm/kernel/Makefile
@@ -20,6 +20,7 @@ obj-$(CONFIG_ISA_DMA)		+= dma-isa.o
 obj-$(CONFIG_PCI)		+= bios32.o
 obj-$(CONFIG_SMP)		+= smp.o
 obj-$(CONFIG_IPIPE)		+= ipipe-core.o ipipe-root.o
+obj-$(CONFIG_IPIPE_TRACE_MCOUNT)	+= ipipe-mcount.o
 
 obj-$(CONFIG_IWMMXT)		+= iwmmxt.o
 AFLAGS_iwmmxt.o			:= -Wa,-mcpu=iwmmxt
arch/arm/kernel/process.c +8 -2
diff -upNr linux-2.6.15-ipipe.orig/arch/arm/kernel/process.c linux-2.6.15-ipipe/arch/arm/kernel/process.c
@@ -89,12 +89,18 @@ void default_idle(void)
 	if (hlt_counter)
 		cpu_relax();
 	else {
-		local_irq_disable_hw();
+		local_irq_disable();
 		if (!need_resched()) {
 			timer_dyn_reprogram();
+#ifdef CONFIG_IPIPE
+			__ipipe_unstall_root();
+#ifdef CONFIG_IPIPE_TRACE_IRQSOFF
+			ipipe_trace_end(0x8000000E);
+#endif /* CONFIG_IPIPE_TRACE_IRQSOFF */
+#endif /* CONFIG_IPIPE */
 			arch_idle();
 		}
-		local_irq_enable_hw();
+		local_irq_enable();
 	}
 }
 
arch/arm/mach-integrator/core.c +7 -1
diff -upNr linux-2.6.15-ipipe.orig/arch/arm/mach-integrator/core.c linux-2.6.15-ipipe/arch/arm/mach-integrator/core.c
@@ -303,7 +303,7 @@ void __ipipe_mach_acktimer(void)
 	writel(1, TIMER1_VA_BASE + TIMER_INTCLR);
 }
 
-unsigned long long __ipipe_mach_get_tsc(void)
+notrace unsigned long long __ipipe_mach_get_tsc(void)
 {
 	unsigned long long result;
 	unsigned long flags;
@@ -330,6 +330,12 @@ void __ipipe_mach_set_dec(unsigned long 
 }
 EXPORT_SYMBOL(__ipipe_mach_set_dec);
 
+void __ipipe_mach_release_timer(void)
+{
+       __ipipe_mach_set_dec(__ipipe_mach_ticks_per_jiffy);
+}
+EXPORT_SYMBOL(__ipipe_mach_release_timer);
+
 unsigned long __ipipe_mach_get_dec(void)
 {
 	return readl(TIMER1_VA_BASE + TIMER_VALUE);
arch/arm/mach-pxa/time.c +7 -1
diff -upNr linux-2.6.15-ipipe.orig/arch/arm/mach-pxa/time.c linux-2.6.15-ipipe/arch/arm/mach-pxa/time.c
@@ -270,7 +270,7 @@ void __ipipe_mach_acktimer(void)
 	OSSR = OSSR_M0;  /* Clear match on timer 0 */
 }
 
-unsigned long long __ipipe_mach_get_tsc(void)
+notrace unsigned long long __ipipe_mach_get_tsc(void)
 {
 	if (likely(pxa_timer_initialized)) {
 		static union {
@@ -324,6 +324,12 @@ void __ipipe_mach_set_dec(unsigned long 
 }
 EXPORT_SYMBOL(__ipipe_mach_set_dec);
 
+void __ipipe_mach_release_timer(void)
+{
+       __ipipe_mach_set_dec(__ipipe_mach_ticks_per_jiffy);
+}
+EXPORT_SYMBOL(__ipipe_mach_release_timer);
+
 unsigned long __ipipe_mach_get_dec(void)
 {
 	return OSMR0 - OSCR;
arch/arm/mach-s3c2410/irq.c +88 -1

119 lines not on this page · raw message

arch/arm/mach-s3c2410/s3c2440-irq.c +34 -1
diff -upNr linux-2.6.15-ipipe.orig/arch/arm/mach-s3c2410/s3c2440-irq.c linux-2.6.15-ipipe/arch/arm/mach-s3c2410/s3c2440-irq.c
@@ -3,6 +3,8 @@
  * Copyright (c) 2003,2004 Simtec Electronics
  *	Ben Dooks <[email protected]>
  *
+ * Copyright (C) 2006 Sebastian Smolorz <[email protected]>, emlix GmbH
+ *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
@@ -19,8 +21,10 @@
  *
  * Changelog:
  *	25-Jul-2005 BJD		Split from irq.c
+ *   	11-Oct-2006 Sebastian Smolorz
+ *		    Added Adeos/Ipipe support
  *
-*/
+ */
 
 #include <linux/init.h>
 #include <linux/module.h>
@@ -28,6 +32,7 @@
 #include <linux/ioport.h>
 #include <linux/ptrace.h>
 #include <linux/sysdev.h>
+#include <linux/ipipe.h>
 
 #include <asm/hardware.h>
 #include <asm/irq.h>
@@ -157,6 +162,34 @@ static struct irqchip s3c_irq_cam = {
 	.ack	    = s3c_irq_cam_ack,
 };
 
+#ifdef CONFIG_IPIPE
+void __ipipe_s3c_irq_demux_wdtac97(unsigned int subsrc, struct pt_regs *regs)
+{
+	subsrc >>= 13;
+	subsrc &= 3;
+
+	if (subsrc != 0) {
+		if (subsrc & 1)
+			__ipipe_handle_irq(IRQ_S3C2440_WDT, regs);
+		if (subsrc & 2)
+			__ipipe_handle_irq(IRQ_S3C2440_AC97, regs);
+	}
+}
+
+void __ipipe_s3c_irq_demux_cam(unsigned int subsrc, struct pt_regs *regs)
+{
+	subsrc >>= 11;
+	subsrc &= 3;
+
+	if (subsrc != 0) {
+		if (subsrc & 1)
+			__ipipe_handle_irq(IRQ_S3C2440_CAM_C, regs);
+		if (subsrc & 2)
+			__ipipe_handle_irq(IRQ_S3C2440_CAM_P, regs);
+	}
+}
+#endif /* CONFIG_IPIPE */
+
 static int s3c2440_irq_add(struct sys_device *sysdev)
 {
 	unsigned int irqno;
arch/arm/mach-s3c2410/time.c +149 -47

288 lines not on this page · raw message

arch/arm/mach-sa1100/time.c +7 -1
diff -upNr linux-2.6.15-ipipe.orig/arch/arm/mach-sa1100/time.c linux-2.6.15-ipipe/arch/arm/mach-sa1100/time.c
@@ -263,7 +263,7 @@ void __ipipe_mach_acktimer(void)
 	OSSR = OSSR_M0;  /* Clear match on timer 0 */
 }
 
-unsigned long long __ipipe_mach_get_tsc(void)
+notrace unsigned long long __ipipe_mach_get_tsc(void)
 {
 	if (likely(sa1100_timer_initialized)) {
 		static union {
@@ -314,6 +314,12 @@ void __ipipe_mach_set_dec(unsigned long 
 }
 EXPORT_SYMBOL(__ipipe_mach_set_dec);
 
+void __ipipe_mach_release_timer(void)
+{
+       __ipipe_mach_set_dec(__ipipe_mach_ticks_per_jiffy);
+}
+EXPORT_SYMBOL(__ipipe_mach_release_timer);
+
 unsigned long __ipipe_mach_get_dec(void)
 {
 	return OSMR0 - OSCR;
include/asm-arm/arch-s3c2410/irqs.h +25 -0
diff -upNr linux-2.6.15-ipipe.orig/include/asm-arm/arch-s3c2410/irqs.h linux-2.6.15-ipipe/include/asm-arm/arch-s3c2410/irqs.h
@@ -3,6 +3,8 @@
  * Copyright (c) 2003-2005 Simtec Electronics
  *   Ben Dooks <[email protected]>
  *
+ * Copyright (C) 2006 Sebastian Smolorz <[email protected]>, emlix GmbH
+ *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
@@ -13,6 +15,7 @@
  *  12-Mar-2004 BJD  Fixed bug in header protection
  *  10-Feb-2005 BJD  Added camera IRQ from [email protected]
  *  28-Feb-2005 BJD  Updated s3c2440 IRQs
+ *  30-Oct-2006      Added Adeos/I-pipe support
  */
 
 
@@ -123,4 +126,26 @@
 #define NR_IRQS (IRQ_S3C2440_AC97+1)
 
 
+#ifdef CONFIG_IPIPE
+#define __ipipe_irqbit(irq)	(1 << ((irq) - S3C2410_CPUIRQ_OFFSET))
+
+#ifdef CONFIG_CPU_S3C2440
+#define __ipipe_muxed_irqmask	(__ipipe_irqbit(IRQ_UART0)	|	\
+				 __ipipe_irqbit(IRQ_UART1)	|	\
+				 __ipipe_irqbit(IRQ_UART2)	|	\
+				 __ipipe_irqbit(IRQ_ADCPARENT)	|	\
+				 __ipipe_irqbit(IRQ_WDT)	|	\
+				 __ipipe_irqbit(IRQ_CAM))
+#else /* !CONFIG_CPU_S3C2440 */
+#define __ipipe_muxed_irqmask	(__ipipe_irqbit(IRQ_UART0)	|	\
+				 __ipipe_irqbit(IRQ_UART1)	|	\
+				 __ipipe_irqbit(IRQ_UART2)	|	\
+				 __ipipe_irqbit(IRQ_ADCPARENT))
+#endif /* CONFIG_CPU_S3C2440 */
+
+#define __ipipe_mach_irq_mux_p(irq)	((irq) <= IRQ_ADCPARENT  &&	\
+					 (__ipipe_irqbit(irq) &		\
+					  __ipipe_muxed_irqmask))
+#endif /* CONFIG_IPIPE */
+
 #endif /* __ASM_ARCH_IRQ_H */
include/asm-arm/ipipe.h +10 -1
diff -upNr linux-2.6.15-ipipe.orig/include/asm-arm/ipipe.h linux-2.6.15-ipipe/include/asm-arm/ipipe.h
@@ -95,6 +95,13 @@ do {								\
 #define IPIPE_LAST_EVENT	IPIPE_EVENT_CLEANUP
 #define IPIPE_NR_EVENTS		(IPIPE_LAST_EVENT + 1)
 
+extern unsigned long arm_return_addr(int level);
+
+#define BROKEN_BUILTIN_RETURN_ADDRESS
+#define __BUILTIN_RETURN_ADDRESS0 arm_return_addr(0)
+#define __BUILTIN_RETURN_ADDRESS1 arm_return_addr(1)
+
+
 struct ipipe_domain;
 
 struct ipipe_sysinfo {
@@ -117,6 +124,7 @@ extern unsigned int __ipipe_mach_ticks_p
 extern void __ipipe_mach_acktimer(void);
 extern unsigned long long __ipipe_mach_get_tsc(void);
 extern void __ipipe_mach_set_dec(unsigned long);
+extern void __ipipe_mach_release_timer(void);
 extern unsigned long __ipipe_mach_get_dec(void);
 extern void __ipipe_mach_demux_irq(unsigned irq, struct pt_regs *regs);
 
@@ -124,7 +132,8 @@ extern void __ipipe_mach_demux_irq(unsig
 #define __ipipe_read_timebase()		__ipipe_mach_get_tsc()
 
 #define ipipe_cpu_freq()	(HZ * __ipipe_mach_ticks_per_jiffy)
-#define ipipe_tsc2ns(t)		(((t) * 1000) / (ipipe_cpu_freq() / 1000000))
+#define ipipe_tsc2ns(t) 	(((unsigned long)(t) * 1000) / (ipipe_cpu_freq() / 1000000))
+#define ipipe_tsc2us(t) 	(((unsigned long)(t)) / (ipipe_cpu_freq() / 1000000))
 
 /* Private interface -- Internal use only */
 
include/asm-arm/system.h +63 -14

133 lines not on this page · raw message

include/linux/ipipe.h +1 -1
diff -upNr linux-2.6.15-ipipe.orig/include/linux/ipipe.h linux-2.6.15-ipipe/include/linux/ipipe.h
@@ -38,7 +38,7 @@
 #ifndef BROKEN_BUILTIN_RETURN_ADDRESS
 #define __BUILTIN_RETURN_ADDRESS0 ((unsigned long)__builtin_return_address(0))
 #define __BUILTIN_RETURN_ADDRESS1 ((unsigned long)__builtin_return_address(1))
-#endif /* !BUILTIN_RETURN_ADDRESS */
+#endif /* !BROKEN_BUILTIN_RETURN_ADDRESS */
 
 #define IPIPE_ROOT_PRIO		100
 #define IPIPE_ROOT_ID		0
kernel/ipipe/tracer.c +2 -4
diff -upNr linux-2.6.15-ipipe.orig/kernel/ipipe/tracer.c linux-2.6.15-ipipe/kernel/ipipe/tracer.c
@@ -100,12 +100,10 @@ enum ipipe_trace_type
 
 
 #ifdef CONFIG_IPIPE_TRACE_VMALLOC
-#define IPIPE_DEFAULT_TRACE_STATE   0
 
 static struct ipipe_trace_path *trace_paths[NR_CPUS];
 
 #else /* !CONFIG_IPIPE_TRACE_VMALLOC */
-#define IPIPE_DEFAULT_TRACE_STATE   CONFIG_IPIPE_TRACE_ENABLE_VALUE
 
 static struct ipipe_trace_path trace_paths[NR_CPUS][IPIPE_TRACE_PATHS] =
 	{ [0 ... NR_CPUS-1] =
@@ -115,7 +113,7 @@ static struct ipipe_trace_path trace_pat
 	};
 #endif /* CONFIG_IPIPE_TRACE_VMALLOC */
 
-int ipipe_trace_enable = IPIPE_DEFAULT_TRACE_STATE;
+int ipipe_trace_enable = 0;
 
 static int active_path[NR_CPUS] =
 	{ [0 ... NR_CPUS-1] = IPIPE_DEFAULT_ACTIVE };
@@ -1217,8 +1215,8 @@ void __init __ipipe_init_tracer(void)
 			trace_paths[cpu][path].end   = -1;
 		}
 	}
-	ipipe_trace_enable = CONFIG_IPIPE_TRACE_ENABLE_VALUE;
 #endif /* CONFIG_IPIPE_TRACE_VMALLOC */
+	ipipe_trace_enable = CONFIG_IPIPE_TRACE_ENABLE_VALUE;
 
 	trace_dir = create_proc_entry("trace", S_IFDIR, ipipe_proc_root);
 
ChangeLog +5 -0
Index: ChangeLog
===================================================================
@@ -1,3 +1,8 @@
+2006-12-18  Sebastian Smolorz  <[email protected]>
+
+	* ksrc/arch/arm/hal.c: Introduce __ipipe_mach_release_timer()
+	according to changes in I-pipe for ARM
+
 2006-12-18  Jan Kiszka  <[email protected]>
 
 	* scripts/xeno-test.in, src/testsuite/*: Install testsuite binaries
arch/arm/hal.c +1 -1
Index: ksrc/arch/arm/hal.c
===================================================================
@@ -94,7 +94,7 @@ void rthal_timer_release(void)
     if (rthal_periodic_p)
         rthal_reset_timer();
     else
-        __ipipe_mach_set_dec(__ipipe_mach_ticks_per_jiffy);
+        __ipipe_mach_release_timer();
 
     rthal_irq_release(RTHAL_TIMER_IRQ);
 
#10 lore raw
Quoted 9 lines · Sebastian Smolorz
Quoted 3 lines · Jan Kiszka

If you have anything more pending, please post soon, Gilles is collecting the ARM stuff for Xenomai 2.3.

Attached are all patches that I posted in the last two months but didn't get into Ipipe CVS or Xenomai svn. The first file pools all patches for Ipipe, here comes an overview what it comprises:

Quoted 8 lines

- I-pipe for Samsung S3C24xx
- I-pipe tracer for ARM
- Introduce __ipipe_mach_release_timer()
- Fix ipipe_tsc2ns()
- Don't activate the tracer too early during the boot process

Please consider these patches for Xenomai 2.3. Thanks!

They will be included. The point is that we are not using the Adeos CVS anymore, waiting to switch to git asap.

Quoted 6 lines

--
Sebastian
_______________________________________________
Adeos-main mailing list
[email protected]
https://mail.gna.org/listinfo/adeos-main

Signature · 1 line
Philippe.
#11 lore raw
Quoted 15 lines · Philippe Gerum
Quoted 14 lines · Sebastian Smolorz
Quoted 2 lines · Jan Kiszka

If you have anything more pending, please post soon, Gilles is collecting the ARM stuff for Xenomai 2.3.

Attached are all patches that I posted in the last two months but didn't get into Ipipe CVS or Xenomai svn. The first file pools all patches for Ipipe, here comes an overview what it comprises:

- I-pipe for Samsung S3C24xx
- I-pipe tracer for ARM
- Introduce __ipipe_mach_release_timer()
- Fix ipipe_tsc2ns()
- Don't activate the tracer too early during the boot process

Quoted 4 lines
Quoted 1 line

Please consider these patches for Xenomai 2.3. Thanks!

They will be included. The point is that we are not using the Adeos CVS anymore, waiting to switch to git asap.

OK, didn't know that. These patches are the most current, please take them and not the ones posted before. Thank you!

--
Sebastian

#12 lore raw
Quoted 16 lines · Sebastian Smolorz
Quoted 15 lines · Philippe Gerum
Quoted 14 lines · Sebastian Smolorz
Quoted 2 lines · Jan Kiszka

If you have anything more pending, please post soon, Gilles is collecting the ARM stuff for Xenomai 2.3.

Attached are all patches that I posted in the last two months but didn't get into Ipipe CVS or Xenomai svn. The first file pools all patches for Ipipe, here comes an overview what it comprises:

- I-pipe for Samsung S3C24xx
- I-pipe tracer for ARM
- Introduce __ipipe_mach_release_timer()
- Fix ipipe_tsc2ns()
- Don't activate the tracer too early during the boot process

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Please consider these patches for Xenomai 2.3. Thanks!

They will be included. The point is that we are not using the Adeos CVS anymore, waiting to switch to git asap.

OK, didn't know that. These patches are the most current, please take them and not the ones posted before. Thank you!

Gilles maintains the ARM support; he will push upstream the patch that I will merge eventually. In any case, 2.3 final won't be rolled out without the updated ARM patch in. Thanks.

Signature · 1 line
Philippe.
#13 lore raw
In reply to Philippe Gerum
Quoted 15 lines · Philippe Gerum
Quoted 14 lines · Sebastian Smolorz
Quoted 2 lines · Jan Kiszka

If you have anything more pending, please post soon, Gilles is collecting the ARM stuff for Xenomai 2.3.

Attached are all patches that I posted in the last two months but didn't get into Ipipe CVS or Xenomai svn. The first file pools all patches for Ipipe, here comes an overview what it comprises:

- I-pipe for Samsung S3C24xx
- I-pipe tracer for ARM
- Introduce __ipipe_mach_release_timer()
- Fix ipipe_tsc2ns()
- Don't activate the tracer too early during the boot process

Quoted 4 lines
Quoted 1 line

Please consider these patches for Xenomai 2.3. Thanks!

They will be included. The point is that we are not using the Adeos CVS anymore, waiting to switch to git asap.

BTW, is there an up-to-date I-pipe repository available (git-based or not)?

--
Sebastian