Skip to contentSkip to conversation

Kernel OOPS during regression tests

Xenomai John Morris 5 participants 54 messages Jan 12, 2013 – Jan 18, 2013

lore
Share & tools
lore
#0 lore raw

Hi list,

The el6 packages are coming along nicely:

https://github.com/zultron/kernel-ml/tree/branch3.5.3-xeno

Still a few problems when running xeno-regression-test.

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

2) posix/mprotect is failing: "FAILURE: sigdebug_handler triggered,
reason 2 memory write after exec enable".

3) FPU warning: "fptest.h:24: Warning: Linux is compiled to use FPU in
kernel-space. For this reason, switchtest can not test using FPU in
Linux kernel-space."

Regression test run log:
http://www.zultron.com/static/2013/01/xenomai/foo-xeno-regression-test.log

Log of dmesg with oops at end:
http://www.zultron.com/static/2013/01/xenomai/foo-oops.log

Kernel .config:
www.zultron.com/static/2013/01/xenomai/foo-kernel.config

The kernel is built from the elrepo.org kernel, and this config file overrides the upstream config; makes it easy to see the Xenomai-specific changes:
https://github.com/zultron/kernel-ml/blob/branch3.5.3-xeno/config-3.5.3-xenomai-x86_64

Any help is greatly appreciated! These RPMs are part of my effort to enable RH-like distros to run LinuxCNC and expand the pool of potential users, so if I'm successful, many folks will benefit.

John

#1 lore raw
Quoted 8 lines · John Morris

Hi list,

The el6 packages are coming along nicely:

https://github.com/zultron/kernel-ml/tree/branch3.5.3-xeno

Quoted 6 lines

Still a few problems when running xeno-regression-test.

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Quoted 3 lines

2) posix/mprotect is failing: "FAILURE: sigdebug_handler triggered,
reason 2 memory write after exec enable".

I guess you need Jan's fixes.

Quoted 4 lines

3) FPU warning: "fptest.h:24: Warning: Linux is compiled to use FPU in
kernel-space. For this reason, switchtest can not test using FPU in
Linux kernel-space."

Well, the warning says it all.

Signature · 1 line
                                                                Gilles.
#42 lore raw
In reply to John Morris
Quoted 4 lines · John Morris

Hi list,

The el6 packages are coming along nicely:

Quoted 8 lines

https://github.com/zultron/kernel-ml/tree/branch3.5.3-xeno

Still a few problems when running xeno-regression-test.

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Try disabling transparent hugepages, as noted by Jan.

Quoted 10 lines

2) posix/mprotect is failing: "FAILURE: sigdebug_handler triggered,
reason 2 memory write after exec enable".

3) FPU warning: "fptest.h:24: Warning: Linux is compiled to use FPU in
kernel-space. For this reason, switchtest can not test using FPU in
Linux kernel-space."

Regression test run log:
http://www.zultron.com/static/2013/01/xenomai/foo-xeno-regression-test.log

You should normally use the -l option to use a non default "load", and run the test for a long time.

See xeno-regression-test --help and dohell --help

Signature · 1 line
                                                                Gilles.
#2 lore raw
In reply to Gilles Chanteperdrix
Quoted 10 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Different problem; Xenomai wouldn't start:

I-pipe: could not find timer for cpu #0

dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

.config:
www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config

FYI, I found this same problem on two of my systems while testing your Debian packages. Both AMD Athlon II 64-bit (one single, one dual core).
They're about the same generation of motherboards, AM2 or AM2+ socket. One is AMD 770 chipset, the other NVidia GeForce 6100 / nForce 430.

Hardware looks similar to Mariusz's in this post, where he had the same problem:

http://www.xenomai.org/pipermail/xenomai/2012-December/027121.html

He's also running AMD 64-bit on a Gigabyte motherboard, but the next generation AM3 socket, Phenom CPU, AMD 890 chipset. I don't have a C1E BIOS option on these boards to enable/disable. These same motherboards don't suffer this problem with mainline Xenomai on 3.5.3.

Quoted 5 lines
Quoted 2 lines

2) posix/mprotect is failing: "FAILURE: sigdebug_handler triggered,
reason 2 memory write after exec enable".

I guess you need Jan's fixes.

Jan's fix is to turn off CONFIG_TRANSPARENT_HUGEPAGE, right? I'll report back after a new 3.5.3 kernel is compiled.

Quoted 6 lines
Quoted 3 lines

3) FPU warning: "fptest.h:24: Warning: Linux is compiled to use FPU in
kernel-space. For this reason, switchtest can not test using FPU in
Linux kernel-space."

Well, the warning says it all.

Sorry, I hit 'send' without Googling first. So, here you say it's harmless, is that right?

http://www.xenomai.org/pipermail/xenomai-core/2009-05/msg00011.html

John

#49 lore raw
In reply to Gilles Chanteperdrix
Quoted 10 lines · Gilles Chanteperdrix

On 01/12/2013 06:26 PM, John Morris wrote:>

Quoted 4 lines

The kernel is built from the elrepo.org kernel, and this config file overrides the upstream config; makes it easy to see the Xenomai-specific changes:
https://github.com/zultron/kernel-ml/blob/branch3.5.3-xeno/config-3.5.3-xenomai-x86_64

It seems a really bad idea to enable the SMI workaround by default.

Thanks! Despite feeling uncomfortable contradicting the documentation, I was encouraged to turn this on by someone more authoritative than me.
It does seem like a separate package with it turned on is warranted for
those who have problems and have been fairly warned about the risk.

John

#43 lore raw
In reply to Gilles Chanteperdrix
Quoted 26 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

Hi list,

The el6 packages are coming along nicely:

Quoted 8 lines

https://github.com/zultron/kernel-ml/tree/branch3.5.3-xeno

Still a few problems when running xeno-regression-test.

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Try disabling transparent hugepages, as noted by Jan.

Quoted 8 lines

2) posix/mprotect is failing: "FAILURE: sigdebug_handler triggered,
reason 2 memory write after exec enable".

3) FPU warning: "fptest.h:24: Warning: Linux is compiled to use FPU in
kernel-space. For this reason, switchtest can not test using FPU in
Linux kernel-space."

Quoted 10 lines
Quoted 2 lines

Regression test run log:
http://www.zultron.com/static/2013/01/xenomai/foo-xeno-regression-test.log

You should normally use the -l option to use a non default "load", and run the test for a long time.

See xeno-regression-test --help and dohell --help

Jan's fix appears to have solved 1) above, but 2) posix/mprotect is still failing. Thanks for the xeno-regression-test tips; ran a couple more (not for a long time, will do that later).

Test runs:
http://www.zultron.com/static/2013/01/xenomai/3.5.3-jan-fix/foo-xeno-regression-test-3.5.3-jan-fix.log

Kernel config (only change is disabling TRANSPARENT_HUGEPAGE):
http://www.zultron.com/static/2013/01/xenomai/3.5.3-jan-fix/foo-kernel-3.5.3-jan-fix.log

Dmesg output with no oops (hopefully boring):
http://www.zultron.com/static/2013/01/xenomai/3.5.3-jan-fix/foo-dmesg-3.5.3-jan-fix.log

John

#44 lore raw
Quoted 34 lines · John Morris
Quoted 33 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

Hi list,

The el6 packages are coming along nicely:

Quoted 8 lines

https://github.com/zultron/kernel-ml/tree/branch3.5.3-xeno

Still a few problems when running xeno-regression-test.

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Try disabling transparent hugepages, as noted by Jan.

Quoted 10 lines

2) posix/mprotect is failing: "FAILURE: sigdebug_handler triggered,
reason 2 memory write after exec enable".

3) FPU warning: "fptest.h:24: Warning: Linux is compiled to use FPU in
kernel-space. For this reason, switchtest can not test using FPU in
Linux kernel-space."

Regression test run log:
http://www.zultron.com/static/2013/01/xenomai/foo-xeno-regression-test.log

You should normally use the -l option to use a non default "load", and run the test for a long time.

Quoted 8 lines
Quoted 3 lines

See xeno-regression-test --help and dohell --help

Jan's fix appears to have solved 1) above, but 2) posix/mprotect is still failing. Thanks for the xeno-regression-test tips; ran a couple more (not for a long time, will do that later).

Can you clarify how your setup looks like? The kernel is a vanilla 3.5.3 patched with ipipe-core-3.5.3-x86-2.patch? And then you just disabled THP? Or did you switch to my for-upstream/3.5 I-pipe branch?

I'll have a look at your .config next week.

Jan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20130113/978ba193/attachment.pgp>

#3 lore raw
In reply to John Morris
Quoted 30 lines · John Morris
Quoted 10 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Different problem; Xenomai wouldn't start:

I-pipe: could not find timer for cpu #0

dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

.config:
www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config

FYI, I found this same problem on two of my systems while testing your Debian packages. Both AMD Athlon II 64-bit (one single, one dual core).
They're about the same generation of motherboards, AM2 or AM2+ socket. One is AMD 770 chipset, the other NVidia GeForce 6100 / nForce 430.

Hardware looks similar to Mariusz's in this post, where he had the same problem:

Quoted 6 lines

http://www.xenomai.org/pipermail/xenomai/2012-December/027121.html

He's also running AMD 64-bit on a Gigabyte motherboard, but the next generation AM3 socket, Phenom CPU, AMD 890 chipset. I don't have a C1E BIOS option on these boards to enable/disable. These same motherboards don't suffer this problem with mainline Xenomai on 3.5.3.

If you had the same problem as Marius, you would have seen it with 3.5.3, and you would get the message in the dmesg about C1E, so, it is probably something else. Could you run

cat /proc/timer_list

?

Signature · 1 line
                                                                Gilles.
#45 lore raw
In reply to Jan Kiszka
Quoted 40 lines · Jan Kiszka
Quoted 39 lines · John Morris
Quoted 36 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

Hi list,

The el6 packages are coming along nicely:

Quoted 8 lines

https://github.com/zultron/kernel-ml/tree/branch3.5.3-xeno

Still a few problems when running xeno-regression-test.

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Try disabling transparent hugepages, as noted by Jan.

Quoted 10 lines

2) posix/mprotect is failing: "FAILURE: sigdebug_handler triggered,
reason 2 memory write after exec enable".

3) FPU warning: "fptest.h:24: Warning: Linux is compiled to use FPU in
kernel-space. For this reason, switchtest can not test using FPU in
Linux kernel-space."

Regression test run log:
http://www.zultron.com/static/2013/01/xenomai/foo-xeno-regression-test.log

You should normally use the -l option to use a non default "load", and run the test for a long time.

See xeno-regression-test --help and dohell --help

Quoted 7 lines
Quoted 3 lines

Jan's fix appears to have solved 1) above, but 2) posix/mprotect is still failing. Thanks for the xeno-regression-test tips; ran a couple more (not for a long time, will do that later).

Can you clarify how your setup looks like? The kernel is a vanilla 3.5.3 patched with ipipe-core-3.5.3-x86-2.patch? And then you just disabled THP? Or did you switch to my for-upstream/3.5 I-pipe branch?

I have merged the bugfixes from your branch in my branch in addition to other bug fixes, so, I would recommend using this one.

Signature · 1 line
                                                                Gilles.
#50 lore raw
In reply to John Morris
Quoted 11 lines · John Morris
Quoted 8 lines · Gilles Chanteperdrix

On 01/12/2013 06:26 PM, John Morris wrote:>

Quoted 4 lines

The kernel is built from the elrepo.org kernel, and this config file overrides the upstream config; makes it easy to see the Xenomai-specific changes:
https://github.com/zultron/kernel-ml/blob/branch3.5.3-xeno/config-3.5.3-xenomai-x86_64

Quoted 7 lines
Quoted 2 lines

It seems a really bad idea to enable the SMI workaround by default.

Thanks! Despite feeling uncomfortable contradicting the documentation, I was encouraged to turn this on by someone more authoritative than me.
It does seem like a separate package with it turned on is warranted for
those who have problems and have been fairly warned about the risk.

I guess we should turn the compile-time option into a kernel parameter. So, the smi workaround would be disabled by default, and only enabled when passing a kerne command-line option.

Signature · 1 line
                                                                Gilles.
#4 lore raw

[Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

In reply to Gilles Chanteperdrix

Hi Gilles and Jan,

Note change of thread subject. I'm starting to get confused.

Quoted 40 lines · Gilles Chanteperdrix
Quoted 30 lines · John Morris
Quoted 10 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Different problem; Xenomai wouldn't start:

I-pipe: could not find timer for cpu #0

dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

.config:
www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config

FYI, I found this same problem on two of my systems while testing your Debian packages. Both AMD Athlon II 64-bit (one single, one dual core).
They're about the same generation of motherboards, AM2 or AM2+ socket. One is AMD 770 chipset, the other NVidia GeForce 6100 / nForce 430.

Hardware looks similar to Mariusz's in this post, where he had the same problem:

Quoted 6 lines

http://www.xenomai.org/pipermail/xenomai/2012-December/027121.html

He's also running AMD 64-bit on a Gigabyte motherboard, but the next generation AM3 socket, Phenom CPU, AMD 890 chipset. I don't have a C1E BIOS option on these boards to enable/disable. These same motherboards don't suffer this problem with mainline Xenomai on 3.5.3.

Quoted 3 lines

If you had the same problem as Marius, you would have seen it with 3.5.3, and you would get the message in the dmesg about C1E, so, it is probably something else.

Yes, I'm definitely getting confused. I did see the same problem with C1E, but only while running your 3.5.7 .debs, and not in the 3.5.7 el6 packages that are the main subject of this sub-thread:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-deb-gilles/dmesg-3.5.7-deb-gilles.log

Quoted 3 lines

Could you run

cat /proc/timer_list

Back to el6 again, 3.5.7 i-pipe:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-cat-proc-timer_list-3.5.7-test.log

John

#46 lore raw

[Xenomai] 3.5.3 posix/mprotect fail "sigdebug_handler triggered" (Was: Re: Kernel OOPS during regression tests)

In reply to Gilles Chanteperdrix

Another subject change here...

Quoted 34 lines · Gilles Chanteperdrix
Quoted 32 lines · Jan Kiszka
Quoted 31 lines · John Morris
Quoted 28 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Try disabling transparent hugepages, as noted by Jan.

Quoted 10 lines

2) posix/mprotect is failing: "FAILURE: sigdebug_handler triggered,
reason 2 memory write after exec enable".

3) FPU warning: "fptest.h:24: Warning: Linux is compiled to use FPU in
kernel-space. For this reason, switchtest can not test using FPU in
Linux kernel-space."

