x86/quirks: Disable HPET on Intel Coffe Lake platforms
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Wed, 16 Oct 2019 10:38:16 +0000 (18:38 +0800)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 19 Dec 2019 15:59:00 +0000 (15:59 +0000)
commitded0d65fd775966a5115c0468dd02eda4cb855a1
treeb7a36f30cee81450087c4ad8fdd4c5fbf213b8dd
parent0943b0426b87c025b0168c22ab4e9436bc742e55
x86/quirks: Disable HPET on Intel Coffe Lake platforms

commit fc5db58539b49351e76f19817ed1102bf7c712d0 upstream.

Some Coffee Lake platforms have a skewed HPET timer once the SoCs entered
PC10, which in consequence marks TSC as unstable because HPET is used as
watchdog clocksource for TSC.

Harry Pan tried to work around it in the clocksource watchdog code [1]
thereby creating a circular dependency between HPET and TSC. This also
ignores the fact, that HPET is not only unsuitable as watchdog clocksource
on these systems, it becomes unusable in general.

Disable HPET on affected platforms.

Suggested-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=203183
Link: https://lore.kernel.org/lkml/20190516090651.1396-1-harry.pan@intel.com/
Link: https://lkml.kernel.org/r/20191016103816.30650-1-kai.heng.feng@canonical.com
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/kernel/early-quirks.c