Subject: Re: HEADS UP: timecounters (branch simonb-timecounters) merged into
To: Frank Kardel <kardel@netbsd.org>
From: Vincent <10.50@free.fr>
List: tech-kern
Date: 06/10/2006 21:18:15
Frank Kardel a écrit :

> I re-ordered the initialization sequence for timecounters. Now
> real counters should be available during autoconfig. Check
> whether this fixes the auich problem.

Aha, it's worse! ;)

dmesg | grep auich0

(old kernel)

auich0 at pci0 dev 31 function 5: i82801CA (ICH3) AC-97 Audio
auich0: interrupting at irq 5
auich0: ac97: Analog Devices AD1886A codec; headphone, Analog Devices 
Phat Stereo
auich0: ac97: ext id 5<SPDIF,VRA>
auich0: measured ac97 link rate at 17422 Hz, will use 48000 Hz
audio0 at auich0: full duplex, mmap, independent

(new kernel)

auich0 at pci0 dev 31 function 5: i82801CA (ICH3) AC-97 Audio
auich0: interrupting at irq 5
auich0: ac97: Analog Devices AD1886A codec; headphone, Analog Devices 
Phat Stereo
auich0: ac97: ext id 5<SPDIF,VRA>
auich0: measured ac97 link rate at 361173 Hz, will use 361000 Hz
audio0 at auich0: full duplex, mmap, independent

This time it is *way* too fast. I have lost the sound. When I try to 
read a DVD I have a very bass noise which is simply the normal sound 
whose frequency is divided by 4.

Vincent

BTW, here is the full dmesg output:

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 
2005, 2006
     The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.

NetBSD 3.99.21 (PRESARIO) #2: Sat Jun 10 20:39:29 CEST 2006
         vincent@vincent:/PRESARIO
