Failing self-test on wip/dovetail with Linux 5.4
Hi,
the attached kernel log was taken form a local qemu machine with Xenomai build from the wip/dovetail branch. There is a failing selftest (mixed read-lock/lock-write ABBA).
I guess it's OK for now (as this branch is work in progress). Pushing it out to the list just in case nobody noticed so far and we should have a look before moving forward.
Best regards,
Florian
Signature · 9 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux -------------- next part -------------- A non-text attachment was scrubbed... Name: dmesg.log Type: text/x-log Size: 89883 bytes Desc: dmesg.log URL: <http://xenomai.org/pipermail/xenomai/attachments/20210304/558b48aa/attachment.bin>
Quoted 6 lines · florian.bezdeka--- via Xenomai
Hi,
the attached kernel log was taken form a local qemu machine with Xenomai build from the wip/dovetail branch. There is a failing selftest (mixed read-lock/lock-write ABBA).
Correction: I can reproduce that with next as well. So it's not related to the wip/dovetail branch.
Quoted 18 lines
I guess it's OK for now (as this branch is work in progress). Pushing it out to the list just in case nobody noticed so far and we should have a look before moving forward.
Best regards,
FlorianSignature · 9 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux -------------- next part -------------- A non-text attachment was scrubbed... Name: dmesg.log Type: text/x-log Size: 89883 bytes Desc: dmesg.log URL: <https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fxenomai.org%2Fpipermail%2Fxenomai%2Fattachments%2F20210304%2F558b48aa%2Fattachment.bin&data=04%7C01%7Cflorian.bezdeka%40siemens.com%7C532bc08ae79c4e9d9e4908d8df18787e%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637504643493150150%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=%2BZAf3qao22PQ%2BG442A8LN7JlfzQyNxV3nhjhWF3fIB4%3D&reserved=0>
Quoted 4 lines · florian.bezdeka--- via Xenomai
Quoted 2 lines · florian.bezdeka--- via Xenomai
Hi,
Quoted 8 lines
Quoted 4 lines
the attached kernel log was taken form a local qemu machine with Xenomai build from the wip/dovetail branch. There is a failing selftest (mixed read-lock/lock-write ABBA).
Correction: I can reproduce that with
nextas well. So it's not related to the wip/dovetail branch.
Situation still the same with the latest release?
Jan
Quoted 19 lines
Quoted 18 lines
I guess it's OK for now (as this branch is work in progress). Pushing it out to the list just in case nobody noticed so far and we should have a look before moving forward.
Best regards,
FlorianSignature · 9 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux -------------- next part -------------- A non-text attachment was scrubbed... Name: dmesg.log Type: text/x-log Size: 89883 bytes Desc: dmesg.log URL: <http://xenomai.org/pipermail/xenomai/attachments/20210304/558b48aa/attachment.bin
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux
Quoted 10 lines · Jan Kiszka
Quoted 9 lines · florian.bezdeka--- via Xenomai
Quoted 6 lines · florian.bezdeka--- via Xenomai
Hi,
the attached kernel log was taken form a local qemu machine with Xenomai build from the wip/dovetail branch. There is a failing selftest (mixed read-lock/lock-write ABBA).
Quoted 5 lines
Quoted 3 lines
Correction: I can reproduce that with
nextas well. So it's not related to the wip/dovetail branch.Situation still the same with the latest release?
Which release? I tried to build the "testing" branch of xenomai-images (which holds the COW patches) but that doesn't build at all, patches can not be applied.
used cmdline:
kas-container build kas.yml:opt-linux-latest-5.4.yml:board-qemu-amd64.yml:opt-xenomai-next.yml
Building and running the "next" branch of xenomai-images still reports the same failing self-test.
Quoted 23 lines
Jan
Quoted 19 lines
Quoted 18 lines
I guess it's OK for now (as this branch is work in progress). Pushing it out to the list just in case nobody noticed so far and we should have a look before moving forward.
Best regards,
FlorianSignature · 9 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux -------------- next part -------------- A non-text attachment was scrubbed... Name: dmesg.log Type: text/x-log Size: 89883 bytes Desc: dmesg.log URL: <https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fxenomai.org%2Fpipermail%2Fxenomai%2Fattachments%2F20210304%2F558b48aa%2Fattachment.bin&data=04%7C01%7Cflorian.bezdeka%40siemens.com%7Cfb2b48e542744d8c829608d8e2203bc3%7C38ae3bcd95794fd4addab42e1495d55a%7C1%7C0%7C637507975358310939%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=OiAyFBKNE3fcYIfXDvabqsbttZ6T0WK%2BiKkhdVr8ch4%3D&reserved=0
Quoted 15 lines · Florian (T RDA IOT SES-DE)
Quoted 14 lines · Jan Kiszka
Quoted 12 lines · florian.bezdeka--- via Xenomai
Quoted 6 lines · florian.bezdeka--- via Xenomai
Hi,
the attached kernel log was taken form a local qemu machine with Xenomai build from the wip/dovetail branch. There is a failing selftest (mixed read-lock/lock-write ABBA).
Correction: I can reproduce that with
nextas well. So it's not related to the wip/dovetail branch.
Quoted 6 lines
Quoted 1 line
Situation still the same with the latest release?
Which release? I tried to build the "testing" branch of xenomai-images (which holds the COW patches) but that doesn't build at all, patches can not be applied.
Yeah, that's because they are applied to latest x86 I-pipe releases. You don't need that branch for that arch anymore.
Quoted 5 lines
used cmdline:
kas-container build kas.yml:opt-linux-latest-5.4.yml:board-qemu-amd64.yml:opt-xenomai-next.ymlBuilding and running the "next" branch of xenomai-images still reports the same failing self-test.
Hmm, too bad...
Jan
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux
Quoted 29 lines · Jan Kiszka via Xenomai
Quoted 15 lines · Florian (T RDA IOT SES-DE)
Quoted 14 lines · Jan Kiszka
Quoted 12 lines · florian.bezdeka--- via Xenomai
Quoted 6 lines · florian.bezdeka--- via Xenomai
Hi,
the attached kernel log was taken form a local qemu machine with Xenomai build from the wip/dovetail branch. There is a failing selftest (mixed read-lock/lock-write ABBA).
Correction: I can reproduce that with
nextas well. So it's not related to the wip/dovetail branch.Quoted 6 lines
Quoted 1 line
Situation still the same with the latest release?
Which release? I tried to build the "testing" branch of xenomai-images (which holds the COW patches) but that doesn't build at all, patches can not be applied.
Yeah, that's because they are applied to latest x86 I-pipe releases. You don't need that branch for that arch anymore.
Quoted 3 lines
used cmdline:
kas-container build kas.yml:opt-linux-latest-5.4.yml:board-qemu-amd64.yml:opt-xenomai-next.yml
Quoted 7 lines
Quoted 2 lines
Building and running the "next" branch of xenomai-images still reports the same failing self-test.
Hmm, too bad...
Jan
FWIW, I'm still not getting this one, but I face random SEGV of applications while latency is running. I'm not seeing this with latest 4.19 so far. Seems like 5.4-x86 is not yet stable...
Jan
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux
Quoted 33 lines · Jan Kiszka
Quoted 32 lines · Jan Kiszka via Xenomai
Quoted 15 lines · Florian (T RDA IOT SES-DE)
Quoted 14 lines · Jan Kiszka
Quoted 12 lines · florian.bezdeka--- via Xenomai
Quoted 6 lines · florian.bezdeka--- via Xenomai
Hi,
the attached kernel log was taken form a local qemu machine with Xenomai build from the wip/dovetail branch. There is a failing selftest (mixed read-lock/lock-write ABBA).
Correction: I can reproduce that with
nextas well. So it's not related to the wip/dovetail branch.Quoted 6 lines
Quoted 1 line
Situation still the same with the latest release?
Which release? I tried to build the "testing" branch of xenomai-images (which holds the COW patches) but that doesn't build at all, patches can not be applied.
Yeah, that's because they are applied to latest x86 I-pipe releases. You don't need that branch for that arch anymore.
Quoted 5 lines
used cmdline:
kas-container build kas.yml:opt-linux-latest-5.4.yml:board-qemu-amd64.yml:opt-xenomai-next.ymlBuilding and running the "next" branch of xenomai-images still reports the same failing self-test.
Quoted 8 lines
Quoted 4 lines
Hmm, too bad...
Jan
FWIW, I'm still not getting this one, but I face random SEGV of applications while latency is running. I'm not seeing this with latest 4.19 so far. Seems like 5.4-x86 is not yet stable...
$ cd xenomai-images $ git fetch $ git checkout origin/next $ kas-container build kas.yml:opt-linux-latest-5.4.yml:opt-xenomai-next.yml:board-qemu-amd64.yml $ ./start-qemu amd64
$ login $ dmesg
[ 0.270682] ------------------------
[ 0.271303] | Locking API testsuite:
[ 0.271953]
----------------------------------------------------------------------------
[ 0.273260] | spin |wlock |rlock
|mutex | wsem | rsem |
[ 0.274480]
--------------------------------------------------------------------------
[ 0.276748] A-A deadlock: ok | ok | ok |
ok | ok | ok | ok |
[ 0.293257] A-B-B-A deadlock: ok | ok | ok |
ok | ok | ok | ok |
[ 0.301759] A-B-B-C-C-A deadlock: ok | ok | ok |
ok | ok | ok | ok |
[ 0.308446] A-B-C-A-B-C deadlock: ok | ok | ok |
ok | ok | ok | ok |
[ 0.314094] A-B-B-C-C-D-D-A deadlock: ok | ok | ok |
ok | ok | ok | ok |
[ 0.319191] A-B-C-D-B-D-D-A deadlock: ok | ok | ok |
ok | ok | ok | ok |
[ 0.323848] A-B-C-D-B-C-D-A deadlock: ok | ok | ok |
ok | ok | ok | ok |
[ 0.328360] double unlock: ok | ok | ok |
ok | ok | ok | ok |
[ 0.332703] initialize held: ok | ok | ok |
ok | ok | ok | ok |
[ 0.336563]
--------------------------------------------------------------------------
[ 0.337730] recursive read-lock: | ok |
| ok |
[ 0.339691] recursive read-lock #2: | ok |
| ok |
[ 0.341601] mixed read-write-lock: | ok |
| ok |
[ 0.343578] mixed write-read-lock: | ok |
| ok |
[ 0.347917] mixed read-lock/lock-write ABBA: |FAILED|
| ok |
[ 0.348703] mixed read-lock/lock-read ABBA: | ok |
| ok |
[ 0.350734] mixed write-lock/lock-write ABBA: | ok |
| ok |
[ 0.353076]--------------------------------------------------------------------------
Btw: Adding "debug" to the kernel cmdline makes the selftest output visible while booting up (so it would be part of the LAVA CI log as well).
Quoted 3 lines
Jan
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux
Quoted 83 lines · Florian Bezdeka
Quoted 33 lines · Jan Kiszka
Quoted 32 lines · Jan Kiszka via Xenomai
Quoted 15 lines · Florian (T RDA IOT SES-DE)
Quoted 14 lines · Jan Kiszka
Quoted 12 lines · florian.bezdeka--- via Xenomai
Quoted 6 lines · florian.bezdeka--- via Xenomai
Hi,
the attached kernel log was taken form a local qemu machine with Xenomai build from the wip/dovetail branch. There is a failing selftest (mixed read-lock/lock-write ABBA).
Correction: I can reproduce that with
nextas well. So it's not related to the wip/dovetail branch.Quoted 6 lines
Quoted 1 line
Situation still the same with the latest release?
Which release? I tried to build the "testing" branch of xenomai-images (which holds the COW patches) but that doesn't build at all, patches can not be applied.
Yeah, that's because they are applied to latest x86 I-pipe releases. You don't need that branch for that arch anymore.
Quoted 5 lines
used cmdline:
kas-container build kas.yml:opt-linux-latest-5.4.yml:board-qemu-amd64.yml:opt-xenomai-next.ymlBuilding and running the "next" branch of xenomai-images still reports the same failing self-test.
Quoted 8 lines
Quoted 4 lines
Hmm, too bad...
Jan
FWIW, I'm still not getting this one, but I face random SEGV of applications while latency is running. I'm not seeing this with latest 4.19 so far. Seems like 5.4-x86 is not yet stable...
$ cd xenomai-images $ git fetch $ git checkout origin/next $ kas-container build kas.yml:opt-linux-latest-5.4.yml:opt-xenomai-next.yml:board-qemu-amd64.yml $ ./start-qemu amd64$ login $ dmesg[ 0.270682] ------------------------ [ 0.271303] | Locking API testsuite: [ 0.271953] ---------------------------------------------------------------------------- [ 0.273260] | spin |wlock |rlock |mutex | wsem | rsem | [ 0.274480] -------------------------------------------------------------------------- [ 0.276748] A-A deadlock: ok | ok | ok | ok | ok | ok | ok | [ 0.293257] A-B-B-A deadlock: ok | ok | ok | ok | ok | ok | ok | [ 0.301759] A-B-B-C-C-A deadlock: ok | ok | ok | ok | ok | ok | ok | [ 0.308446] A-B-C-A-B-C deadlock: ok | ok | ok | ok | ok | ok | ok | [ 0.314094] A-B-B-C-C-D-D-A deadlock: ok | ok | ok | ok | ok | ok | ok | [ 0.319191] A-B-C-D-B-D-D-A deadlock: ok | ok | ok | ok | ok | ok | ok | [ 0.323848] A-B-C-D-B-C-D-A deadlock: ok | ok | ok | ok | ok | ok | ok | [ 0.328360] double unlock: ok | ok | ok | ok | ok | ok | ok | [ 0.332703] initialize held: ok | ok | ok | ok | ok | ok | ok | [ 0.336563] -------------------------------------------------------------------------- [ 0.337730] recursive read-lock: | ok | | ok |
Quoted 8 lines
[ 0.339691] recursive read-lock #2: | ok |
| ok |
[ 0.341601] mixed read-write-lock: | ok |
| ok |
[ 0.343578] mixed write-read-lock: | ok |
| ok |
[ 0.347917] mixed read-lock/lock-write ABBA: |FAILED|
| ok |Ah, that I can confirm! Might be a trace to follow...
Jan
Quoted 15 lines
[ 0.348703] mixed read-lock/lock-read ABBA: | ok | | ok | [ 0.350734] mixed write-lock/lock-write ABBA: | ok | | ok | [ 0.353076]--------------------------------------------------------------------------
Btw: Adding "debug" to the kernel cmdline makes the selftest output visible while booting up (so it would be part of the LAVA CI log as well).
Quoted 3 lines
Jan
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux
Quoted 93 lines · Jan Kiszka via Xenomai
Quoted 83 lines · Florian Bezdeka
Quoted 33 lines · Jan Kiszka
Quoted 32 lines · Jan Kiszka via Xenomai
Quoted 15 lines · Florian (T RDA IOT SES-DE)
Quoted 14 lines · Jan Kiszka
Quoted 12 lines · florian.bezdeka--- via Xenomai
Quoted 6 lines · florian.bezdeka--- via Xenomai
Hi,
the attached kernel log was taken form a local qemu machine with Xenomai build from the wip/dovetail branch. There is a failing selftest (mixed read-lock/lock-write ABBA).
Correction: I can reproduce that with
nextas well. So it's not related to the wip/dovetail branch.Quoted 6 lines
Quoted 1 line
Situation still the same with the latest release?
Which release? I tried to build the "testing" branch of xenomai-images (which holds the COW patches) but that doesn't build at all, patches can not be applied.
Yeah, that's because they are applied to latest x86 I-pipe releases. You don't need that branch for that arch anymore.
Quoted 5 lines
used cmdline:
kas-container build kas.yml:opt-linux-latest-5.4.yml:board-qemu-amd64.yml:opt-xenomai-next.ymlBuilding and running the "next" branch of xenomai-images still reports the same failing self-test.
Quoted 8 lines
Quoted 4 lines
Hmm, too bad...
Jan
FWIW, I'm still not getting this one, but I face random SEGV of applications while latency is running. I'm not seeing this with latest 4.19 so far. Seems like 5.4-x86 is not yet stable...
$ cd xenomai-images $ git fetch $ git checkout origin/next $ kas-container build kas.yml:opt-linux-latest-5.4.yml:opt-xenomai-next.yml:board-qemu-amd64.yml $ ./start-qemu amd64$ login $ dmesg[ 0.270682] ------------------------ [ 0.271303] | Locking API testsuite: [ 0.271953] ---------------------------------------------------------------------------- [ 0.273260] | spin |wlock |rlock |mutex | wsem | rsem | [ 0.274480] -------------------------------------------------------------------------- [ 0.276748] A-A deadlock: ok | ok | ok | ok | ok | ok | ok | [ 0.293257] A-B-B-A deadlock: ok | ok | ok | ok | ok | ok | ok | [ 0.301759] A-B-B-C-C-A deadlock: ok | ok | ok | ok | ok | ok | ok | [ 0.308446] A-B-C-A-B-C deadlock: ok | ok | ok | ok | ok | ok | ok | [ 0.314094] A-B-B-C-C-D-D-A deadlock: ok | ok | ok | ok | ok | ok | ok | [ 0.319191] A-B-C-D-B-D-D-A deadlock: ok | ok | ok | ok | ok | ok | ok | [ 0.323848] A-B-C-D-B-C-D-A deadlock: ok | ok | ok | ok | ok | ok | ok | [ 0.328360] double unlock: ok | ok | ok | ok | ok | ok | ok | [ 0.332703] initialize held: ok | ok | ok | ok | ok | ok | ok | [ 0.336563] -------------------------------------------------------------------------- [ 0.337730] recursive read-lock: | ok | | ok |Quoted 8 lines
[ 0.339691] recursive read-lock #2: | ok | | ok | [ 0.341601] mixed read-write-lock: | ok | | ok | [ 0.343578] mixed write-read-lock: | ok | | ok | [ 0.347917] mixed read-lock/lock-write ABBA: |FAILED| | ok |
Quoted 2 lines
Ah, that I can confirm! Might be a trace to follow...
Nope, false positive: https://bugzilla.kernel.org/show_bug.cgi?id=203647
Jan
Signature · 2 lines
Siemens AG, T RDA IOT Corporate Competence Center Embedded Linux