Re: Timekeeping oddities on MacMini G4s

2017-02-07 Thread Hal Murray
> What do I do if I don't have an existing ntp.conf ? Assuming ntpsec builds... There are sample config files in config/ contrib/ntp.conf.log.sample has logging which you probably want. it has lots of comments. It is setup to use us.pool.ntp.org If you aren't in the us, you should probably cha

Re: Timekeeping oddities on MacMini G4s

2017-02-06 Thread Michael Ellerman
Hal Murray writes: > b...@kernel.crashing.org said: >> Ok, I do have one though somewhere with OS X on it. If you give me >> instructions on how to test (I know near to nothing about ntpsec), I should >> be able to compile and run it. > > I'm assuming you are already running the normal ntpd from

Re: Timekeeping oddities on MacMini G4s

2017-02-05 Thread Hal Murray
> Tell me what to look for, and I’ll take as many hi-res pictures as you want. I'm looking for the frequency printed on the oscillator/crystal. Here is a picture with several examples: https://en.wikipedia.org/wiki/File:Crystal_Packages.jpg The row of Oscillators is most likely. They also c

Re: Timekeeping oddities on MacMini G4s

2017-02-05 Thread Segher Boessenkool
On Mon, Feb 06, 2017 at 10:22:01AM +1100, Benjamin Herrenschmidt wrote: > >   On the plus side, that means that the values are guaranteed not > > to be core-specific.  On the minus side, it means that its count rate is > > lower, and it's sufficiently "distant" that accessing it is somewhat more >

Re: Timekeeping oddities on MacMini G4s

2017-02-05 Thread Benjamin Herrenschmidt
On Sat, 2017-02-04 at 16:19 -0800, Fred Wright wrote: > On Tue, 31 Jan 2017, Hal Murray wrote: > > > > b...@kernel.crashing.org said: > > > Right, we just use the value provided by Open Firmware. Any chance you can > > That seems inconsistent with the following comment in > arch/powerpc/kernel/ti

Re: Timekeeping oddities on MacMini G4s

2017-02-05 Thread Frank Nicholas
I’ve had mine apart many times (for memory upgrade, sensors for use in a vehicle, etc. - http://mt.nfshost.com ) Tell me what to look for, and I’ll take as many hi-res pictures as you want. Thanks, Frank > On Feb 4, 2017, at 10:32 PM, Hal Murray wrote: > > Mumble. If it were easier to take a

Re: Timekeeping oddities on MacMini G4s

2017-02-04 Thread Hal Murray
Thanks. f...@fwright.net said: > That seems inconsistent with the following comment in arch/powerpc/kernel/ > time.c: > * TODO (not necessarily in this file): > * - improve precision and reproducibility of timebase frequency > * measurement at boot time. I didn't see any calibration code, bu

Re: Timekeeping oddities on MacMini G4s

2017-02-04 Thread Fred Wright
On Tue, 31 Jan 2017, Hal Murray wrote: > b...@kernel.crashing.org said: > > Right, we just use the value provided by Open Firmware. Any chance you can That seems inconsistent with the following comment in arch/powerpc/kernel/time.c: * TODO (not necessarily in this file): * - improve precision

Timekeeping oddities on MacMini G4s

2017-02-03 Thread Jochen Rollwagen
Hello There, here's the output on a mac mini g4 1,5GhZ running OS X 10.4 which hadn't booted that OS in ages :-) jochen-rollwagens-mac-mini:~ jochenrollwagen$ ntpq -c "rv 0 frequency" localhost status=c011 sync_alarm, sync_unspec, 1 event, event_restart, frequency=0.000 If there's anything

Re: Timekeeping oddities on MacMini G4s

2017-01-31 Thread Hal Murray
b...@kernel.crashing.org said: > Ok, I do have one though somewhere with OS X on it. If you give me > instructions on how to test (I know near to nothing about ntpsec), I should > be able to compile and run it. I'm assuming you are already running the normal ntpd from ntp classic, or Apple's ver

Re: Timekeeping oddities on MacMini G4s

2017-01-31 Thread Hal Murray
Thanks. b...@kernel.crashing.org said: > Right, we just use the value provided by Open Firmware. Any chance you can > try with MacOS X ? Not easily. I'm using boxes from eBay. They didn't come with CDs and I've already installed other software. > From the value in the properties you showed

Re: Timekeeping oddities on MacMini G4s

2017-01-31 Thread Benjamin Herrenschmidt
On Tue, 2017-01-31 at 22:59 -0800, Hal Murray wrote: > Thanks. > > b...@kernel.crashing.org said: > > Right, we just use the value provided by Open Firmware. Any chance you can > > try with MacOS X ?  > > Not easily.  I'm using boxes from eBay.  They didn't come with CDs and I've  > already insta

Re: Timekeeping oddities on MacMini G4s

2017-01-31 Thread Benjamin Herrenschmidt
On Wed, 2017-02-01 at 14:10 +1100, Hugh Blemings wrote: > Hi, > > I've recently been lurking on the ntpsec project mailing list. > > One of the developers (Hal Murray, CCd) has been doing some tests of the  > codebase using FreeBSD and Debian on a G4 based Mac Mini - this largely  > motivated by

Timekeeping oddities on MacMini G4s

2017-01-31 Thread Hugh Blemings
Hi, I've recently been lurking on the ntpsec project mailing list. One of the developers (Hal Murray, CCd) has been doing some tests of the codebase using FreeBSD and Debian on a G4 based Mac Mini - this largely motivated by checking all is well on a big-endian system. Hal has identified wha