Re: [PATCH v2] clocksource/arm_arch_timer: Fix masking for high freq counters

From: Marc Zyngier
Date: Sun Aug 08 2021 - 06:45:18 EST


On Sun, 08 Aug 2021 02:14:35 +0100,
Oliver Upton <oupton@xxxxxxxxxx> wrote:

> The only other sane idea that I could come up with is providing this
> information to the kernel through DT, although that would leave ACPI
> systems behind.

It also has the disadvantage that a large number of DT timer nodes are
a mess of cargo-culted, copy-pasted idioms, and that adding another
property would only make it worse. I'm more confident with something
that can be either:

- checked from EL2 using CNTVOFF, which is complicated, doesn't work
at EL1, and leaves us in a weird state if we have different counter
width views in the system (BL is such a wonderful concept)

- or computed from first principle based on the requirements of the
architecture.

Thanks,

M.

--
Without deviation from the norm, progress is not possible.