Skip to contentSkip to conversation

"arm: fix mm switching" patch effective also for 2.4.10 ?

Xenomai-help Katsuhiko Isono 3 participants 7 messages Jun 2, 2010 – Jun 7, 2010

lore
Share & tools
lore
#0 lore raw

I use linux-2.6.26 + xenomai-2.4.10 with custom arm(i.mx31) board.

When realtime application was executed on my environment, application caused the SIGSEGV fault about once every several hours.

However, when I applied "arm: fix mm switching" patch of xenomai-2.5 to my environment, SIGSEGV fault did not happen.

There is a following question.
- Is this patch effective also for 2.4.10 ?
- What trouble is corrected with this patch ?

Best regards,

K.Isono

#1 lore raw
Quoted 11 lines · Katsuhiko Isono

I use linux-2.6.26 + xenomai-2.4.10 with custom arm(i.mx31) board.

When realtime application was executed on my environment, application caused the SIGSEGV fault about once every several hours.

However, when I applied "arm: fix mm switching" patch of xenomai-2.5 to my environment, SIGSEGV fault did not happen.

There is a following question.
- Is this patch effective also for 2.4.10 ?
- What trouble is corrected with this patch ?

The version of the I-pipe patch you are using has another known bug than the one fixed by the "arm: fix mm switching" patch (by the way, to be sure that we are talking about the same patch, I would prefer an URL pointing to xenomai's gitweb), the bug mentioned here:

https://mail.gna.org/public/xenomai-core/2009-08/msg00021.html

And the fix for this bug in the I-pipe patches which comes with Xenomai 2.4.10 should fix both bugs.

So, in short, do you oberve the segmentation faults when using the I-pipe patches which ship with Xenomai 2.4.10 rather than whatever patch you are using for linux 2.6.26?

Signature · 1 line
					    Gilles.
#2 lore raw
Quoted 23 lines

-----Original Message-----

Quoted 6 lines · Katsuhiko Isono

I use linux-2.6.26 + xenomai-2.4.10 with custom arm(i.mx31) board.

When realtime application was executed on my environment, application caused the SIGSEGV fault about once every several hours.

However, when I applied "arm: fix mm switching" patch of

xenomai-2.5 to

Quoted 5 lines

my environment, SIGSEGV fault did not happen.

There is a following question.
- Is this patch effective also for 2.4.10 ?
- What trouble is corrected with this patch ?

The version of the I-pipe patch you are using has another known bug than
the one fixed by the "arm: fix mm switching" patch (by the way, to be sure that we are talking about the same patch, I would prefer an URL pointing to xenomai's gitweb), the bug mentioned here:

https://mail.gna.org/public/xenomai-core/2009-08/msg00021.html

Quoted 9 lines

And the fix for this bug in the I-pipe patches which comes with Xenomai
2.4.10 should fix both bugs.

So, in short, do you oberve the segmentation faults when using the I-pipe patches which ship with Xenomai 2.4.10 rather than whatever patch
you are using for linux 2.6.26?

Thank you for your reply.

I use linux-2.6.26 of Freescale BSP because I develop custom board. Therefore, because it is not possible to apply IPIPE patch of Xenomai-2.4.10, I applied "adeos-ipipe-2.6.26-arm-1.12-00.patch" included in Xenomai-2.4.8 to my kernel, and backported most of the changes up to xenomai-2.5.3.

To fix other trouble, I had already applied similar patch to which you presented . So that, both patches were applied to my kernel, and I could solve trouble.

Here is the URL of "arm: fix mm switching".
http://git.xenomai.org/?p=xenomai-2.5.git;a=commitdiff;h=443c2c93ca822088fcf9de65cff128858affa0b8

#3 lore raw

Isono-san,

Quoted 33 lines · Katsuhiko Isono
Quoted 23 lines

-----Original Message-----

Quoted 6 lines · Katsuhiko Isono

I use linux-2.6.26 + xenomai-2.4.10 with custom arm(i.mx31) board.

When realtime application was executed on my environment, application caused the SIGSEGV fault about once every several hours.

However, when I applied "arm: fix mm switching" patch of

xenomai-2.5 to

Quoted 5 lines

my environment, SIGSEGV fault did not happen.

There is a following question.
- Is this patch effective also for 2.4.10 ?
- What trouble is corrected with this patch ?

The version of the I-pipe patch you are using has another known bug than
the one fixed by the "arm: fix mm switching" patch (by the way, to be sure that we are talking about the same patch, I would prefer an URL pointing to xenomai's gitweb), the bug mentioned here:

https://mail.gna.org/public/xenomai-core/2009-08/msg00021.html

Quoted 9 lines

And the fix for this bug in the I-pipe patches which comes with Xenomai
2.4.10 should fix both bugs.

So, in short, do you oberve the segmentation faults when using the I-pipe patches which ship with Xenomai 2.4.10 rather than whatever patch
you are using for linux 2.6.26?

Quoted 6 lines

Thank you for your reply.

I use linux-2.6.26 of Freescale BSP because I develop custom board. Therefore, because it is not possible to apply IPIPE patch of Xenomai-2.4.10, I applied "adeos-ipipe-2.6.26-arm-1.12-00.patch" included in Xenomai-2.4.8 to my kernel, and backported most of the changes up to xenomai-2.5.3.

You could have used the latest Xenomai release directly over your custom 2.6.26 kernel, even with a legacy pipeline patch for 2.6.26 in. We do try hard to maintain backward compat, see:
http://xenomai.org/index.php/FAQs#Which_I-pipe_patch_should_I_use_with_Xenomai_version_X_on_platform_Y.3F

We should probably stress this fact in a more visible way, so that nobody assumes that a given Xenomai release can only run on the pipeline patches it ships. In fact, most patches released in the past five years or so would do, with a varying degree of stability, though. Getting the most recent one is certainly the safest bet.

Quoted 12 lines

To fix other trouble, I had already applied similar patch to which you presented . So that, both patches were applied to my kernel, and I could solve trouble.

Here is the URL of "arm: fix mm switching".
http://git.xenomai.org/?p=xenomai-2.5.git;a=commitdiff;h=443c2c93ca822088fcf9de65cff128858affa0b8

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.
#4 lore raw
Quoted 46 lines · Philippe Gerum

Isono-san,

Quoted 31 lines · Katsuhiko Isono
Quoted 22 lines

-----Original Message-----

Quoted 6 lines · Katsuhiko Isono

I use linux-2.6.26 + xenomai-2.4.10 with custom arm(i.mx31) board.

When realtime application was executed on my environment, application caused the SIGSEGV fault about once every several hours.

However, when I applied "arm: fix mm switching" patch of

xenomai-2.5 to

Quoted 5 lines

my environment, SIGSEGV fault did not happen.

There is a following question.
- Is this patch effective also for 2.4.10 ?
- What trouble is corrected with this patch ?

The version of the I-pipe patch you are using has another known bug than
the one fixed by the "arm: fix mm switching" patch (by the way, to be sure that we are talking about the same patch, I would prefer an URL pointing to xenomai's gitweb), the bug mentioned here:

https://mail.gna.org/public/xenomai-core/2009-08/msg00021.html

Quoted 9 lines

And the fix for this bug in the I-pipe patches which comes with Xenomai
2.4.10 should fix both bugs.

So, in short, do you oberve the segmentation faults when using the I-pipe patches which ship with Xenomai 2.4.10 rather than whatever patch
you are using for linux 2.6.26?

Quoted 6 lines

Thank you for your reply.

I use linux-2.6.26 of Freescale BSP because I develop custom board. Therefore, because it is not possible to apply IPIPE patch of Xenomai-2.4.10, I applied "adeos-ipipe-2.6.26-arm-1.12-00.patch" included in Xenomai-2.4.8 to my kernel, and backported most of the changes up to xenomai-2.5.3.

You could have used the latest Xenomai release directly over your custom 2.6.26 kernel, even with a legacy pipeline patch for 2.6.26 in. We do try hard to maintain backward compat, see:
http://xenomai.org/index.php/FAQs#Which_I-pipe_patch_should_I_use_with_Xenomai_version_X_on_platform_Y.3F

Quoted 5 lines

We should probably stress this fact in a more visible way, so that nobody assumes that a given Xenomai release can only run on the pipeline patches it ships. In fact, most patches released in the past five years or so would do, with a varying degree of stability, though. Getting the most recent one is certainly the safest bet.

If you want to use Xenomai 2.5.3 with the I-pipe patches for 2.6.26, you have to apply the patch here:

https://mail.gna.org/public/xenomai-core/2009-08/msg00021.html

And everything should work fine.

Signature · 1 line
					    Gilles.
#5 lore raw
In reply to Katsuhiko Isono
Quoted 32 lines · Katsuhiko Isono
Quoted 22 lines

-----Original Message-----

Quoted 6 lines · Katsuhiko Isono

I use linux-2.6.26 + xenomai-2.4.10 with custom arm(i.mx31) board.

When realtime application was executed on my environment, application caused the SIGSEGV fault about once every several hours.

However, when I applied "arm: fix mm switching" patch of

xenomai-2.5 to

Quoted 5 lines

my environment, SIGSEGV fault did not happen.

There is a following question.
- Is this patch effective also for 2.4.10 ?
- What trouble is corrected with this patch ?

The version of the I-pipe patch you are using has another known bug than
the one fixed by the "arm: fix mm switching" patch (by the way, to be sure that we are talking about the same patch, I would prefer an URL pointing to xenomai's gitweb), the bug mentioned here:

https://mail.gna.org/public/xenomai-core/2009-08/msg00021.html

Quoted 9 lines

And the fix for this bug in the I-pipe patches which comes with Xenomai
2.4.10 should fix both bugs.

So, in short, do you oberve the segmentation faults when using the I-pipe patches which ship with Xenomai 2.4.10 rather than whatever patch
you are using for linux 2.6.26?

Quoted 3 lines

Thank you for your reply.

I use linux-2.6.26 of Freescale BSP because I develop custom board.

Actually, I do not really understand this argument. It looks as easy to develop a custom board support with the mainline kernel as with a vendor version. And at least, with the mainline kernel, you are not stuck with whatever version the vendor chose.

Signature · 1 line
					    Gilles.
#6 lore raw
Quoted 39 lines
Quoted 6 lines · Katsuhiko Isono
Quoted 6 lines

-----Original Message-----

Quoted 4 lines · Katsuhiko Isono

I use linux-2.6.26 + xenomai-2.4.10 with custom arm(i.mx31) board.

When realtime application was executed on my environment, application caused the SIGSEGV fault about once every

several hours.

Quoted 11 lines
Quoted 11 lines
Quoted 2 lines

However, when I applied "arm: fix mm switching" patch of

xenomai-2.5 to

Quoted 5 lines

my environment, SIGSEGV fault did not happen.

There is a following question.
- Is this patch effective also for 2.4.10 ?
- What trouble is corrected with this patch ?

The version of the I-pipe patch you are using has another known bug than
the one fixed by the "arm: fix mm switching" patch (by the

way, to be

Quoted 1 line
Quoted 1 line

sure that we are talking about the same patch, I would

prefer an URL

Quoted 14 lines
Quoted 13 lines

pointing to xenomai's gitweb), the bug mentioned here:

https://mail.gna.org/public/xenomai-core/2009-08/msg00021.html

And the fix for this bug in the I-pipe patches which comes with Xenomai
2.4.10 should fix both bugs.

So, in short, do you oberve the segmentation faults when using the I-pipe patches which ship with Xenomai 2.4.10 rather than whatever patch
you are using for linux 2.6.26?

Quoted 8 lines
Quoted 3 lines

Thank you for your reply.

I use linux-2.6.26 of Freescale BSP because I develop custom board.

Actually, I do not really understand this argument. It looks as easy to develop a custom board support with the mainline kernel as with a vendor version. And at least, with the mainline kernel, you are not stuck with whatever version the vendor chose.

The reason for using FreeScale BSP is that functions(SDMA,..etc) were richer than mainline at the time of transplanted to our board.