Skip to content

ARM: EXYNOS: Allow to use architected timer

Arnd Bergmann linux-arm-kernel linux-samsung-soc 1 version New

Get series with b4
b4 am 11155544.mMhEXg27TI@wuerfel

Versions newest first

  1. v1 Latest0 of 2 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 2 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] ARM: EXYNOS: Allow to use architected timer
Quoted 7 lines · On Tuesday 06 October 2015 12:44:54 Pavel Fedin wrote:

Hello!

Quoted 4 lines

My feeling is that is shouldn't be keyed off the presence of the device in DT though. Maybe we can find a way that allows you to put the device into DT but not have it used by default unless the user explicitly enables it, e.g. though a kernel command line option like "force_broken_archtimer"?

Quoted 6 lines

For this purpose we have status = "disabled" in the device tree. We can add CP15 timer node and
disable it. If the user needs it, the bootloader could just change "disabled" to "ok", and it's done.
The only problem here would be that CP15 timer on Exynos is actually tied to MCT. We need to enable
MCT, otherwise clocks don't tick. That's why i decided to make CP15 timer a subnode.
My current patch lacks "status" property check, i could add it if you agree with this approach.

It's not ideal, because the hardware is always there and always slightly broken, so it's not really a property of the platform. I'd be happier with something that is easier for users to change if they know what they are doing and also makes it clear that it is slightly risky.

Quoted 6 lines
Quoted 2 lines

Or maybe we could find a way to keep using MCT in the host but use the arch timer in the guest only?

That's an interesting question, but, perhaps, it would require more changes to the code, and KVM
maintainers don't like these things, calling them "broken non-compliant hardware". So, i guess, we could move from simple things to more complex ones.

It's probably worth trying to see how much complexity you need for that approach, maybe it's not as hard in the end.

Quoted 7 lines
Quoted 3 lines

For all I can tell, nobody every /saw/ the problem, we just know that it hasn't passed verification (or something like that) and you shouldn't use it in production.

Yes, and i agreed that this should be an option, not the default.

P.S. I cc'ed to linux-samsung-soc, but i'm not subscribed. Will it reach there?

I think it should, at least I didn't get an email back for my reply, and I'm not subscribed either.

Arnd