Regression test run log:
http://www.zultron.com/static/2013/01/xenomai/foo-xeno-regression-test.log

You should normally use the -l option to use a non default "load", and run the test for a long time.

See xeno-regression-test --help and dohell --help

Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

Jan's fix appears to have solved 1) above, but 2) posix/mprotect is still failing. Thanks for the xeno-regression-test tips; ran a couple more (not for a long time, will do that later).

Can you clarify how your setup looks like? The kernel is a vanilla 3.5.3 patched with ipipe-core-3.5.3-x86-2.patch? And then you just disabled THP? Or did you switch to my for-upstream/3.5 I-pipe branch?

Vanilla 3.5.3, released Xenomai 2.6.2, THP disabled.

Quoted 2 lines

I have merged the bugfixes from your branch in my branch in addition to other bug fixes, so, I would recommend using this one.

You must mean the xenomai-2.6.git tree, master branch. I'll begin using that.

John

#51 lore raw

[Xenomai] SMI workarounds in one-size-fits-all kernel packages (Was: Re: Kernel OOPS during regression tests)

In reply to Gilles Chanteperdrix
Quoted 22 lines · Gilles Chanteperdrix
Quoted 11 lines · John Morris
Quoted 8 lines · Gilles Chanteperdrix

On 01/12/2013 06:26 PM, John Morris wrote:>

Quoted 4 lines

The kernel is built from the elrepo.org kernel, and this config file overrides the upstream config; makes it easy to see the Xenomai-specific changes:
https://github.com/zultron/kernel-ml/blob/branch3.5.3-xeno/config-3.5.3-xenomai-x86_64

Quoted 7 lines
Quoted 2 lines

It seems a really bad idea to enable the SMI workaround by default.

Thanks! Despite feeling uncomfortable contradicting the documentation, I was encouraged to turn this on by someone more authoritative than me.
It does seem like a separate package with it turned on is warranted for
those who have problems and have been fairly warned about the risk.

Quoted 3 lines

I guess we should turn the compile-time option into a kernel parameter. So, the smi workaround would be disabled by default, and only enabled when passing a kerne command-line option.

That would be ideal!

John

#5 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

In reply to John Morris
Quoted 49 lines · John Morris

Hi Gilles and Jan,

Note change of thread subject. I'm starting to get confused.

Quoted 40 lines · Gilles Chanteperdrix
Quoted 30 lines · John Morris
Quoted 10 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Different problem; Xenomai wouldn't start:

I-pipe: could not find timer for cpu #0

dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

.config:
www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config

FYI, I found this same problem on two of my systems while testing your Debian packages. Both AMD Athlon II 64-bit (one single, one dual core).
They're about the same generation of motherboards, AM2 or AM2+ socket. One is AMD 770 chipset, the other NVidia GeForce 6100 / nForce 430.

Hardware looks similar to Mariusz's in this post, where he had the same problem:

Quoted 6 lines

http://www.xenomai.org/pipermail/xenomai/2012-December/027121.html

He's also running AMD 64-bit on a Gigabyte motherboard, but the next generation AM3 socket, Phenom CPU, AMD 890 chipset. I don't have a C1E BIOS option on these boards to enable/disable. These same motherboards don't suffer this problem with mainline Xenomai on 3.5.3.

Quoted 3 lines

If you had the same problem as Marius, you would have seen it with 3.5.3, and you would get the message in the dmesg about C1E, so, it is probably something else.

Quoted 5 lines

Yes, I'm definitely getting confused. I did see the same problem with C1E, but only while running your 3.5.7 .debs, and not in the 3.5.7 el6 packages that are the main subject of this sub-thread:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-deb-gilles/dmesg-3.5.7-deb-gilles.log

Ah, that is because I rebased the I-pipe tree in between, and at some point the code printing the message was wrong (ATOMIC_INIT(0) instead of ATOMIC_INIT(-1)). That is my fault then, sorry.

Quoted 8 lines
Quoted 4 lines

Could you run

cat /proc/timer_list

Back to el6 again, 3.5.7 i-pipe:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-cat-proc-timer_list-3.5.7-test.log

The LAPIC is definitely up and running (mode: 3). So, it probably means that the erratum detection is not sufficient to decide not to use a LAPIC. Checking your logs, we see:

using AMD E400 aware idle routine

which means the LAPIC could potentially be unusable, but the idle routine also checks for a bit in a K8 specific MSR and prints the message:

System has AMD C1E enabled

If this bit is set, and in your case the message is not printed so the bit is not set. So, the LAPIC is usable, but due to the changes I made to try and print a message in Marius case, I broke the detection in your case.

I have just pushed a rework for this commit in the for-core-3.5.7 branch in ipipe-gch git.

Signature · 1 line
                                                                Gilles.
#47 lore raw

Re: [Xenomai] 3.5.3 posix/mprotect fail "sigdebug_handler triggered" (Was: Re: Kernel OOPS during regression tests)

In reply to John Morris
Quoted 45 lines · John Morris

Another subject change here...

Quoted 34 lines · Gilles Chanteperdrix
Quoted 32 lines · Jan Kiszka
Quoted 31 lines · John Morris
Quoted 28 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Try disabling transparent hugepages, as noted by Jan.

Quoted 10 lines

2) posix/mprotect is failing: "FAILURE: sigdebug_handler triggered,
reason 2 memory write after exec enable".

3) FPU warning: "fptest.h:24: Warning: Linux is compiled to use FPU in
kernel-space. For this reason, switchtest can not test using FPU in
Linux kernel-space."

Regression test run log:
http://www.zultron.com/static/2013/01/xenomai/foo-xeno-regression-test.log

You should normally use the -l option to use a non default "load", and run the test for a long time.

See xeno-regression-test --help and dohell --help

Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

Jan's fix appears to have solved 1) above, but 2) posix/mprotect is still failing. Thanks for the xeno-regression-test tips; ran a couple more (not for a long time, will do that later).

Can you clarify how your setup looks like? The kernel is a vanilla 3.5.3 patched with ipipe-core-3.5.3-x86-2.patch? And then you just disabled THP? Or did you switch to my for-upstream/3.5 I-pipe branch?

Quoted 7 lines

Vanilla 3.5.3, released Xenomai 2.6.2, THP disabled.

Quoted 2 lines

I have merged the bugfixes from your branch in my branch in addition to other bug fixes, so, I would recommend using this one.

You must mean the xenomai-2.6.git tree, master branch. I'll begin using that.

I mean branch for-core-3.5.7 in ipipe-gch git. But you should also pull the xenomai-2.6 git master branch fixes, yes.

Signature · 1 line
                                                                Gilles.
#52 lore raw

Re: [Xenomai] SMI workarounds in one-size-fits-all kernel packages (Was: Re: Kernel OOPS during regression tests)

In reply to John Morris
Quoted 25 lines · John Morris
Quoted 22 lines · Gilles Chanteperdrix
Quoted 18 lines · John Morris
Quoted 10 lines · Gilles Chanteperdrix

On 01/12/2013 06:26 PM, John Morris wrote:>

Quoted 4 lines

The kernel is built from the elrepo.org kernel, and this config file overrides the upstream config; makes it easy to see the Xenomai-specific changes:
https://github.com/zultron/kernel-ml/blob/branch3.5.3-xeno/config-3.5.3-xenomai-x86_64

It seems a really bad idea to enable the SMI workaround by default.

Thanks! Despite feeling uncomfortable contradicting the documentation, I was encouraged to turn this on by someone more authoritative than me.
It does seem like a separate package with it turned on is warranted for
those who have problems and have been fairly warned about the risk.

Quoted 5 lines
Quoted 3 lines

I guess we should turn the compile-time option into a kernel parameter. So, the smi workaround would be disabled by default, and only enabled when passing a kerne command-line option.

That would be ideal!

We will try to issue a fix for the 2.6.2 release first, this improvement will be part of the next release.

Signature · 1 line
                                                                Gilles.
#6 lore raw

Re: [Xenomai] 3.5.7 posix/mprotect failure; "I-pipe: could not find timer" fixed!

In reply to Gilles Chanteperdrix
Quoted 83 lines · Gilles Chanteperdrix
Quoted 49 lines · John Morris

Hi Gilles and Jan,

Note change of thread subject. I'm starting to get confused.

Quoted 40 lines · Gilles Chanteperdrix
Quoted 30 lines · John Morris
Quoted 10 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Different problem; Xenomai wouldn't start:

I-pipe: could not find timer for cpu #0

dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

.config:
www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config

FYI, I found this same problem on two of my systems while testing your Debian packages. Both AMD Athlon II 64-bit (one single, one dual core).
They're about the same generation of motherboards, AM2 or AM2+ socket. One is AMD 770 chipset, the other NVidia GeForce 6100 / nForce 430.

Hardware looks similar to Mariusz's in this post, where he had the same problem:

Quoted 6 lines

http://www.xenomai.org/pipermail/xenomai/2012-December/027121.html

He's also running AMD 64-bit on a Gigabyte motherboard, but the next generation AM3 socket, Phenom CPU, AMD 890 chipset. I don't have a C1E BIOS option on these boards to enable/disable. These same motherboards don't suffer this problem with mainline Xenomai on 3.5.3.

Quoted 3 lines

If you had the same problem as Marius, you would have seen it with 3.5.3, and you would get the message in the dmesg about C1E, so, it is probably something else.

Quoted 5 lines

Yes, I'm definitely getting confused. I did see the same problem with C1E, but only while running your 3.5.7 .debs, and not in the 3.5.7 el6 packages that are the main subject of this sub-thread:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-deb-gilles/dmesg-3.5.7-deb-gilles.log

Ah, that is because I rebased the I-pipe tree in between, and at some point the code printing the message was wrong (ATOMIC_INIT(0) instead of ATOMIC_INIT(-1)). That is my fault then, sorry.

Quoted 8 lines
Quoted 4 lines

Could you run

cat /proc/timer_list

Back to el6 again, 3.5.7 i-pipe:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-cat-proc-timer_list-3.5.7-test.log

The LAPIC is definitely up and running (mode: 3). So, it probably means that the erratum detection is not sufficient to decide not to use a LAPIC. Checking your logs, we see:

using AMD E400 aware idle routine

which means the LAPIC could potentially be unusable, but the idle routine also checks for a bit in a K8 specific MSR and prints the message:

System has AMD C1E enabled

Quoted 7 lines

If this bit is set, and in your case the message is not printed so the bit is not set. So, the LAPIC is usable, but due to the changes I made to try and print a message in Marius case, I broke the detection in your case.

I have just pushed a rework for this commit in the for-core-3.5.7 branch in ipipe-gch git.

And it worked, no more C1E error! Thanks!

It looks like the AMD-64 AM2/AM2+ socket CPUs were the last generation without C1E, and the AM3 socket CPUs were the first gen with.

Back to the original problem, the posix/mprotect problem is confirmed to be in this branch:

++ /usr/lib64/xenomai/regression/posix/mprotect
memory read
FAILURE: sigdebug_handler triggered, reason 2
memory write after exec enable

Regression test run:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-xeno-regression-test-3.5.7-test.log

Dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

Kernel .config:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config.txt

To minimize confusion (esp. my own) and answer Jan's question, this is Gilles's ipipe-gch/for-core-3.5.7 kernel (20130113git08f0596) with xenomai master (20130113git210ed428) and standard xenomai kernel options from the wiki, plus CPUMASK_OFFSTACK of course.

John

#53 lore raw

Re: [Xenomai] SMI workarounds in one-size-fits-all kernel packages (Was: Re: Kernel OOPS during regression tests)

In reply to Gilles Chanteperdrix
Quoted 11 lines · Gilles Chanteperdrix
Quoted 10 lines · John Morris
Quoted 9 lines · Gilles Chanteperdrix
Quoted 7 lines · John Morris
Quoted 1 line · Gilles Chanteperdrix

It seems a really bad idea to enable the SMI workaround by default.

Thanks! Despite feeling uncomfortable contradicting the documentation, I was encouraged to turn this on by someone more authoritative than me. It does seem like a separate package with it turned on is warranted for those who have problems and have been fairly warned about the risk.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

I guess we should turn the compile-time option into a kernel parameter. So, the smi workaround would be disabled by default, and only enabled when passing a kerne command-line option.

That would be ideal!

We will try to issue a fix for the 2.6.2 release first, this improvement will be part of the next release.

A boot-time option would definitely solve the one-kernel-fits-all need.
In my ideal fantasy world, a run-time option, perhaps in /proc/xenomai,
would potentially make this dummy-proof, since someone could write a utility to tweak settings in a running system, maybe even a smart utility that could help detect dangerous conditions.

