In the meantime, I've located the rthal_irq_disable() and used it instead of the RTDM return value (which is now 0).
The machine still hangs.
More importantly, I noticed that the second (after the first) interrupt
gets lost (as is to be expected when the interrupt remains disabled).
This causes the RTDM driver to timeout and the Xenomai program using
the RTDM driver is actually able to gracefully shut down. It seems
that, upon exiting, the machine hangs.
I'll now try two new tests:
1. Turn off the cards's interrupts after the first IRQ has arrived.
2. Keep my program alive for a few secs using task_sleep() or so to see if cleanup code is going awry.
Any other tests ?
Jeroen.
- Re: [Xenomai-core] Handlin... Philippe Gerum
- RE: [Xenomai-core] Handlin... Russell Johnson
- Re: [Xenomai-core] Handlin... Philippe Gerum
- Re: [Xenomai-core] Handlin... Jeroen Van den Keybus
- Re: [Xenomai-core] Handlin... Philippe Gerum
- Re: [Xenomai-core] Handlin... Jeroen Van den Keybus
- Re: [Xenomai-core] Handlin... Jeroen Van den Keybus
- Re: [Xenomai-core] Handlin... Philippe Gerum
- Re: [Xenomai-core] Handlin... Philippe Gerum
- Re: [Xenomai-core] Handling PCI MSI interrupts Philippe Gerum
- Re: [Xenomai-core] Handling PCI MSI interrupts Jeroen Van den Keybus
- Re: [Xenomai-core] Handling PCI MSI interrupts Jeroen Van den Keybus
- Re: [Xenomai-core] Handling PCI MSI interrupts Jeroen Van den Keybus
- Re: [Xenomai-core] Handling PCI MSI interru... Jeroen Van den Keybus
- Re: [Xenomai-core] Handling PCI MSI int... Philippe Gerum
- Re: [Xenomai-core] Handling PCI MSI... Jeroen Van den Keybus
- Re: [Xenomai-core] Handling PC... Jeroen Van den Keybus
- Re: [Xenomai-core] Handlin... Jeroen Van den Keybus
- Re: [Xenomai-core] Handlin... Philippe Gerum
- Re: [Xenomai-core] Handlin... Jeroen Van den Keybus
- Re: [Xenomai-core] Handlin... Philippe Gerum