Subject: Re: HEADS UP: timecounters (branch simonb-timecounters) merged into -current
To: None <current-users@netbsd.org, tech-kern@netbsd.org>
From: KAMADA Ken'ichi <kamada@nanohz.org>
List: tech-kern
Date: 06/09/2006 18:07:43
At Thu, 08 Jun 2006 01:10:26 +0200,
Frank Kardel <kardel@netbsd.org> wrote:
> 
> Please test NetBSD-current so we can smoke out bugs early.

On my laptop PC, the TSC counter counts only 6 seconds
in 10 real-seconds.
I think this is related to Enhanced SpeedStep, as
the PC is running with machdep.est.frequency.current = 600,
while machdep.est.frequency.current = 1000 at the boot time.

When I use another counter, the clock doesn't lose time.
# e.g., sysctl -w kern.timecounter.hardware=i8254



NetBSD 3.99.21 (MITANA) #109: Fri Jun  9 11:24:46 JST 2006
	ken@mitana.nanohz.org:/usr/src/sys/arch/i386/compile/MITANA
total memory = 1270 MB
avail memory = 1241 MB
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
...
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium M (Banias) (686-class), 996.82 MHz, id 0x695
cpu0: features a7e9fbbf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC,SEP,MTRR>
cpu0: features a7e9fbbf<PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX>
cpu0: features a7e9fbbf<FXSR,SSE,SSE2,TM,SBF>
cpu0: features2 180<EST,TM2>
cpu0: "Intel(R) Pentium(R) M processor 1000MHz"
cpu0: I-cache 32 KB 64B/line 8-way, D-cache 32 KB 64B/line 8-way
cpu0: using thermal monitor 2
cpu0: Enhanced SpeedStep (1004 mV) 1000 MHz
cpu0: Enhanced SpeedStep frequencies available (MHz): 1000 900 800 600
...
apm0 at mainbus0: Advanced Power Management BIOS
apm0: Power Management spec V1.2
timecounter: Timecounter "TSC" frequency 996791680 Hz quality 800
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: selected timecounter "TSC" frequency 996791680 Hz quality 800


regards,
-- 
KAMADA Ken'ichi <kamada@nanohz.org>