* [PATCH] arm: fix mach-versatile booting in qemu
@ 2010-07-14 15:16 Arnd Bergmann
2010-07-14 17:23 ` Rabin Vincent
2010-07-14 20:03 ` Russell King - ARM Linux
0 siblings, 2 replies; 4+ messages in thread
From: Arnd Bergmann @ 2010-07-14 15:16 UTC (permalink / raw)
To: linux-arm-kernel
The versatile platform has not been able to boot in qemu since 2.6.34-rc2,
because e388771 "ARM: Realview/Versatile: separate out common SP804
timer code" changed the behavior of the versatile_set_mode function.
This restores the original way it worked until 2.6.34-rc1.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
I found this with git-bisect. I do not know wether the old behavior
that this reverts to is sensible, but it's how both versatile and
realview have been doing it since they first started using clockevents.
I also don't know if the same problem exists on actual versatile
hardware or if it's really a qemu bug.
Please apply in combination with common sense. If it's correct, do
we also want the same change in 2.6.34.x-stable?
--- a/arch/arm/plat-versatile/timer-sp.c
+++ b/arch/arm/plat-versatile/timer-sp.c
@@ -90,8 +90,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);
@@ -106,6 +104,7 @@ static void sp804_set_mode(enum clock_event_mode mode,
case CLOCK_EVT_MODE_UNUSED:
case CLOCK_EVT_MODE_SHUTDOWN:
default:
+ ctrl = 0;
break;
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] arm: fix mach-versatile booting in qemu
2010-07-14 15:16 [PATCH] arm: fix mach-versatile booting in qemu Arnd Bergmann
@ 2010-07-14 17:23 ` Rabin Vincent
2010-07-14 17:55 ` Arnd Bergmann
2010-07-14 20:03 ` Russell King - ARM Linux
1 sibling, 1 reply; 4+ messages in thread
From: Rabin Vincent @ 2010-07-14 17:23 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Jul 14, 2010 at 05:16:09PM +0200, Arnd Bergmann wrote:
> The versatile platform has not been able to boot in qemu since 2.6.34-rc2,
> because e388771 "ARM: Realview/Versatile: separate out common SP804
> timer code" changed the behavior of the versatile_set_mode function.
>
> This restores the original way it worked until 2.6.34-rc1.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> I found this with git-bisect. I do not know wether the old behavior
> that this reverts to is sensible, but it's how both versatile and
> realview have been doing it since they first started using clockevents.
>
> I also don't know if the same problem exists on actual versatile
> hardware or if it's really a qemu bug.
It's a QEMU bug. It was fixed with this patch to QEMU:
http://www.mail-archive.com/qemu-devel at nongnu.org/msg30785.html
Rabin
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] arm: fix mach-versatile booting in qemu
2010-07-14 17:23 ` Rabin Vincent
@ 2010-07-14 17:55 ` Arnd Bergmann
0 siblings, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2010-07-14 17:55 UTC (permalink / raw)
To: linux-arm-kernel
On Wednesday 14 July 2010 19:23:19 Rabin Vincent wrote:
> On Wed, Jul 14, 2010 at 05:16:09PM +0200, Arnd Bergmann wrote:
> > I also don't know if the same problem exists on actual versatile
> > hardware or if it's really a qemu bug.
>
> It's a QEMU bug. It was fixed with this patch to QEMU:
>
> http://www.mail-archive.com/qemu-devel at nongnu.org/msg30785.html
Ok, thanks for the info. I was sure I was using the latest qemu
checkout, but apparently I made a mistake there.
Arnd
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] arm: fix mach-versatile booting in qemu
2010-07-14 15:16 [PATCH] arm: fix mach-versatile booting in qemu Arnd Bergmann
2010-07-14 17:23 ` Rabin Vincent
@ 2010-07-14 20:03 ` Russell King - ARM Linux
1 sibling, 0 replies; 4+ messages in thread
From: Russell King - ARM Linux @ 2010-07-14 20:03 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Jul 14, 2010 at 05:16:09PM +0200, Arnd Bergmann wrote:
> The versatile platform has not been able to boot in qemu since 2.6.34-rc2,
> because e388771 "ARM: Realview/Versatile: separate out common SP804
> timer code" changed the behavior of the versatile_set_mode function.
NAK. qemu is broken.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-14 20:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-14 15:16 [PATCH] arm: fix mach-versatile booting in qemu Arnd Bergmann
2010-07-14 17:23 ` Rabin Vincent
2010-07-14 17:55 ` Arnd Bergmann
2010-07-14 20:03 ` Russell King - ARM Linux
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox