From: john stultz <johnstul@us.ibm.com>
To: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: lkml <linux-kernel@vger.kernel.org>, arnd.bergmann@de.ibm.com
Subject: [PATCH] arm: fix versatile boot hang (seen with qemu)
Date: Tue, 10 Aug 2010 19:19:51 -0700 [thread overview]
Message-ID: <1281493191.2955.42.camel@localhost.localdomain> (raw)
Hey Russell,
I have been having troubles getting the 2.6.35 kernel to boot in my
qemu-system-arm environment. It worked with 2.6.34, and so I bisected it
down to:
commit e388771458b4ff3ad81ab70e390b24d069647da4
Author: Russell King <rmk+kernel@arm.linux.org.uk>
Date: Thu Jan 14 13:30:16 2010 +0000
ARM: Realview/Versatile: separate out common SP804 timer code
The issue seems to be that the common sp804_set_mode function was not
identical to the ones it replaced. It added an extra writel and did not
write zero out on shutdown.
The following patch resolves the issue for me and gets things booting.
Signed-off-by: John Stultz <johnstul@us.ibm.com>
diff --git a/arch/arm/plat-versatile/timer-sp.c b/arch/arm/plat-versatile/timer-sp.c
index 98722f4..6d7fff4 100644
--- a/arch/arm/plat-versatile/timer-sp.c
+++ b/arch/arm/plat-versatile/timer-sp.c
@@ -102,8 +102,6 @@ static void sp804_set_mode(enum clock_event_mode mode,
{
unsigned long ctrl = TIMER_CTRL_32BIT | TIMER_CTRL_IE;
- writel(ctrl, clkevt_base + TIMER_CTRL);
-
switch (mode) {
case CLOCK_EVT_MODE_PERIODIC:
writel(TIMER_RELOAD, clkevt_base + TIMER_LOAD);
@@ -118,7 +116,7 @@ static void sp804_set_mode(enum clock_event_mode mode,
case CLOCK_EVT_MODE_UNUSED:
case CLOCK_EVT_MODE_SHUTDOWN:
default:
- break;
+ ctrl = 0;
}
writel(ctrl, clkevt_base + TIMER_CTRL);
next reply other threads:[~2010-08-11 2:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-11 2:19 john stultz [this message]
2010-08-11 7:20 ` [PATCH] arm: fix versatile boot hang (seen with qemu) Russell King
2010-08-11 14:19 ` Rabin Vincent
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=1281493191.2955.42.camel@localhost.localdomain \
--to=johnstul@us.ibm.com \
--cc=arnd.bergmann@de.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rmk+kernel@arm.linux.org.uk \
/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