Subject: Re: Timecounter on sun4c
To: Frank Kardel <kardel@netbsd.org>
From: Fanch <fanch@kekpar.net>
List: current-users
Date: 08/24/2006 10:29:40
>> I have to downgrade kern.timecounter.hardware (cool feature) to
>> clockinterrupt to get a correct clock, timer-counter seems to drift
>> over 800000 ppm (no typo !) with or without ntpd.
>
> As I could only test on sun4m and sun4u there is a distinct possibility
> that other variants may still have problems. Thus thanks for you 
> observation.
> Maybe I find an SS2 in the cellar.
>
> But could you please try the attached patch ?
> I think I saw/found the same inconsistency (passing the wrong timer 
> registers
> -stat instead of clock counter- to the setup code) as in other parts 
> of the
> sparc-cpu specific code.
Good guess, your patch fully corrects the problem. I'm somewhat
puzzled : I have read timer_sun4.c ten times without noticing this.

Thanks for your prompt answer (and, generaly speaking, for
timercounters code).

Fanch