From owner-freebsd-ppc@FreeBSD.ORG Tue Apr 8 14:29:57 2014 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D5AA6DE1 for ; Tue, 8 Apr 2014 14:29:57 +0000 (UTC) Received: from mx.nsu.ru (mx.nsu.ru [84.237.50.39]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7B48C17B2 for ; Tue, 8 Apr 2014 14:29:57 +0000 (UTC) Received: from regency.nsu.ru ([193.124.210.26]) by mx.nsu.ru with esmtp (Exim 4.72) (envelope-from ) id 1WXX21-0006Vo-8w; Tue, 08 Apr 2014 21:29:50 +0700 Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.14.2/8.14.2) with ESMTP id s38ETZ4J043653; Tue, 8 Apr 2014 21:29:50 +0700 (NOVT) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.14.2/8.14.2/Submit) id s38ETTYl043606; Tue, 8 Apr 2014 21:29:29 +0700 (NOVT) (envelope-from danfe) Date: Tue, 8 Apr 2014 21:29:29 +0700 From: Alexey Dokuchaev To: John Baldwin Subject: Re: System clock falls behind quickly on Mac mini G4 Message-ID: <20140408142929.GC39088@regency.nsu.ru> References: <20140328071714.GA45961@regency.nsu.ru> <20140404144753.GA58190@regency.nsu.ru> <201404071704.58659.john@baldwin.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201404071704.58659.john@baldwin.cx> User-Agent: Mutt/1.4.2.1i X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 59422 [Apr 08 2014] X-KLMS-AntiSpam-Version: 5.3.6 X-KLMS-AntiSpam-Envelope-From: danfe@regency.nsu.ru X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Moebius-Timestamps: 2864789, 2864824, 2864814 X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiVirus: Kaspersky Security 8.0 for Linux Mail Server 8.0.0.455, not checked X-KLMS-AntiVirus-Status: NotChecked: not checked, skipped Cc: freebsd-ppc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Apr 2014 14:29:57 -0000 On Mon, Apr 07, 2014 at 05:04:58PM -0400, John Baldwin wrote: > Also, if the frequency is calibrated incorrectly during boot for some reason, > your time-of-day clock will drift constantly. I've seen this on x86 boxes Yes, I remember a thread (x86ish) some time ago about bogus TSC calibration, but... > where the TSC was calibrated incorrectly due to an interaction with SMM > interrupts for legacy USB emulation. In that case, adjusting machdep.tsc_freq > to match the frequency from the CPU's brand string "fixed" the drift. ... sysctl -a does not show machdep.tsc_freq for me on this G4 box for some reason (GENERIC kernel). ./danfe