I did find Jan's userland utility 'smictrl' [1] that uses libpci to provide a simple way to query and set SMI controls on a running system.
If it has all the functionality of Xenomai's SMI workaround, maybe we
could toss that into the packages, write a wiki page and say 'good enough for now'. (I tried it on an old Dell PC and my old Thinkpad, both with ICH5 chipset, and while it could manipulate some bits, the ones that might have mattered couldn't be reset. I assumed they were locked down by the BIOS, not by any shortcoming of the utility.)

John

[1] http://git.kiszka.org/?p=smictrl.git

#7 lore raw

Re: [Xenomai] 3.5.7 posix/mprotect failure; "I-pipe: could not find timer" fixed!

In reply to John Morris
Quoted 97 lines · John Morris
Quoted 83 lines · Gilles Chanteperdrix
Quoted 49 lines · John Morris

Hi Gilles and Jan,

Note change of thread subject. I'm starting to get confused.

Quoted 40 lines · Gilles Chanteperdrix
Quoted 30 lines · John Morris
Quoted 10 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Different problem; Xenomai wouldn't start:

I-pipe: could not find timer for cpu #0

dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

.config:
www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config

FYI, I found this same problem on two of my systems while testing your Debian packages. Both AMD Athlon II 64-bit (one single, one dual core).
They're about the same generation of motherboards, AM2 or AM2+ socket. One is AMD 770 chipset, the other NVidia GeForce 6100 / nForce 430.

Hardware looks similar to Mariusz's in this post, where he had the same problem:

Quoted 6 lines

http://www.xenomai.org/pipermail/xenomai/2012-December/027121.html

He's also running AMD 64-bit on a Gigabyte motherboard, but the next generation AM3 socket, Phenom CPU, AMD 890 chipset. I don't have a C1E BIOS option on these boards to enable/disable. These same motherboards don't suffer this problem with mainline Xenomai on 3.5.3.

Quoted 3 lines

If you had the same problem as Marius, you would have seen it with 3.5.3, and you would get the message in the dmesg about C1E, so, it is probably something else.

Quoted 5 lines

Yes, I'm definitely getting confused. I did see the same problem with C1E, but only while running your 3.5.7 .debs, and not in the 3.5.7 el6 packages that are the main subject of this sub-thread:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-deb-gilles/dmesg-3.5.7-deb-gilles.log

Ah, that is because I rebased the I-pipe tree in between, and at some point the code printing the message was wrong (ATOMIC_INIT(0) instead of ATOMIC_INIT(-1)). That is my fault then, sorry.

Quoted 8 lines
Quoted 4 lines

Could you run

cat /proc/timer_list

Back to el6 again, 3.5.7 i-pipe:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-cat-proc-timer_list-3.5.7-test.log

The LAPIC is definitely up and running (mode: 3). So, it probably means that the erratum detection is not sufficient to decide not to use a LAPIC. Checking your logs, we see:

using AMD E400 aware idle routine

which means the LAPIC could potentially be unusable, but the idle routine also checks for a bit in a K8 specific MSR and prints the message:

System has AMD C1E enabled

Quoted 7 lines

If this bit is set, and in your case the message is not printed so the bit is not set. So, the LAPIC is usable, but due to the changes I made to try and print a message in Marius case, I broke the detection in your case.

I have just pushed a rework for this commit in the for-core-3.5.7 branch in ipipe-gch git.

And it worked, no more C1E error! Thanks!

It looks like the AMD-64 AM2/AM2+ socket CPUs were the last generation without C1E, and the AM3 socket CPUs were the first gen with.

Quoted 7 lines

Back to the original problem, the posix/mprotect problem is confirmed to be in this branch:

++ /usr/lib64/xenomai/regression/posix/mprotect
memory read
FAILURE: sigdebug_handler triggered, reason 2
memory write after exec enable

I will try to compile a kernel with the same configuration as you to see if I can reproduce the issue.

Signature · 1 line
                                                                Gilles.
#8 lore raw

Re: [Xenomai] 3.5.7 posix/mprotect failure; "I-pipe: could not find timer" fixed!

Quoted 102 lines · Gilles Chanteperdrix
Quoted 100 lines · John Morris
Quoted 83 lines · Gilles Chanteperdrix
Quoted 49 lines · John Morris

Hi Gilles and Jan,

Note change of thread subject. I'm starting to get confused.

Quoted 40 lines · Gilles Chanteperdrix
Quoted 30 lines · John Morris
Quoted 10 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Different problem; Xenomai wouldn't start:

I-pipe: could not find timer for cpu #0

dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

.config:
www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config

FYI, I found this same problem on two of my systems while testing your Debian packages. Both AMD Athlon II 64-bit (one single, one dual core).
They're about the same generation of motherboards, AM2 or AM2+ socket. One is AMD 770 chipset, the other NVidia GeForce 6100 / nForce 430.

Hardware looks similar to Mariusz's in this post, where he had the same problem:

Quoted 6 lines

http://www.xenomai.org/pipermail/xenomai/2012-December/027121.html

He's also running AMD 64-bit on a Gigabyte motherboard, but the next generation AM3 socket, Phenom CPU, AMD 890 chipset. I don't have a C1E BIOS option on these boards to enable/disable. These same motherboards don't suffer this problem with mainline Xenomai on 3.5.3.

Quoted 3 lines

If you had the same problem as Marius, you would have seen it with 3.5.3, and you would get the message in the dmesg about C1E, so, it is probably something else.

Quoted 5 lines

Yes, I'm definitely getting confused. I did see the same problem with C1E, but only while running your 3.5.7 .debs, and not in the 3.5.7 el6 packages that are the main subject of this sub-thread:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-deb-gilles/dmesg-3.5.7-deb-gilles.log

Ah, that is because I rebased the I-pipe tree in between, and at some point the code printing the message was wrong (ATOMIC_INIT(0) instead of ATOMIC_INIT(-1)). That is my fault then, sorry.

Quoted 8 lines
Quoted 4 lines

Could you run

cat /proc/timer_list

Back to el6 again, 3.5.7 i-pipe:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-cat-proc-timer_list-3.5.7-test.log

The LAPIC is definitely up and running (mode: 3). So, it probably means that the erratum detection is not sufficient to decide not to use a LAPIC. Checking your logs, we see:

using AMD E400 aware idle routine

which means the LAPIC could potentially be unusable, but the idle routine also checks for a bit in a K8 specific MSR and prints the message:

System has AMD C1E enabled

Quoted 7 lines

If this bit is set, and in your case the message is not printed so the bit is not set. So, the LAPIC is usable, but due to the changes I made to try and print a message in Marius case, I broke the detection in your case.

I have just pushed a rework for this commit in the for-core-3.5.7 branch in ipipe-gch git.

And it worked, no more C1E error! Thanks!

It looks like the AMD-64 AM2/AM2+ socket CPUs were the last generation without C1E, and the AM3 socket CPUs were the first gen with.

Back to the original problem, the posix/mprotect problem is confirmed to be in this branch:

Quoted 8 lines
Quoted 4 lines

++ /usr/lib64/xenomai/regression/posix/mprotect
memory read
FAILURE: sigdebug_handler triggered, reason 2
memory write after exec enable

I will try to compile a kernel with the same configuration as you to see if I can reproduce the issue.

Unless you want to double-check: build is already running here. This feature is critical for us, but I have no clue ATM why it could fail over the latest patch queue.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
#19 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

In reply to Gilles Chanteperdrix
Quoted 83 lines · Gilles Chanteperdrix
Quoted 49 lines · John Morris

Hi Gilles and Jan,

Note change of thread subject. I'm starting to get confused.

Quoted 40 lines · Gilles Chanteperdrix
Quoted 30 lines · John Morris
Quoted 10 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Different problem; Xenomai wouldn't start:

I-pipe: could not find timer for cpu #0

dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

.config:
www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config

FYI, I found this same problem on two of my systems while testing your Debian packages. Both AMD Athlon II 64-bit (one single, one dual core).
They're about the same generation of motherboards, AM2 or AM2+ socket. One is AMD 770 chipset, the other NVidia GeForce 6100 / nForce 430.

Hardware looks similar to Mariusz's in this post, where he had the same problem:

Quoted 6 lines

http://www.xenomai.org/pipermail/xenomai/2012-December/027121.html

He's also running AMD 64-bit on a Gigabyte motherboard, but the next generation AM3 socket, Phenom CPU, AMD 890 chipset. I don't have a C1E BIOS option on these boards to enable/disable. These same motherboards don't suffer this problem with mainline Xenomai on 3.5.3.

Quoted 3 lines

If you had the same problem as Marius, you would have seen it with 3.5.3, and you would get the message in the dmesg about C1E, so, it is probably something else.

Quoted 5 lines

Yes, I'm definitely getting confused. I did see the same problem with C1E, but only while running your 3.5.7 .debs, and not in the 3.5.7 el6 packages that are the main subject of this sub-thread:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-deb-gilles/dmesg-3.5.7-deb-gilles.log

Ah, that is because I rebased the I-pipe tree in between, and at some point the code printing the message was wrong (ATOMIC_INIT(0) instead of ATOMIC_INIT(-1)). That is my fault then, sorry.

Quoted 8 lines
Quoted 4 lines

Could you run

cat /proc/timer_list

Back to el6 again, 3.5.7 i-pipe:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-cat-proc-timer_list-3.5.7-test.log

The LAPIC is definitely up and running (mode: 3). So, it probably means that the erratum detection is not sufficient to decide not to use a LAPIC. Checking your logs, we see:

using AMD E400 aware idle routine

which means the LAPIC could potentially be unusable, but the idle routine also checks for a bit in a K8 specific MSR and prints the message:

System has AMD C1E enabled

Quoted 7 lines

If this bit is set, and in your case the message is not printed so the bit is not set. So, the LAPIC is usable, but due to the changes I made to try and print a message in Marius case, I broke the detection in your case.

I have just pushed a rework for this commit in the for-core-3.5.7 branch in ipipe-gch git.

Could you fold those changes into a single patch and add a few words to the changelog that setup_APIC_timer is too early to check? Then I'll merge it into the x86 queue.

Thanks,
Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
#9 lore raw

Re: [Xenomai] 3.5.7 posix/mprotect failure; "I-pipe: could not find timer" fixed!

In reply to Jan Kiszka
Quoted 109 lines · Jan Kiszka
Quoted 108 lines · Gilles Chanteperdrix
Quoted 104 lines · John Morris
Quoted 83 lines · Gilles Chanteperdrix
Quoted 49 lines · John Morris

Hi Gilles and Jan,

Note change of thread subject. I'm starting to get confused.

Quoted 40 lines · Gilles Chanteperdrix
Quoted 30 lines · John Morris
Quoted 10 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Different problem; Xenomai wouldn't start:

I-pipe: could not find timer for cpu #0

dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

.config:
www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config

FYI, I found this same problem on two of my systems while testing your Debian packages. Both AMD Athlon II 64-bit (one single, one dual core).
They're about the same generation of motherboards, AM2 or AM2+ socket. One is AMD 770 chipset, the other NVidia GeForce 6100 / nForce 430.

Hardware looks similar to Mariusz's in this post, where he had the same problem:

Quoted 6 lines

http://www.xenomai.org/pipermail/xenomai/2012-December/027121.html

He's also running AMD 64-bit on a Gigabyte motherboard, but the next generation AM3 socket, Phenom CPU, AMD 890 chipset. I don't have a C1E BIOS option on these boards to enable/disable. These same motherboards don't suffer this problem with mainline Xenomai on 3.5.3.

Quoted 3 lines

If you had the same problem as Marius, you would have seen it with 3.5.3, and you would get the message in the dmesg about C1E, so, it is probably something else.

Quoted 5 lines

Yes, I'm definitely getting confused. I did see the same problem with C1E, but only while running your 3.5.7 .debs, and not in the 3.5.7 el6 packages that are the main subject of this sub-thread:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-deb-gilles/dmesg-3.5.7-deb-gilles.log

Ah, that is because I rebased the I-pipe tree in between, and at some point the code printing the message was wrong (ATOMIC_INIT(0) instead of ATOMIC_INIT(-1)). That is my fault then, sorry.

Quoted 8 lines
Quoted 4 lines

Could you run

cat /proc/timer_list

Back to el6 again, 3.5.7 i-pipe:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-cat-proc-timer_list-3.5.7-test.log

The LAPIC is definitely up and running (mode: 3). So, it probably means that the erratum detection is not sufficient to decide not to use a LAPIC. Checking your logs, we see:

using AMD E400 aware idle routine

which means the LAPIC could potentially be unusable, but the idle routine also checks for a bit in a K8 specific MSR and prints the message:

System has AMD C1E enabled

Quoted 7 lines

If this bit is set, and in your case the message is not printed so the bit is not set. So, the LAPIC is usable, but due to the changes I made to try and print a message in Marius case, I broke the detection in your case.

I have just pushed a rework for this commit in the for-core-3.5.7 branch in ipipe-gch git.

And it worked, no more C1E error! Thanks!

It looks like the AMD-64 AM2/AM2+ socket CPUs were the last generation without C1E, and the AM3 socket CPUs were the first gen with.

Back to the original problem, the posix/mprotect problem is confirmed to be in this branch:

++ /usr/lib64/xenomai/regression/posix/mprotect
memory read
FAILURE: sigdebug_handler triggered, reason 2
memory write after exec enable

Quoted 6 lines
Quoted 2 lines

I will try to compile a kernel with the same configuration as you to see if I can reproduce the issue.

Unless you want to double-check: build is already running here. This feature is critical for us, but I have no clue ATM why it could fail over the latest patch queue.

OK, would probably be good to double-check as I'm unable to reproduce the issue over my queue with John's .config.

The reason code is suspicious BTW: syscall. Would be good if someone who can reproduce attaches gdb and provides a backtrace from the signal to the call that triggered it. Could something have went wrong while building the test case, that not all required functions are wrapped such as printf?

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
#20 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

In reply to Jan Kiszka
Quoted 89 lines · Jan Kiszka
Quoted 88 lines · Gilles Chanteperdrix
Quoted 49 lines · John Morris

Hi Gilles and Jan,

Note change of thread subject. I'm starting to get confused.

Quoted 40 lines · Gilles Chanteperdrix
Quoted 30 lines · John Morris
Quoted 10 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Different problem; Xenomai wouldn't start:

I-pipe: could not find timer for cpu #0

dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

.config:
www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config

FYI, I found this same problem on two of my systems while testing your Debian packages. Both AMD Athlon II 64-bit (one single, one dual core).
They're about the same generation of motherboards, AM2 or AM2+ socket. One is AMD 770 chipset, the other NVidia GeForce 6100 / nForce 430.

Hardware looks similar to Mariusz's in this post, where he had the same problem:

Quoted 6 lines

http://www.xenomai.org/pipermail/xenomai/2012-December/027121.html

He's also running AMD 64-bit on a Gigabyte motherboard, but the next generation AM3 socket, Phenom CPU, AMD 890 chipset. I don't have a C1E BIOS option on these boards to enable/disable. These same motherboards don't suffer this problem with mainline Xenomai on 3.5.3.

Quoted 3 lines

If you had the same problem as Marius, you would have seen it with 3.5.3, and you would get the message in the dmesg about C1E, so, it is probably something else.

Quoted 5 lines

Yes, I'm definitely getting confused. I did see the same problem with C1E, but only while running your 3.5.7 .debs, and not in the 3.5.7 el6 packages that are the main subject of this sub-thread:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-deb-gilles/dmesg-3.5.7-deb-gilles.log

Ah, that is because I rebased the I-pipe tree in between, and at some point the code printing the message was wrong (ATOMIC_INIT(0) instead of ATOMIC_INIT(-1)). That is my fault then, sorry.

Quoted 8 lines
Quoted 4 lines

Could you run

cat /proc/timer_list

Back to el6 again, 3.5.7 i-pipe:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-cat-proc-timer_list-3.5.7-test.log

The LAPIC is definitely up and running (mode: 3). So, it probably means that the erratum detection is not sufficient to decide not to use a LAPIC. Checking your logs, we see:

using AMD E400 aware idle routine

which means the LAPIC could potentially be unusable, but the idle routine also checks for a bit in a K8 specific MSR and prints the message:

System has AMD C1E enabled

If this bit is set, and in your case the message is not printed so the bit is not set. So, the LAPIC is usable, but due to the changes I made to try and print a message in Marius case, I broke the detection in your case.

Quoted 6 lines
Quoted 2 lines

I have just pushed a rework for this commit in the for-core-3.5.7 branch in ipipe-gch git.

Could you fold those changes into a single patch and add a few words to the changelog that setup_APIC_timer is too early to check? Then I'll merge it into the x86 queue.

I am trying to reach a point where we add bug-fixes and only bug-fixes to re-release 2.6.2, so, the for-core-3.5.7 branch is what I intend to put in this release, I would like to avoid the other commits in your branch.

Signature · 1 line
                                                                Gilles.
#21 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

Quoted 94 lines · Gilles Chanteperdrix
Quoted 92 lines · Jan Kiszka
Quoted 90 lines · Gilles Chanteperdrix
Quoted 49 lines · John Morris

Hi Gilles and Jan,

Note change of thread subject. I'm starting to get confused.

Quoted 40 lines · Gilles Chanteperdrix
Quoted 30 lines · John Morris
Quoted 10 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Different problem; Xenomai wouldn't start:

I-pipe: could not find timer for cpu #0

dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

.config:
www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config

FYI, I found this same problem on two of my systems while testing your Debian packages. Both AMD Athlon II 64-bit (one single, one dual core).
They're about the same generation of motherboards, AM2 or AM2+ socket. One is AMD 770 chipset, the other NVidia GeForce 6100 / nForce 430.

Hardware looks similar to Mariusz's in this post, where he had the same problem:

Quoted 6 lines

http://www.xenomai.org/pipermail/xenomai/2012-December/027121.html

He's also running AMD 64-bit on a Gigabyte motherboard, but the next generation AM3 socket, Phenom CPU, AMD 890 chipset. I don't have a C1E BIOS option on these boards to enable/disable. These same motherboards don't suffer this problem with mainline Xenomai on 3.5.3.

Quoted 3 lines

If you had the same problem as Marius, you would have seen it with 3.5.3, and you would get the message in the dmesg about C1E, so, it is probably something else.

Quoted 5 lines

Yes, I'm definitely getting confused. I did see the same problem with C1E, but only while running your 3.5.7 .debs, and not in the 3.5.7 el6 packages that are the main subject of this sub-thread:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-deb-gilles/dmesg-3.5.7-deb-gilles.log

Ah, that is because I rebased the I-pipe tree in between, and at some point the code printing the message was wrong (ATOMIC_INIT(0) instead of ATOMIC_INIT(-1)). That is my fault then, sorry.

Quoted 8 lines
Quoted 4 lines

Could you run

cat /proc/timer_list

Back to el6 again, 3.5.7 i-pipe:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-cat-proc-timer_list-3.5.7-test.log

The LAPIC is definitely up and running (mode: 3). So, it probably means that the erratum detection is not sufficient to decide not to use a LAPIC. Checking your logs, we see:

using AMD E400 aware idle routine

which means the LAPIC could potentially be unusable, but the idle routine also checks for a bit in a K8 specific MSR and prints the message:

System has AMD C1E enabled

If this bit is set, and in your case the message is not printed so the bit is not set. So, the LAPIC is usable, but due to the changes I made to try and print a message in Marius case, I broke the detection in your case.

I have just pushed a rework for this commit in the for-core-3.5.7 branch in ipipe-gch git.

Quoted 8 lines
Quoted 3 lines

Could you fold those changes into a single patch and add a few words to the changelog that setup_APIC_timer is too early to check? Then I'll merge it into the x86 queue.

I am trying to reach a point where we add bug-fixes and only bug-fixes to re-release 2.6.2, so, the for-core-3.5.7 branch is what I intend to put in this release, I would like to avoid the other commits in your branch.

Please have a closer look at the patches before judging. First, many of them fix bugs of features that already used to work. Second, they add support in an orthogonal way, i.e. have no or minimal side effects when the corresponding kernel features are off. And third, the features, specifically ftrace/perf, are very useful for a broad audience - and mandatory for our x86 use cases. It would not only help us a lot if we could focus on different Xenomai tasks than continue to maintain the patch queues separately.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
#22 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

Quoted 104 lines · Jan Kiszka
Quoted 94 lines · Gilles Chanteperdrix
Quoted 92 lines · Jan Kiszka
Quoted 90 lines · Gilles Chanteperdrix
Quoted 49 lines · John Morris

Hi Gilles and Jan,

Note change of thread subject. I'm starting to get confused.

Quoted 40 lines · Gilles Chanteperdrix
Quoted 30 lines · John Morris
Quoted 10 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Different problem; Xenomai wouldn't start:

I-pipe: could not find timer for cpu #0

dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

.config:
www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config

FYI, I found this same problem on two of my systems while testing your Debian packages. Both AMD Athlon II 64-bit (one single, one dual core).
They're about the same generation of motherboards, AM2 or AM2+ socket. One is AMD 770 chipset, the other NVidia GeForce 6100 / nForce 430.

Hardware looks similar to Mariusz's in this post, where he had the same problem:

Quoted 6 lines

http://www.xenomai.org/pipermail/xenomai/2012-December/027121.html

He's also running AMD 64-bit on a Gigabyte motherboard, but the next generation AM3 socket, Phenom CPU, AMD 890 chipset. I don't have a C1E BIOS option on these boards to enable/disable. These same motherboards don't suffer this problem with mainline Xenomai on 3.5.3.

Quoted 3 lines

If you had the same problem as Marius, you would have seen it with 3.5.3, and you would get the message in the dmesg about C1E, so, it is probably something else.

Quoted 5 lines

Yes, I'm definitely getting confused. I did see the same problem with C1E, but only while running your 3.5.7 .debs, and not in the 3.5.7 el6 packages that are the main subject of this sub-thread:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-deb-gilles/dmesg-3.5.7-deb-gilles.log

Ah, that is because I rebased the I-pipe tree in between, and at some point the code printing the message was wrong (ATOMIC_INIT(0) instead of ATOMIC_INIT(-1)). That is my fault then, sorry.

Quoted 8 lines
Quoted 4 lines

Could you run

cat /proc/timer_list

Back to el6 again, 3.5.7 i-pipe:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-cat-proc-timer_list-3.5.7-test.log

The LAPIC is definitely up and running (mode: 3). So, it probably means that the erratum detection is not sufficient to decide not to use a LAPIC. Checking your logs, we see:

using AMD E400 aware idle routine

which means the LAPIC could potentially be unusable, but the idle routine also checks for a bit in a K8 specific MSR and prints the message:

System has AMD C1E enabled

If this bit is set, and in your case the message is not printed so the bit is not set. So, the LAPIC is usable, but due to the changes I made to try and print a message in Marius case, I broke the detection in your case.

I have just pushed a rework for this commit in the for-core-3.5.7 branch in ipipe-gch git.

Quoted 8 lines
Quoted 3 lines

Could you fold those changes into a single patch and add a few words to the changelog that setup_APIC_timer is too early to check? Then I'll merge it into the x86 queue.

I am trying to reach a point where we add bug-fixes and only bug-fixes to re-release 2.6.2, so, the for-core-3.5.7 branch is what I intend to put in this release, I would like to avoid the other commits in your branch.

Quoted 8 lines

Please have a closer look at the patches before judging. First, many of them fix bugs of features that already used to work. Second, they add support in an orthogonal way, i.e. have no or minimal side effects when the corresponding kernel features are off. And third, the features, specifically ftrace/perf, are very useful for a broad audience - and mandatory for our x86 use cases. It would not only help us a lot if we could focus on different Xenomai tasks than continue to maintain the patch queues separately.

I have no problem with merging new features, but I would suggest waiting for after the 2.6.2 re-release. But ultimately, I am not the one who decides. People can upgrade the I-pipe patch with a Xenomai release as you know.

Signature · 1 line
                                                                Gilles.
#23 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

Quoted 116 lines · Gilles Chanteperdrix
Quoted 104 lines · Jan Kiszka
Quoted 94 lines · Gilles Chanteperdrix
Quoted 92 lines · Jan Kiszka
Quoted 90 lines · Gilles Chanteperdrix
Quoted 49 lines · John Morris

Hi Gilles and Jan,

Note change of thread subject. I'm starting to get confused.

Quoted 40 lines · Gilles Chanteperdrix
Quoted 30 lines · John Morris
Quoted 10 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Different problem; Xenomai wouldn't start:

I-pipe: could not find timer for cpu #0

dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

.config:
www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config

FYI, I found this same problem on two of my systems while testing your Debian packages. Both AMD Athlon II 64-bit (one single, one dual core).
They're about the same generation of motherboards, AM2 or AM2+ socket. One is AMD 770 chipset, the other NVidia GeForce 6100 / nForce 430.

Hardware looks similar to Mariusz's in this post, where he had the same problem:

Quoted 6 lines

http://www.xenomai.org/pipermail/xenomai/2012-December/027121.html

He's also running AMD 64-bit on a Gigabyte motherboard, but the next generation AM3 socket, Phenom CPU, AMD 890 chipset. I don't have a C1E BIOS option on these boards to enable/disable. These same motherboards don't suffer this problem with mainline Xenomai on 3.5.3.

Quoted 3 lines

If you had the same problem as Marius, you would have seen it with 3.5.3, and you would get the message in the dmesg about C1E, so, it is probably something else.

Quoted 5 lines

Yes, I'm definitely getting confused. I did see the same problem with C1E, but only while running your 3.5.7 .debs, and not in the 3.5.7 el6 packages that are the main subject of this sub-thread:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-deb-gilles/dmesg-3.5.7-deb-gilles.log

Ah, that is because I rebased the I-pipe tree in between, and at some point the code printing the message was wrong (ATOMIC_INIT(0) instead of ATOMIC_INIT(-1)). That is my fault then, sorry.

Quoted 8 lines
Quoted 4 lines

Could you run

cat /proc/timer_list

Back to el6 again, 3.5.7 i-pipe:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-cat-proc-timer_list-3.5.7-test.log

The LAPIC is definitely up and running (mode: 3). So, it probably means that the erratum detection is not sufficient to decide not to use a LAPIC. Checking your logs, we see:

using AMD E400 aware idle routine

which means the LAPIC could potentially be unusable, but the idle routine also checks for a bit in a K8 specific MSR and prints the message:

System has AMD C1E enabled

If this bit is set, and in your case the message is not printed so the bit is not set. So, the LAPIC is usable, but due to the changes I made to try and print a message in Marius case, I broke the detection in your case.

I have just pushed a rework for this commit in the for-core-3.5.7 branch in ipipe-gch git.

Quoted 8 lines
Quoted 3 lines

Could you fold those changes into a single patch and add a few words to the changelog that setup_APIC_timer is too early to check? Then I'll merge it into the x86 queue.

I am trying to reach a point where we add bug-fixes and only bug-fixes to re-release 2.6.2, so, the for-core-3.5.7 branch is what I intend to put in this release, I would like to avoid the other commits in your branch.

Quoted 8 lines

Please have a closer look at the patches before judging. First, many of them fix bugs of features that already used to work. Second, they add support in an orthogonal way, i.e. have no or minimal side effects when the corresponding kernel features are off. And third, the features, specifically ftrace/perf, are very useful for a broad audience - and mandatory for our x86 use cases. It would not only help us a lot if we could focus on different Xenomai tasks than continue to maintain the patch queues separately.

Quoted 4 lines

I have no problem with merging new features, but I would suggest waiting for after the 2.6.2 re-release. But ultimately, I am not the one who decides. People can upgrade the I-pipe patch with a Xenomai release as you know.

If 2.6.2b (or whatever) is in a real hurry and this wont close the core-3.5 branch, I'm fine with pulling only the bottom of my queue - or yours (then ideally after that commit cleanup).

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
#16 lore raw

Re: [Xenomai] 3.5.7 posix/mprotect failure; "I-pipe: could not find timer" fixed!

In reply to John Morris
Quoted 105 lines · John Morris
Quoted 83 lines · Gilles Chanteperdrix
Quoted 49 lines · John Morris

Hi Gilles and Jan,

Note change of thread subject. I'm starting to get confused.

Quoted 40 lines · Gilles Chanteperdrix
Quoted 30 lines · John Morris
Quoted 10 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Different problem; Xenomai wouldn't start:

I-pipe: could not find timer for cpu #0

dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

.config:
www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config

FYI, I found this same problem on two of my systems while testing your Debian packages. Both AMD Athlon II 64-bit (one single, one dual core).
They're about the same generation of motherboards, AM2 or AM2+ socket. One is AMD 770 chipset, the other NVidia GeForce 6100 / nForce 430.

Hardware looks similar to Mariusz's in this post, where he had the same problem:

Quoted 6 lines

http://www.xenomai.org/pipermail/xenomai/2012-December/027121.html

He's also running AMD 64-bit on a Gigabyte motherboard, but the next generation AM3 socket, Phenom CPU, AMD 890 chipset. I don't have a C1E BIOS option on these boards to enable/disable. These same motherboards don't suffer this problem with mainline Xenomai on 3.5.3.

Quoted 3 lines

If you had the same problem as Marius, you would have seen it with 3.5.3, and you would get the message in the dmesg about C1E, so, it is probably something else.

Quoted 5 lines

Yes, I'm definitely getting confused. I did see the same problem with C1E, but only while running your 3.5.7 .debs, and not in the 3.5.7 el6 packages that are the main subject of this sub-thread:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-deb-gilles/dmesg-3.5.7-deb-gilles.log

Ah, that is because I rebased the I-pipe tree in between, and at some point the code printing the message was wrong (ATOMIC_INIT(0) instead of ATOMIC_INIT(-1)). That is my fault then, sorry.

Quoted 8 lines
Quoted 4 lines

Could you run

cat /proc/timer_list

Back to el6 again, 3.5.7 i-pipe:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-cat-proc-timer_list-3.5.7-test.log

The LAPIC is definitely up and running (mode: 3). So, it probably means that the erratum detection is not sufficient to decide not to use a LAPIC. Checking your logs, we see:

using AMD E400 aware idle routine

which means the LAPIC could potentially be unusable, but the idle routine also checks for a bit in a K8 specific MSR and prints the message:

System has AMD C1E enabled

Quoted 7 lines

If this bit is set, and in your case the message is not printed so the bit is not set. So, the LAPIC is usable, but due to the changes I made to try and print a message in Marius case, I broke the detection in your case.

I have just pushed a rework for this commit in the for-core-3.5.7 branch in ipipe-gch git.

And it worked, no more C1E error! Thanks!

It looks like the AMD-64 AM2/AM2+ socket CPUs were the last generation without C1E, and the AM3 socket CPUs were the first gen with.

Back to the original problem, the posix/mprotect problem is confirmed to be in this branch:

++ /usr/lib64/xenomai/regression/posix/mprotect
memory read
FAILURE: sigdebug_handler triggered, reason 2
memory write after exec enable

Quoted 8 lines

Regression test run:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-xeno-regression-test-3.5.7-test.log

Dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

Kernel .config:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config.txt

I can not reproduce this issue with the same configuration on atom.

Quoted 3 lines

To minimize confusion (esp. my own) and answer Jan's question, this is Gilles's ipipe-gch/for-core-3.5.7 kernel (20130113git08f0596) with

I can not find a commit beginning with 08f0596. The current head of xenomai-2.6 master branch is 851281e593d89573edec063fe02c913e425f121b

Quoted 1 line

xenomai master (20130113git210ed428)

210ed428 is I-pipe current for-core-3.5.7 branch head.

Signature · 1 line
                                                                Gilles.
#24 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

In reply to Jan Kiszka
Quoted 117 lines · Jan Kiszka
Quoted 116 lines · Gilles Chanteperdrix
Quoted 112 lines · Jan Kiszka
Quoted 94 lines · Gilles Chanteperdrix
Quoted 92 lines · Jan Kiszka
Quoted 90 lines · Gilles Chanteperdrix
Quoted 49 lines · John Morris

Hi Gilles and Jan,

Note change of thread subject. I'm starting to get confused.

Quoted 40 lines · Gilles Chanteperdrix
Quoted 30 lines · John Morris
Quoted 10 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Different problem; Xenomai wouldn't start:

I-pipe: could not find timer for cpu #0

dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

.config:
www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config

FYI, I found this same problem on two of my systems while testing your Debian packages. Both AMD Athlon II 64-bit (one single, one dual core).
They're about the same generation of motherboards, AM2 or AM2+ socket. One is AMD 770 chipset, the other NVidia GeForce 6100 / nForce 430.

Hardware looks similar to Mariusz's in this post, where he had the same problem:

Quoted 6 lines

http://www.xenomai.org/pipermail/xenomai/2012-December/027121.html

He's also running AMD 64-bit on a Gigabyte motherboard, but the next generation AM3 socket, Phenom CPU, AMD 890 chipset. I don't have a C1E BIOS option on these boards to enable/disable. These same motherboards don't suffer this problem with mainline Xenomai on 3.5.3.

Quoted 3 lines

If you had the same problem as Marius, you would have seen it with 3.5.3, and you would get the message in the dmesg about C1E, so, it is probably something else.

Quoted 5 lines

Yes, I'm definitely getting confused. I did see the same problem with C1E, but only while running your 3.5.7 .debs, and not in the 3.5.7 el6 packages that are the main subject of this sub-thread:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-deb-gilles/dmesg-3.5.7-deb-gilles.log

Ah, that is because I rebased the I-pipe tree in between, and at some point the code printing the message was wrong (ATOMIC_INIT(0) instead of ATOMIC_INIT(-1)). That is my fault then, sorry.

Quoted 8 lines
Quoted 4 lines

Could you run

cat /proc/timer_list

Back to el6 again, 3.5.7 i-pipe:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-cat-proc-timer_list-3.5.7-test.log

The LAPIC is definitely up and running (mode: 3). So, it probably means that the erratum detection is not sufficient to decide not to use a LAPIC. Checking your logs, we see:

using AMD E400 aware idle routine

which means the LAPIC could potentially be unusable, but the idle routine also checks for a bit in a K8 specific MSR and prints the message:

System has AMD C1E enabled

If this bit is set, and in your case the message is not printed so the bit is not set. So, the LAPIC is usable, but due to the changes I made to try and print a message in Marius case, I broke the detection in your case.

I have just pushed a rework for this commit in the for-core-3.5.7 branch in ipipe-gch git.

Quoted 8 lines
Quoted 3 lines

Could you fold those changes into a single patch and add a few words to the changelog that setup_APIC_timer is too early to check? Then I'll merge it into the x86 queue.

I am trying to reach a point where we add bug-fixes and only bug-fixes to re-release 2.6.2, so, the for-core-3.5.7 branch is what I intend to put in this release, I would like to avoid the other commits in your branch.

Please have a closer look at the patches before judging. First, many of them fix bugs of features that already used to work. Second, they add support in an orthogonal way, i.e. have no or minimal side effects when the corresponding kernel features are off. And third, the features, specifically ftrace/perf, are very useful for a broad audience - and mandatory for our x86 use cases. It would not only help us a lot if we could focus on different Xenomai tasks than continue to maintain the patch queues separately.

Quoted 8 lines
Quoted 4 lines

I have no problem with merging new features, but I would suggest waiting for after the 2.6.2 re-release. But ultimately, I am not the one who decides. People can upgrade the I-pipe patch with a Xenomai release as you know.

If 2.6.2b (or whatever) is in a real hurry and this wont close the core-3.5 branch, I'm fine with pulling only the bottom of my queue - or yours (then ideally after that commit cleanup).

Done, also note that my current work is the for-core-3.5.7 branch, not the for-core-3.5 branch.

Signature · 1 line
                                                                Gilles.
#10 lore raw

Re: [Xenomai] 3.5.7 posix/mprotect failure; "I-pipe: could not find timer" fixed!

In reply to Jan Kiszka
Quoted 117 lines · Jan Kiszka
Quoted 109 lines · Jan Kiszka
Quoted 108 lines · Gilles Chanteperdrix
Quoted 104 lines · John Morris
Quoted 83 lines · Gilles Chanteperdrix
Quoted 49 lines · John Morris

Hi Gilles and Jan,

Note change of thread subject. I'm starting to get confused.

Quoted 40 lines · Gilles Chanteperdrix
Quoted 30 lines · John Morris
Quoted 10 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Different problem; Xenomai wouldn't start:

I-pipe: could not find timer for cpu #0

dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

.config:
www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config

FYI, I found this same problem on two of my systems while testing your Debian packages. Both AMD Athlon II 64-bit (one single, one dual core).
They're about the same generation of motherboards, AM2 or AM2+ socket. One is AMD 770 chipset, the other NVidia GeForce 6100 / nForce 430.

Hardware looks similar to Mariusz's in this post, where he had the same problem:

Quoted 6 lines

http://www.xenomai.org/pipermail/xenomai/2012-December/027121.html

He's also running AMD 64-bit on a Gigabyte motherboard, but the next generation AM3 socket, Phenom CPU, AMD 890 chipset. I don't have a C1E BIOS option on these boards to enable/disable. These same motherboards don't suffer this problem with mainline Xenomai on 3.5.3.

Quoted 3 lines

If you had the same problem as Marius, you would have seen it with 3.5.3, and you would get the message in the dmesg about C1E, so, it is probably something else.

Quoted 5 lines

Yes, I'm definitely getting confused. I did see the same problem with C1E, but only while running your 3.5.7 .debs, and not in the 3.5.7 el6 packages that are the main subject of this sub-thread:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-deb-gilles/dmesg-3.5.7-deb-gilles.log

Ah, that is because I rebased the I-pipe tree in between, and at some point the code printing the message was wrong (ATOMIC_INIT(0) instead of ATOMIC_INIT(-1)). That is my fault then, sorry.

Quoted 8 lines
Quoted 4 lines

Could you run

cat /proc/timer_list

Back to el6 again, 3.5.7 i-pipe:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-cat-proc-timer_list-3.5.7-test.log

The LAPIC is definitely up and running (mode: 3). So, it probably means that the erratum detection is not sufficient to decide not to use a LAPIC. Checking your logs, we see:

using AMD E400 aware idle routine

which means the LAPIC could potentially be unusable, but the idle routine also checks for a bit in a K8 specific MSR and prints the message:

System has AMD C1E enabled

Quoted 7 lines

If this bit is set, and in your case the message is not printed so the bit is not set. So, the LAPIC is usable, but due to the changes I made to try and print a message in Marius case, I broke the detection in your case.

I have just pushed a rework for this commit in the for-core-3.5.7 branch in ipipe-gch git.

And it worked, no more C1E error! Thanks!

It looks like the AMD-64 AM2/AM2+ socket CPUs were the last generation without C1E, and the AM3 socket CPUs were the first gen with.

Back to the original problem, the posix/mprotect problem is confirmed to be in this branch:

++ /usr/lib64/xenomai/regression/posix/mprotect
memory read
FAILURE: sigdebug_handler triggered, reason 2
memory write after exec enable

Quoted 6 lines
Quoted 2 lines

I will try to compile a kernel with the same configuration as you to see if I can reproduce the issue.

Unless you want to double-check: build is already running here. This feature is critical for us, but I have no clue ATM why it could fail over the latest patch queue.

Quoted 8 lines

OK, would probably be good to double-check as I'm unable to reproduce the issue over my queue with John's .config.

The reason code is suspicious BTW: syscall. Would be good if someone who can reproduce attaches gdb and provides a backtrace from the signal to the call that triggered it. Could something have went wrong while building the test case, that not all required functions are wrapped such as printf?

Hi Jan,

Is this what you need?

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-gdb-posix-mprotect-3.5.7-test.log

John

#17 lore raw

Re: [Xenomai] 3.5.7 posix/mprotect failure; "I-pipe: could not find timer" fixed!

In reply to Gilles Chanteperdrix
Quoted 124 lines · Gilles Chanteperdrix
Quoted 105 lines · John Morris
Quoted 83 lines · Gilles Chanteperdrix
Quoted 49 lines · John Morris

Hi Gilles and Jan,

Note change of thread subject. I'm starting to get confused.

Quoted 40 lines · Gilles Chanteperdrix
Quoted 30 lines · John Morris
Quoted 10 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Different problem; Xenomai wouldn't start:

I-pipe: could not find timer for cpu #0

dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

.config:
www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config

FYI, I found this same problem on two of my systems while testing your Debian packages. Both AMD Athlon II 64-bit (one single, one dual core).
They're about the same generation of motherboards, AM2 or AM2+ socket. One is AMD 770 chipset, the other NVidia GeForce 6100 / nForce 430.

Hardware looks similar to Mariusz's in this post, where he had the same problem:

Quoted 6 lines

http://www.xenomai.org/pipermail/xenomai/2012-December/027121.html

He's also running AMD 64-bit on a Gigabyte motherboard, but the next generation AM3 socket, Phenom CPU, AMD 890 chipset. I don't have a C1E BIOS option on these boards to enable/disable. These same motherboards don't suffer this problem with mainline Xenomai on 3.5.3.

Quoted 3 lines

If you had the same problem as Marius, you would have seen it with 3.5.3, and you would get the message in the dmesg about C1E, so, it is probably something else.

Quoted 5 lines

Yes, I'm definitely getting confused. I did see the same problem with C1E, but only while running your 3.5.7 .debs, and not in the 3.5.7 el6 packages that are the main subject of this sub-thread:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-deb-gilles/dmesg-3.5.7-deb-gilles.log

Ah, that is because I rebased the I-pipe tree in between, and at some point the code printing the message was wrong (ATOMIC_INIT(0) instead of ATOMIC_INIT(-1)). That is my fault then, sorry.

Quoted 8 lines
Quoted 4 lines

Could you run

cat /proc/timer_list

Back to el6 again, 3.5.7 i-pipe:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-cat-proc-timer_list-3.5.7-test.log

The LAPIC is definitely up and running (mode: 3). So, it probably means that the erratum detection is not sufficient to decide not to use a LAPIC. Checking your logs, we see:

using AMD E400 aware idle routine

which means the LAPIC could potentially be unusable, but the idle routine also checks for a bit in a K8 specific MSR and prints the message:

System has AMD C1E enabled

Quoted 7 lines

If this bit is set, and in your case the message is not printed so the bit is not set. So, the LAPIC is usable, but due to the changes I made to try and print a message in Marius case, I broke the detection in your case.

I have just pushed a rework for this commit in the for-core-3.5.7 branch in ipipe-gch git.

And it worked, no more C1E error! Thanks!

It looks like the AMD-64 AM2/AM2+ socket CPUs were the last generation without C1E, and the AM3 socket CPUs were the first gen with.

Back to the original problem, the posix/mprotect problem is confirmed to be in this branch:

++ /usr/lib64/xenomai/regression/posix/mprotect
memory read
FAILURE: sigdebug_handler triggered, reason 2
memory write after exec enable

Quoted 8 lines

Regression test run:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-xeno-regression-test-3.5.7-test.log

Dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

Kernel .config:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config.txt

I can not reproduce this issue with the same configuration on atom.

Quoted 3 lines

To minimize confusion (esp. my own) and answer Jan's question, this is Gilles's ipipe-gch/for-core-3.5.7 kernel (20130113git08f0596) with

Quoted 9 lines

I can not find a commit beginning with 08f0596. The current head of xenomai-2.6 master branch is 851281e593d89573edec063fe02c913e425f121b

Quoted 1 line

xenomai master (20130113git210ed428)

210ed428 is I-pipe current for-core-3.5.7 branch head.

How embarrassing, let's try again:

xenomai 20130113git851281e5, for-core-3.5.7 20130113git210ed428

Both HEAD pulled yesterday.

John

#11 lore raw

Re: [Xenomai] 3.5.7 posix/mprotect failure; "I-pipe: could not find timer" fixed!

In reply to John Morris
Quoted 127 lines · John Morris
Quoted 117 lines · Jan Kiszka
Quoted 109 lines · Jan Kiszka
Quoted 108 lines · Gilles Chanteperdrix
Quoted 104 lines · John Morris
Quoted 83 lines · Gilles Chanteperdrix
Quoted 49 lines · John Morris

Hi Gilles and Jan,

Note change of thread subject. I'm starting to get confused.

Quoted 40 lines · Gilles Chanteperdrix
Quoted 30 lines · John Morris
Quoted 10 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Different problem; Xenomai wouldn't start:

I-pipe: could not find timer for cpu #0

dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

.config:
www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config

FYI, I found this same problem on two of my systems while testing your Debian packages. Both AMD Athlon II 64-bit (one single, one dual core).
They're about the same generation of motherboards, AM2 or AM2+ socket. One is AMD 770 chipset, the other NVidia GeForce 6100 / nForce 430.

Hardware looks similar to Mariusz's in this post, where he had the same problem:

Quoted 6 lines

http://www.xenomai.org/pipermail/xenomai/2012-December/027121.html

He's also running AMD 64-bit on a Gigabyte motherboard, but the next generation AM3 socket, Phenom CPU, AMD 890 chipset. I don't have a C1E BIOS option on these boards to enable/disable. These same motherboards don't suffer this problem with mainline Xenomai on 3.5.3.

Quoted 3 lines

If you had the same problem as Marius, you would have seen it with 3.5.3, and you would get the message in the dmesg about C1E, so, it is probably something else.

Quoted 5 lines

Yes, I'm definitely getting confused. I did see the same problem with C1E, but only while running your 3.5.7 .debs, and not in the 3.5.7 el6 packages that are the main subject of this sub-thread:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-deb-gilles/dmesg-3.5.7-deb-gilles.log

Ah, that is because I rebased the I-pipe tree in between, and at some point the code printing the message was wrong (ATOMIC_INIT(0) instead of ATOMIC_INIT(-1)). That is my fault then, sorry.

Quoted 8 lines
Quoted 4 lines

Could you run

cat /proc/timer_list

Back to el6 again, 3.5.7 i-pipe:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-cat-proc-timer_list-3.5.7-test.log

The LAPIC is definitely up and running (mode: 3). So, it probably means that the erratum detection is not sufficient to decide not to use a LAPIC. Checking your logs, we see:

using AMD E400 aware idle routine

which means the LAPIC could potentially be unusable, but the idle routine also checks for a bit in a K8 specific MSR and prints the message:

System has AMD C1E enabled

Quoted 7 lines

If this bit is set, and in your case the message is not printed so the bit is not set. So, the LAPIC is usable, but due to the changes I made to try and print a message in Marius case, I broke the detection in your case.

I have just pushed a rework for this commit in the for-core-3.5.7 branch in ipipe-gch git.

And it worked, no more C1E error! Thanks!

It looks like the AMD-64 AM2/AM2+ socket CPUs were the last generation without C1E, and the AM3 socket CPUs were the first gen with.

Back to the original problem, the posix/mprotect problem is confirmed to be in this branch:

++ /usr/lib64/xenomai/regression/posix/mprotect
memory read
FAILURE: sigdebug_handler triggered, reason 2
memory write after exec enable

Quoted 6 lines
Quoted 2 lines

I will try to compile a kernel with the same configuration as you to see if I can reproduce the issue.

Unless you want to double-check: build is already running here. This feature is critical for us, but I have no clue ATM why it could fail over the latest patch queue.

Quoted 8 lines

OK, would probably be good to double-check as I'm unable to reproduce the issue over my queue with John's .config.

The reason code is suspicious BTW: syscall. Would be good if someone who can reproduce attaches gdb and provides a backtrace from the signal to the call that triggered it. Could something have went wrong while building the test case, that not all required functions are wrapped such as printf?

Quoted 5 lines

Hi Jan,

Is this what you need?

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-gdb-posix-mprotect-3.5.7-test.log

So, you are compiling with _FORTIFY_SOURCE, that is the difference with how we are compiling. Is it easy for you to set _FORTIFY_SOURCE to 0?

Signature · 1 line
                                                                Gilles.
#18 lore raw

Re: [Xenomai] 3.5.7 posix/mprotect failure; "I-pipe: could not find timer" fixed!

In reply to John Morris
Quoted 137 lines · John Morris
Quoted 124 lines · Gilles Chanteperdrix
Quoted 105 lines · John Morris
Quoted 83 lines · Gilles Chanteperdrix
Quoted 49 lines · John Morris

Hi Gilles and Jan,

Note change of thread subject. I'm starting to get confused.

Quoted 40 lines · Gilles Chanteperdrix
Quoted 30 lines · John Morris
Quoted 10 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) Most worrisome is "kernel BUG at mm/mmap.c:2313! invalid opcode:
0000 [#2] SMP". Is this related to HEAPSZ or STACKPOOLSZ? My mind is getting foggy about all the things I've seen, but it seems like it was happening earlier in the tests until these config values were quadrupled.

Could you check whether you can reproduce this issue with the I-pipe patch for 3.5.7 ? The next xenomai release will be based on this version on x86 anyway. Branch for-core-3.5.7 in ipipe-gch.git

Different problem; Xenomai wouldn't start:

I-pipe: could not find timer for cpu #0

dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

.config:
www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config

FYI, I found this same problem on two of my systems while testing your Debian packages. Both AMD Athlon II 64-bit (one single, one dual core).
They're about the same generation of motherboards, AM2 or AM2+ socket. One is AMD 770 chipset, the other NVidia GeForce 6100 / nForce 430.

Hardware looks similar to Mariusz's in this post, where he had the same problem:

Quoted 6 lines

http://www.xenomai.org/pipermail/xenomai/2012-December/027121.html

He's also running AMD 64-bit on a Gigabyte motherboard, but the next generation AM3 socket, Phenom CPU, AMD 890 chipset. I don't have a C1E BIOS option on these boards to enable/disable. These same motherboards don't suffer this problem with mainline Xenomai on 3.5.3.

Quoted 3 lines

If you had the same problem as Marius, you would have seen it with 3.5.3, and you would get the message in the dmesg about C1E, so, it is probably something else.

Quoted 5 lines

Yes, I'm definitely getting confused. I did see the same problem with C1E, but only while running your 3.5.7 .debs, and not in the 3.5.7 el6 packages that are the main subject of this sub-thread:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-deb-gilles/dmesg-3.5.7-deb-gilles.log

Ah, that is because I rebased the I-pipe tree in between, and at some point the code printing the message was wrong (ATOMIC_INIT(0) instead of ATOMIC_INIT(-1)). That is my fault then, sorry.

Quoted 8 lines
Quoted 4 lines

Could you run

cat /proc/timer_list

Back to el6 again, 3.5.7 i-pipe:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-cat-proc-timer_list-3.5.7-test.log

The LAPIC is definitely up and running (mode: 3). So, it probably means that the erratum detection is not sufficient to decide not to use a LAPIC. Checking your logs, we see:

using AMD E400 aware idle routine

which means the LAPIC could potentially be unusable, but the idle routine also checks for a bit in a K8 specific MSR and prints the message:

System has AMD C1E enabled

Quoted 7 lines

If this bit is set, and in your case the message is not printed so the bit is not set. So, the LAPIC is usable, but due to the changes I made to try and print a message in Marius case, I broke the detection in your case.

I have just pushed a rework for this commit in the for-core-3.5.7 branch in ipipe-gch git.

And it worked, no more C1E error! Thanks!

It looks like the AMD-64 AM2/AM2+ socket CPUs were the last generation without C1E, and the AM3 socket CPUs were the first gen with.

Back to the original problem, the posix/mprotect problem is confirmed to be in this branch:

++ /usr/lib64/xenomai/regression/posix/mprotect
memory read
FAILURE: sigdebug_handler triggered, reason 2
memory write after exec enable

Quoted 8 lines

Regression test run:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-xeno-regression-test-3.5.7-test.log

Dmesg:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7.log

Kernel .config:
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-3.5.7.config.txt

I can not reproduce this issue with the same configuration on atom.

Quoted 3 lines

To minimize confusion (esp. my own) and answer Jan's question, this is Gilles's ipipe-gch/for-core-3.5.7 kernel (20130113git08f0596) with

Quoted 9 lines

I can not find a commit beginning with 08f0596. The current head of xenomai-2.6 master branch is 851281e593d89573edec063fe02c913e425f121b

Quoted 1 line

xenomai master (20130113git210ed428)

210ed428 is I-pipe current for-core-3.5.7 branch head.

Quoted 5 lines

How embarrassing, let's try again:

xenomai 20130113git851281e5, for-core-3.5.7 20130113git210ed428

Both HEAD pulled yesterday.

Yes, that were yesterday's head. I rebased the for-core-3.5.7 branch, merging the two AMD C1E commit as Jan asked, so, the new head in the for-core-3.5.7 branch is fde77b2e48b2cb0b2ea20932fc3f66771939501d

Anyway, the problem you have comes from the fact that you compile with _FORTIFY_SOURCE, and we did not take care for this case in xenomai sources.

Quoted 3 lines

John

Signature · 1 line
                                                                Gilles.
#12 lore raw

Re: [Xenomai] 3.5.7 posix/mprotect fixed; (Was: posix/mprotect failure)

In reply to Gilles Chanteperdrix
Quoted 6 lines · Gilles Chanteperdrix
Quoted 1 line · John Morris

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-gdb-posix-mprotect-3.5.7-test.log

So, you are compiling with _FORTIFY_SOURCE, that is the difference with how we are compiling. Is it easy for you to set _FORTIFY_SOURCE to 0?

Wow, you picked that out instantly. That fixes it. RH-like distros define _FORTIFY_SOURCE in the default CFLAGS, worthy of a wiki note:

http://fedoraproject.org/wiki/Security/Features#Compile_Time_Buffer_Checks_.28FORTIFY_SOURCE.29

I'm guessing that Xenomai-enabled applications won't have to worry about this, because they'll only be compiling header files. Is that about right, or should there be a notice in the -devel package?

Here's the latest xeno-regression-test run:

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-xeno-regression-test-3.5.7-test.log

The latest xeno-regression-test run still has a few small problems:

1) "xddp_test" fails: "...IPCPROTO_XDDP): Address family not supported by protocol". DRIVERS_RTIPC_XDDP is enabled in the config. Doesn't look like others have experienced this before. LinuxCNC doesn't use XDDP, but it should be fixed for the general audience.

