Subject: Re: HEADS UP: timecounters (branch simonb-timecounters) merged into
To: None <current-users@netbsd.org>
From: Geoff Wing <gcw@pobox.com>
List: current-users
Date: 06/10/2006 11:22:53
On Saturday 2006-06-10 11:03 +1000, Frank Kardel output:
:Vincent wrote:
:> Normally, it should be around 47 to 48 kHz, as it was before.
:I re-ordered the initialization sequence for timecounters. Now
:real counters should be available during autoconfig. Check
:whether this fixes the auich problem.

Not for me.  It did approximately double it though.
Normally measures on this machine at 48002.

Diff pre/post re-order gives:

--- f-dmesg.20060609  2006-06-09 14:58:10.000000000 +1000
+++ d   2006-06-10 11:11:32.000000000 +1000
@@ -1,8 +1,10 @@
-NetBSD 3.99.21 (F) #0: Fri Jun  9 14:44:00 EST 2006
+NetBSD 3.99.21 (F) #0: Sat Jun 10 11:08:28 EST 2006
        gcw@g.primenet.com.au:/usr/netbsd/src/sys/arch/i386/compile/F
 total memory = 1022 MB
 avail memory = 1002 MB
+timecounter: Timecounters tick every 10.000 msec
 timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
+timecounter: selected timecounter "i8254" frequency 1193182 Hz quality 100
 BIOS32 rev. 0 found at 0xf0010
 PCI BIOS rev. 2.1 found at 0xf0031
 pcibios: config mechanism [1][x], special cycles [x][x], last bus 2
@@ -114,11 +116,10 @@
 auich0: ac97: Analog Devices AD1985 codec; headphone, 20 bit DAC, no 3D stereo
 auich0: ac97: ext id 3c7<AMAP,LDAC,SDAC,CDAC,SPDIF,DRA,VRA>
 isa0 at pcib0
-timecounter: Timecounter "TSC" frequency 2606023600 Hz quality 800
-timecounter: Timecounters tick every 10.000 msec
+timecounter: Timecounter "TSC" frequency 2606028760 Hz quality 800
+timecounter: selected timecounter "TSC" frequency 2606028760 Hz quality 800
 timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
-timecounter: selected timecounter "TSC" frequency 2606023600 Hz quality 800
-auich0: measured ac97 link rate at 13146 Hz, will use 48000 Hz
+auich0: measured ac97 link rate at 26897 Hz, will use 48000 Hz
 audio0 at auich0: full duplex, mmap, independent
 wd0 at atabus0 drive 0: <ST3120026A>
 wd0: drive supports 16-sector PIO transfers, LBA48 addressing


Full dmesg as 2006-04-19

NetBSD 3.99.18 (F) #0: Wed Apr 19 14:31:03 EST 2006
	gcw@g.primenet.com.au:/usr/netbsd/src/sys/arch/i386/compile/F
