From owner-freebsd-arm@freebsd.org Fri Nov 29 18:07:04 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 954F41B7953 for ; Fri, 29 Nov 2019 18:07:04 +0000 (UTC) (envelope-from james@opentech.cc) Received: from NAM04-CO1-obe.outbound.protection.outlook.com (mail-eopbgr690063.outbound.protection.outlook.com [40.107.69.63]) (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 47PjBv0qsnz49LT; Fri, 29 Nov 2019 18:07:02 +0000 (UTC) (envelope-from james@opentech.cc) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KuPR5iOlOu10Sm6rSqRz5oUoj0mUYWChSpmWMgl3RhYLfitys1WFVpQjJWSvGc/ssCtTQjmFpjjqIE2YCEQTujw3lE4XGa3oLMCt8OO/6zm7Bhyo/UZq0aUXERaoHhNyRE09kR/EYowHRWWt6480c7D093CWlwaMIiWR4RbD1goi251k1Alz7mnTpnofZRzq3sIyDSpbbrMuVLKP2gPUgSVa3whO6Y6VXtn7jL5fX/8PveJksisYmYThf1qAa5qUzhUJ/Bf4eu+fRqNaGKGJwsZsAoIEzmOeFTqXF2rh7cxTsX1Gc99nPJaR34RjOroXPi2xwJZYyBF5BwuD6nDPMg== 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=b+WUFSJ6nSJ0y5qclZSBbY0sQHzx7qb73Zlk4MdWgZE=; b=iv+EU8ja4v3zvKUhKOVsRFjBqpUryay1ycwOrqN97b87yQ0g3X5FmYiSivJDBNgtTL1tiNY7q4V+GwRw28+9ylCAQmu52KvN6IKw5bxvS4UZmHEShxTWBDhlFbyE+eGKCCbZ+ssrTDRvLKlPb+bZLSDx6TRqqYitLopw09UkFsWaWW28meoqFT+Ba6GVQ1TZ2PiXqmicTEQNyQuSgaCqkhFbbVChew3e7OISADbAI/m7nrJRpNcKBrwFOy9vqDStqI2m/ZR+/t9zDAswWuoNs1chUPE6Dyf4cdCBiAXDsHtlYqXYy1EkEjRE7tL+ec0dGlZuPrfIydRAYpTglDFXtg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=opentech.cc; dmarc=pass action=none header.from=opentech.cc; dkim=pass header.d=opentech.cc; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=opentech.cc; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=b+WUFSJ6nSJ0y5qclZSBbY0sQHzx7qb73Zlk4MdWgZE=; b=lW/S7xzpK5Z1qDkZqTUeNhgMj+UrOJatYzovhwzW8eTkNtn+h2X+ChnbLxyxDiP0ePARCLbF4tYgsFfWivFbG46HvRh50UUiVZD4u+5qAjGZ7kxNxB3trye7Js751YoyzvLqJWGnofNLvX4YZjdykAUvArzzEe5E3aUejGdrO0Y= Received: from MWHPR06MB3134.namprd06.prod.outlook.com (10.174.248.13) by MWHPR06MB3213.namprd06.prod.outlook.com (10.174.248.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2495.17; Fri, 29 Nov 2019 18:06:59 +0000 Received: from MWHPR06MB3134.namprd06.prod.outlook.com ([fe80::1943:79aa:6d34:38ba]) by MWHPR06MB3134.namprd06.prod.outlook.com ([fe80::1943:79aa:6d34:38ba%7]) with mapi id 15.20.2474.023; Fri, 29 Nov 2019 18:06:59 +0000 From: James Shuriff To: Ross Alexander , Ian Lepore , "freebsd-arm@freebsd.org" Subject: RE: rpi3 clock drift Thread-Topic: rpi3 clock drift Thread-Index: AQHVpUx0zryUjtMePk2bBh6hCr8xxqeff+OwgACMtQCAAZRWAIAAF3CAgACs3ICAAAysAIAAAaiw Date: Fri, 29 Nov 2019 18:06:59 +0000 Message-ID: References: <20191129052800.GA37113@server.rulingia.com> <65be6d3628a8d35084f7c98266582090f59b18be.camel@freebsd.org> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [71.251.5.193] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b9908d80-2384-41fc-1d13-08d774f6ed88 x-ms-traffictypediagnostic: MWHPR06MB3213: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-forefront-prvs: 0236114672 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(346002)(376002)(136003)(366004)(39830400003)(13464003)(199004)(189003)(38564003)(64756008)(66446008)(14454004)(7736002)(9686003)(6306002)(66556008)(305945005)(25786009)(76116006)(966005)(2906002)(52536014)(508600001)(6246003)(5660300002)(55016002)(66066001)(74316002)(66476007)(7116003)(6436002)(66946007)(229853002)(99286004)(186003)(71200400001)(53546011)(26005)(7696005)(76176011)(6506007)(8936002)(8676002)(81166006)(81156014)(71190400001)(2501003)(33656002)(446003)(5024004)(14444005)(256004)(4001150100001)(316002)(3846002)(6116002)(11346002)(110136005)(86362001)(102836004); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR06MB3213; H:MWHPR06MB3134.namprd06.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: opentech.cc does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: zMgXIjuMkE69Jl5u2uwqKq3v+Ymg5Nrk3q38EW8P6gbhwFWH/Whuxdj8Fi4HGg8jiZUBu4BqYTXLfHZKKSQo7k+TkoBmmS0+0g595/ENYc2YrBphOvQhlwNxGQ171KMdG7uW4gFEWTue3OK/V9qwgIEpuIeYXcYek5WCCLXotYpjdzgRrHFcDqYgvKr6VVOKa4/Cv2TWxCdO98TxksRTbxIZn4XmEWhBLUwaL8bZ5odzP5Oc8yLHHMh/3gjXt7Pw8CA1hEk6UwKI9USDiN1eE4NGdRquoidzQ3OzWZ9ROcoSW+ID8h/PHxKp8hwe0Lv3Lq3ulNebAFiemWizgO712rU/OfLDrtwrZxA2qxJm6LUDObYA2kD4hpQj7xuusPAJAd4S2lfKwljHp+0soV8HO2j1hif4hyZ7cL76lNaLv3DpWbPdjd9GxoP+vgR5MEu4LsEHVR3XElSgiduP3hWG/BgsPQQqLg4CLsOgwbKnZ9k= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: opentech.cc X-MS-Exchange-CrossTenant-Network-Message-Id: b9908d80-2384-41fc-1d13-08d774f6ed88 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2019 18:06:59.0822 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 5c5dd5ac-929c-48f6-a3f4-c0c8602c24af X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: pgj7qpAwqNYKjfdASdG9ApidK6bJPK1eF78J6HJU7fs9oXkbeIcpmmUhCGAyNJBm8wmt6P9ABpVhxQ992TajLg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR06MB3213 X-Rspamd-Queue-Id: 47PjBv0qsnz49LT X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=opentech.cc header.s=selector1 header.b=lW/S7xzp; dmarc=pass (policy=none) header.from=opentech.cc; spf=pass (mx1.freebsd.org: domain of james@opentech.cc designates 40.107.69.63 as permitted sender) smtp.mailfrom=james@opentech.cc X-Spamd-Result: default: False [-5.35 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[opentech.cc:s=selector1]; HAS_XOIP(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:40.107.0.0/16]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(-1.35)[ipnet: 40.64.0.0/10(-3.85), asn: 8075(-2.85), country: US(-0.05)]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[opentech.cc:+]; DMARC_POLICY_ALLOW(-0.50)[opentech.cc,none]; RCVD_IN_DNSWL_NONE(0.00)[63.69.107.40.list.dnswl.org : 127.0.3.0]; 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: Fri, 29 Nov 2019 18:07:04 -0000 Can you help me determine where the timecounter frequency is being pulled f= rom? I believe that 54 MHz value is being pulled from the FDT I just don't = know where specifically. My board is supposed to be 19.2 MHz. I booted up F= reeBSD's own RPI3 image and I got 19.2 MHz and didn't have any drift issues= . Only when I use the environment I built from source do I get 54 MHz, as i= f an RPI 4 DTB somehow made it into the build. I'm also interested in getting an RTC hat. I know how to build support for = it in the bootloader and OS but how do you tell FreeBSD to start using it f= or system timing once it's connected? - James Shuriff -----Original Message----- From: owner-freebsd-arm@freebsd.org On Beha= lf Of Ross Alexander Sent: Friday, November 29, 2019 12:56 PM To: Ian Lepore Cc: freebsd-arm@freebsd.org Subject: Re: rpi3 clock drift On Fri, 29 Nov 2019, Ian Lepore wrote: > On Thu, 2019-11-28 at 23:51 -0700, Ross Alexander wrote: >> On Fri, 29 Nov 2019, Peter Jeremy wrote: >> >>> [...] >> >> BTW, another *significant* source of jitter is the brand and age of >> the sd/mmc card used. [...] > > I'm having a real hard time with this one, conceptually. This is > exactly what every one of our products at $work does: precision > timing including ntpd and kernel time tracking UTC(GPS) to within a few n= anos. > We've had products in the field for 15 years still using the original > sdcard and still hitting the same on-time performance numbers as the > day they were shipped (tracking UTC(GPS) +-10ns RMS). This is purely empirical. $WORK machine got jitterier and jitterier. Copied old SD card onto new SD card (straight dd, not a tar/untar), problem= went away. Beats me, but thats how it went. 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. --- _______________________________________________ freebsd-arm@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-arm To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" ________________________________ DISCLAIMER: This message and any attachments are intended solely for the u= se of the recipient and may contain confidential information. If you have r= eceived this message in error please delete it and promptly notify the send= er, James Shuriff (james@opentech.cc).