Adeos/Xenomai Arm Port
Hi!
I've tried to implement Adeos 1.5 and Xenomai 2.2.3 on a Netsilicon-Platform (ns9750-evalboard with Arm926EJ).
The Timer is implemented (with a manual __ipipe_trigger_irq if reload<3). The Interrupt-Demuxer is deactivated.
The System boots with Adeos & Xenomai. Time is running normally. Things look generally very good, but there are some Problems:
1. Latencies are very high.
dd if=/dev/zero of=/dev/null &
./latency -p 10000 -T 20
RTS| 92.592| 95.486| 125.506| 0|
00:00:20/00:00:20
I know, it's a common problem with Xenomai/ARM. Is it true, that it has something to do with a slow processor-cache-flush? Does anybody know more about that?
2. I've to use very high Periods on Latency-Tests.
With load i've to use > 500 us
Without load i've to use > 1000 us (!?!)
If I run ./latency -p 1000 without any load I get latencies between 40 and 70 us, but the Process is killed after a few seconds.
- sometimes simply the message "Killed" is printed.
In this case the system is running, but if i try to start another
latency-Process the system crashes (most of time: "Unable to handle kernel paging request at virtual address xxxxxxxx".)
- sometimes the system simply stands still (linux-timerisr /
linux-timer_tick is'nt called anymore)
jtag-debugger gdb-output: Program received signal SIGSTOP, Stopped (signal). 0x0000ba40 in ?? () (gdb) stepi 0x0000ba40 in ?? () Infinite loop detected
The same happens if I run ./latency -p 500 with load.
3. in-kernel periodic task & in-kernel timer benchmark
-sh-3.00# ./latency -t 2 -T 10
== Sampling period: 100 us
== Test mode: in-kernel timer handler
== All results in microseconds
latency: failed to start in-kernel timer benchmark, code -25
---|------------|------------|------------|--------|------------------------- RTS|-1093001.752| 0.001| 93.252| 93340|
00:00:10/00:00:10
-sh-3.00# ./latency -t 1 -T 10
== Sampling period: 100 us
== Test mode: in-kernel periodic task
== All results in microseconds
latency: failed to start in-kernel timer benchmark, code -25
---|------------|------------|------------|--------|------------------------- RTS|-1097339.416| 0.001| 93.252| 93340|
00:00:10/00:00:10
What does "latency: failed to start in-kernel timer benchmark, code -25" mean? Are the results valid?
4. switchtest & switchbench
-sh-3.00# ./switchtest
== Testing FPU check routines...
== FPU check routines: unimplemented, skipping FPU switches tests. == Threads: sleeper-0 rtk-1 rtk-2 rtup-3 rtup-4 rtus-5 rtus-6 rtuo-7 rtuo-8
RTT| 00:00:01 RTH|ctx switches|-------total RTD| 450| 450 RTD| 450| 900 RTD| 459| 1359 RTD| 450| 1809 RTD| 459| 2268 RTD| 459| 2727 RTD| 450| 3177
switchtest seems to run normally, but what does the output mean?
The problems with switchbench are similar to the Problems discussed in #2.
-sh-3.00# ./switchbench -n 100 -p 10000
== Sampling period: 10000 us
== Do not interrupt this program
RTH| lat min| lat avg| lat max| lost RTD| 86443| 90060| 101634| 0 -sh-3.00# ./switchbench -n 100 -p 1000 == Sampling period: 1000 us == Do not interrupt this program RTH| lat min| lat avg| lat max| lost RTD| 77039| 81741| 98741| 0 -sh-3.00# ./switchbench -n 100 -p 100 == Sampling period: 100 us == Do not interrupt this program [ 122.670000] Unable to handle kernel paging request at virtual address e2822059 [ 122.670000] pgd = c3b60000 [ 122.670000] [e2822059] *pgd=00000000 [ 122.670000] Internal error: Oops: 805 [#1] [ 122.670000] Modules linked in: [ 122.670000] CPU: 0 [ 122.670000] pc : [<c0150930>] lr : [<c015080c>] Not tainted [ 122.670000] sp : c39d0014 ip : c3b54044 fp : c39d0040 [ 122.670000] r10: c02d43e4 r9 : 00800000 r8 : c0322b2c [ 122.670000] r7 : c032212c r6 : 00000000 r5 : c01194e0 r4 : 00000000 [ 122.670000] r3 : 00000000 r2 : e282200c r1 : c3b54000 r0 : c3b54000 [ 122.670000] Flags: NzCv IRQs off FIQs on Mode SVC_32 Segment user [ 122.670000] Control: 5317F Table: 03B60000 DAC: 00000015 [ 122.670000] Process worker (pid: 131, stack limit = 0xc39ce194) [ 122.670000] Stack: (0xc39d0014 to 0xc39d0000) [ 122.670000] Backtrace: [ 122.670000] Function entered at [<c01502e8>] from [<c014d25c>] [ 122.670000] Function entered at [<c014d1c4>] from [<c014d2a4>] [ 122.670000] r7 = 00000000 r6 = C02D2680 r5 = C02D2880 r4 = C02D2688 [ 122.670000] Function entered at [<c014d288>] from [<c014a350>] [ 122.670000] Function entered at [<c014a1e8>] from [<c014a7a4>] [ 122.670000] Function entered at [<c014a700>] from [<c0126000>] [ 122.670000] r7 = C02D2680 r6 = C02D2880 r5 = 00000010 r4 = C02D2680 [ 122.670000] Function entered at [<c0125e64>] from [<c01260a8>] [ 122.670000] Function entered at [<c0126010>] from [<c011f824>] [ 122.670000] Code: e3c3303f e593300c e5932004 e3a03001 (e5c2304d)
5. cyclictest
Here some test-cases:
-sh-3.00# ./cyclictest -l 100
0.03 0.01 0.00 1/21 53
T: 0 ( 53) P: 0 I: 1000 C: 100 Min:-1087273 Act:-1087273 Max:
-989708
-sh-3.00# ./cyclictest -l 1000
0.02 0.01 0.00 2/22 56
T: 0 ( 56) P: 0 I: 1000 C: 1000 Min:-1973899 Act:-1973899 Max:
-989170
-sh-3.00# ./cyclictest -l 10000
0.01 0.01 0.00 1/21 59
T: 0 ( 59) P: 0 I: 1000 C: 10000 Min:-10848662 Act:-10848662 Max:
-992290
-sh-3.00# ./cyclictest -l 100000
0.01 0.00 0.00 2/22 62
T: 0 ( 62) P: 0 I: 1000 C: 100000 Min:-99563368 Act:-99563368 Max:
-989732
-sh-3.00# ./cyclictest -l 1000000
0.98 0.22 0.07 3/22 65
T: 0 ( 65) P: 0 I: 1000 C: 1000000 Min:-986731091 Act:-986731091
Max: -989084
cyclic-Test runs, but while it is running, timer_tick is never called.
I think that all above problems depends on the same root. I tried to find that root, but currently without success.
Thanks in advance
Manfred Schlaegl
Quoted 9 lines · Schlägl Manfred jun.
Hi!
I've tried to implement Adeos 1.5 and Xenomai 2.2.3 on a Netsilicon-Platform (ns9750-evalboard with Arm926EJ).
The Timer is implemented (with a manual
__ipipe_trigger_irqif reload<3). The Interrupt-Demuxer is deactivated.The System boots with Adeos & Xenomai. Time is running normally. Things
Cool. Contributing patches is always welcome. ;)
Quoted 8 lines
look generally very good, but there are some Problems:
1. Latencies are very high.
dd if=/dev/zero of=/dev/null &
./latency -p 10000 -T 20
Quoted 7 lines
RTS| 92.592| 95.486| 125.506| 0|
00:00:20/00:00:20I know, it's a common problem with Xenomai/ARM. Is it true, that it has something to do with a slow processor-cache-flush? Does anybody know more about that?
AFAIK, this is a generic ARM problem. You have to flush caches on MMU context switch, i.e. also when waking up this real-time user-space benchmark task. That's due to the fact that ARM is caching virtual address, so that the cache content become invalid on context switch.
Quoted 22 lines
2. I've to use very high Periods on Latency-Tests.
With load i've to use > 500 us
Without load i've to use > 1000 us (!?!)If I run ./latency -p 1000 without any load I get latencies between 40 and 70 us, but the Process is killed after a few seconds.
- sometimes simply the message "Killed" is printed.
In this case the system is running, but if i try to start another
latency-Process the system crashes (most of time: "Unable to handle kernel paging request at virtual address xxxxxxxx".)
- sometimes the system simply stands still (linux-timerisr /
linux-timer_tick is'nt called anymore)jtag-debugger gdb-output: Program received signal SIGSTOP, Stopped (signal). 0x0000ba40 in ?? () (gdb) stepi 0x0000ba40 in ?? () Infinite loop detected
Quoted 2 lines
The same happens if I run ./latency -p 500 with load.
Sounds like some gremlin is still sleeping in the code. You will have to trace down the oddities and understand what is leading to the oops or lock-up.
Quoted 18 lines
3. in-kernel periodic task & in-kernel timer benchmark
-sh-3.00# ./latency -t 2 -T 10
== Sampling period: 100 us
== Test mode: in-kernel timer handler
== All results in microseconds
latency: failed to start in-kernel timer benchmark, code -25---|------------|------------|------------|--------|------------------------- RTS|-1093001.752| 0.001| 93.252| 93340|00:00:10/00:00:10
-sh-3.00# ./latency -t 1 -T 10
== Sampling period: 100 us
== Test mode: in-kernel periodic task
== All results in microseconds
latency: failed to start in-kernel timer benchmark, code -25
Quoted 6 lines
---|------------|------------|------------|--------|------------------------- RTS|-1097339.416| 0.001| 93.252| 93340|00:00:10/00:00:10
What does "latency: failed to start in-kernel timer benchmark, code -25" mean? Are the results valid?
Nope, they aren't. Did you compile all the testing devices into the kernel or did you load them all at once? I guess the latency test picks the wrong device here. Try calling it with "-D1" as well. You can see what devices are loaded under /proc/xenomai/rtdm/.
Quoted 18 lines
4. switchtest & switchbench
-sh-3.00# ./switchtest
== Testing FPU check routines...
== FPU check routines: unimplemented, skipping FPU switches tests. == Threads: sleeper-0 rtk-1 rtk-2 rtup-3 rtup-4 rtus-5 rtus-6 rtuo-7 rtuo-8RTT| 00:00:01 RTH|ctx switches|-------total RTD| 450| 450 RTD| 450| 900 RTD| 459| 1359 RTD| 450| 1809 RTD| 459| 2268 RTD| 459| 2727 RTD| 450| 3177
Quoted 1 line
switchtest seems to run normally, but what does the output mean?
As long as you see increasing numbers on the right and no oopses, everything should be ok. (These numbers indicate the ammount of successful context switches per cycle.)
Quoted 40 lines
The problems with switchbench are similar to the Problems discussed in #2.
-sh-3.00# ./switchbench -n 100 -p 10000
== Sampling period: 10000 us
== Do not interrupt this programRTH| lat min| lat avg| lat max| lost RTD| 86443| 90060| 101634| 0 -sh-3.00# ./switchbench -n 100 -p 1000 == Sampling period: 1000 us == Do not interrupt this program RTH| lat min| lat avg| lat max| lost RTD| 77039| 81741| 98741| 0 -sh-3.00# ./switchbench -n 100 -p 100 == Sampling period: 100 us == Do not interrupt this program [ 122.670000] Unable to handle kernel paging request at virtual address e2822059 [ 122.670000] pgd = c3b60000 [ 122.670000] [e2822059] *pgd=00000000 [ 122.670000] Internal error: Oops: 805 [#1] [ 122.670000] Modules linked in: [ 122.670000] CPU: 0 [ 122.670000] pc : [<c0150930>] lr : [<c015080c>] Not tainted [ 122.670000] sp : c39d0014 ip : c3b54044 fp : c39d0040 [ 122.670000] r10: c02d43e4 r9 : 00800000 r8 : c0322b2c [ 122.670000] r7 : c032212c r6 : 00000000 r5 : c01194e0 r4 : 00000000 [ 122.670000] r3 : 00000000 r2 : e282200c r1 : c3b54000 r0 : c3b54000 [ 122.670000] Flags: NzCv IRQs off FIQs on Mode SVC_32 Segment user [ 122.670000] Control: 5317F Table: 03B60000 DAC: 00000015 [ 122.670000] Process worker (pid: 131, stack limit = 0xc39ce194) [ 122.670000] Stack: (0xc39d0014 to 0xc39d0000) [ 122.670000] Backtrace: [ 122.670000] Function entered at [<c01502e8>] from [<c014d25c>] [ 122.670000] Function entered at [<c014d1c4>] from [<c014d2a4>] [ 122.670000] r7 = 00000000 r6 = C02D2680 r5 = C02D2880 r4 =C02D2688
Quoted 9 lines
[ 122.670000] Function entered at [<c014d288>] from [<c014a350>] [ 122.670000] Function entered at [<c014a1e8>] from [<c014a7a4>] [ 122.670000] Function entered at [<c014a700>] from [<c0126000>] [ 122.670000] r7 = C02D2680 r6 = C02D2880 r5 = 00000010 r4 = C02D2680 [ 122.670000] Function entered at [<c0125e64>] from [<c01260a8>] [ 122.670000] Function entered at [<c0126010>] from [<c011f824>] [ 122.670000] Code: e3c3303f e593300c e5932004 e3a03001 (e5c2304d)
Compiled without debug symbols? Might be helpful to turn them in in kernel config.
Quoted 29 lines
5. cyclictest
Here some test-cases:
-sh-3.00# ./cyclictest -l 100
0.03 0.01 0.00 1/21 53T: 0 ( 53) P: 0 I: 1000 C: 100 Min:-1087273 Act:-1087273 Max:
-989708
-sh-3.00# ./cyclictest -l 1000
0.02 0.01 0.00 2/22 56T: 0 ( 56) P: 0 I: 1000 C: 1000 Min:-1973899 Act:-1973899 Max:
-989170
-sh-3.00# ./cyclictest -l 10000
0.01 0.01 0.00 1/21 59T: 0 ( 59) P: 0 I: 1000 C: 10000 Min:-10848662 Act:-10848662 Max:
-992290
-sh-3.00# ./cyclictest -l 100000
0.01 0.00 0.00 2/22 62T: 0 ( 62) P: 0 I: 1000 C: 100000 Min:-99563368 Act:-99563368 Max:
-989732
-sh-3.00# ./cyclictest -l 1000000
0.98 0.22 0.07 3/22 65
Quoted 5 lines
T: 0 ( 65) P: 0 I: 1000 C: 1000000 Min:-986731091 Act:-986731091
Max: -989084cyclic-Test runs, but while it is running,
timer_tickis never called.
This is totally broken. Do you run a manually compiled version of that test? Check if it links against pthread_rt (the POSIX skin library). Otherwise you benchmark vanilla Linux...
Quoted 6 lines
I think that all above problems depends on the same root. I tried to find that root, but currently without success.
Again: Pick some easy-to-reproduce oops and try to understand its history. Also, posting your patches may trigger further review and input.
Jan
Quoted 17 lines · Schlägl Manfred jun.
Hi!
I've tried to implement Adeos 1.5 and Xenomai 2.2.3 on a Netsilicon-Platform (ns9750-evalboard with Arm926EJ).
The Timer is implemented (with a manual
__ipipe_trigger_irqif reload<3). The Interrupt-Demuxer is deactivated.The System boots with Adeos & Xenomai. Time is running normally. Things look generally very good, but there are some Problems:
1. Latencies are very high.
dd if=/dev/zero of=/dev/null &
./latency -p 10000 -T 20
Quoted 6 lines
RTS| 92.592| 95.486| 125.506| 0|
00:00:20/00:00:20I know, it's a common problem with Xenomai/ARM. Is it true, that it has something to do with a slow processor-cache-flush? Does anybody know more about that?
Welcome to the club.
See http://www.linuxdevices.com/articles/AT2598317046.html
According to this article, disabling MMU should improve the situation. But the I-pipe patch has not yet been tested on ucLinux for ARM.
Also, if you want to measure the real effect of the cache on the latency test, you should run the cache calibrator in an infinite loop:
http://monetdb.cwi.nl/Calibrator/
With this tool, I easily get a bit less than 200 us latency on an ARM clocked at 600 MHz.
Quoted 23 lines
2. I've to use very high Periods on Latency-Tests.
With load i've to use > 500 us
Without load i've to use > 1000 us (!?!)If I run ./latency -p 1000 without any load I get latencies between 40 and 70 us, but the Process is killed after a few seconds.
- sometimes simply the message "Killed" is printed.
In this case the system is running, but if i try to start another
latency-Process the system crashes (most of time: "Unable to handle kernel paging request at virtual address xxxxxxxx".)
- sometimes the system simply stands still (linux-timerisr /
linux-timer_tick is'nt called anymore)jtag-debugger gdb-output: Program received signal SIGSTOP, Stopped (signal). 0x0000ba40 in ?? () (gdb) stepi 0x0000ba40 in ?? () Infinite loop detected
Quoted 1 line
The same happens if I run ./latency -p 500 with load.
I observed the same phenomenon, and thought that the sampling period was simply too small to let the display task run. Your debugger trace seems to prove me wrong. It would be interesting to know the reason why the task receives this SIGSTOP.
Quoted 19 lines
3. in-kernel periodic task & in-kernel timer benchmark
-sh-3.00# ./latency -t 2 -T 10
== Sampling period: 100 us
== Test mode: in-kernel timer handler
== All results in microseconds
latency: failed to start in-kernel timer benchmark, code -25---|------------|------------|------------|--------|------------------------- RTS|-1093001.752| 0.001| 93.252| 93340|00:00:10/00:00:10
-sh-3.00# ./latency -t 1 -T 10
== Sampling period: 100 us
== Test mode: in-kernel periodic task
== All results in microseconds
latency: failed to start in-kernel timer benchmark, code -25
Quoted 6 lines
---|------------|------------|------------|--------|------------------------- RTS|-1097339.416| 0.001| 93.252| 93340|00:00:10/00:00:10
What does "latency: failed to start in-kernel timer benchmark, code -25" mean? Are the results valid?
-25 is -ENOTTY, it happens when you issue an unknown ioctl on an RTDM device.
Quoted 58 lines
4. switchtest & switchbench
-sh-3.00# ./switchtest
== Testing FPU check routines...
== FPU check routines: unimplemented, skipping FPU switches tests. == Threads: sleeper-0 rtk-1 rtk-2 rtup-3 rtup-4 rtus-5 rtus-6 rtuo-7 rtuo-8RTT| 00:00:01 RTH|ctx switches|-------total RTD| 450| 450 RTD| 450| 900 RTD| 459| 1359 RTD| 450| 1809 RTD| 459| 2268 RTD| 459| 2727 RTD| 450| 3177switchtest seems to run normally, but what does the output mean?
The problems with switchbench are similar to the Problems discussed in #2.
-sh-3.00# ./switchbench -n 100 -p 10000
== Sampling period: 10000 us
== Do not interrupt this programRTH| lat min| lat avg| lat max| lost RTD| 86443| 90060| 101634| 0 -sh-3.00# ./switchbench -n 100 -p 1000 == Sampling period: 1000 us == Do not interrupt this program RTH| lat min| lat avg| lat max| lost RTD| 77039| 81741| 98741| 0 -sh-3.00# ./switchbench -n 100 -p 100 == Sampling period: 100 us == Do not interrupt this program [ 122.670000] Unable to handle kernel paging request at virtual address e2822059 [ 122.670000] pgd = c3b60000 [ 122.670000] [e2822059] *pgd=00000000 [ 122.670000] Internal error: Oops: 805 [#1] [ 122.670000] Modules linked in: [ 122.670000] CPU: 0 [ 122.670000] pc : [<c0150930>] lr : [<c015080c>] Not tainted [ 122.670000] sp : c39d0014 ip : c3b54044 fp : c39d0040 [ 122.670000] r10: c02d43e4 r9 : 00800000 r8 : c0322b2c [ 122.670000] r7 : c032212c r6 : 00000000 r5 : c01194e0 r4 : 00000000 [ 122.670000] r3 : 00000000 r2 : e282200c r1 : c3b54000 r0 : c3b54000 [ 122.670000] Flags: NzCv IRQs off FIQs on Mode SVC_32 Segment user [ 122.670000] Control: 5317F Table: 03B60000 DAC: 00000015 [ 122.670000] Process worker (pid: 131, stack limit = 0xc39ce194) [ 122.670000] Stack: (0xc39d0014 to 0xc39d0000) [ 122.670000] Backtrace: [ 122.670000] Function entered at [<c01502e8>] from [<c014d25c>] [ 122.670000] Function entered at [<c014d1c4>] from [<c014d2a4>] [ 122.670000] r7 = 00000000 r6 = C02D2680 r5 = C02D2880 r4 =C02D2688
Quoted 8 lines
[ 122.670000] Function entered at [<c014d288>] from [<c014a350>] [ 122.670000] Function entered at [<c014a1e8>] from [<c014a7a4>] [ 122.670000] Function entered at [<c014a700>] from [<c0126000>] [ 122.670000] r7 = C02D2680 r6 = C02D2880 r5 = 00000010 r4 = C02D2680 [ 122.670000] Function entered at [<c0125e64>] from [<c01260a8>] [ 122.670000] Function entered at [<c0126010>] from [<c011f824>] [ 122.670000] Code: e3c3303f e593300c e5932004 e3a03001 (e5c2304d)
ksymoops will help you there.
Quoted 33 lines
5. cyclictest
Here some test-cases:
-sh-3.00# ./cyclictest -l 100
0.03 0.01 0.00 1/21 53T: 0 ( 53) P: 0 I: 1000 C: 100 Min:-1087273 Act:-1087273 Max:
-989708
-sh-3.00# ./cyclictest -l 1000
0.02 0.01 0.00 2/22 56T: 0 ( 56) P: 0 I: 1000 C: 1000 Min:-1973899 Act:-1973899 Max:
-989170
-sh-3.00# ./cyclictest -l 10000
0.01 0.01 0.00 1/21 59T: 0 ( 59) P: 0 I: 1000 C: 10000 Min:-10848662 Act:-10848662 Max:
-992290
-sh-3.00# ./cyclictest -l 100000
0.01 0.00 0.00 2/22 62T: 0 ( 62) P: 0 I: 1000 C: 100000 Min:-99563368 Act:-99563368 Max:
-989732
-sh-3.00# ./cyclictest -l 1000000
0.98 0.22 0.07 3/22 65T: 0 ( 65) P: 0 I: 1000 C: 1000000 Min:-986731091 Act:-986731091
Max: -989084
Quoted 7 lines
cyclic-Test runs, but while it is running,
timer_tickis never called.I think that all above problems depends on the same root. I tried to find that root, but currently without success.
I think that you have several problems:
1 and 2 exists on other ARM platforms;
3 is probably a simple problem of device index;
4 and 5 are really worrying, you should start running ksymoops on the oops and/or investigate the case where the timer stop.
Signature · 1 line
Gilles Chanteperdrix
Quoted 5 lines · Schlägl Manfred jun.
Hi!
I've tried to implement Adeos 1.5 and Xenomai 2.2.3 on a Netsilicon-Platform (ns9750-evalboard with Arm926EJ).
Make sure to use 1.5-01.
[...]
Quoted 4 lines
I know, it's a common problem with Xenomai/ARM. Is it true, that it has something to do with a slow processor-cache-flush? Does anybody know more about that?
FWIW, we had the very same issue on an Integrator CP.
Quoted 9 lines
2. I've to use very high Periods on Latency-Tests.
With load i've to use > 500 us
Without load i've to use > 1000 us (!?!)If I run ./latency -p 1000 without any load I get latencies between 40 and 70 us, but the Process is killed after a few seconds.
- sometimes simply the message "Killed" is printed.
Could you "strace" your process instead of running it over GDB? I'm not yet sure that we are actually chasing a SIGSTOP.
[...]
Quoted 7 lines
3. in-kernel periodic task & in-kernel timer benchmark
-sh-3.00# ./latency -t 2 -T 10
== Sampling period: 100 us
== Test mode: in-kernel timer handler
== All results in microseconds
latency: failed to start in-kernel timer benchmark, code -25
Eh? That's weird. The fact that the RTDM benchmark device could be opened, but that a wrong ioctl code seemed to flow to it might be the sign of the worm, somewhere in the Adeos syscall propagation path. Btw, are the RTDM-based benchmark drivers compiled statically into the kernel?
Also, could you patch this in, and tell us if anything appears in the kernel log during the fail attempt to start the test? TIA,
drivers/testing/timerbench.c renamed from drivers/testing/timerbench.c~ +1 -0
@@ -409,6 +409,7 @@break ;default : +printk ("%s: bad ioctl code (0x%x)\n" , __FUNCTION__, request); ret = -ENOTTY ; }
[...]
Quoted 26 lines
-sh-3.00# ./switchbench -n 100 -p 100
== Sampling period: 100 us
== Do not interrupt this program[ 122.670000] Unable to handle kernel paging request at virtual address e2822059 [ 122.670000] pgd = c3b60000 [ 122.670000] [e2822059] *pgd=00000000 [ 122.670000] Internal error: Oops: 805 [#1] [ 122.670000] Modules linked in: [ 122.670000] CPU: 0 [ 122.670000] pc : [<c0150930>] lr : [<c015080c>] Not tainted [ 122.670000] sp : c39d0014 ip : c3b54044 fp : c39d0040 [ 122.670000] r10: c02d43e4 r9 : 00800000 r8 : c0322b2c [ 122.670000] r7 : c032212c r6 : 00000000 r5 : c01194e0 r4 : 00000000 [ 122.670000] r3 : 00000000 r2 : e282200c r1 : c3b54000 r0 : c3b54000 [ 122.670000] Flags: NzCv IRQs off FIQs on Mode SVC_32 Segment user [ 122.670000] Control: 5317F Table: 03B60000 DAC: 00000015 [ 122.670000] Process worker (pid: 131, stack limit = 0xc39ce194) [ 122.670000] Stack: (0xc39d0014 to 0xc39d0000) [ 122.670000] Backtrace: [ 122.670000] Function entered at [<c01502e8>] from [<c014d25c>] [ 122.670000] Function entered at [<c014d1c4>] from [<c014d2a4>] [ 122.670000] r7 = 00000000 r6 = C02D2680 r5 = C02D2880 r4 =C02D2688
Quoted 9 lines
[ 122.670000] Function entered at [<c014d288>] from [<c014a350>] [ 122.670000] Function entered at [<c014a1e8>] from [<c014a7a4>] [ 122.670000] Function entered at [<c014a700>] from [<c0126000>] [ 122.670000] r7 = C02D2680 r6 = C02D2880 r5 = 00000010 r4 = C02D2680 [ 122.670000] Function entered at [<c0125e64>] from [<c01260a8>] [ 122.670000] Function entered at [<c0126010>] from [<c011f824>] [ 122.670000] Code: e3c3303f e593300c e5932004 e3a03001 (e5c2304d)
As mentioned already, it would be really nice to activate the debug option and ask ksymoops to dump some symbolic backtrace about this crash.
[...]
Quoted 6 lines
5. cyclictest
Here some test-cases:
-sh-3.00# ./cyclictest -l 100
0.03 0.01 0.00 1/21 53
[...]
Quoted 2 lines
cyclic-Test runs, but while it is running,
timer_tickis never called.
If you want to run this test by hand, try:
./cyclictest -n -t 1 -i 100
or just use the "run" script. The output you got is likely because the default setup uses plain Linux signals for triggering the sampling activity.
[...]
Signature · 1 line
Philippe.
Quoted 10 lines · Philippe Gerum
Quoted 7 lines · Schlägl Manfred jun.
3. in-kernel periodic task & in-kernel timer benchmark
-sh-3.00# ./latency -t 2 -T 10
== Sampling period: 100 us
== Test mode: in-kernel timer handler
== All results in microseconds
latency: failed to start in-kernel timer benchmark, code -25
Quoted 5 lines
Eh? That's weird. The fact that the RTDM benchmark device could be opened, but that a wrong ioctl code seemed to flow to it might be the sign of the worm, somewhere in the Adeos syscall propagation path. Btw, are the RTDM-based benchmark drivers compiled statically into the kernel?
All benchmark drivers (timerbench, switchtest and irqbench) use the /dev/rttest%d devices, the device index is passed to latency and irqbench using the -D option whereas switchtest uses the ioctl error to find the correct device. So this error might simply be the sign that Manfred did not pass the -D option to latency.
Signature · 1 line
Gilles Chanteperdrix
Quoted 5 lines · Gilles Chanteperdrix
All benchmark drivers (timerbench, switchtest and irqbench) use the /dev/rttest%d devices, the device index is passed to latency and irqbench using the -D option whereas switchtest uses the ioctl error to find the correct device. So this error might simply be the sign that Manfred did not pass the -D option to latency.
Or that Xenomai was compiled without the timerbench driver.
Signature · 1 line
Gilles Chanteperdrix
Quoted 8 lines · Gilles Chanteperdrix
Quoted 5 lines · Gilles Chanteperdrix
All benchmark drivers (timerbench, switchtest and irqbench) use the /dev/rttest%d devices, the device index is passed to latency and irqbench using the -D option whereas switchtest uses the ioctl error to find the correct device. So this error might simply be the sign that Manfred did not pass the -D option to latency.
Or that Xenomai was compiled without the timerbench driver.
No, you would get -ENODEV, with a failure on the opening of the device.
Quoted 1 line
Signature · 1 line
Philippe.
Quoted 17 lines · Gilles Chanteperdrix
Quoted 10 lines · Philippe Gerum
Quoted 7 lines · Schlägl Manfred jun.
3. in-kernel periodic task & in-kernel timer benchmark
-sh-3.00# ./latency -t 2 -T 10
== Sampling period: 100 us
== Test mode: in-kernel timer handler
== All results in microseconds
latency: failed to start in-kernel timer benchmark, code -25Quoted 5 lines
Eh? That's weird. The fact that the RTDM benchmark device could be opened, but that a wrong ioctl code seemed to flow to it might be the sign of the worm, somewhere in the Adeos syscall propagation path. Btw, are the RTDM-based benchmark drivers compiled statically into the kernel?
Quoted 5 lines
All benchmark drivers (timerbench, switchtest and irqbench) use the /dev/rttest%d devices, the device index is passed to latency and irqbench using the -D option whereas switchtest uses the ioctl error to find the correct device. So this error might simply be the sign that Manfred did not pass the -D option to latency.
AFAICS, the failed operation did not happen on an attempt to open the device, but later when submitting an ioctl() request to it, in order to start the sampling. So this can't be a simple device index issue. IOW, the rttestX device is available and ready to use; the problem lies beyond that point.
Signature · 1 line
Philippe.
Quoted 7 lines · Philippe Gerum
Quoted 5 lines
All benchmark drivers (timerbench, switchtest and irqbench) use the /dev/rttest%d devices, the device index is passed to latency and irqbench using the -D option whereas switchtest uses the ioctl error to find the correct device. So this error might simply be the sign that Manfred did not pass the -D option to latency.
Quoted 5 lines
AFAICS, the failed operation did not happen on an attempt to open the device, but later when submitting an
ioctl()request to it, in order to start the sampling. So this can't be a simple device index issue. IOW, the rttestX device is available and ready to use; the problem lies beyond that point.
When using the wrong /dev/rttest device, open would not fail but ioctl would fail. But I agree, Manfred is facing a different issue.
Signature · 1 line
Gilles Chanteperdrix