total memory = 1022 MB
avail memory = 1001 MB
BIOS32 rev. 0 found at 0xf0010
PCI BIOS rev. 2.1 found at 0xf0031
pcibios: config mechanism [1][x], special cycles [x][x], last bus 2
PCI IRQ Routing Table rev. 1.0 found at 0xf50c0, size 256 bytes (14 entries)
PCI Interrupt Router at 000:31:0 (Intel 82801EB LPC Interface Bridge compatible)
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Pentium 4 (686-class), 2606.00 MHz, id 0xf29
cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: features2 4400<CID,xTPR>
cpu0: "Intel(R) Pentium(R) 4 CPU 2.60GHz"
cpu0: I-cache 12K uOp cache 8-way, D-cache 8 KB 64B/line 4-way
cpu0: L2 cache 512 KB 64B/line 8-way
cpu0: ITLB 4K/4M: 64 entries
cpu0: DTLB 4K/4M: 64 entries
cpu0: using thermal monitor 1
cpu0: 16 page colors
acpi0 at mainbus0: Advanced Configuration and Power Interface
acpi0: using Intel ACPI CA subsystem version 20060217
acpi0: X/RSDT: OemId <A M I ,OEMRSDT ,06000423>, AslId <MSFT,00000097>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
PNP0A03 [PCI/PCI-X Host Bridge] at acpi0 not configured
PNP0000 [AT Interrupt Controller] at acpi0 not configured
PNP0200 [AT DMA Controller] at acpi0 not configured
attimer0 at acpi0 (PNP0100): AT Timer
attimer0: io 0x40-0x43 irq 0
PNP0B00 [AT Real-Time Clock] at acpi0 not configured
pckbc0 at acpi0 (PNP0F03): aux port
pckbc0: io 0x60,0x64 irq 12
pcppi0 at acpi0 (PNP0800)
pcppi0: io 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
sysbeep0 at pcppi0
npx0 at acpi0 (PNP0C04)
npx0: io 0xf0-0xff irq 13
npx0: using exception 16
com0 at acpi0 (PNP0501-1)
com0: io 0x3f8-0x3ff irq 4
com0: ns16550a, working fifo
com1 at acpi0 (PNP0501-2)
com1: io 0x2f8-0x2ff irq 3
com1: ns16550a, working fifo
lpt0 at acpi0 (PNP0401-1)
lpt0: io 0x378-0x37f,0x778-0x77b irq 7 drq 3
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configured
PNP0C01 [System Board] at acpi0 not configured
acpibut0 at acpi0 (PNP0C0C-170): ACPI Power Button
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
pcppi0: attached to attimer0
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82865 Host (rev. 0x02)
agp0 at pchb0: aperture at 0xf8000000, size 0x4000000
ppb0 at pci0 dev 1 function 0: Intel 82865 AGP (rev. 0x02)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: NVIDIA GeForce2 GTS (rev. 0xa4)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
Intel 82801EB/ER USB UHCI Controller (USB serial bus, revision 0x02) at pci0 dev 29 function 0 not configured
Intel 82801EB/ER USB UHCI Controller (USB serial bus, revision 0x02) at pci0 dev 29 function 1 not configured
Intel 82801EB/ER USB UHCI Controller (USB serial bus, revision 0x02) at pci0 dev 29 function 2 not configured
Intel 82801EB/ER USB UHCI Controller (USB serial bus, revision 0x02) at pci0 dev 29 function 3 not configured
Intel 82801EB/ER USB EHCI Controller (USB serial bus, interface 0x20, revision 0x02) at pci0 dev 29 function 7 not configured
ppb1 at pci0 dev 30 function 0: Intel 82801BA Hub-PCI Bridge (rev. 0xc2)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
VIA Technologies VT6306 IEEE 1394 Host Controller (Firewire serial bus, interface 0x10, revision 0x80) at pci2 dev 3 function 0 not configured
skc0 at pci2 dev 5 function 0: irq 5
skc0: interrupt moderation is 0 us
skc0: 3Com Gigabit LOM (3C940) rev. (0x1)
sk0 at skc0 port A: Ethernet address 00:0c:6e:d7:a6:d2
makphy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 3
makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ex0 at pci2 dev 12 function 0: 3Com 3c905B-TX 10/100 Ethernet (rev. 0x30)
ex0: interrupting at irq 11
ex0: MAC address 00:10:5a:6b:e4:fc
exphy0 at ex0 phy 24: 3Com internal media interface
exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcib0 at pci0 dev 31 function 0
pcib0: Intel 82801EB LPC Interface Bridge (rev. 0x02)
piixide0 at pci0 dev 31 function 1
piixide0: Intel 82801EB IDE Controller (ICH5) (rev. 0x02)
piixide0: bus-master DMA support present
piixide0: primary channel configured to compatibility mode
piixide0: primary channel interrupting at irq 14
atabus0 at piixide0 channel 0
piixide0: secondary channel configured to compatibility mode
piixide0: secondary channel interrupting at irq 15
atabus1 at piixide0 channel 1
Intel 82801EB/ER SMBus Controller (SMBus serial bus, revision 0x02) at pci0 dev 31 function 3 not configured
auich0 at pci0 dev 31 function 5: i82801EB (ICH5) AC-97 Audio
auich0: interrupting at irq 11
auich0: ac97: Analog Devices AD1985 codec; headphone, 20 bit DAC, no 3D stereo
auich0: ac97: ext id 3c7<AMAP,LDAC,SDAC,CDAC,SPDIF,DRA,VRA>
isa0 at pcib0
auich0: measured ac97 link rate at 48002 Hz, will use 48000 Hz
audio0 at auich0: full duplex, mmap, independent
wd0 at atabus0 drive 0: <ST3120026A>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 111 GB, 232581 cyl, 16 head, 63 sec, 512 bytes/sect x 234441648 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
boot device: wd0
root on wd0a dumps on wd0b
sk0: link state changed to DOWN
skc0: interrupt moderation is 100 us
ex0: link state changed to DOWN
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
ex0: link state changed to UP
Accounting started