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

Marc Zyngier maz at kernel.org
Sun Aug 8 03:40:30 PDT 2021


On Sun, 08 Aug 2021 02:14:35 +0100,
Oliver Upton <oupton at google.com> 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.



More information about the linux-arm-kernel mailing list