2) "clocktest -C 42 -T 30" fails; apparently expected in some circumstances ('... || :'). Does anything need to be fixed here? The test system switched to acpi_pm, and the TSCs on the dual-core are unsynched. We don't know if the end-user's application will lock the process to a single CPU, so CLOCK_HOST_REALTIME isn't the best choice, even if it were somehow available.

3) "Warning: Linux is compiled to use FPU in kernel-space" in dmesg:
Ignoring: disabling (at least) software RAID breaks the 'one-size-fits-all' goal, and Gilles states this is harmless:
http://www.xenomai.org/pipermail/xenomai/2009-May/016743.html

John

current status:
xenomai-2.6 master 851281e5 (Sun Jan 13 13:51:22 2013 +0100) ipipe-gch for-core-3.5.7 fde77b2e (Wed Jan 9 12:14:54 2013 +0100)

kernel .config
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-kernel-config-3.5.7-test.txt

dmesg
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-dmesg-3.5.7-test.log

regression test
http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-xeno-regression-test-3.5.7-test.log

#13 lore raw

Re: [Xenomai] 3.5.7 posix/mprotect fixed; (Was: posix/mprotect failure)

Quoted 10 lines · John Morris
Quoted 6 lines · Gilles Chanteperdrix
Quoted 1 line · John Morris

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-gdb-posix-mprotect-3.5.7-test.log

