From owner-freebsd-arm@freebsd.org Tue Nov 14 22:50:48 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C1876DDFDBE for ; Tue, 14 Nov 2017 22:50:48 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-168.reflexion.net [208.70.210.168]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3EFF472A94 for ; Tue, 14 Nov 2017 22:50:47 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 23983 invoked from network); 14 Nov 2017 22:50:40 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 14 Nov 2017 22:50:40 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Tue, 14 Nov 2017 17:50:40 -0500 (EST) Received: (qmail 684 invoked from network); 14 Nov 2017 22:50:40 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 14 Nov 2017 22:50:40 -0000 Received: from [192.168.1.25] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id A596EEC891A; Tue, 14 Nov 2017 14:50:39 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: PINE64 - 12.0-CURRENT r324563 - ntpd can't keep time From: Mark Millard In-Reply-To: <4aff37249b6.70779c93@mail.schwarzes.net> Date: Tue, 14 Nov 2017 14:50:38 -0800 Cc: freebsd-arm@FreeBSD.org, ian@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <4AB259A5-F00A-408F-968A-26AD8D776708@dsl-only.net> References: <4BF75B1E-318C-414A-B5D4-4BA7D6578316@dsl-only.net> <1509029871.56824.49.camel@freebsd.org> <4af740148ca.47a474e3@mail.schwarzes.net> <04b67007-a95a-9e40-28b4-764adf8b2ded@restart.be> <4aff37249b6.70779c93@mail.schwarzes.net> To: Andreas Schwarz X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Nov 2017 22:50:48 -0000 [FYI: my sysctl dev.ctl.0 is not like Andreas showed.] On 2017-Nov-14, at 2:03 PM, Andreas Schwarz = wrote: > On 14.11.17, Henri Hennebert wrote: >> On 11/13/2017 21:03, Mark Millard wrote: >>>=20 >>> So it looks like you are getting bad times from at >>> least 2 servers. Note that the other servers seem >>> fine as far as your e-mailed material goes. >>=20 >> I believe that the clock of the Pine64+ is going too fast and that = the 2=20 >> servers where polled and so show this offset/jitter. In an other=20 >> occurrence of this problem, if I wait long enough, all servers = display=20 >> huge offset. >=20 > But they step not simultaneous to this offset (which is ~300s), why = should some=20 > servers have such offset and others not?. >=20 > Can you provide your "ntpq -c rl" output? >=20 > If you disable the ntpd, what time drift do you measure per day? >=20 >> In a old version of Freebsd12, when dev.cpu.0.freq was accessible, = the=20 >> problem appear when I force the frequency to 1200. >=20 >=20 > The dev.cpu.0.freq is already there in head/current. >=20 > root@pinelot:~ # sysctl dev.cpu.0 > dev.cpu.0.freq_levels: 1200/-1 1008/-1 816/-1 648/-1 408/-1 > dev.cpu.0.freq: 408 > dev.cpu.0.%parent: cpulist0 > dev.cpu.0.%pnpinfo: name=3Dcpu@0 compat=3Darm,cortex-a53 > dev.cpu.0.%location: > dev.cpu.0.%driver: cpu > dev.cpu.0.%desc: Open Firmware CPU >=20 > root@pinelot:~ # uname -v > FreeBSD 12.0-CURRENT #0 r325561: Thu Nov 9 11:24:55 CET 2017 = root@pinelot.schwarzes.net:/usr/obj/usr/src/arm64.aarch64/sys/PINE64-ASC I'm not the one with the clock problem but I'll note that the -r325700 Pine64+ 2GB with a production-style kernel (not debug) that I'm using has rather different dev.cpu.0 output from sysctl as far as "freq" goes (no such): # uname -apKU FreeBSD pine64 12.0-CURRENT FreeBSD 12.0-CURRENT r325700M arm64 = aarch64 1200053 1200053 # sysctl dev.cpu.0 dev.cpu.0.%parent: cpulist0 dev.cpu.0.%pnpinfo: name=3Dcpu@0 compat=3Darm,cortex-a53 dev.cpu.0.%location:=20 dev.cpu.0.%driver: cpu dev.cpu.0.%desc: Open Firmware CPU Looking, /usr/ports -r447122 moved sysutils/u-boot-pine64 over to be us-boot-master based back on 2017-Aug-2. May be we have differing: u-boot-sunxi-with-spl.bin vintages dd'd to seek=3D8 on the sdcards? Some other difference someplace else? =3D=3D=3D Mark Millard markmi at dsl-only.net