Subject: SMP Pentium 133Mhz
To: None <tech-kern@netbsd.org>
From: Rui Paulo <rpaulo@fnop.net>
List: tech-kern
Date: 01/21/2007 21:21:39
Hi,
I have a dual pentium 133mhz and I'm having a problem (worked around)  
booting NetBSD.
I'm hitting the "lazy bum" panic in mpbios.c:
http://opengrok.netbsd.org/source/xref/sys/arch/x86/x86/mpbios.c#554

My first try was to comment out the panic call and see what happens.  
Guess what. The machine booted in SMP.
So, can anyone clearly explain what is the panic() for ? What's the  
reason of the /* XXX */ ?

dmesg:
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,  
2005,
     2006, 2007
     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 4.99.9 (GENERIC.MP) #0: Sun Jan 21 22:39:39 WET 2007
	tiago@ppv4:/home/tiago/netbsd/src/sys/arch/i386/compile/obj/GENERIC.MP
total memory = 97916 KB
rbus: rbus_min_start set to 0x20000000
avail memory = 85924 KB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
BIOS32 rev. 0 found at 0xf6f20
mainbus0 (root)
mainbus0: MP default configuration 5
mainbus0: Intel MP Specification (Version 1.1)
mainbus0: MP default configuration 5
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel Pentium (P54C) (586-class), 106.60 MHz, id 0x52c
cpu0: features 3bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC>
cpu0: calibrating local timer
cpu0: apic clock running at 66 MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: starting
cpu1: Intel Dual Pentium (P54C) (586-class), 133.24 MHz, id 0x252b
cpu1: features 3bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC>
ioapic0 at mainbus0 apid 0 (I/O APIC)
ioapic0: pa 0xfec00000, version 11, 16 pins
mainbus0: WARNING: interrupts not configured
pci0 at mainbus0 bus 0: configuration mode 2
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82434LX/NX PCI, Cache and Memory Controller (PCMC) (rev.  
0x11)
pcib0 at pci0 dev 2 function 0
pcib0: Intel 82378ZB System I/O (rev. 0x88)
vga1 at pci0 dev 5 function 0: Matrox MGA Millennium 2064W ("Storm")  
(rev. 0x01)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
pcn0 at pci0 dev 6 function 0: AMD PCnet-PCI Ethernet
pcn0: Am79c970 PCnet-PCI rev 1, Ethernet address 08:00:36:a2:c0:02
pcn0: interrupting at irq 15
pcn0: 10base5, 10baseT, auto
ahc1 at pci0 dev 7 function 0: Adaptec aic7850 SCSI adapter
ahc1: interrupting at irq 9
ahc1: Using left over BIOS settings
ahc1: aic7850: Single Channel A, SCSI Id=7, 3/253 SCBs
scsibus0 at ahc1: 8 targets, 8 luns per target
Matrox MGA Millennium 2064W ("Storm") (miscellaneous display,  
revision 0x01) at pci0 dev 15 function 0 not configured
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
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
attimer0 at isa0 port 0x40-0x43: AT Timer
sb0 at isa0 port 0x220-0x237 irq 5 drq 1,5: dsp v4.13
audio0 at sb0: full duplex, mmap, independent
midi0 at sb0: SB MIDI UART (CPU-intensive output)
opl0 at sb0: model OPL3
midi1 at opl0: SB Yamaha OPL3 (CPU-intensive output)
pcppi0 at isa0 port 0x61
midi2 at pcppi0: PC speaker (CPU-intensive output)
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff
npx0: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
pcppi0: attached to attimer0
isapnp0: no ISA Plug 'n Play devices found
ioapic0: enabling
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
scsibus0: waiting 2 seconds for devices to settle...
sd0 at scsibus0 target 2 lun 0: <QUANTUM, FIREBALL1080S, 1Q0E> disk  
fixed
sd0: 1013 MB, 3835 cyl, 4 head, 135 sec, 512 bytes/sect x 2074880  
sectors
sd0: sync (100.00ns offset 8), 8-bit (10.000MB/s) transfers
cd0 at scsibus0 target 4 lun 0: <MATSHITA, CD-ROM CR-504, IG24> cdrom  
removable
cd0: sync (200.00ns offset 15), 8-bit (5.000MB/s) transfers
boot device: sd0
root on sd0a dumps on sd0b
root file system type: ffs
cpu1: CPU 1 running
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)


Thanks in advance,
--
Rui Paulo