So, you are compiling with _FORTIFY_SOURCE, that is the difference with how we are compiling. Is it easy for you to set _FORTIFY_SOURCE to 0?

Quoted 8 lines

Wow, you picked that out instantly. That fixes it. RH-like distros define _FORTIFY_SOURCE in the default CFLAGS, worthy of a wiki note:

http://fedoraproject.org/wiki/Security/Features#Compile_Time_Buffer_Checks_.28FORTIFY_SOURCE.29

I'm guessing that Xenomai-enabled applications won't have to worry about this, because they'll only be compiling header files. Is that about right, or should there be a notice in the -devel package?

No, unfortunately, this is a problem, applications compiled with -D_FORTIFY_SOURCE will not get proper symbols substitution by xenomai library for the printf functions. The fix is to implement the checking variants in xenomai library, so as to be able to have FORTIFY_SOURCE and symbols susbtitution.

Quoted 4 lines

Here's the latest xeno-regression-test run:

Quoted 8 lines

http://www.zultron.com/static/2013/01/xenomai/3.5.7-test/foo-xeno-regression-test-3.5.7-test.log

The latest xeno-regression-test run still has a few small problems:

1) "xddp_test" fails: "...IPCPROTO_XDDP): Address family not supported by protocol". DRIVERS_RTIPC_XDDP is enabled in the config. Doesn't look like others have experienced this before. LinuxCNC doesn't use XDDP, but it should be fixed for the general audience.

