Subject: Re: kern/30526: Nothing uses the second processor anymore.
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Christos Zoulas <christos@zoulas.com>
List: netbsd-bugs
Date: 06/15/2005 03:20:02
The following reply was made to PR kern/30526; it has been noted by GNATS.

From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@netbsd.org, kern-bug-people@netbsd.org,
	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Cc: 
Subject: Re: kern/30526: Nothing uses the second processor anymore.
Date: Tue, 14 Jun 2005 23:19:34 -0400

 On Jun 14, 10:43pm, christos@zoulas.com (christos@zoulas.com) wrote:
 -- Subject: kern/30526: Nothing uses the second processor anymore.
 
 The problem is ACPI. Here's the MPBIOS kernel that works:
 
 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
     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.6 (TWOSIGMA) #8: Tue Jun 14 22:03:06 EDT 2005
 	christos@rebar.astron.com:/usr/src/sys/arch/i386/compile/TWOSIGMA
 total memory = 3071 MB
 avail memory = 3010 MB
 BIOS32 rev. 0 found at 0xffe90
 mainbus0 (root)
 mainbus0: Intel MP Specification (Version 1.4) (DELL     PE 011B     )
 cpu0 at mainbus0: apid 1 (boot processor)
 cpu0: Intel Pentium III (686-class), 1263.53 MHz, id 0x6b1
 cpu0: features 383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
 cpu0: features 383fbff<PGE,MCA,CMOV,PAT,PSE36,MMX>
 cpu0: features 383fbff<FXSR,SSE>
 cpu0: "Intel(R) Pentium(R) III CPU family      1266MHz"
 cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
 cpu0: L2 cache 512 KB 32B/line 8-way
 cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
 cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
 cpu0: calibrating local timer
 cpu0: apic clock running at 132 MHz
 cpu0: 16 page colors
 cpu1 at mainbus0: apid 0 (application processor)
 cpu1: starting
 cpu1: Intel Pentium III (686-class), 1263.44 MHz, id 0x6b1
 cpu1: features 383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
 cpu1: features 383fbff<PGE,MCA,CMOV,PAT,PSE36,MMX>
 cpu1: features 383fbff<FXSR,SSE>
 cpu1: "Intel(R) Pentium(R) III CPU family      1266MHz"
 cpu1: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
 cpu1: L2 cache 512 KB 32B/line 8-way
 cpu1: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
 cpu1: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
 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, version 11, 16 pins
 ioapic0: misconfigured as apic 0
 ioapic0: remapped to apic 2
 ioapic1 at mainbus0 apid 3 (I/O APIC)
 ioapic1: pa 0xfec01000, version 11, 16 pins
 ioapic1: misconfigured as apic 0
 ioapic1: remapped to apic 3
 pnpbios0 at mainbus0: nodes 15, max len 117
 com4 at pnpbios0 index 2 (PNP0501)
 com4: io 3f8-3ff, irq 4
 com4: ns16550a, working fifo
 fdc0 at pnpbios0 index 5 (PNP0700)
 fdc0: io 3f0-3f5, irq 6, DMA 2
 fdc0: ctl io 3f7 didn't probe. Forced attach
 pckbc1 at pnpbios0 index 6 (PNP0F13): aux port
 pckbc2 at pnpbios0 index 13 (PNP0303): kbd port
 npx1 at pnpbios0 index 16 (PNP0C04)
 npx1: io f0-ff, irq 13
 npx1: using exception 16
 pckbd0 at pckbc1 (kbd slot)
 pckbc1: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard
 pms0 at pckbc1 (aux slot)
 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: ServerWorks CNB20-HE PCI bridge (rev. 0x23)
 pchb1 at pci0 dev 0 function 1
 pchb1: ServerWorks CNB20-HE PCI bridge (rev. 0x01)
 pchb2 at pci0 dev 0 function 2
 pchb2: ServerWorks CNB30-LE PCI bridge (rev. 0x01)
 pci1 at pchb2 bus 1
 pci1: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 wm0 at pci1 dev 2 function 0: Intel i82544EI 1000BASE-T Ethernet, rev. 2
 wm0: interrupting at ioapic1 pin 1 (irq 7)
 wm0: 64-bit 66MHz PCI bus
 wm0: 64 word (6 address bits) MicroWire EEPROM
 wm0: Ethernet address 00:06:5b:0f:4c:77
 makphy0 at wm0 phy 1: Marvell 88E1000 Gigabit PHY, rev. 0
 makphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
 wm1 at pci1 dev 4 function 0: Intel i82544EI 1000BASE-T Ethernet, rev. 2
 wm1: interrupting at ioapic1 pin 0 (irq 5)
 wm1: 64-bit 66MHz PCI bus
 wm1: 64 word (6 address bits) MicroWire EEPROM
 wm1: Ethernet address 00:06:5b:0f:4c:78
 makphy1 at wm1 phy 1: Marvell 88E1000 Gigabit PHY, rev. 0
 makphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
 ahc0 at pci1 dev 6 function 0: Adaptec aic7899 Ultra160 SCSI adapter
 ahc0: interrupting at ioapic1 pin 2 (irq 3)
 ahc0: aic7899: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs
 scsibus0 at ahc0: 16 targets, 8 luns per target
 ahc1 at pci1 dev 6 function 1: Adaptec aic7899 Ultra160 SCSI adapter
 ahc1: interrupting at ioapic1 pin 3 (irq 7)
 ahc1: aic7899: Ultra160 Wide Channel B, SCSI Id=7, 32/253 SCBs
 scsibus1 at ahc1: 16 targets, 8 luns per target
 pchb3 at pci0 dev 0 function 3
 pchb3: ServerWorks CNB30-LE PCI bridge (rev. 0x01)
 pci2 at pchb3 bus 2
 pci2: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 vga0 at pci0 dev 12 function 0: ATI Technologies Rage XL (rev. 0x27)
 wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
 wsmux1: connecting to wsdisplay0
 pchb4 at pci0 dev 15 function 0
 pchb4: ServerWorks CSB5 southbridge (rev. 0x93)
 rccide0 at pci0 dev 15 function 1
 rccide0: ServerWorks CSB5 IDE Controller (rev. 0x93)
 rccide0: bus-master DMA support present
 rccide0: primary channel configured to compatibility mode
 rccide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
 atabus0 at rccide0 channel 0
 rccide0: secondary channel configured to compatibility mode
 rccide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
 atabus1 at rccide0 channel 1
 ohci0 at pci0 dev 15 function 2: ServerWorks OSB4/CSB5 USB Host Controller (rev. 0x05)
 ohci0: interrupting at ioapic0 pin 11 (irq 11)
 ohci0: OHCI version 1.0, legacy support
 usb0 at ohci0: USB revision 1.0
 uhub0 at usb0
 uhub0: ServerWorks product 0x0000, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 4 ports with 4 removable, self powered
 pcib0 at pci0 dev 15 function 3
 pcib0: ServerWorks CSB5 ISA/LPC bridge (rev. 0x00)
 isa0 at pcib0
 attimer0 at isa0 port 0x40-0x43: AT Timer
 pcppi0 at isa0 port 0x61
 midi0 at pcppi0: PC speaker
 spkr0 at pcppi0
 sysbeep0 at pcppi0
 pcppi0: attached to attimer0
 ioapic0: enabling
 ioapic1: enabling
 fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
 raidattach: Asked for 8 units
 Kernelized RAIDframe activated
 IPsec: Initialized Security Association Processing.
 scsibus0: waiting 2 seconds for devices to settle...
 scsibus1: waiting 2 seconds for devices to settle...
 sd0 at scsibus0 target 0 lun 0: <HITACHI, DK32DJ-72MC, D4D4> disk fixed
 sd0: 70007 MB, 26866 cyl, 10 head, 533 sec, 512 bytes/sect x 143374650 sectors
 sd0: sync (12.50ns offset 100), 16-bit (160.000MB/s) transfers, tagged queueing
 sd1 at scsibus0 target 1 lun 0: <HITACHI, DK32DJ-72MC, D4D4> disk fixed
 sd1: 70007 MB, 26866 cyl, 10 head, 533 sec, 512 bytes/sect x 143374650 sectors
 sd1: sync (12.50ns offset 100), 16-bit (160.000MB/s) transfers, tagged queueing
 sd2 at scsibus0 target 2 lun 0: <HITACHI, DK32DJ-72MC, D4D4> disk fixed
 sd2: 70007 MB, 26866 cyl, 10 head, 533 sec, 512 bytes/sect x 143374650 sectors
 sd2: sync (12.50ns offset 100), 16-bit (160.000MB/s) transfers, tagged queueing
 ses0 at scsibus0 target 6 lun 0: <PE/PV, 1x3 SCSI BP, 0.26> processor fixed
 ses0: SAF-TE Compliant Device
 ses0: async, 8-bit transfers
 atapibus0 at atabus0: 2 targets
 cd0 at atapibus0 drive 0: <SAMSUNG CD-ROM SN-124, , q009> cdrom removable
 cd0: 32-bit data port
 cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
 cd0(rccide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33) (using DMA)
 Searching for RAID components...
 Component on: sd0a: 143374587
    Row: 0 Column: 0 Num Rows: 1 Num Columns: 2
    Version: 2 Serial Number: 2005060201 Mod Counter: 124
    Clean: No Status: 0
    sectPerSU: 128 SUsPerPU: 1 SUsPerRU: 1
    RAID Level: 1  blocksize: 512 numBlocks: 143374464
    Autoconfig: Yes
    Contains root partition: Yes
    Last configured as: raid0
 Component on: sd1a: 143374587
    Row: 0 Column: 1 Num Rows: 1 Num Columns: 2
    Version: 2 Serial Number: 2005060201 Mod Counter: 124
    Clean: No Status: 0
    sectPerSU: 128 SUsPerPU: 1 SUsPerRU: 1
    RAID Level: 1  blocksize: 512 numBlocks: 143374464
    Autoconfig: Yes
    Contains root partition: Yes
    Last configured as: raid0
 Found: sd0a at 0
 Found: sd1a at 1
 RAID autoconfigure
 Configuring raid0:
 Starting autoconfiguration of RAID set...
 Looking for 0 in autoconfig
 Found: sd0a at 0
 Looking for 1 in autoconfig
 Found: sd1a at 1
 raid0: allocating 20 buffers of 65536 bytes.
 raid0: RAID Level 1
 raid0: Components: /dev/sd0a /dev/sd1a
 raid0: Total Sectors: 143374464 (70007 MB)
 boot device: raid0
 root on raid0a dumps on raid0b
 mountroot: trying lfs...
 mountroot: trying ffs...
 root file system type: ffs
 cpu1: CPU 0 running
 init: copying out path `/sbin/init' 11