Subject: Re: Need help with timecounters/todr
To: Garrett D'Amore <garrett_damore@tadpole.com>
From: Tobias Nygren <tnn+nbsd@nygren.pp.se>
List: port-alpha
Date: 09/16/2006 14:06:04
Garrett D'Amore wrote:
> I could use some help with todr and timecounters on alpha.  Any intrepid
> souls want to help tackle it?  SMP expertise would be helpful.
>
>   
I actually did a semi-working implementation a couple of weeks
ago, before the generic todr changes.
While the old patch works in uniprocessor mode the algorithm
wasn't very well thought-through. I've made some major
improvements since then. I will clean up the new patch and
post it if someone wants to try it.

I think for some alpha machines that provide an i8254 timer it
would be nice to be able to use it. But for this the i8254 code
needs to be made MI. Maybe this is already work-in-progress?

SMP box running my local pcc timecounter patches:

ntpq> rv
assID=0 status=06f4 leap_none, sync_ntp, 15 events, event_peer/strat_chg,
version="ntpd 4.2.2p2-o Fri Aug 25 15:11:34 GMT 2006 (1)",
processor="alpha", system="NetBSD/4.99.1", leap=00, stratum=2,
precision=-19, rootdelay=6.355, rootdispersion=47.683, peer=63146,
refid=192.36.144.23,
reftime=c8b66191.defe12f1  Sat, Sep 16 2006 13:42:09.871, poll=10,
clock=c8b664e5.160989b9  Sat, Sep 16 2006 13:56:21.086, state=4,
offset=11.155, frequency=11.421, jitter=4.069, noise=3.572,
stability=0.610, tai=0

-Tobias