You are missing some kernel drivers. I used the following options in the Debian configuration: basically, all options enabled (some as module, because they are expected to be used less often).

CONFIG_XENOMAI=y CONFIG_XENO_GENERIC_STACKPOOL=y CONFIG_XENO_FASTSYNCH=y CONFIG_XENO_OPT_NUCLEUS=y CONFIG_XENO_OPT_PERVASIVE=y
# CONFIG_XENO_OPT_PRIOCPL is not set CONFIG_XENO_OPT_PIPELINE_HEAD=y
# CONFIG_XENO_OPT_SCHED_CLASSES is not set CONFIG_XENO_OPT_PIPE=y
CONFIG_XENO_OPT_MAP=y
CONFIG_XENO_OPT_VFILE=y CONFIG_XENO_OPT_PIPE_NRDEV=32 CONFIG_XENO_OPT_REGISTRY_NRSLOTS=512 CONFIG_XENO_OPT_SYS_HEAPSZ=4096 CONFIG_XENO_OPT_SYS_STACKPOOLSZ=4096 CONFIG_XENO_OPT_SEM_HEAPSZ=12 CONFIG_XENO_OPT_GLOBAL_SEM_HEAPSZ=12 CONFIG_XENO_OPT_STATS=y CONFIG_XENO_OPT_DEBUG=y
# CONFIG_XENO_OPT_DEBUG_NUCLEUS is not set
# CONFIG_XENO_OPT_DEBUG_XNLOCK is not set
# CONFIG_XENO_OPT_DEBUG_QUEUES is not set
# CONFIG_XENO_OPT_DEBUG_REGISTRY is not set
# CONFIG_XENO_OPT_DEBUG_TIMERS is not set CONFIG_XENO_OPT_DEBUG_SYNCH_RELAX=y CONFIG_XENO_OPT_WATCHDOG=y CONFIG_XENO_OPT_WATCHDOG_TIMEOUT=4 CONFIG_XENO_OPT_SHIRQ=y CONFIG_XENO_OPT_SELECT=y CONFIG_XENO_OPT_HOSTRT=y CONFIG_XENO_OPT_TIMING_PERIODIC=y CONFIG_XENO_OPT_TIMING_VIRTICK=1000 CONFIG_XENO_OPT_TIMING_SCHEDLAT=0
# CONFIG_XENO_OPT_SCALABLE_SCHED is not set CONFIG_XENO_OPT_TIMER_LIST=y
# CONFIG_XENO_OPT_TIMER_HEAP is not set
# CONFIG_XENO_OPT_TIMER_WHEEL is not set CONFIG_XENO_HW_FPU=y
# CONFIG_XENO_HW_SMI_DETECT_DISABLE is not set CONFIG_XENO_HW_SMI_DETECT=y
# CONFIG_XENO_HW_SMI_WORKAROUND is not set CONFIG_XENO_SKIN_NATIVE=y CONFIG_XENO_OPT_NATIVE_PERIOD=0 CONFIG_XENO_OPT_NATIVE_PIPE=y CONFIG_XENO_OPT_NATIVE_PIPE_BUFSZ=1024 CONFIG_XENO_OPT_NATIVE_SEM=y CONFIG_XENO_OPT_NATIVE_EVENT=y CONFIG_XENO_OPT_NATIVE_MUTEX=y CONFIG_XENO_OPT_NATIVE_COND=y CONFIG_XENO_OPT_NATIVE_QUEUE=y CONFIG_XENO_OPT_NATIVE_BUFFER=y CONFIG_XENO_OPT_NATIVE_HEAP=y CONFIG_XENO_OPT_NATIVE_ALARM=y CONFIG_XENO_OPT_NATIVE_MPS=y
# CONFIG_XENO_OPT_NATIVE_INTR is not set
# CONFIG_XENO_OPT_DEBUG_NATIVE is not set CONFIG_XENO_SKIN_POSIX=y CONFIG_XENO_OPT_POSIX_PERIOD=0
# CONFIG_XENO_OPT_POSIX_SHM is not set
# CONFIG_XENO_OPT_POSIX_INTR is not set CONFIG_XENO_OPT_POSIX_SELECT=y
# CONFIG_XENO_OPT_DEBUG_POSIX is not set CONFIG_XENO_SKIN_PSOS=m CONFIG_XENO_OPT_PSOS_PERIOD=1000
# CONFIG_XENO_OPT_DEBUG_PSOS is not set CONFIG_XENO_SKIN_UITRON=m CONFIG_XENO_OPT_UITRON_PERIOD=1000
# CONFIG_XENO_OPT_DEBUG_UITRON is not set CONFIG_XENO_SKIN_VRTX=m CONFIG_XENO_OPT_VRTX_PERIOD=1000 CONFIG_XENO_SKIN_VXWORKS=m CONFIG_XENO_OPT_VXWORKS_PERIOD=1000
# CONFIG_XENO_OPT_DEBUG_VXWORKS is not set
# CONFIG_XENO_OPT_NOWARN_DEPRECATED is not set CONFIG_XENO_SKIN_RTDM=y CONFIG_XENO_OPT_RTDM_PERIOD=0 CONFIG_XENO_OPT_RTDM_FILDES=128 CONFIG_XENO_OPT_RTDM_SELECT=y
# CONFIG_XENO_OPT_DEBUG_RTDM is not set
# CONFIG_XENO_OPT_DEBUG_RTDM_APPL is not set CONFIG_XENO_DRIVERS_16550A=m
# CONFIG_XENO_DRIVERS_16550A_PIO is not set
# CONFIG_XENO_DRIVERS_16550A_MMIO is not set CONFIG_XENO_DRIVERS_16550A_ANY=y CONFIG_XENO_DRIVERS_16550A_PCI=y CONFIG_XENO_DRIVERS_16550A_PCI_MOXA=y CONFIG_XENO_DRIVERS_TIMERBENCH=y CONFIG_XENO_DRIVERS_KLATENCY=m CONFIG_XENO_DRIVERS_IRQBENCH=m CONFIG_XENO_DRIVERS_SWITCHTEST=y CONFIG_XENO_DRIVERS_RTDMTEST=m CONFIG_XENO_DRIVERS_CAN=m CONFIG_XENO_DRIVERS_CAN_DEBUG=y
# CONFIG_XENO_DRIVERS_CAN_LOOPBACK is not set CONFIG_XENO_DRIVERS_CAN_RXBUF_SIZE=1024 CONFIG_XENO_DRIVERS_CAN_MAX_DEVICES=4 CONFIG_XENO_DRIVERS_CAN_MAX_RECEIVERS=16 CONFIG_XENO_DRIVERS_CAN_BUS_ERR=y
# CONFIG_XENO_DRIVERS_CAN_CALC_BITTIME_OLD is not set CONFIG_XENO_DRIVERS_CAN_VIRT=m
# CONFIG_XENO_DRIVERS_CAN_FLEXCAN is not set CONFIG_XENO_DRIVERS_CAN_SJA1000=m CONFIG_XENO_DRIVERS_CAN_SJA1000_ISA=m CONFIG_XENO_DRIVERS_CAN_SJA1000_MEM=m CONFIG_XENO_DRIVERS_CAN_SJA1000_PEAK_PCI=m CONFIG_XENO_DRIVERS_CAN_SJA1000_IXXAT_PCI=m CONFIG_XENO_DRIVERS_CAN_SJA1000_ADV_PCI=m CONFIG_XENO_DRIVERS_CAN_SJA1000_PLX_PCI=m CONFIG_XENO_DRIVERS_CAN_SJA1000_EMS_PCI=m CONFIG_XENO_DRIVERS_CAN_SJA1000_ESD_PCI=m CONFIG_XENO_DRIVERS_CAN_SJA1000_PEAK_DNG=m CONFIG_XENO_DRIVERS_ANALOGY=m CONFIG_XENO_DRIVERS_ANALOGY_DEBUG=y CONFIG_XENO_DRIVERS_ANALOGY_DEBUG_LEVEL=0 CONFIG_XENO_DRIVERS_ANALOGY_DRIVER_DEBUG_LEVEL=0 CONFIG_XENO_DRIVERS_ANALOGY_FAKE=m CONFIG_XENO_DRIVERS_ANALOGY_8255=m CONFIG_XENO_DRIVERS_ANALOGY_PARPORT=m CONFIG_XENO_DRIVERS_ANALOGY_NI_MITE=m CONFIG_XENO_DRIVERS_ANALOGY_NI_TIO=m CONFIG_XENO_DRIVERS_ANALOGY_NI_MIO=m CONFIG_XENO_DRIVERS_ANALOGY_NI_PCIMIO=m CONFIG_XENO_DRIVERS_ANALOGY_NI_670x=m CONFIG_XENO_DRIVERS_ANALOGY_NI_660x=m CONFIG_XENO_DRIVERS_ANALOGY_S526=m CONFIG_XENO_DRIVERS_RTIPC=y CONFIG_XENO_DRIVERS_RTIPC_XDDP=y CONFIG_XENO_DRIVERS_RTIPC_IDDP=y CONFIG_XENO_OPT_IDDP_NRPORT=32 CONFIG_XENO_DRIVERS_RTIPC_BUFP=y CONFIG_XENO_OPT_BUFP_NRPORT=32

