From: "Benoît Thébaudeau" <benoit.thebaudeau@advansee.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Don't get any interrupts once I boot into Linux
Date: Fri, 14 Sep 2012 18:06:16 +0200 (CEST) [thread overview]
Message-ID: <118637155.4405317.1347638775960.JavaMail.root@advansee.com> (raw)
In-Reply-To: <CAOMZO5CgkwQTLBKiAJr3OterE6NA+mpf-4qwVv2vxWS29bQupg@mail.gmail.com>
Hi Fabio, Greg,
On Friday, September 14, 2012 5:15:17 PM, Fabio Estevam wrote:
> On Fri, Sep 14, 2012 at 12:04 PM, Greg Topmiller
> <Greg.Topmiller@jdsu.com> wrote:
> > I downloaded the V2012.07 version of u-boot from the git.denx.de
> > repository and built it for our target. U-boot boots up properly
> > and I can use the commands but now when I boot into Linux I don't
> > seem to be getting interrupts. The Linux kernel hangs in the
> > calculate_delay function waiting for ticks != jiffies. I do not
> > get the interrupt for the timer. I have verified that our
> > previous u-boot that is based on the 2009.12 version with
> > Freescale patches does work. The timer interrupt occurs and
> > jiffies is incremented allowing the loop to exit. Any help would
> > be appreciated.
> >
>
> Which board are you using?
Same here with a custom i.MX51-based board and a FSL-based Linux. It works fine
with the FSL-based U-Boot (2009.12).
Some debugging has shown that:
- The Linux timer is based on GPT.
- The GPT counter runs fine at 8 Mincrements/s as expected.
- The interrupt handler is never called.
- The interrupt is based on output compare, but forcing the OC value a little
bit after the counter value does not trigger the interrupt handler.
- Resetting the GPT and clearing its registers prior to Linux timer init does
not help.
- There does not seem to be any wait or sleep modes involved.
- In this loop, CPSR shows supervisor mode with FIQ disabled and IRQ enabled
(same for both U-Boot versions).
- This version of Linux does not set VBAR. Neither does the older U-Boot
contrary to the latest, but setting VBAR to 0 like with the older U-Boot does
not help.
The differences in system registers between these U-Boots are really small and
seem insignificant. The GPT clock source used by these versions is different,
but that should not be an issue with proper reinitialization in Linux.
The i.MX51 errata don't mention any issue like that, at least for GPT.
ENGcm09114 is similar, but in a very different context.
The next step is to dig into the interrupt controller settings and vectors to
check that Linux sets up everything properly. This issue is very likely caused
by this FSL Linux that unduly relies on the bootloader to initialize something.
Best regards,
Beno?t
next prev parent reply other threads:[~2012-09-14 16:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-14 15:04 [U-Boot] Don't get any interrupts once I boot into Linux Greg Topmiller
2012-09-14 15:15 ` Fabio Estevam
2012-09-14 16:06 ` Benoît Thébaudeau [this message]
2012-09-14 16:13 ` Benoît Thébaudeau
2012-09-16 9:28 ` Stefano Babic
[not found] ` <CEF1C43EC1BF464090308EB428E1360001B708@AMEXMB02.ds.jdsu.net>
2012-09-14 16:37 ` Benoît Thébaudeau
2012-09-14 17:17 ` [U-Boot] FW: " Greg Topmiller
[not found] <CEF1C43EC1BF464090308EB428E1360001B736@AMEXMB02.ds.jdsu.net>
2012-09-14 17:32 ` [U-Boot] " Benoît Thébaudeau
[not found] <CEF1C43EC1BF464090308EB428E1360001B790@AMEXMB02.ds.jdsu.net>
2012-09-14 19:53 ` Benoît Thébaudeau
2012-09-14 21:28 ` Fabio Estevam
2012-09-14 21:38 ` Benoît Thébaudeau
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=118637155.4405317.1347638775960.JavaMail.root@advansee.com \
--to=benoit.thebaudeau@advansee.com \
--cc=u-boot@lists.denx.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox