Re: [PATCH] x86/ioapic: don't use unstable TSC to detect timer IRQ

From: Thomas Gleixner
Date: Tue Mar 20 2018 - 05:03:39 EST


On Tue, 20 Mar 2018, Liu, Changcheng wrote:

> On 09:49 Tue 20 Mar, Peter Zijlstra wrote:
> > On Tue, Mar 20, 2018 at 04:42:55PM +0800, Liu, Changcheng wrote:
> > > In rare case, the TSC is every unstable or can't sync with
> > > real time hardware clock.
> >
> > However did you manage that? Please provide _FAR_ more details.
> [Changcheng] TSC is simulated and HPET is hardware implemented.
> TSC can't sync with HPET. When running linux, the TSC grows too
> fast and HPET can't trigger periodic timer interrupt in time which
> is used to update jiffies.

Why on earth is that system claiming it has a TSC at all? That's just
broken.

Thanks,

tglx