Quoted 7 lines

2) "clocktest -C 42 -T 30" fails; apparently expected in some circumstances ('... || :'). Does anything need to be fixed here? The test system switched to acpi_pm, and the TSCs on the dual-core are unsynched. We don't know if the end-user's application will lock the process to a single CPU, so CLOCK_HOST_REALTIME isn't the best choice, even if it were somehow available.

Yes, if linux does not use the tsc for CLOCK_REALTIME, CLOCK_HOST_REALTIME does not work.

Quoted 5 lines

3) "Warning: Linux is compiled to use FPU in kernel-space" in dmesg:
Ignoring: disabling (at least) software RAID breaks the 'one-size-fits-all' goal, and Gilles states this is harmless:
http://www.xenomai.org/pipermail/xenomai/2009-May/016743.html

It means that the switchtest test does not really test every possible FPU switch. So, in order to validate thoroughly a release, you should compile a kernel without the conflicting options, run xeno-regression-test, then compile the final kernel, and run xeno-regression-test again.

Regards.

Signature · 1 line
                                                                Gilles.
#25 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

In reply to Gilles Chanteperdrix
Quoted 2 lines · Gilles Chanteperdrix

Done, also note that my current work is the for-core-3.5.7 branch, not the for-core-3.5 branch.

Both branches point to the same commit ATM. I suppose you didn't push the new for-core-3.5.7 version yet. Once done, I'll rebase my stuff on top.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
#26 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

Quoted 6 lines · Jan Kiszka
Quoted 2 lines · Gilles Chanteperdrix

Done, also note that my current work is the for-core-3.5.7 branch, not the for-core-3.5 branch.

Both branches point to the same commit ATM. I suppose you didn't push the new for-core-3.5.7 version yet. Once done, I'll rebase my stuff on top.

Sorry, pushed.

Signature · 1 line
                                                                Gilles.
#27 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

Quoted 12 lines · Gilles Chanteperdrix
Quoted 6 lines · Jan Kiszka
Quoted 2 lines · Gilles Chanteperdrix

Done, also note that my current work is the for-core-3.5.7 branch, not the for-core-3.5 branch.

Both branches point to the same commit ATM. I suppose you didn't push the new for-core-3.5.7 version yet. Once done, I'll rebase my stuff on top.

Sorry, pushed.

Please everybody, make sure to eventually resync with my tree, this is becoming a mess when merging your stuff here. TIA,

Signature · 1 line
Philippe.
#28 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

Quoted 11 lines · Philippe Gerum
Quoted 10 lines · Gilles Chanteperdrix
Quoted 6 lines · Jan Kiszka
Quoted 2 lines · Gilles Chanteperdrix

Done, also note that my current work is the for-core-3.5.7 branch, not the for-core-3.5 branch.

Both branches point to the same commit ATM. I suppose you didn't push the new for-core-3.5.7 version yet. Once done, I'll rebase my stuff on top.

Quoted 5 lines
Quoted 2 lines

Sorry, pushed.

Please everybody, make sure to eventually resync with my tree, this is becoming a mess when merging your stuff here. TIA,

I'm fetching from you regularly, but your public tree contains no changes for 3.5, sorry.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
#29 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

Quoted 12 lines · Jan Kiszka
Quoted 11 lines · Philippe Gerum
Quoted 10 lines · Gilles Chanteperdrix
Quoted 6 lines · Jan Kiszka
Quoted 2 lines · Gilles Chanteperdrix

Done, also note that my current work is the for-core-3.5.7 branch, not the for-core-3.5 branch.

Both branches point to the same commit ATM. I suppose you didn't push the new for-core-3.5.7 version yet. Once done, I'll rebase my stuff on top.

Quoted 9 lines
Quoted 5 lines
Quoted 2 lines

Sorry, pushed.

Please everybody, make sure to eventually resync with my tree, this is becoming a mess when merging your stuff here. TIA,

I'm fetching from you regularly, but your public tree contains no changes for 3.5, sorry.

You must mean no change for 3.5.3 since the last stable pipeline release I pushed out. I'm seeing several breakages when merging the very latest work, I'm solving this with Gilles.

Signature · 1 line
Philippe.
#30 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

Quoted 19 lines · Philippe Gerum
Quoted 18 lines · Jan Kiszka
Quoted 16 lines · Philippe Gerum
Quoted 12 lines · Gilles Chanteperdrix
Quoted 6 lines · Jan Kiszka
Quoted 2 lines · Gilles Chanteperdrix

Done, also note that my current work is the for-core-3.5.7 branch, not the for-core-3.5 branch.

Both branches point to the same commit ATM. I suppose you didn't push the new for-core-3.5.7 version yet. Once done, I'll rebase my stuff on top.

Sorry, pushed.

Please everybody, make sure to eventually resync with my tree, this is becoming a mess when merging your stuff here. TIA,

Quoted 7 lines
Quoted 3 lines

I'm fetching from you regularly, but your public tree contains no changes for 3.5, sorry.

You must mean no change for 3.5.3 since the last stable pipeline release I pushed out. I'm seeing several breakages when merging the very latest work, I'm solving this with Gilles.

I mean that I have no clue what I should resolve. My branch was based on your core-3.5 branch, the latest publicly available version. I've just rebased it on top of Gilles' 3.5.7 queue - without any conflicts. So what are you talking about?

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
#31 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

Quoted 24 lines · Jan Kiszka
Quoted 23 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
Quoted 11 lines · Philippe Gerum
Quoted 10 lines · Gilles Chanteperdrix
Quoted 6 lines · Jan Kiszka
Quoted 2 lines · Gilles Chanteperdrix

Done, also note that my current work is the for-core-3.5.7 branch, not the for-core-3.5 branch.

Both branches point to the same commit ATM. I suppose you didn't push the new for-core-3.5.7 version yet. Once done, I'll rebase my stuff on top.

Quoted 5 lines
Quoted 2 lines

Sorry, pushed.

Please everybody, make sure to eventually resync with my tree, this is becoming a mess when merging your stuff here. TIA,

I'm fetching from you regularly, but your public tree contains no changes for 3.5, sorry.

Quoted 9 lines
Quoted 3 lines

You must mean no change for 3.5.3 since the last stable pipeline release I pushed out. I'm seeing several breakages when merging the very latest work, I'm solving this with Gilles.

I mean that I have no clue what I should resolve. My branch was based on your core-3.5 branch, the latest publicly available version. I've just rebased it on top of Gilles' 3.5.7 queue - without any conflicts. So what are you talking about?

I'm talking about conflicts in pgtable.h, apic.c with the atomic counter braindamage and stuff like this. I'm not asking you to fix anything in your tree, I'm pulling from Gilles' trees almost exclusively, and had issues with those. I raised an alert about painful merges happening lately, and a recommendation to avoid these. Gilles fixed the issue on his end, and the merge now resolves as a fast forward, as expected. Issue closed.

Signature · 1 line
Philippe.
#41 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

In reply to Jan Kiszka
Quoted 24 lines · Jan Kiszka
Quoted 23 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
Quoted 11 lines · Philippe Gerum
Quoted 10 lines · Gilles Chanteperdrix
Quoted 6 lines · Jan Kiszka
Quoted 2 lines · Gilles Chanteperdrix

Done, also note that my current work is the for-core-3.5.7 branch, not the for-core-3.5 branch.

Both branches point to the same commit ATM. I suppose you didn't push the new for-core-3.5.7 version yet. Once done, I'll rebase my stuff on top.

Quoted 5 lines
Quoted 2 lines

Sorry, pushed.

Please everybody, make sure to eventually resync with my tree, this is becoming a mess when merging your stuff here. TIA,

I'm fetching from you regularly, but your public tree contains no changes for 3.5, sorry.

Quoted 9 lines
Quoted 3 lines

You must mean no change for 3.5.3 since the last stable pipeline release I pushed out. I'm seeing several breakages when merging the very latest work, I'm solving this with Gilles.

I mean that I have no clue what I should resolve. My branch was based on your core-3.5 branch, the latest publicly available version. I've just rebased it on top of Gilles' 3.5.7 queue - without any conflicts. So what are you talking about?

[taking John from CC]

BTW, at this chance we may also discuss what the maintenance planes for older core versions and for porting to newer ones are.

