All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] "arm: fix mm switching" patch effective also for 2.4.10 ?
@ 2010-06-02 23:31 Katsuhiko Isono
  2010-06-03  9:19 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 7+ messages in thread
From: Katsuhiko Isono @ 2010-06-02 23:31 UTC (permalink / raw)
  To: xenomai

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




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-help] "arm: fix mm switching" patch effective also for 2.4.10 ?
  2010-06-02 23:31 [Xenomai-help] "arm: fix mm switching" patch effective also for 2.4.10 ? Katsuhiko Isono
@ 2010-06-03  9:19 ` Gilles Chanteperdrix
  2010-06-04  4:11   ` Katsuhiko Isono
  0 siblings, 1 reply; 7+ messages in thread
From: Gilles Chanteperdrix @ 2010-06-03  9:19 UTC (permalink / raw)
  To: k-isono; +Cc: xenomai

Katsuhiko Isono wrote:
> 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?

-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-help] "arm: fix mm switching" patch effective also for 2.4.10 ?
  2010-06-03  9:19 ` Gilles Chanteperdrix
@ 2010-06-04  4:11   ` Katsuhiko Isono
  2010-06-04  7:54     ` Philippe Gerum
  2010-06-04  8:55     ` Gilles Chanteperdrix
  0 siblings, 2 replies; 7+ messages in thread
From: Katsuhiko Isono @ 2010-06-04  4:11 UTC (permalink / raw)
  To: 'Gilles Chanteperdrix'; +Cc: xenomai

> -----Original Message-----
> Katsuhiko Isono wrote:
> > 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?
> 

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-help] "arm: fix mm switching" patch effective also for 2.4.10 ?
  2010-06-04  4:11   ` Katsuhiko Isono
@ 2010-06-04  7:54     ` Philippe Gerum
  2010-06-04  8:44       ` Gilles Chanteperdrix
  2010-06-04  8:55     ` Gilles Chanteperdrix
  1 sibling, 1 reply; 7+ messages in thread
From: Philippe Gerum @ 2010-06-04  7:54 UTC (permalink / raw)
  To: k-isono; +Cc: xenomai


Isono-san,

On Fri, 2010-06-04 at 13:11 +0900, Katsuhiko Isono wrote:
> > -----Original Message-----
> > Katsuhiko Isono wrote:
> > > 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?
> > 
> 
> 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.

> 
> 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
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help


-- 
Philippe.




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-help] "arm: fix mm switching" patch effective also for 2.4.10 ?
  2010-06-04  7:54     ` Philippe Gerum
@ 2010-06-04  8:44       ` Gilles Chanteperdrix
  0 siblings, 0 replies; 7+ messages in thread
From: Gilles Chanteperdrix @ 2010-06-04  8:44 UTC (permalink / raw)
  To: Philippe Gerum; +Cc: xenomai

Philippe Gerum wrote:
> Isono-san,
> 
> On Fri, 2010-06-04 at 13:11 +0900, Katsuhiko Isono wrote:
>>> -----Original Message-----
>>> Katsuhiko Isono wrote:
>>>> 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?
>>>
>> 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.

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.

-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-help] "arm: fix mm switching" patch effective also for 2.4.10 ?
  2010-06-04  4:11   ` Katsuhiko Isono
  2010-06-04  7:54     ` Philippe Gerum
@ 2010-06-04  8:55     ` Gilles Chanteperdrix
  2010-06-07  5:54       ` Katsuhiko Isono
  1 sibling, 1 reply; 7+ messages in thread
From: Gilles Chanteperdrix @ 2010-06-04  8:55 UTC (permalink / raw)
  To: k-isono; +Cc: xenomai

Katsuhiko Isono wrote:
>> -----Original Message-----
>> Katsuhiko Isono wrote:
>>> 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?
>>
> 
> 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.

-- 
					    Gilles.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-help] "arm: fix mm switching" patch effective also for 2.4.10 ?
  2010-06-04  8:55     ` Gilles Chanteperdrix
@ 2010-06-07  5:54       ` Katsuhiko Isono
  0 siblings, 0 replies; 7+ messages in thread
From: Katsuhiko Isono @ 2010-06-07  5:54 UTC (permalink / raw)
  To: 'Gilles Chanteperdrix'; +Cc: xenomai




> Katsuhiko Isono wrote:
> >> -----Original Message-----
> >> Katsuhiko Isono wrote:
> >>> 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?
> >>
> > 
> > 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.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-06-07  5:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-02 23:31 [Xenomai-help] "arm: fix mm switching" patch effective also for 2.4.10 ? Katsuhiko Isono
2010-06-03  9:19 ` Gilles Chanteperdrix
2010-06-04  4:11   ` Katsuhiko Isono
2010-06-04  7:54     ` Philippe Gerum
2010-06-04  8:44       ` Gilles Chanteperdrix
2010-06-04  8:55     ` Gilles Chanteperdrix
2010-06-07  5:54       ` Katsuhiko Isono

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.