Re: [Xenomai-core] broken docs

2006-01-30 Thread Jan Kiszka
ROSSIER Daniel wrote: Dear Xenomai workers, Would it be possible to have an updated API documentation for Xenomai 2.0.x ? (I mean with formal parameters in function prototypes) I tried to regenerate it with make generate-doc, but it seems that a SVN working dir is required. It would be

Re: [Xenomai-core] broken docs

2006-01-30 Thread Gilles Chanteperdrix
Jan Kiszka wrote: ROSSIER Daniel wrote: Dear Xenomai workers, Would it be possible to have an updated API documentation for Xenomai 2.0.x ? (I mean with formal parameters in function prototypes) I tried to regenerate it with make generate-doc, but it seems that a SVN

[Xenomai-core] [BUG] Interrupt problem on powerpc

2006-01-30 Thread Anders Blomdell
On a PrPMC800 (PPC 7410 processor) withe Xenomai-2.1-rc2, I get the following if the interrupt handler takes too long (i.e. next interrupt gets generated before the previous one has finished) [ 42.543765] [c00c2008] spin_bug+0xa8/0xc4 [ 42.597617] [c00c22d4] _raw_spin_lock+0x180/0x184 [

Re: [Xenomai-core] [BUG] racy xnshadow_harden under CONFIG_PREEMPT

2006-01-30 Thread Philippe Gerum
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jeroen Van den Keybus wrote: Hello, I'm currently not at a level to participate in your discussion. Although I'm willing to supply you with stresstests, I would nevertheless like to learn more from task migration as this debugging session

[Xenomai-core] [BUG?] dead code in ipipe_grab_irq

2006-01-30 Thread Anders Blomdell
In the following code (ppc), shouldn't first be either declared static or deleted? To me it looks like first is always equal to one when the else clause is evaluated. asmlinkage int __ipipe_grab_irq(struct pt_regs *regs) { extern int ppc_spurious_interrupts;

Re: [Xenomai-core] [BUG] racy xnshadow_harden under CONFIG_PREEMPT

2006-01-30 Thread Philippe Gerum
Philippe Gerum wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jeroen Van den Keybus wrote: Hello, I'm currently not at a level to participate in your discussion. Although I'm willing to supply you with stresstests, I would nevertheless like to learn more from task migration as

Re: [Xenomai-core] [BUG] racy xnshadow_harden under CONFIG_PREEMPT

2006-01-30 Thread Philippe Gerum
Philippe Gerum wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jeroen Van den Keybus wrote: Hello, I'm currently not at a level to participate in your discussion. Although I'm willing to supply you with stresstests, I would nevertheless like to learn more from task migration as

Re: [Xenomai-core] [BUG?] dead code in ipipe_grab_irq

2006-01-30 Thread Heikki Lindholm
Anders Blomdell kirjoitti: In the following code (ppc), shouldn't first be either declared static or deleted? To me it looks like first is always equal to one when the else clause is evaluated. You're right. first doesn't need to be there at all, it's probably an old copy of something in the

Re: [Xenomai-core] [BUG] racy xnshadow_harden under CONFIG_PREEMPT

2006-01-30 Thread Jan Kiszka
Philippe Gerum wrote: Philippe Gerum wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jeroen Van den Keybus wrote: Hello, I'm currently not at a level to participate in your discussion. Although I'm willing to supply you with stresstests, I would nevertheless like to learn

Re: [Xenomai-core] [BUG] Interrupt problem on powerpc

2006-01-30 Thread Anders Blomdell
Jan Kiszka wrote: Anders Blomdell wrote: On a PrPMC800 (PPC 7410 processor) withe Xenomai-2.1-rc2, I get the following if the interrupt handler takes too long (i.e. next interrupt gets generated before the previous one has finished) [ 42.543765] [c00c2008] spin_bug+0xa8/0xc4 [ 42.597617]

Re: [Xenomai-core] [BUG] Interrupt problem on powerpc

2006-01-30 Thread Jan Kiszka
Anders Blomdell wrote: Jan Kiszka wrote: Anders Blomdell wrote: On a PrPMC800 (PPC 7410 processor) withe Xenomai-2.1-rc2, I get the following if the interrupt handler takes too long (i.e. next interrupt gets generated before the previous one has finished) [ 42.543765] [c00c2008]

Re: [Xenomai-core] [BUG] Interrupt problem on powerpc

2006-01-30 Thread Anders Blomdell
Jan Kiszka wrote: Anders Blomdell wrote: Jan Kiszka wrote: Anders Blomdell wrote: On a PrPMC800 (PPC 7410 processor) withe Xenomai-2.1-rc2, I get the following if the interrupt handler takes too long (i.e. next interrupt gets generated before the previous one has finished) [ 42.543765]

Re: [Xenomai-core] [BUG] Interrupt problem on powerpc

2006-01-30 Thread Philippe Gerum
Anders Blomdell wrote: Philippe Gerum wrote: Anders Blomdell wrote: On a PrPMC800 (PPC 7410 processor) withe Xenomai-2.1-rc2, I get the following if the interrupt handler takes too long (i.e. next interrupt gets generated before the previous one has finished) [ 42.543765] [c00c2008]

Re: [Xenomai-core] Scheduling while atomic

2006-01-30 Thread Philippe Gerum
Jan Kiszka wrote: Jan Kiszka wrote: ... [Update] While writing this mail and letting your test run for a while, I *did* get a hard lock-up. Hold on, digging deeper... And here are its last words, spoken via serial console: c31dfab0 0086 c30d1a90 c02a2500 c482a360 0001 0001

Re: [Xenomai-core] [BUG] racy xnshadow_harden under CONFIG_PREEMPT

2006-01-30 Thread Philippe Gerum
Jan Kiszka wrote: Hi, well, if I'm not totally wrong, we have a design problem in the RT-thread hardening path. I dug into the crash Jeroen reported and I'm quite sure that this is the reason. So that's the bad news. The good one is that we can at least work around it by switching off

Re: [Xenomai-core] Missing IRQ end function on PowerPC

2006-01-30 Thread Jan Kiszka
Philippe Gerum wrote: Gilles Chanteperdrix wrote: Wolfgang Grandegger wrote: Therefore we need a dedicated function to re-enable interrupts in the ISR. We could name it *_end_irq, but maybe *_enable_isr_irq is more obvious. On non-PPC archs it would translate to *_irq_enable. I

Re: [Xenomai-core] Missing IRQ end function on PowerPC

2006-01-30 Thread Jan Kiszka
Wolfgang Grandegger wrote: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) Philippe Gerum wrote: Gilles Chanteperdrix wrote: Wolfgang Grandegger wrote: Therefore we need a dedicated function to re-enable interrupts in the ISR. We could name it *_end_irq, but maybe

