From: "Autran, Guillaume" <gautran@mrv.com>
To: "'linuxppc-embedded@ozlabs.org'" <linuxppc-embedded@ozlabs.org>,
"'n_tbinh@yahoo.com'" <n_tbinh@yahoo.com>
Subject: RE: Booting hangs after "Calibrating delay loop..."
Date: Wed, 23 Nov 2005 11:39:05 -0500 [thread overview]
Message-ID: <19EE6EC66973A5408FBE4CB7772F6F0A2105B2@ltnmail.xyplex.com> (raw)
Hi,
I remember there is some race condition before calling set_dec(..) in time.c
Basically, what happens is that the external decrementer is set way before
the interrupt gets enabled. When we get to enable the interrupt, the
decrementer value already reached 0 and wrapped arround (at least in our
case).
The fix was to comment the line in:
arch/ppc/kernel/time.c:330: set_dec(tb_ticks_per_jiffy);
And move it to:
arch/ppc/syslib/m8xx_setup.c
inside m8xx_calibrate_decr() just before setting up the interrupt for the
decrementer.
In time.c, you may also need to initialize stamp = get_native_tbl(); as this
variable may not have been initialized since you are using an external
decrementer.
Try that...
Guillaume.
next reply other threads:[~2005-11-23 16:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-23 16:39 Autran, Guillaume [this message]
2005-11-29 3:20 ` Booting hangs after "Calibrating delay loop..." Nguyen Thanh Binh
-- strict thread matches above, loose matches on Subject: below --
2005-11-30 21:58 Autran, Guillaume
2005-12-03 2:13 ` Nguyen Thanh Binh
2005-12-03 2:14 ` Nguyen Thanh Binh
2005-11-17 15:04 Jaap de Jong
2005-11-23 9:52 ` Nguyen Thanh Binh
2005-11-17 8:19 Nguyen Thanh Binh
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=19EE6EC66973A5408FBE4CB7772F6F0A2105B2@ltnmail.xyplex.com \
--to=gautran@mrv.com \
--cc=linuxppc-embedded@ozlabs.org \
--cc=n_tbinh@yahoo.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox