[PATCH 0/2] ARM: EXYNOS: Allow to use architected timer

Pavel Fedin p.fedin at samsung.com
Tue Oct 6 01:56:33 PDT 2015


 Hello!

> IIRC the use of the CP15 timer is not reliable on this platform.
> I don't have a link ready, but this has come up a few times.

 I know that Samsung SoC guys are not very keen on this, therefore i actually made this optional. If
you want, you could omit the second patch, and by default Exynos platform will use MCT. But if
someone wants to use KVM, it would be enough only to modify device tree in order to enable CP15.
Would this be a good compromise?

> Regarding KVM usage, would it be possible to emulate the architected
> timer from qemu instead?

 Unfortunately no. Accesses to virtual timer registers cannot be trapped. It is possible to trap
physical timer accesses, and trick the kernel into using it, but it's slow, and it is a different
story, which you can read here: http://www.spinics.net/lists/kvm/msg121714.html.
 So, i think that having an option to use CP15 would be a good solution. It is known to work, and i
use this configuration here on SMDK5410 without any problems.

Kind regards,
Pavel Fedin
Expert Engineer
Samsung Electronics Research center Russia





More information about the linux-arm-kernel mailing list