Re: [Xenomai-core] Missing IRQ end function on PowerPC

2006-01-30 Thread Philippe Gerum
Jan Kiszka wrote: Philippe Gerum wrote: Gilles Chanteperdrix wrote: Wolfgang Grandegger wrote: Therefore we need a dedicated function to re-enable interrupts in the ISR. We could name it *_end_irq, but maybe *_enable_isr_irq is more obvious. On non-PPC archs it would translate to

Re: [Xenomai-core] Missing IRQ end function on PowerPC

2006-01-30 Thread Jan Kiszka
Philippe Gerum wrote: Jan Kiszka wrote: Wolfgang Grandegger wrote: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) Philippe Gerum wrote: Gilles Chanteperdrix wrote: Wolfgang Grandegger wrote: Therefore we need a dedicated function to re-enable interrupts in the ISR. We

Re: [Xenomai-core] [BUG] racy xnshadow_harden under CONFIG_PREEMPT

2006-01-30 Thread Philippe Gerum
Philippe Gerum wrote: Jan Kiszka wrote: Hi, well, if I'm not totally wrong, we have a design problem in the RT-thread hardening path. I dug into the crash Jeroen reported and I'm quite sure that this is the reason. So that's the bad news. The good one is that we can at least work around it

RE: [Xenomai-core] broken docs

