Subject: Re: Need help with timecounters/todr
To: None <port-alpha@NetBSD.org>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-alpha
Date: 07/21/2007 21:52:51
I wrote:
> > I've updated my todr(9) and timecounter(9) patch for alpha
> > based on your MI kern_cctr.c patch (attached):
> >
> > - use todr(9) API with MI mc146818(4) driver and remove homegrown
> > todr stuff from MD alpha/clock.c and alpha/mcclock.c
> > - also remove cc_microtime stuff from MD code
> > - add ci_pcc_freq member in struct cpu_info for cpu_frequency(), and
> > calibrate it with mc146818 interval clock in mcclock attachment
> > - tsc.c is split into MI kern_cctr.c and MD tsc.c as kardel's patch
> > (with some cosmetics)
> > - call cc_init() in cpu_initclocks(9) because all alpha cpus have
> > a pcc counter
> > - prepare new <sys/ctrr.h> which is just copied from
> > __HAVE_TIMECOUNTER part of <sys/cc_microtime.h> so that
> > we can migrate alpha and x86 to kern_cctr.c independently
> > (the attached patch also contains changes for i386 and amd64)
> >
> > Tested on AlphaPC164 366MHz and at least todr(9) and ntpd(8)
> > work fine. I'll also test it on DEC3000/300 and Duron PC,
> > but I don't have any SMP machines.
> >
> >
> > Any comments and tests are appreciated.
> > ---
> > Izumi Tsutsui
>
> Hmm, maybe my patch is so large and seems caught by a filter.
> I've also put it here:
> http://www.ceres.dti.ne.jp/~tsutsui/netbsd/alpha-cctr-todr-20070707.diff
I've committed MI kern/kern_cctr.c and alpha MD part of these changes.
(x86 part is not yet)
If you see any problem, please report it here or via send-pr(1) as usual.
---
Izumi Tsutsui