All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] Interrupt Handling in Xenomai
@ 2007-12-11 12:10 kapilkumar.jain
  2007-12-11 12:20 ` Jan Kiszka
  0 siblings, 1 reply; 3+ messages in thread
From: kapilkumar.jain @ 2007-12-11 12:10 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 1584 bytes --]

Hello all,

The problem i faced in Registering Interrupt in Xenomai, if my interrupt line is shared with the ethernet irqs.

If we register for the interrupt line which is shared by ethernet irqs we will get the continuous interrupt.

According to the Xenomai interrupt handling - we should return RTDM_IRQ_NONE for unhandled interrupt.
and RTDM_IRQ_HANDLED for interrupt handled.

the problem if I return RTDM_IRQ_NONE, system get hanged with message
__XINTIRQ_ No Body cared for IRQ 19

IRQ 19 - same irq sharing with ethernet & my module.

If instead of RTDM_IRQ_NONE i will return 0; it will not hang.
but i am not sure about the functionality when it wil share with some other irq which is important.

what is the meaning of returning 0 from Xenomai ISR?


With Regards
Kapil Kumar Jain
**************** CAUTION - Disclaimer *****************This email may contain confidential and privileged material for the
sole use of the intended recipient(s). Any review, use, retention, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. Also, email is susceptible to data corruption, interception, tampering, unauthorized amendment and viruses. We only send and receive emails on the basis that we are not liable for any such corruption, interception, tampering, amendment or viruses or any consequence thereof. 
*********** End of Disclaimer ***********DataPatterns ITS Group**********


[-- Attachment #2: Type: text/html, Size: 2985 bytes --]

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

* Re: [Xenomai-core] Interrupt Handling in Xenomai
  2007-12-11 12:10 [Xenomai-core] Interrupt Handling in Xenomai kapilkumar.jain
@ 2007-12-11 12:20 ` Jan Kiszka
  2007-12-12 12:19   ` kapilkumar.jain
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2007-12-11 12:20 UTC (permalink / raw)
  To: kapilkumar.jain; +Cc: xenomai

kapilkumar.jain wrote:
> Hello all,
> 
> The problem i faced in Registering Interrupt in Xenomai, if my interrupt line is shared with the ethernet irqs.
> 
> If we register for the interrupt line which is shared by ethernet irqs we will get the continuous interrupt.
> 
> According to the Xenomai interrupt handling - we should return RTDM_IRQ_NONE for unhandled interrupt.
> and RTDM_IRQ_HANDLED for interrupt handled.
> 
> the problem if I return RTDM_IRQ_NONE, system get hanged with message
> __XINTIRQ_ No Body cared for IRQ 19
> 
> IRQ 19 - same irq sharing with ethernet & my module.
> 
> If instead of RTDM_IRQ_NONE i will return 0; it will not hang.
> but i am not sure about the functionality when it wil share with some other irq which is important.
> 
> what is the meaning of returning 0 from Xenomai ISR?

Using 0 directly is not valid, always use the constants, they (or they
docs) explain their meaning.

I guess you are rather looking for this explanation:

http://www.xenomai.org/index.php/FAQs
"What can I do if Xenomai and Linux devices share the same IRQ?"

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux


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

* Re: [Xenomai-core] Interrupt Handling in Xenomai
  2007-12-11 12:20 ` Jan Kiszka
@ 2007-12-12 12:19   ` kapilkumar.jain
  0 siblings, 0 replies; 3+ messages in thread
From: kapilkumar.jain @ 2007-12-12 12:19 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai

dear Mr Jan,

For me there are following difficulties to follow the solutions given in 
FAQ.
i) I cant remove the ethernet ports(handled by Linux) since they are also 
integral part of my project.
ii) I am using some 15 boards in my project, which are going to use 
different lines. so some one surely share the interrupt line with ethernet.
iii) I am also confuse about the ethernet interrupts. when they comes, since 
ethernet works on polling mode. why i m getting continous interrupt with or 
without network is connected or not.
iv) If I am returning 0 , what does it exactly means, what it will do?
v) If I not down ethernet ports interrupt are coming continuously, and since 
unhandled they are making system hangs.
vi) how the unhandled shared irq part is implemented in Xenomai.

With Regards
Kapil Jain

----- Original Message ----- 
From: "Jan Kiszka" <jan.kiszka@domain.hid>
To: "kapilkumar.jain" <kapilkumar.jain@domain.hid>
Cc: <xenomai@xenomai.org>
Sent: Tuesday, December 11, 2007 5:50 PM
Subject: Re: [Xenomai-core] Interrupt Handling in Xenomai


> kapilkumar.jain wrote:
>> Hello all,
>>
>> The problem i faced in Registering Interrupt in Xenomai, if my interrupt 
>> line is shared with the ethernet irqs.
>>
>> If we register for the interrupt line which is shared by ethernet irqs we 
>> will get the continuous interrupt.
>>
>> According to the Xenomai interrupt handling - we should return 
>> RTDM_IRQ_NONE for unhandled interrupt.
>> and RTDM_IRQ_HANDLED for interrupt handled.
>>
>> the problem if I return RTDM_IRQ_NONE, system get hanged with message
>> __XINTIRQ_ No Body cared for IRQ 19
>>
>> IRQ 19 - same irq sharing with ethernet & my module.
>>
>> If instead of RTDM_IRQ_NONE i will return 0; it will not hang.
>> but i am not sure about the functionality when it wil share with some 
>> other irq which is important.
>>
>> what is the meaning of returning 0 from Xenomai ISR?
>
> Using 0 directly is not valid, always use the constants, they (or they
> docs) explain their meaning.
>
> I guess you are rather looking for this explanation:
>
> http://www.xenomai.org/index.php/FAQs
> "What can I do if Xenomai and Linux devices share the same IRQ?"
>
> Jan
>
> -- 
> Siemens AG, Corporate Technology, CT SE 2
> Corporate Competence Center Embedded Linux 


**************** CAUTION - Disclaimer *****************This email may contain confidential and privileged material for the
sole use of the intended recipient(s). Any review, use, retention, distribution or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive for the recipient), please contact the sender by reply email and delete all copies of this message. Also, email is susceptible to data corruption, interception, tampering, unauthorized amendment and viruses. We only send and receive emails on the basis that we are not liable for any such corruption, interception, tampering, amendment or viruses or any consequence thereof. 
*********** End of Disclaimer ***********DataPatterns ITS Group**********



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

end of thread, other threads:[~2007-12-12 12:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-11 12:10 [Xenomai-core] Interrupt Handling in Xenomai kapilkumar.jain
2007-12-11 12:20 ` Jan Kiszka
2007-12-12 12:19   ` kapilkumar.jain

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.