From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: mfornero@aanddtech.com
Cc: Xenomai@xenomai.org
Subject: Re: [Xenomai] Porting Ipipe to new ARM SoC (Xilinx Zynq)
Date: Thu, 24 Jan 2013 10:03:54 +0100 [thread overview]
Message-ID: <5100F8FA.9000104@xenomai.org> (raw)
In-Reply-To: <OFC84FDBBF.88E9186F-ON85257AFC.007B4CC3-85257AFC.008309FB@aanddtech.com>
On 01/24/2013 12:51 AM, mfornero@aanddtech.com 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.
next prev parent reply other threads:[~2013-01-24 9:03 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-12 17:21 [Xenomai] Porting Ipipe to new ARM SoC (Xilinx Zynq) mfornero
2013-01-14 10:27 ` Stefan Roese
2013-01-22 0:00 ` mfornero
2013-01-22 7:55 ` Gilles Chanteperdrix
2013-01-23 0:27 ` mfornero
2013-01-23 2:00 ` Gilles Chanteperdrix
2013-01-23 3:43 ` Matthew Fornero
2013-01-23 7:02 ` Gilles Chanteperdrix
2013-01-23 23:51 ` mfornero
2013-01-24 9:03 ` Gilles Chanteperdrix [this message]
2013-01-24 23:57 ` mfornero
2013-01-25 9:01 ` Gilles Chanteperdrix
[not found] ` <OFC84FDBBF.88E9186F-ON85257AFC.007B4CC3-85257AFC.008309FB@LocalDomain>
2013-01-24 0:12 ` mfornero
2013-02-10 14:23 ` Gilles Chanteperdrix
2013-02-13 17:57 ` mfornero
2013-02-13 18:14 ` Stefan Roese
2013-02-13 18:38 ` mfornero
2013-02-14 8:19 ` Stefan Roese
2013-02-13 19:44 ` Gilles Chanteperdrix
2013-02-14 19:41 ` Gilles Chanteperdrix
2013-02-14 19:42 ` Gilles Chanteperdrix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5100F8FA.9000104@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=Xenomai@xenomai.org \
--cc=mfornero@aanddtech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.