On 01/24/2013 12:51 AM, [email protected] wrote:>

> Things of note:
> twd is the (per cpu) timer used by the ipipe
> xttcpss is a triple timer counter within the SoC, which appears to only
> be used until the twd timer is setup-- this timer is *not* ported to the
> Ipipe, which I assumed was okay because the twd is used-- is this
> assumption correct?


You need to register this timer with the I-pipe if not compiling for
SMP, as in this case, Linux does not start the TWD.

>> Each platform defines its own irqchips for multiplexed GPIOs. If you
>> want to track all invalid GPIO demuxers, you can enable ipipe debugging
>> and add ipipe_root_only() inside "generic_handle_irq".
> 
> I tested this, and never triggered the debug code-- I assume this means
> no calls to generic_handle_irq were made in the head domain?


Indeed, as /proc/interrupts show, you are not using any GPIO multiplexed
interrupt.

>> Right, you need to use EXPORT_PER_CPU_SYMBOL_GPL(current_mm).
> 
> Thanks-- this let me compile Xenomai as a module, which may help with
> debugging.
> 
> I found that the hang seems to occur when a skin is loaded, not nucleus.
> Something seems to happen at this point that prevents further SDHC
> interrupts.
> It's not clear, but it also may have some effect on the UART (maybe
> all?) interrupt as well-- I observed a printk stop partway through a
> string as the nucleus module was loaded [note-- I am running through a
> serial console, and have MMC_DEBUG turned on] -- see timestamp 151.49


As said in the porting guide, it means that you have a timer issue. What
happens when you load a skin module is that Xenomai takes over the
control of the timer. So, that is where you should look. Do not assume
anything about the TWD code, it is not because it works on other
platforms that it works on this one.

-- 
                                                                Gilles.

_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to