I could imagine backporting and testing our x86-related fixes to core-3.4 (as it's still LTS), but I see no point in maintaining older versions. If we manage to move forward soon, I'd move maintenance away from 3.5 to that version once it's stable.

IOW: One stable kernel + one recent target appear reasonable to me, at least for x86.

Jan

Signature · 17 lines
Siemens AG
Corporate Technology
CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
Otto-Hahn-Ring 6
81739 Muenchen
Tel.: +49 (89) 636-40042
Fax: +49 (89) 636-45450
mailto:[email protected]

Siemens Aktiengesellschaft: Chairman of the Supervisory Board: Gerhard
Cromme; Managing Board: Peter Loescher, Chairman, President and Chief
Executive Officer; Roland Busch, Brigitte Ederer, Klaus Helmrich, Joe
Kaeser, Barbara Kux, Hermann Requardt, Siegfried Russwurm, Peter Y.
Solmssen, Michael Suess; Registered offices: Berlin and Munich, Germany;
Commercial registries: Berlin  Charlottenburg, HRB 12300, Munich, HRB
6684; WEEE-Reg.-No. DE 23691322
#32 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

In reply to Philippe Gerum
Quoted 35 lines · Philippe Gerum
Quoted 24 lines · Jan Kiszka
Quoted 23 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
Quoted 11 lines · Philippe Gerum
Quoted 10 lines · Gilles Chanteperdrix
Quoted 6 lines · Jan Kiszka
Quoted 2 lines · Gilles Chanteperdrix

Done, also note that my current work is the for-core-3.5.7 branch, not the for-core-3.5 branch.

Both branches point to the same commit ATM. I suppose you didn't push the new for-core-3.5.7 version yet. Once done, I'll rebase my stuff on top.

Quoted 5 lines
Quoted 2 lines

Sorry, pushed.

Please everybody, make sure to eventually resync with my tree, this is becoming a mess when merging your stuff here. TIA,

I'm fetching from you regularly, but your public tree contains no changes for 3.5, sorry.

Quoted 9 lines
Quoted 3 lines

You must mean no change for 3.5.3 since the last stable pipeline release I pushed out. I'm seeing several breakages when merging the very latest work, I'm solving this with Gilles.

I mean that I have no clue what I should resolve. My branch was based on your core-3.5 branch, the latest publicly available version. I've just rebased it on top of Gilles' 3.5.7 queue - without any conflicts. So what are you talking about?

Quoted 7 lines

I'm talking about conflicts in pgtable.h, apic.c with the atomic counter braindamage and stuff like this. I'm not asking you to fix anything in your tree, I'm pulling from Gilles' trees almost exclusively, and had issues with those. I raised an alert about painful merges happening lately, and a recommendation to avoid these. Gilles fixed the issue on his end, and the merge now resolves as a fast forward, as expected. Issue closed.

I still don't see even that issue (based on what was publicly visible), but if it's fine now, well, it's fine.

BTW, we are committed on x86 maintenance, so I would suggest to route all related changes though one tree (per core version) to avoid conflicts and confusions. Unless there are major concerns on your sides, I could offer that tree to Philippe to pull from.

In addition, I could provide all generic commits in a separate tree as well so that Gilles can pull them earlier for testing purposes. If conflicts between Gilles' and my tree are in sight, we should, of course, always try to resolve them in advance before offering you the pull.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
#33 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

In reply to Philippe Gerum
Quoted 35 lines · Philippe Gerum
Quoted 24 lines · Jan Kiszka
Quoted 23 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
Quoted 11 lines · Philippe Gerum
Quoted 10 lines · Gilles Chanteperdrix
Quoted 6 lines · Jan Kiszka
Quoted 2 lines · Gilles Chanteperdrix

Done, also note that my current work is the for-core-3.5.7 branch, not the for-core-3.5 branch.

Both branches point to the same commit ATM. I suppose you didn't push the new for-core-3.5.7 version yet. Once done, I'll rebase my stuff on top.

Quoted 5 lines
Quoted 2 lines

Sorry, pushed.

Please everybody, make sure to eventually resync with my tree, this is becoming a mess when merging your stuff here. TIA,

I'm fetching from you regularly, but your public tree contains no changes for 3.5, sorry.

Quoted 9 lines
Quoted 3 lines

You must mean no change for 3.5.3 since the last stable pipeline release I pushed out. I'm seeing several breakages when merging the very latest work, I'm solving this with Gilles.

I mean that I have no clue what I should resolve. My branch was based on your core-3.5 branch, the latest publicly available version. I've just rebased it on top of Gilles' 3.5.7 queue - without any conflicts. So what are you talking about?

Quoted 7 lines

I'm talking about conflicts in pgtable.h, apic.c with the atomic counter braindamage and stuff like this. I'm not asking you to fix anything in your tree, I'm pulling from Gilles' trees almost exclusively, and had issues with those. I raised an alert about painful merges happening lately, and a recommendation to avoid these. Gilles fixed the issue on his end, and the merge now resolves as a fast forward, as expected. Issue closed.

These were issues due to rebasing. Rebasings makes merging incrementally harder, will avoid this in the future.

Signature · 1 line
                                                                Gilles.
#34 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

Quoted 46 lines · Gilles Chanteperdrix
Quoted 35 lines · Philippe Gerum
Quoted 24 lines · Jan Kiszka
Quoted 23 lines · Philippe Gerum
Quoted 21 lines · Jan Kiszka
Quoted 11 lines · Philippe Gerum
Quoted 10 lines · Gilles Chanteperdrix
Quoted 6 lines · Jan Kiszka
Quoted 2 lines · Gilles Chanteperdrix

Done, also note that my current work is the for-core-3.5.7 branch, not the for-core-3.5 branch.

Both branches point to the same commit ATM. I suppose you didn't push the new for-core-3.5.7 version yet. Once done, I'll rebase my stuff on top.

Quoted 5 lines
Quoted 2 lines

Sorry, pushed.

Please everybody, make sure to eventually resync with my tree, this is becoming a mess when merging your stuff here. TIA,

I'm fetching from you regularly, but your public tree contains no changes for 3.5, sorry.

Quoted 9 lines
Quoted 3 lines

You must mean no change for 3.5.3 since the last stable pipeline release I pushed out. I'm seeing several breakages when merging the very latest work, I'm solving this with Gilles.

I mean that I have no clue what I should resolve. My branch was based on your core-3.5 branch, the latest publicly available version. I've just rebased it on top of Gilles' 3.5.7 queue - without any conflicts. So what are you talking about?

Quoted 7 lines

I'm talking about conflicts in pgtable.h, apic.c with the atomic counter braindamage and stuff like this. I'm not asking you to fix anything in your tree, I'm pulling from Gilles' trees almost exclusively, and had issues with those. I raised an alert about painful merges happening lately, and a recommendation to avoid these. Gilles fixed the issue on his end, and the merge now resolves as a fast forward, as expected. Issue closed.

Quoted 2 lines

These were issues due to rebasing. Rebasings makes merging incrementally harder, will avoid this in the future.

Rebasing is not bad per se and, where possible, better than leaving an un-bisectable commit series behind - IMHO. I suppose Philippe started pulling from your queue before you reordered/updated it again. That's why I didn't send out a pull request yet - mine wasn't done. I'm trying to formalize this process here, i.e. never rebase after releasing a queue for pulling. At the same time, upstream should not pull or pick in a way that makes life harder for downstream.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
#35 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

Quoted 2 lines · Jan Kiszka

At the same time, upstream should not pull or pick in a way that makes life harder for downstream.

Philippe, in the future, please keep your public tree up-to-date, ideally at a daily base. I'm seeing commits there that were done locally more than a week ago. Only publishing your state will avoid the problems you faced with integrating our changes.

Will you pull Gilles' 3.5.7 merge before the next core release?

Thanks,
Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
#36 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

Quoted 8 lines · Jan Kiszka
Quoted 2 lines · Jan Kiszka

At the same time, upstream should not pull or pick in a way that makes life harder for downstream.

Philippe, in the future, please keep your public tree up-to-date, ideally at a daily base. I'm seeing commits there that were done locally more than a week ago. Only publishing your state will avoid the problems you faced with integrating our changes.

No. If I don't publish, there must be a reason.

Quoted 6 lines

Will you pull Gilles' 3.5.7 merge before the next core release?

Thanks,
Jan

Signature · 1 line
Philippe.
#37 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

Quoted 11 lines · Philippe Gerum
Quoted 8 lines · Jan Kiszka
Quoted 2 lines · Jan Kiszka

At the same time, upstream should not pull or pick in a way that makes life harder for downstream.

Philippe, in the future, please keep your public tree up-to-date, ideally at a daily base. I'm seeing commits there that were done locally more than a week ago. Only publishing your state will avoid the problems you faced with integrating our changes.

No. If I don't publish, there must be a reason.

This approach doesn't work very well - to state it carefully. Push you stuff at least into a public "next" branch, one that may be rebased / reordered without warning. That allows us to prepare for what is under test, maybe pick up arch-specific changes into the subsystem queues. And don't complain about conflict if you cherry-pick subsystem patches without dropping a note to the author - or was Gilles aware of your private queue?

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
#38 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

Quoted 13 lines · Jan Kiszka
Quoted 11 lines · Philippe Gerum
Quoted 8 lines · Jan Kiszka
Quoted 2 lines · Jan Kiszka

At the same time, upstream should not pull or pick in a way that makes life harder for downstream.

Philippe, in the future, please keep your public tree up-to-date, ideally at a daily base. I'm seeing commits there that were done locally more than a week ago. Only publishing your state will avoid the problems you faced with integrating our changes.

No. If I don't publish, there must be a reason.

Quoted 8 lines

This approach doesn't work very well - to state it carefully. Push you stuff at least into a public "next" branch, one that may be rebased / reordered without warning. That allows us to prepare for what is under test, maybe pick up arch-specific changes into the subsystem queues. And don't complain about conflict if you cherry-pick subsystem patches without dropping a note to the author - or was Gilles aware of your private queue?

You are off base, this has nothing to do with random cherry picking, or any private queue I would maintain: none of these have existed. Besides, it's not about integrating my changes in the reference tree - I had almost none recently - but Gilles', and many of them came from other sources he merged into his local queue.

Please, we have been working reasonably successfully with our current workflow for the past ten years now, so we had some time to understand - even if our very limited brainpower made this quite a challenge - the basics of distributed development.

What happened is a misunderstanding between Gilles and myself on the presence of a pending pull request, nothing more, which eventually led to an out-of-sync pulling on my end. Since this happened when several people were pushing stuff to Gilles, this triggered my warning to the list, so that everyone involved may know that things stopped going as smoothly as usual. Rest assured that under normal circumstances, Gilles is very well aware of what I'm working on daily, and conversely. I understand your willingness to work the right way now that you recently committed to maintaining the x86 branch, and this is appreciated.

On a more general note, the situation changed because we have been receiving more patches from more authors in the last weeks than we used to get, and conflicts follow the same trend. So yes, for this reason I'm going to open a 'next' branch or something alike to be periodically merged to the reference core branch as a fast forward.

Signature · 1 line
Philippe.
#39 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

On 01/16/2013 11:37 AM, Philippe Gerum wrote:>

Quoted 9 lines

What happened is a misunderstanding between Gilles and myself on the presence of a pending pull request, nothing more, which eventually led to an out-of-sync pulling on my end. Since this happened when several people were pushing stuff to Gilles, this triggered my warning to the list, so that everyone involved may know that things stopped going as smoothly as usual. Rest assured that under normal circumstances, Gilles is very well aware of what I'm working on daily, and conversely. I understand your willingness to work the right way now that you recently committed to maintaining the x86 branch, and this is appreciated.

My problem was to send the pull request then continue working on the branch, I should have a branch for pull requests, or send pull request for tags if that is possible.

Signature · 1 line
                                                                Gilles.
#40 lore raw

Re: [Xenomai] 3.5.7 "I-pipe: could not find timer" (Was: Re: Kernel OOPS during regression tests)

Quoted 13 lines · Gilles Chanteperdrix

On 01/16/2013 11:37 AM, Philippe Gerum wrote:>

Quoted 9 lines

What happened is a misunderstanding between Gilles and myself on the presence of a pending pull request, nothing more, which eventually led to an out-of-sync pulling on my end. Since this happened when several people were pushing stuff to Gilles, this triggered my warning to the list, so that everyone involved may know that things stopped going as smoothly as usual. Rest assured that under normal circumstances, Gilles is very well aware of what I'm working on daily, and conversely. I understand your willingness to work the right way now that you recently committed to maintaining the x86 branch, and this is appreciated.

Quoted 3 lines

My problem was to send the pull request then continue working on the branch, I should have a branch for pull requests, or send pull request for tags if that is possible.

I think this all melts down to communicating, like formally revoking a pull or notifying the contributor about the merge of his pull. And this will be more important when more people work on I-pipe now. There are much bigger projects that struggle with such glitches, but we should more easily be able to avoid them.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux
#14 lore raw

Re: [Xenomai] 3.5.7 posix/mprotect fixed; (Was: posix/mprotect failure)

In reply to Gilles Chanteperdrix
Quoted 7 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) "xddp_test" fails: "...IPCPROTO_XDDP): Address family not supported by protocol". DRIVERS_RTIPC_XDDP is enabled in the config. Doesn't look like others have experienced this before. LinuxCNC doesn't use XDDP, but it should be fixed for the general audience.

Quoted 5 lines

You are missing some kernel drivers. I used the following options in the Debian configuration: basically, all options enabled (some as module, because they are expected to be used less often).

CONFIG_XENO_DRIVERS_RTIPC_XDDP=y

I think the problem was here. xddp was compiled in as a module in my original config, and wasn't loaded by the test suite.

John

#15 lore raw

Re: [Xenomai] 3.5.7 posix/mprotect fixed; (Was: posix/mprotect failure)

Quoted 8 lines · John Morris
Quoted 7 lines · Gilles Chanteperdrix
Quoted 4 lines · John Morris

1) "xddp_test" fails: "...IPCPROTO_XDDP): Address family not supported by protocol". DRIVERS_RTIPC_XDDP is enabled in the config. Doesn't look like others have experienced this before. LinuxCNC doesn't use XDDP, but it should be fixed for the general audience.

Quoted 8 lines
Quoted 5 lines

You are missing some kernel drivers. I used the following options in the Debian configuration: basically, all options enabled (some as module, because they are expected to be used less often).

CONFIG_XENO_DRIVERS_RTIPC_XDDP=y

I think the problem was here. xddp was compiled in as a module in my original config, and wasn't loaded by the test suite.

The testsuite does not load any module. It makes more sense to have xddp builtin anyway.

Signature · 1 line
                                                                Gilles.