Subject: GENERIC.MP with Intel P4 HT
To: None <current-users@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: current-users
Date: 10/03/2003 14:30:45
Hi!

How can I detect the "second" CPU on my 2.8GHz Intel P4 with HT?
Hyperthreading is enabled in the BIOS...

Martti



NetBSD 1.6ZC (GENERIC.MPDEBUG) #0: Fri Oct  3 14:46:19 EET 2003
root@localhost:/usr/src/sys/arch/i386/compile/GENERIC.MPDEBUG
total memory = 1022 MB
avail memory = 930 MB
using 6144 buffers containing 52468 KB of memory
BIOS32 rev. 0 found at 0xf0010
mainbus0 (root)
mainbus0: scanning 0x9fc00 to 0x9fff0 for MP signature
mainbus0: scanning 0x9f800 to 0x9fbf0 for MP signature
mainbus0: scanning 0xf0000 to 0xffff0 for MP signature
mainbus0: MP floating pointer found in bios at 0xff780
mainbus0: MP config table at 0xf11f0, 304 bytes long
mainbus0: Intel MP Specification (Version 1.4) (ASUSTek  P4C800      )
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel Pentium 4 (686-class), 2798.77 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: 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: calibrating local timer
cpu0: apic clock running at 199 MHz
cpu0: 16 page colors
cpu0: kstack at 0xe4271000 for 16384 bytes
cpu0: idle pcb at 0xe4271000, idle sp at 0xe4274f98
mpbios: bus 0 is type PCI
mpbios: bus 1 is type PCI
mpbios: bus 2 is type PCI
mpbios: bus 3 is type ISA
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, virtual wire mode, version 20, 24 pins
ioapic0: int0 attached to ExtINT (type 3<type=3=ExtINT> flags 0<pol=0,trig=0>)
ioapic0: int1 attached to isa0 irq 1 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int2 attached to isa0 irq 0 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int3 attached to isa0 irq 3 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int4 attached to isa0 irq 4 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int6 attached to isa0 irq 6 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int7 attached to isa0 irq 7 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int8 attached to isa0 irq 8 (type 0<type=0> flags 5<pol=1=Act 
Hi,trig=1=Edge>)
ioapic0: int9 attached to isa0 irq 9 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int12 attached to isa0 irq 12 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int13 attached to isa0 irq 13 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int14 attached to isa0 irq 14 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int15 attached to isa0 irq 15 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int18 attached to pci0 device 31 INT_A (type 0<type=0> flags 
f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int17 attached to pci0 device 31 INT_B (type 0<type=0> flags 
f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int16 attached to pci0 device 29 INT_A (type 0<type=0> flags 
f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int19 attached to pci0 device 29 INT_B (type 0<type=0> flags 
f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int18 attached to pci0 device 29 INT_C (type 0<type=0> flags 
f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int23 attached to pci0 device 29 INT_D (type 0<type=0> flags 
f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int20 attached to pci2 device 12 INT_A (type 0<type=0> flags 
f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int22 attached to pci2 device 5 INT_A (type 0<type=0> flags 
f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int20 attached to pci2 device 3 INT_A (type 0<type=0> flags 
f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int23 attached to pci2 device 4 INT_A (type 0<type=0> flags 
f<pol=3=Act Lo,trig=3=Level>)
local apic: int0 attached to ExtINT (type 3<type=3=ExtINT> flags 
0<pol=0,trig=0>)
local apic: int1 attached to NMI (type 1<type=1=NMI> flags 0<pol=0,trig=0>)
mainbus0: MP WARNING: 124 bytes of extended entries not examined
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 82875P Host (rev. 0x02)
pchb0: random number generator enabled
agp0 at pchb0: aperture at 0xf4000000, size 0x4000000
ppb0 at pci0 dev 1 function 0: Intel 82875P AGP (rev. 0x02)
pci1 at ppb0 bus 1
pci1: memory space enabled
uhci0 at pci0 dev 29 function 0: Intel 82801EB/ER USB UHCI Controller #0 (rev. 
0x02)
uhci0: interrupting at ioapic0 pin 16 (irq 11)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1: Intel 82801EB/ER USB UHCI Controller #1 (rev. 
0x02)
uhci1: interrupting at ioapic0 pin 19 (irq 5)
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2: Intel 82801EB/ER USB UHCI Controller #2 (rev. 
0x02)
uhci2: interrupting at ioapic0 pin 18 (irq 5)
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 29 function 3: Intel 82801EB/ER USB UHCI Controller #3 (rev. 
0x02)
uhci3: interrupting at ioapic0 pin 16 (irq 11)
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
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-to-PCI Bridge (rev. 0xc2)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
VIA Technologies VT3606 OHCI IEEE 1394 Controller (Firewire serial bus, 
interface 0x10, revision 0x80) at pci2 dev 3 function 0 not configured
Promise Technology product 0x3373 (RAID mass storage, revision 0x02) at pci2 
dev 4 function 0 not configured
3Com 3c940 Gigabit Ethernet (ethernet network, revision 0x12) at pci2 dev 5 
function 0 not configured
vga1 at pci2 dev 9 function 0: ATI Technologies Mach64 VT (rev. 0x40)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
ex0 at pci2 dev 12 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt (rev. 
0x74)
ex0: interrupting at ioapic0 pin 20 (irq 10)
ex0: MAC address 00:04:76:8d:f0:cf
bmtphy0 at ex0 phy 24: Broadcom 3c905C internal PHY, rev. 6
bmtphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcib0 at pci0 dev 31 function 0
pcib0: Intel 82801EB LPC Interface Bridge (rev. 0x02)
pciide0 at pci0 dev 31 function 1
pciide0: Intel 82801EB IDE Controller (ICH5) (rev. 0x02)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
pciide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
pciide0: secondary channel wired to compatibility mode
pciide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
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 ioapic0 pin 17 (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
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsprobe: reset error 5
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
cpu0: prelint0 700<vector=0,delmode=7,dest=0> 0<target=0>
cpu0: prelint1 400<vector=0,delmode=4,dest=0> 0<target=0>
cpu0: timer0 300c0<vector=c0,delmode=0,masked,dest=0> 0<target=0>
cpu0: pcint0 10000<vector=0,delmode=0,masked,dest=0> 0<target=0>
cpu0: lint0 10700<vector=0,delmode=7,masked,dest=0> 0<target=0>
cpu0: lint1 400<vector=0,delmode=4,dest=0> 0<target=0>
cpu0: err0 1000f<vector=f,delmode=0,masked,dest=0> 0<target=0>
ioapic0: enabling
ioapic0: int1 190<vector=90,delmode=1,dest=0> 0<target=0>
ioapic0: int3 1d1<vector=d1,delmode=1,dest=0> 0<target=0>
ioapic0: int4 1d0<vector=d0,delmode=1,dest=0> 0<target=0>
ioapic0: int6 165<vector=65,delmode=1,dest=0> 0<target=0>
ioapic0: int7 191<vector=91,delmode=1,dest=0> 0<target=0>
ioapic0: int14 163<vector=63,delmode=1,dest=0> 0<target=0>
ioapic0: int15 164<vector=64,delmode=1,dest=0> 0<target=0>
ioapic0: int16 a160<vector=60,delmode=1,actlo,level,dest=0> 0<target=0>
ioapic0: int17 a1b0<vector=b0,delmode=1,actlo,level,dest=0> 0<target=0>
ioapic0: int18 a162<vector=62,delmode=1,actlo,level,dest=0> 0<target=0>
ioapic0: int19 a161<vector=61,delmode=1,actlo,level,dest=0> 0<target=0>
ioapic0: int20 a170<vector=70,delmode=1,actlo,level,dest=0> 0<target=0>
atapibus0 at pciide0 channel 0: 2 targets
cd0 at atapibus0 drive 0: <CREATIVE CD5233E, MT1199 A Firmware, C2.05> cdrom 
removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
wd0 at pciide0 channel 1 drive 0: <Maxtor 4D080H4>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 78167 MB, 158816 cyl, 16 head, 63 sec, 512 bytes/sect x 160086528 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA 
data transfers)
auich0: measured ac97 link rate at 48000 Hz
audio0 at auich0: full duplex, mmap, independent
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
raidattach: Asked for 8 units
Kernelized RAIDframe activated
Searching for RAID components...
boot device: wd0
root on wd0a dumps on wd0b