Skip to contentSkip to conversation

MSI Interrupt Crash

Xenomai-help Thomas Schaefer 2 participants 2 messages May 2, 2008 – May 4, 2008

lore
Share & tools
lore
#0 lore raw
Quoted 36 lines

-----Original Message-----
From: Philippe Gerum [mailto:[email protected]] On Behalf Of Philippe Gerum
Sent: Friday, May 02, 2008 8:02 AM
To: Thomas Schaefer
Cc: Jeff Koftinoff; [email protected]
Subject: Re: [Xenomai-help] MSI Interrupt Crash

Quoted 17 lines · Thomas Schaefer
Quoted 17 lines

Does this help?

asm-x86/wrappers_64.h (revision 3720) renamed from asm-x86/wrappers_64.h (revision 3719) +2 -2
@@ -31,8 +31,8 @@
 #define rthal_irq_descp(irq)        (irq_desc + irq)
 #define rthal_irq_desc_status(irq)  (rthal_irq_descp(irq)->status)
 
-#define rthal_irq_chip_enable(irq)   ({ rthal_irq_descp(irq)->chip-
 > enable(irq); 0; })
-#define rthal_irq_chip_disable(irq)  ({ rthal_irq_descp(irq)->chip-
 > disable(irq); 0; })
+#define rthal_irq_chip_enable(irq)   ({ rthal_irq_descp(irq)->chip-
 > unmask(irq); 0; })
+#define rthal_irq_chip_disable(irq)  ({ rthal_irq_descp(irq)->chip-
Quoted 1 line

mask(irq); 0; })

Quoted 9 lines
Quoted 5 lines

#define rthal_irq_chip_end(irq) ({ rthal_irq_descp(irq)-

Quoted 1 line

ipipe_end(irq, rthal_irq_descp(irq));

0; })

typedef irq_handler_t rthal_irq_host_handler_t;

We are using the current version from the SVN repository and those changes are already in there.

Quoted 5 lines

Please send the output back:

--
Philippe.

Here it is:

Xenomai: NULL unmask handler for irq 248, chip none (->enable=ffffffff8026f480)

Thomas

#1 lore raw
Quoted 84 lines · Thomas Schaefer
Quoted 78 lines

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

From: Philippe Gerum [mailto:[email protected]] On Behalf Of

Philippe Gerum

Sent: Friday, May 02, 2008 8:02 AM

To: Thomas Schaefer

Cc Jeff Koftinoff; [email protected]

Subject: Re: [Xenomai-help] MSI Interrupt Crash

Quoted 42 lines · Thomas Schaefer
Quoted 41 lines

Does this help?

--- include/asm-x86/wrappers_64.h (revision 3719)

+++ include/asm-x86/wrappers_64.h (revision 3720)

(quoted diff) +0 -1
@@ -31,8 +31,8 @@
 
 #define rthal_irq_descp(irq)        (irq_desc + irq)
 
 #define rthal_irq_desc_status(irq)  (rthal_irq_descp(irq)->status)
 
 
 
-#define rthal_irq_chip_enable(irq)   ({ rthal_irq_descp(irq)->chip-
Quoted 2 lines

enable(irq); 0; })

-#define rthal_irq_chip_disable(irq) ({ rthal_irq_descp(irq)->chip-

Quoted 1 line

disable(irq); 0; })

+#define rthal_irq_chip_enable(irq) ({ rthal_irq_descp(irq)->chip-

Quoted 1 line

unmask(irq); 0; })

+#define rthal_irq_chip_disable(irq) ({ rthal_irq_descp(irq)->chip-

Quoted 1 line

mask(irq); 0; })

#define rthal_irq_chip_end(irq) ({ rthal_irq_descp(irq)-

Quoted 1 line

ipipe_end(irq, rthal_irq_descp(irq));

0; })

Quoted 9 lines
Quoted 1 line

typedef irq_handler_t rthal_irq_host_handler_t;

We are using the current version from the SVN repository and those

changes are already in there.

Please send the output back:

Quoted 3 lines

--

Philippe.

Quoted 5 lines

Here it is:

Xenomai: NULL unmask handler for irq 248, chip none

You are trying to use an interrupt which has been allocated by the kernel, but for which it has not defined any controller (i.e. set_irq_chip()); in that case, mask/unmask are left to NULL pointers in the default invalid controller struct, hence the crash. Xenomai can only use interrupts for which a valid controller exists. You may want to check why interrupt #248 is not completely initialized.

Signature · 1 line
Philippe.