Re: [PATCH] x86_64: use HPET in 64-bit mode to avoid a harware 32-bit wraparound bug

From: Thomas Gleixner
Date: Thu Dec 28 2017 - 06:49:30 EST


On Fri, 8 Dec 2017, Jiri Bohac wrote:

> This patch changes the HPET clockevent code to use the Timer 0 in 64-bit
> mode (if compiled for x86_64; doing this for 32-bit kernels would bring
> a performance penalty as a single read would require three 32-bit HPET
> accesses).

We tried that before and 64bit mode did not work on all tested platforms.

Aside of that your patch is broken because it does not check whether HPET
actually supports 64bit mode at all. The COUNT_SIZE_CAP bit is there for a
reason.

Thanks,

tglx