2006-01-30 Thread ROSSIER Daniel
Dear Xenomai workers, Would it be possible to have an updated API documentation for Xenomai 2.0.x ? (I mean with formal parameters in function prototypes) I tried to regenerate it with make generate-doc, but it seems that a SVN working dir is required. It would be great. Thanks a lot Daniel

Re: [Xenomai-core] Missing IRQ end function on PowerPC

2006-01-30 Thread Wolfgang Grandegger
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) Philippe Gerum wrote: Jan Kiszka wrote: Wolfgang Grandegger wrote: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) Philippe Gerum wrote: Gilles Chanteperdrix wrote: Wolfgang Grandegger wrote:

Re: [Xenomai-core] Missing IRQ end function on PowerPC

2006-01-30 Thread Philippe Gerum
Jan Kiszka wrote: Philippe Gerum wrote: Jan Kiszka wrote: Wolfgang Grandegger wrote: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) Philippe Gerum wrote: Gilles Chanteperdrix wrote: Wolfgang Grandegger wrote: Therefore we need a dedicated function to re-enable

Re: [Xenomai-core] [PATCH] fix pthread cancellation in native skin

2006-01-30 Thread Gilles Chanteperdrix
Jan Kiszka wrote: Hi, Gilles' work on cancellation for the posix skin reminded me of this issue I once discovered in the native skin: https://mail.gna.org/public/xenomai-core/2005-12/msg00014.html I found out that this can easily be fixed by switching the pthread of a native

Re: [Xenomai-core] [BUG] racy xnshadow_harden under CONFIG_PREEMPT

2006-01-30 Thread Dmitry Adamushko
... I have not checked it yet but my presupposition that something as easy as : preempt_disable() wake_up_interruptible_sync(); schedule(); preempt_enable();It's a no-go: scheduling while atomic. One of my first attempts tosolve it. My fault. I meant the way preempt_schedule() and

Re: [Xenomai-core] [BUG] racy xnshadow_harden under CONFIG_PREEMPT

2006-01-30 Thread Jan Kiszka
Dmitry Adamushko wrote: ... I have not checked it yet but my presupposition that something as easy as : preempt_disable() wake_up_interruptible_sync(); schedule(); preempt_enable(); It's a no-go: scheduling while atomic. One of my first attempts to solve it. My fault. I meant the

Re: [Xenomai-core] broken docs

2006-01-30 Thread Jan Kiszka
ROSSIER Daniel wrote: Dear Xenomai workers, Would it be possible to have an updated API documentation for Xenomai 2.0.x ? (I mean with formal parameters in function prototypes) I tried to regenerate it with make generate-doc, but it seems that a SVN working dir is required. It would be

Re: [Xenomai-core] broken docs

2006-01-30 Thread Jan Kiszka
Gilles Chanteperdrix wrote: Jan Kiszka wrote: ROSSIER Daniel wrote: Dear Xenomai workers, Would it be possible to have an updated API documentation for Xenomai 2.0.x ? (I mean with formal parameters in function prototypes) I tried to regenerate it with make

Re: [Xenomai-core] [BUG] racy xnshadow_harden under CONFIG_PREEMPT

2006-01-30 Thread Dmitry Adamushko
On 30/01/06, Jan Kiszka [EMAIL PROTECTED] wrote: Dmitry Adamushko wrote: ... I have not checked it yet but my presupposition that something as easy as : preempt_disable() wake_up_interruptible_sync(); schedule(); preempt_enable(); It's a no-go: scheduling while atomic. One of my first attempts to

[Xenomai-core] [BUG] Interrupt problem on powerpc

