Thread (6 messages) 6 messages, 5 authors, 2014-12-30

[PATCH] clocksource: arch_timer: Fix arm64 platforms not booting

From: Marc Zyngier <hidden>
Date: 2014-12-28 21:46:34
Also in: lkml

On 2014-12-28 14:20, Christoffer Dall wrote:
Commit 0b46b8a718c6e ("clocksource: arch_timer: Fix code to...") 
fixes
timer issues with certain ARMv7 platforms, but unfortunately breaks
arm64 platforms with hyp mode (EL2) enabled.

The commit only sets arch_timer_use_virtual to false under 
CONFIG_ARM,
but forgets that the config variable is also set in other code paths
(actually, right underneath the check in the patch) with detrimental
consequences as we've now introduced a direct early call to BUG() on
practically all arm64 platforms.

One could argue that this code could be refactored to use different
variables for checking which *timer* to use and which *counter* to 
use,
which seems to be the desired difference between ARM and arm64 in 
this
case, but this approach fixes an urgent issue for now.

Cc: Sonny Rao <redacted>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Daniel Lezcano <redacted>
Cc: Olof Johansson <redacted>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Marc Zyngier <redacted>
Cc: Yingjoe Chen <redacted>
Signed-off-by: Christoffer Dall <redacted>
---
This was apparently already discovered by Yingjoe Chen in this thread
https://lkml.org/lkml/2014/11/24/41 and Catalin recommended a similar
fix.
I'm increasingly worried about the time it takes to get such critical
fixes into the tree (arm64 is *dead* without it).

What is holding this patch which, as far as I remember, has been posted
by Catalin almost three weeks ago?

Daniel?

         M.
-- 
Fast, cheap, reliable. Pick two.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help