total memory = 767 MB
avail memory = 750 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 0xf0000
PCI BIOS rev. 2.1 found at 0xf031f
pcibios: config mechanism [1][x], special cycles [x][x], last bus 3
PCI IRQ Routing Table rev. 1.0 found at 0xf0840, size 176 bytes (9 entries)
pcibios_pir_init: bad IRQ table checksum
PCI IRQ Routing Table rev. 1.0 found at 0xf99f0, size 176 bytes (9 entries)
PCI Interrupt Router at 000:31:0 (vendor 0x8086 product 0x248c compatible)
PCI Exclusive IRQs: 5 10 11
mainbus0 (root)
pci_addr_fixup: 000:31:1 0x8086 0x248a new address 0x00005800
pci_addr_fixup: 000:31:1 0x8086 0x248a new address 0x00005808
pci_addr_fixup: 000:31:1 0x8086 0x248a new address 0x00005810
pci_addr_fixup: 000:31:1 0x8086 0x248a new address 0x0000580c
pci_addr_fixup: 000:31:1 0x8086 0x248a new address 0x30000000
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Mobile Pentium 4 (686-class), 1395.54 MHz, id 0xf24
cpu0: features 3febf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features 3febf9ff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features 3febf9ff<FXSR,SSE,SSE2,SS,HTT,TM>
cpu0: "Intel(R) Pentium(R) 4 Mobile CPU 1.40GHz"
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 <COMPAQ,CPQ004A ,30040320>, AslId <CPQ ,00000001>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
PNP0C01 at acpi0 not configured
PNP0A03 at acpi0 not configured
acpiec0 at acpi0 (PNP0C09): ACPI Embedded Controller
acpiec0: io 0x62,0x66
PNP0A06 at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
fdc1 at acpi0 (PNP0700)
fdc1: io 0x3f0-0x3f5,0x3f7 irq 6 drq 2
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
npx0 at acpi0 (PNP0C04)
npx0: io 0xf0-0xff irq 13
npx0: using exception 16
attimer0 at acpi0 (PNP0100): AT Timer
attimer0: io 0x40-0x43 irq 0
PNP0200 at acpi0 not configured
pcppi0 at acpi0 (PNP0800)
pcppi0: io 0x61
midi0 at pcppi0: PC speaker
spkr0 at pcppi0
sysbeep0 at pcppi0
PNP0B00 at acpi0 not configured
pckbc1 at acpi0 (PNP0303): kbd port
pckbc1: io 0x60,0x64 irq 1
pckbc2 at acpi0 (SYN0100): aux port
pckbc2: irq 12
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
PNP0000 at acpi0 not configured
PNP0C02 at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
PNP0C02 at acpi0 not configured
PNP0C0A at acpi0 not configured
PNP0C0A at acpi0 not configured
acpiacad0 at acpi0 (ACPI0003): ACPI AC Adapter
acpibut0 at acpi0 (PNP0C0C): ACPI Power Button
acpibut1 at acpi0 (PNP0C0E): ACPI Sleep Button
acpilid0 at acpi0 (PNP0C0D): ACPI Lid Switch
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
PNP0C0B at acpi0 not configured
PNP0C0B at acpi0 not configured
PNP0C0B at acpi0 not configured
PNP0C0B at acpi0 not configured
acpitz0 at acpi0: ACPI Thermal Zone
acpitz0: unable to get polling interval; using default of 30.0s
acpitz0: active cooling level 0: 70.0C
acpitz0: active cooling level 1: 65.0C
acpitz0: active cooling level 2: 60.0C
acpitz0: active cooling level 3: 40.0C
acpitz0: critical 93.0C passive 58.0C
acpitz1 at acpi0: ACPI Thermal Zone
acpitz1: unable to get polling interval; using default of 30.0s
acpitz1: critical 93.0C
acpitz2 at acpi0: ACPI Thermal Zone
acpitz2: unable to get polling interval; using default of 30.0s
acpitz2: critical 93.0C passive 16.0C
pcppi0: attached to attimer0
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc1 (aux slot)
pms0: Synaptics touchpad version 5.9
pms0: Palm detect, Multi-finger
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
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: vendor 0x8086 product 0x1a30 (rev. 0x04)
agp0 at pchb0: aperture at 0xa0000000, size 0x10000000
ppb0 at pci0 dev 1 function 0: vendor 0x8086 product 0x1a31 (rev. 0x04)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga0 at pci1 dev 0 function 0: vendor 0x1002 product 0x4c57 (rev. 0x00)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
wsdisplay0: screen 1-2 added (80x25, vt100 emulation)
ppb1 at pci0 dev 30 function 0: vendor 0x8086 product 0x2448 (rev. 0x42)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
vendor 0x14f1 product 0x2f00 (miscellaneous communications, revision 
0x01) at pci2 dev 4 function 0 not configured
cbb0 at pci2 dev 6 function 0: vendor 0x104c product 0xac50 (rev. 0x02)
fxp0 at pci2 dev 8 function 0: Intel PRO/100 VE Network Controller, rev 66
fxp0: interrupting at irq 10
fxp0: Ethernet address 00:08:02:62:52:7b
inphy0 at fxp0 phy 1: i82562ET 10/100 media interface, rev. 0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ohci0 at pci2 dev 14 function 0: vendor 0x1033 product 0x0035 (rev. 0x41)
ohci0: interrupting at irq 10
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci2 dev 14 function 1: vendor 0x1033 product 0x0035 (rev. 0x41)
ohci1: interrupting at irq 10
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ehci0 at pci2 dev 14 function 2: vendor 0x1033 product 0x00e0 (rev. 0x02)
vendor 0x1033 product 0x00e0 -> patching BAR
ehci0: interrupting at irq 10
ehci0: BIOS has given up ownership
ehci0: EHCI version 0.95
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: vendor 0x1033 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 5 ports with 5 removable, self powered
cbb0: interrupting at irq 11
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3
pcmcia0 at cardslot0
ichlpcib0 at pci0 dev 31 function 0
ichlpcib0: vendor 0x8086 product 0x248c (rev. 0x02)
ichlpcib0: TCO (watchdog) timer configured.
ichlpcib0: SpeedStep enabled
piixide0 at pci0 dev 31 function 1
piixide0: Intel 82801CA IDE Controller (ICH3) (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
auich0 at pci0 dev 31 function 5: i82801CA (ICH3) AC-97 Audio
auich0: interrupting at irq 5
auich0: ac97: Analog Devices AD1886A codec; headphone, Analog Devices 
Phat Stereo
auich0: ac97: ext id 5<SPDIF,VRA>
isa0 at ichlpcib0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
isapnp0: no ISA Plug 'n Play devices found
timecounter: Timecounter "TSC" frequency 1395548520 Hz quality 800
timecounter: selected timecounter "TSC" frequency 1395548520 Hz quality 800
WARNING: Callback scheduled before sysmon task queue thread present.
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
auich0: measured ac97 link rate at 361173 Hz, will use 361000 Hz
audio0 at auich0: full duplex, mmap, independent
ath0 at cardbus0 function 0
ath0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ath0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 
24Mbps 36Mbps 48Mbps 54Mbps
ath0: mac 5.9 phy 4.3 radio 4.6
uhidev0 at uhub0 port 2 configuration 1 interface 0
uhidev0: Logitech USB Mouse, rev 1.10/4.10, addr 2, iclass 3/1
ums0 at uhidev0: 3 buttons and Z dir.
wsmouse1 at ums0 mux 0
wd0 at atabus0 drive 0: <HTS726060M9AT00>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 57231 MB, 116280 cyl, 16 head, 63 sec, 512 bytes/sect x 117210240 
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)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <SD-R2102, 52BF811837, 1A16> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
cd0(piixide0:1:0): using PIO mode 4, DMA mode 2 (using DMA)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
ath0: interrupting at 11