2006-01-30 Thread Anders Blomdell
On a PrPMC800 (PPC 7410 processor) withe Xenomai-2.1-rc2, I get the following if the interrupt handler takes too long (i.e. next interrupt gets generated before the previous one has finished) [ 42.543765] [c00c2008] spin_bug+0xa8/0xc4 [ 42.597617] [c00c22d4] _raw_spin_lock+0x180/0x184 [

Re: [Xenomai-core] [BUG] Interrupt problem on powerpc

2006-01-30 Thread Jan Kiszka
Anders Blomdell wrote: On a PrPMC800 (PPC 7410 processor) withe Xenomai-2.1-rc2, I get the following if the interrupt handler takes too long (i.e. next interrupt gets generated before the previous one has finished) [ 42.543765] [c00c2008] spin_bug+0xa8/0xc4 [ 42.597617] [c00c22d4]

Re: [Xenomai-core] [BUG] racy xnshadow_harden under CONFIG_PREEMPT

2006-01-30 Thread Philippe Gerum
Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jeroen Van den Keybus wrote: Hello, I'm currently not at a level to participate in your discussion. Although I'm willing to supply you with stresstests, I would nevertheless like to learn more from task migration as this debugging session

[Xenomai-core] [BUG?] dead code in ipipe_grab_irq

2006-01-30 Thread Anders Blomdell
In the following code (ppc), shouldn't first be either declared static or deleted? To me it looks like first is always equal to one when the else clause is evaluated. asmlinkage int __ipipe_grab_irq(struct pt_regs *regs) { extern int ppc_spurious_interrupts;

Re: [Xenomai-core] [BUG] racy xnshadow_harden under CONFIG_PREEMPT

2006-01-30 Thread Philippe Gerum
Philippe Gerum wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jeroen Van den Keybus wrote: Hello, I'm currently not at a level to participate in your discussion. Although I'm willing to supply you with stresstests, I would nevertheless like to learn more from task migration as

Re: [Xenomai-core] [BUG?] dead code in ipipe_grab_irq

2006-01-30 Thread Philippe Gerum
Heikki Lindholm wrote: Anders Blomdell kirjoitti: In the following code (ppc), shouldn't first be either declared static or deleted? To me it looks like first is always equal to one when the else clause is evaluated. You're right. first doesn't need to be there at all, it's probably an

Re: [Xenomai-core] [BUG] racy xnshadow_harden under CONFIG_PREEMPT

2006-01-30 Thread Jan Kiszka
Philippe Gerum wrote: Philippe Gerum wrote: Jan Kiszka wrote: Gilles Chanteperdrix wrote: Jeroen Van den Keybus wrote: Hello, I'm currently not at a level to participate in your discussion. Although I'm willing to supply you with stresstests, I would nevertheless like to learn

Re: [Xenomai-core] [BUG] Interrupt problem on powerpc

2006-01-30 Thread Anders Blomdell
Jan Kiszka wrote: Anders Blomdell wrote: On a PrPMC800 (PPC 7410 processor) withe Xenomai-2.1-rc2, I get the following if the interrupt handler takes too long (i.e. next interrupt gets generated before the previous one has finished) [ 42.543765] [c00c2008] spin_bug+0xa8/0xc4 [ 42.597617]

Re: [Xenomai-core] [BUG] Interrupt problem on powerpc

2006-01-30 Thread Jan Kiszka
Anders Blomdell wrote: Jan Kiszka wrote: Anders Blomdell wrote: On a PrPMC800 (PPC 7410 processor) withe Xenomai-2.1-rc2, I get the following if the interrupt handler takes too long (i.e. next interrupt gets generated before the previous one has finished) [ 42.543765] [c00c2008]

Re: [Xenomai-core] [BUG] Interrupt problem on powerpc

2006-01-30 Thread Anders Blomdell
Jan Kiszka wrote: Anders Blomdell wrote: Jan Kiszka wrote: Anders Blomdell wrote: On a PrPMC800 (PPC 7410 processor) withe Xenomai-2.1-rc2, I get the following if the interrupt handler takes too long (i.e. next interrupt gets generated before the previous one has finished) [ 42.543765]

[Xenomai-core] [PATCH] rt_heap reminder

2006-01-30 Thread Stefan Kisdaroczi
Hi all, as a reminder (userspace, native skin, shared heap) [1]: API documentation: If the heap is shared, this value can be either zero, or the same value given to rt_heap_create(). This is not true. As the heapsize gets altered in rt_heap_create for page size alignment, the following call to