Skip to contentSkip to conversation

PCI-MSI interrupt handling Issue

Xenomai Rajeshkumar R 2 participants 2 messages Dec 13, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

We are using MPC8641D processor (arch - powerpc) in our module. Our issue is MSI interrupt didn't handled in xenomai. We have the XMC module, this is the source of the MSI interrupt. This XMC MSI interrupt directly given to Processor. We are using the linux kernel (2.6.30) with xenomai patched (adeos-ipipe-2.6.70).

For XMC module, we have the separate device driver implemented in xenomai. We are registering the ISR using 'rtdm_irq_request'. The ISR is not invoked when interrupt occurs, but in kernel '__ipipe_grab_irq' function is invoked.

If the XMC module device driver is linux ('request_irq' is used to register the ISR), then the interrupt is coming, the ISR is invoked.

Please clarify.

Thanks & Regards,
Rajeshkumar.R,
Software Engineer,
Indus Teqsite Pvt Ltd,
Chennai - India.
**************** 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**********

#1 lore raw
Quoted 5 lines · Rajeshkumar R

Hi,

We are using MPC8641D processor (arch - powerpc) in our module. Our issue is MSI interrupt didn't handled in xenomai. We have the XMC module, this is the source of the MSI interrupt. This XMC MSI interrupt directly given to Processor. We are using the linux kernel (2.6.30) with xenomai patched (adeos-ipipe-2.6.70).

This patch does not exist. 2.6.30-2.7-xx maybe?

Quoted 11 lines

For XMC module, we have the separate device driver implemented in xenomai. We are registering the ISR using 'rtdm_irq_request'. The ISR is not invoked when interrupt occurs, but in kernel '__ipipe_grab_irq' function is invoked.

If the XMC module device driver is linux ('request_irq' is used to register the ISR), then the interrupt is coming, the ISR is invoked.

Please clarify.

Adeos support for the 2.6.30 series dates back to 2009, and may not channel cascaded MSI interrupts to the pipeline. You are left with a choice: upgrading to kernel 3.5+ using the appropriate patch, or fixing up the PIC code in the old kernel (likely fsl_msi in your case).

This said, support for handling cascaded interrupts in the Adeos pipeline was broken until somewhere in the kernel 3.2 timeline, and fixing up that part in legacy patches would require significant surgery, so I would seriously consider upgrading anyway.

PS: please note that using MSI interrupts with Xenomai comes with a few restrictions: make sure to check this mailing list archive for more on this.

Signature · 1 line
Philippe.