From owner-freebsd-arm@freebsd.org Wed Nov 27 17:59:35 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 74A4A1B35B3 for ; Wed, 27 Nov 2019 17:59:35 +0000 (UTC) (envelope-from rwa@athabascau.ca) Received: from NAM05-CO1-obe.outbound.protection.outlook.com (mail-eopbgr720041.outbound.protection.outlook.com [40.107.72.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "GlobalSign Organization Validation CA - SHA256 - G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47NT7B0TbDz4MGY for ; Wed, 27 Nov 2019 17:59:33 +0000 (UTC) (envelope-from rwa@athabascau.ca) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oFj2DyZE/cOwA0B1IKFvYTStiSkhCTVen1GD61pVZfJqQTx2cjdAvM4YBeOfl0zQhffL8y/HYPtyOT2cw4KAECaNrGRm8gG1r6hrO6zTZL7fCJT1JOuwhBQwjDAMH5Ut6LSIYwxHyA5ARPFFTBmlB/OsLTJmXu+l36qYdcsvWkVZaTg+RjZCGaDRObCeuFLbwLw6w+x6g7vYbgVknmuaVVOG0i322kip+o3fp2+sVkRHeA2kQLtxrRtmuGy98KiHNZsREPi6Vse6iOGC5boirC97ckkPZZJais4oMpgTbZwt23mhkC0FYdwdnme6qSGjaQIxNJu0PJK8EhC9/RZQsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n41wQ2ojv4JvWJZQTnDazjwWkRdTQ0giWhnm2b0NNiI=; b=eDqzqDpPh4PlAUJ16mkcSAvR57rlGxn7rFhgwuskK6d8ZPqkePeuwTgJSJCf+vxVgPZUw9FCLtqKK/4Jj0TC5x7BkANI3awYS959Vv/SZUK8rqLTzcV689vHuYf5nl8gKgVe60qwI71Mv2wyDBparvZFJzaJWQD04VwrurfwIeymGhU7Jby61Tl1hypjHry0ccsje2bbfc6niX8JzDDRxMSFpJUle4ssWtSMmEkQ69bde/piyVMTNGw5ZJ5vH46omPWmy5YSEvvl7KOmkFGt6QL7HF3EOYeG3H+GNbufEhUWXeiPOTtXN4qSfWBlhueamodyGTlmJGIXYcFiptz/rw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 131.232.32.37) smtp.rcpttodomain=freebsd.org smtp.mailfrom=athabascau.ca; dmarc=bestguesspass action=none header.from=athabascau.ca; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=austaff.onmicrosoft.com; s=selector2-austaff-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n41wQ2ojv4JvWJZQTnDazjwWkRdTQ0giWhnm2b0NNiI=; b=EYLUC/SikwnNjraTsgt4ekwbNl4Et0YQjwMb6fpXVeDf2tTUpnhjnAJp28KIUyqg4qr0/3PCtmkDLlh6mcOfXkJ1YE+URkreD4gTLo1wRVbzxUbiKsnbON/fGowsUH3aslMu5TLyNRFZG24oVlrvPRpyCLdhjHzgCiyv93Kn/MY= Received: from MWHPR13CA0011.namprd13.prod.outlook.com (2603:10b6:300:16::21) by MWHPR13MB1774.namprd13.prod.outlook.com (2603:10b6:300:12f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.13; Wed, 27 Nov 2019 17:59:30 +0000 Received: from QB1CAN01FT009.eop-CAN01.prod.protection.outlook.com (2a01:111:f400:7e5c::207) by MWHPR13CA0011.outlook.office365.com (2603:10b6:300:16::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2516.4 via Frontend Transport; Wed, 27 Nov 2019 17:59:29 +0000 Received-SPF: Pass (protection.outlook.com: domain of athabascau.ca designates 131.232.32.37 as permitted sender) receiver=protection.outlook.com; client-ip=131.232.32.37; helo=smtp-relay.cs.athabascau.ca; Received: from smtp-relay.cs.athabascau.ca (131.232.32.37) by QB1CAN01FT009.mail.protection.outlook.com (10.152.120.113) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.18 via Frontend Transport; Wed, 27 Nov 2019 17:59:28 +0000 Received: from autopsy.pc.athabascau.ca (autopsy.pc.athabascau.ca [131.232.4.80]) by smtp-relay.cs.athabascau.ca (Postfix) with ESMTPS id B0CF42019F for ; Wed, 27 Nov 2019 10:59:27 -0700 (MST) Date: Wed, 27 Nov 2019 10:59:27 -0700 (MST) From: Ross Alexander X-X-Sender: rwa@autopsy.pc.athabascau.ca To: freebsd-arm@freebsd.org Subject: re: rpi3 clock drift Message-ID: User-Agent: Alpine 2.21.99999 (BSF 352 2019-06-22) Organization: Athabasca University MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:131.232.32.37; IPV:NLI; CTRY:CA; EFV:NLI; SFV:NSPM; SFS:(10009020)(199004)(189003)(26005)(58126008)(6916009)(2351001)(36916002)(70586007)(229853002)(4001150100001)(7696005)(2361001)(186003)(5660300002)(356004)(55016002)(8676002)(8936002)(426003)(6266002)(23726003)(7636002)(305945005)(47776003)(6246003)(336012)(70206006)(2906002)(246002)(50466002)(956004)(498600001)(14444005)(7116003)(106002)(8746002)(86362001)(102196002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR13MB1774; H:smtp-relay.cs.athabascau.ca; FPR:; SPF:Pass; LANG:en; PTR:vs001lpmp1609.cs.athabascau.ca; A:1; MX:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d63134b1-d455-4c1d-2892-08d773638c49 X-MS-TrafficTypeDiagnostic: MWHPR13MB1774: X-Microsoft-Antispam-PRVS: Content-Transfer-Encoding: quoted-printable X-MS-Oob-TLC-OOBClassifiers: OLM:4941; X-Forefront-PRVS: 023495660C X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5hvJCPJbuB3kFCBZ6ej8V6cuVTCzOSDyaVTubF7I3yZ6MGpoZHJSKAQcVdCfJm/YXhgrOrHfGANzJn2HQ6hFE6Bt4Fny64Pqy6oSVM8qy856arxobBHY0cbg9uFsZrtJfMV3VwP8LJxMdbV9o5VnkuCCGNMPwnFS+dPbOfOUcYcL3TpJtS1SUHGt+nbrrc7Ckc/e76zqaora9qj2nBs+gV/msn60M7LQSkYwXY1podXWlDXx8ydTtHzadfPiX2gRtUqp2lZhkdn4561OXkTrsDg285dr8LwEpT4GHI0Gg/2hl7pZWWDcClU/Z+8Z3JUUmsULsSSzkwwoPxm82FYwBxYifIa1RlaMbEVtMQWhav7sczh9MlGAo9HCb40t8EoiDxHQ7x7px06HhjQTfZPw+iD4YH6F8RaHcGui+ohFuHEH/VRTEj+xcZdHNGVHrery X-OriginatorOrg: athabascau.ca X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2019 17:59:28.6964 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d63134b1-d455-4c1d-2892-08d773638c49 X-MS-Exchange-CrossTenant-Id: a893bdd2-f460-4252-aa34-4d057436a09d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a893bdd2-f460-4252-aa34-4d057436a09d; Ip=[131.232.32.37]; Helo=[smtp-relay.cs.athabascau.ca] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR13MB1774 X-Rspamd-Queue-Id: 47NT7B0TbDz4MGY X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=austaff.onmicrosoft.com header.s=selector2-austaff-onmicrosoft-com header.b=EYLUC/Si; dmarc=none; spf=pass (mx1.freebsd.org: domain of rwa@athabascau.ca designates 40.107.72.41 as permitted sender) smtp.mailfrom=rwa@athabascau.ca X-Spamd-Result: default: False [-3.85 / 15.00]; FAKE_REPLY(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[austaff.onmicrosoft.com:s=selector2-austaff-onmicrosoft-com]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; DMARC_NA(0.00)[athabascau.ca]; DKIM_TRACE(0.00)[austaff.onmicrosoft.com:+]; RCVD_IN_DNSWL_NONE(0.00)[41.72.107.40.list.dnswl.org : 127.0.3.0]; IP_SCORE(-1.35)[ipnet: 40.64.0.0/10(-3.85), asn: 8075(-2.84), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:8075, ipnet:40.64.0.0/10, country:US]; ARC_ALLOW(-1.00)[i=1] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Nov 2019 17:59:35 -0000 On Wed, 27 Nov 2019, IanLepore wrote: > Date: Tue, 26 Nov 2019 15:48:54 -0700 > From: Ian Lepore > To: James Shuriff , Bakul Shah > > Cc: "freebsd-arm@freebsd.org" > Subject: Re: rpi3 clock drift > Message-ID: > <486c0bc46deeefb8338f50fe6dfdf7951786e56c.camel@freebsd.org> > Content-Type: text/plain; charset=3D"UTF-8" > > On Tue, 2019-11-26 at 22:34 +0000, James Shuriff wrote: >> kern.timecounter.tc.ARM MPCore Timecounter.frequency: 54000000 > > 54 MHz seems like a very strange frequency for a clock in an arm > system. Of course, everything about an RPi seems to be strange and > non-standard. > > Can someone else with an rpi3 (which keeps good time) confirm that > that's the usual number? > > -- Ian Mine does reasonably well; it's disciplined to a local stratum-0 (a pi2 with a GPS hat supplying PPS). The timecounter values are rpi3:/var/db/ntp # sysctl kern.timecounter kern.timecounter.fast_gettime: 1 kern.timecounter.tick: 1 kern.timecounter.choice: ARM MPCore Timecounter(1000) dummy(-1000000) kern.timecounter.hardware: ARM MPCore Timecounter kern.timecounter.alloweddeviation: 5 kern.timecounter.timehands_count: 2 kern.timecounter.stepwarnings: 0 kern.timecounter.tc.ARM MPCore Timecounter.quality: 1000 kern.timecounter.tc.ARM MPCore Timecounter.frequency: 19200000 kern.timecounter.tc.ARM MPCore Timecounter.counter: 1547324379 kern.timecounter.tc.ARM MPCore Timecounter.mask: 4294967295 and the ntpq info looks like rpi3:/var/db/ntp # ntpq ntpq> lpee remote refid st t when poll reach delay offset = jitter =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D *debian2.bogons .PPS. 1 u 39 512 377 0.759 5.328= 3.179 ntpq> rl &1 associd=3D63559 status=3D961a conf, reach, sel_sys.peer, 1 event, sys_= peer, srcadr=3Ddebian2.bogons, srcport=3D123, dstadr=3D192.168.2.6, dstport= =3D123, leap=3D00, stratum=3D1, precision=3D-19, rootdelay=3D0.000, rootdisp= =3D1.099, refid=3DPPS, reftime=3De18933b7.00541adb Wed, Nov 27 2019 10:41:11.00= 1, rec=3De18933be.acaf7c6a Wed, Nov 27 2019 10:41:18.674, reach=3D377, unreach=3D0, hmode=3D3, pmode=3D4, hpoll=3D9, ppoll=3D9, headway=3D17,= flash=3D00 ok, keyid=3D0, offset=3D5.328, delay=3D0.759, dispersion=3D14.153, jitter= =3D3.179, xleave=3D5.695, filtdelay=3D 0.87 0.76 0.78 0.77 0.79 0.79 0.71 = 0.80, filtoffset=3D 6.01 5.33 4.48 3.45 2.52 1.53 0.75 = 0.56, filtdisp=3D 0.00 7.95 16.10 23.85 31.71 39.74 47.61 = 55.62 ntpq> rl associd=3D0 status=3D0618 leap_none, sync_ntp, 1 event, no_sys_peer, version=3D"ntpd 4.2.8p12-a (1)", processor=3D"arm64", system=3D"FreeBSD/13.0-CURRENT", leap=3D00, stratum=3D2, precision=3D-= 21, rootdelay=3D0.759, rootdisp=3D23.748, refid=3D192.168.2.3, reftime=3De18931ac.ad6bd044 Wed, Nov 27 2019 10:32:28.677, clock=3De18933ef.81828f21 Wed, Nov 27 2019 10:42:07.505, peer=3D63559= , tc=3D9, mintc=3D3, offset=3D5.327665, frequency=3D-7.309, sys_jitter=3D0.00000= 0, clk_jitter=3D1.121, clk_wander=3D0.013, tai=3D37, leapsec=3D2017010100= 00, expire=3D201912280000 ntpq> quit This box is drifting a bit right now because I've got a 'make -j 3 buildworld' running; the cheapo little resonators that the Pi folks use instead of crystals drift madly with thermal stress. I can see the house furnace cutting in and out by graphing the loopstats file :). While idle it's usually good to less than half a millisecond. regards, Ross =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D Ross Alexander, (780) 675-6823 desk / (780) 689-0749 cell, rwa@athabascau.c= a 54.71593 N 113.30835 W Order is simply a thin, perilous condition we try to impose on the basic reality of chaos. -- William Gaddis, _J R_ -- This communication is intended for the use of the recipient to whom it is a= ddressed, and may contain confidential, personal, and or privileged informa= tion. Please contact us immediately if you are not the intended recipient o= f this communication, and do not copy, distribute, or take action relying o= n it. Any communications received in error, or subsequent reply, should be = deleted or destroyed. ---