NetBSD Problem Report #55247
From christos@astron.com Fri May 8 19:14:33 2020
Return-Path: <christos@astron.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 02D0A1A9213
for <gnats-bugs@gnats.NetBSD.org>; Fri, 8 May 2020 19:14:32 +0000 (UTC)
Message-Id: <20200508175740.ED05F6C8BF@quasar.astron.com>
Date: Fri, 8 May 2020 17:57:40 +0000 (UTC)
From: christos@astron.com
Reply-To: christos@astron.com
To: gnats-bugs@NetBSD.org
Subject: Recent tsc changes make clock race (1 hour per day)
X-Send-Pr-Version: 3.95
>Number: 55247
>Category: kern
>Synopsis: Recent tsc changes make clock race (1 hour per day)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri May 08 19:15:00 +0000 2020
>Last-Modified: Tue May 12 06:50:01 +0000 2020
>Originator: Christos Zoulas
>Release: NetBSD 9.99.60
>Organization:
Racing Clocks Inc.
>Environment:
System: NetBSD quasar.astron.com 9.99.60 NetBSD 9.99.60 (QUASAR) #165: Tue May 5 20:44:19 EDT 2020 christos@quasar.astron.com:/usr/src/sys/arch/amd64/compile/QUASAR amd64
Architecture: x86_64
Machine: amd64
>Description:
Ntp refuses to sync since the clock is racing too fast.
>How-To-Repeat:
Manufacturer: Dell Inc.
Product Name: Precision 5820 Tower
kern.timecounter.choice = TSC(q=3000, f=3850000000 Hz) clockinterrupt(q=0, f=4000 Hz) hpet0(q=2000, f=24000000 Hz) ACPI-Fast(q=1000, f=3579545 Hz) lapic(q=-100, f=25000000 Hz) i8254(q=100, f=1193182 Hz) dummy(q=-1000000, f=1000000 Hz)
>Fix:
sysctl -w kern.timecounter.hardware=hpet0
>Audit-Trail:
From: SAITOH Masanobu <msaitoh@execsw.org>
To: gnats-bugs@netbsd.org, kern-bug-people@netbsd.org,
gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc: msaitoh@execsw.org
Subject: Re: kern/55247: Recent tsc changes make clock race (1 hour per day)
Date: Tue, 12 May 2020 15:45:01 +0900
On 2020/05/09 4:15, christos@astron.com wrote:
>> Number: 55247
>> Category: kern
>> Synopsis: Recent tsc changes make clock race (1 hour per day)
>> Confidential: no
>> Severity: serious
>> Priority: medium
>> Responsible: kern-bug-people
>> State: open
>> Class: sw-bug
>> Submitter-Id: net
>> Arrival-Date: Fri May 08 19:15:00 +0000 2020
>> Originator: Christos Zoulas
>> Release: NetBSD 9.99.60
>> Organization:
> Racing Clocks Inc.
>> Environment:
> System: NetBSD quasar.astron.com 9.99.60 NetBSD 9.99.60 (QUASAR) #165: Tue May 5 20:44:19 EDT 2020 christos@quasar.astron.com:/usr/src/sys/arch/amd64/compile/QUASAR amd64
> Architecture: x86_64
> Machine: amd64
>> Description:
>
> Ntp refuses to sync since the clock is racing too fast.
>
>> How-To-Repeat:
> Manufacturer: Dell Inc.
> Product Name: Precision 5820 Tower
> kern.timecounter.choice = TSC(q=3000, f=3850000000 Hz) clockinterrupt(q=0, f=4000 Hz) hpet0(q=2000, f=24000000 Hz) ACPI-Fast(q=1000, f=3579545 Hz) lapic(q=-100, f=25000000 Hz) i8254(q=100, f=1193182 Hz) dummy(q=-1000000, f=1000000 Hz)
>
>> Fix:
> sysctl -w kern.timecounter.hardware=hpet0
>
Cold you try x86/cpu.c rev. 1.191?
And also please show the following info:
- full dmesg
- cpuctl -v identify 0
Thanks in advance.
--
-----------------------------------------------
SAITOH Masanobu (msaitoh@execsw.org
msaitoh@netbsd.org)
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.