Hi,
Has anyone tried having APM and SMP in the same kernel? It panic()'s mine :)

Basically the machine panics a few seconds after I do 'apmconf -e'. apm seems
to return normal values though.

I've attached a sample output from APM, dmesg and my kernel config.

I get a trap 12: page fault in kernel mode
mp_lock = 01000009; cpuid = 1; lapic.id = 01000000
fault virtual address = 0x75f0
fault code = supervisor read, page not present
interrupt pointer =     0x8:0xc0208a4c
stack pointer =         0x10:0xff80dd78
frame pointer =         0x10:0xff80dd7c
code segment =          base 0x0, limit 0xfffff, type 0x1b
                        DPL 0, pres 1, def32 1, gran 1
processor eflags =      interrupt enabled, resume, IOPL = 0
current process =       Idle
interrupt mask =        <- SMP: XXX

Also, nm kernel.debug | sort shows that 0xc0208a4c is in Xbpt

---
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum


Copyright (c) 1992-1999 The FreeBSD Project.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California. All rights reserved.
FreeBSD 4.0-CURRENT #1: Wed May  5 20:41:20 CST 1999
    r...@guppy.dons.net.au:/usr/src/sys/compile/GUPPY.nosmp
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium II/Xeon/Celeron (350.80-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x653  Stepping=3
  Features=0x183fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CM
OV,PAT,PSE36,MMX,FXSR>
real memory  = 134217728 (131072K bytes)
avail memory = 127442944 (124456K bytes)
Preloaded elf kernel "kernel.nosmp" at 0xc0308000.
Pentium Pro MTRR support enabled, default memory type is uncacheable
ccd0-3: Concatenated disk drivers
Probing for PnP devices:
CSN 1 Vendor ID: CTL00e4 [0xe4008c0e] Serial 0x12939604 Comp ID: PNPb02f [0x2fb0
d041]
npx0: <math processor> on motherboard
npx0: INT 16 interface
apm0: <APM BIOS> on motherboard
apm: found APM BIOS version 1.2
pcib0: <PCI host bus adapter> on motherboard
pci0: <PCI bus> on pcib0
chip0: <Intel 82443BX host to PCI bridge> at device 0.0 on pci0
chip1: <Intel 82443BX host to AGP bridge> at device 1.0 on pci0
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
ide_pci0: <Intel PIIX4 Bus-master IDE controller> at device 7.1 on pci0
chip2: <Intel 82371AB Power management controller> at device 7.3 on pci0
de0: <Digital 21140 Fast Ethernet> at device 11.0 on pci0
de0: interrupting at irq 11
de0: 21140 [10-100Mb/s] pass 1.1
de0: address 00:80:ad:16:77:3e
de0: enabling 100baseTX port
devclass_alloc_unit: npx0 already exists, using next available unit number
devclass_alloc_unit: apm0 already exists, using next available unit number
isa0: <ISA bus> on motherboard
fdc0: interrupting at irq 6
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> at fdc0 drive 0
wdc0 at port 0x1f0-0x1f7 irq 14 flags 0xa0ffa0ff on isa0
wdc0: unit 0 (wd0): <WDC AC313000R>, DMA, 32-bit, multi-block-16
wd0: 12416MB (25429824 sectors), 25228 cyls, 16 heads, 63 S/T, 512 B/S
wdc0: interrupting at irq 14
wdc1 at port 0x170-0x177 irq 15 flags 0xa0ffa0ff on isa0
wdc1: unit 0 (atapi): <ATAPI CD-ROM DRIVE 40X MAXIMUM/40CP>, removable, dma, ior
dis
wcd0: drive speed 5512KB/sec, 128KB cache
wcd0: supported read types: CD-R, CD-RW, CD-DA
wcd0: Audio: play, 255 volume levels
wcd0: Mechanism: ejectable tray
wcd0: Medium: no/blank disc inside, unlocked
wdc1: interrupting at irq 15
atkbdc0: <keyboard controller (i8042)> at port 0x60 on isa0
psm0: <PS/2 Mouse> on atkbdc0
psm0: model MouseMan+, device ID 0
psm0: interrupting at irq 12
atkbd0: <AT Keyboard> on atkbdc0
atkbd0: interrupting at irq 1
vga0: <Generic ISA VGA> on isa0
sc0: <System console> on isa0
sc0: VGA color <16 virtual consoles, flags=0x0>
sio0 at port 0x3f8-0x3ff irq 4 on isa0
sio0: type 16550A
sio0: interrupting at irq 4
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
sio1: interrupting at irq 3
ppc0: not probed (disabled)
sb0 at port 0x220 irq 5 drq 1 on isa0
snd0: <SoundBlaster 16 4.16> 
sb0: interrupting at irq 5
sbxvi0 at drq 5 on isa0
snd0: <SoundBlaster 16 4.16> 
sbmidi0 at port 0x330 on isa0
snd0: <SoundBlaster MPU-401> 
opl0 at port 0x388 on isa0
snd0: <Yamaha OPL3 FM> 
awe0 at port 0x620 on isa0
AWE32: not detected

joy0 at port 0x201 on isa0
joy0: joystick
changing root device to wd0s3a
ffs_mountfs: superblock updated for soft updates
DEVICE_SUSPEND error 6, ignored
resumed from suspended mode (slept 00:00:03)
DEVICE_SUSPEND error 6, ignored
resumed from suspended mode (slept 00:00:12)
ffs_mountfs: superblock updated for soft updates
ffs_mountfs: superblock updated for soft updates
de0: enabling 10baseT port
APM version: 1.2
APM Managment: Enabled
AC Line status: on-line
Battery status: unknown
Remaining battery life: unknown
Remaining battery time: unknown
Number of batteries: 0
Resume timer: disabled
Resume on ring indicator: enabled
APM Capacities:
        global standby state
        global suspend state
        resume timer from standby
        resume timer from suspend
machine         "i386"
cpu             "I686_CPU"
ident           TEST
maxusers        32

options         INCLUDE_CONFIG_FILE     # Include this file in kernel

options         USERCONFIG              #boot -c editor
options         VISUAL_USERCONFIG       #visual boot -c editor

options         INET                    #InterNETworking
options         FFS                     #Berkeley Fast Filesystem
options         NFS                     #Network Filesystem
#options                "CD9660"                #ISO 9660 Filesystem
options         PROCFS                  #Process filesystem
options         "COMPAT_43"             #Compatible with BSD 4.3 [KEEP THIS!]
options         UCONSOLE                #Allow users to grab the console
options         KTRACE                  #kernel tracing

options         SYSVSHM
options         SYSVSEM
options         SYSVMSG

options         DDB
#options         DDB_UNATTENDED

#options                BOUNCE_BUFFERS          #For ADV controller
options         CONSPEED=115200         #default speed for serial console
options         MSGBUF_SIZE=32768

options         SOFTUPDATES

options         SMP                     # Symmetric MultiProcessor Kernel
options         APIC_IO                 # Symmetric (APIC) I/O

config          kernel  root on wd0 dumps on wd0

controller      isa0
controller      pci0

controller      fdc0    at isa? port "IO_FD1" irq 6 drq 2
disk            fd0     at fdc0 drive 0
disk            fd1     at fdc0 drive 1

controller      wdc0    at isa? port "IO_WD1" irq 14 flags 0xa0ffa0ff
disk            wd0     at wdc0 drive 0
disk            wd1     at wdc0 drive 1
controller      wdc1    at isa? port "IO_WD2" irq 15 flags 0xa0ffa0ff
disk            wd2     at wdc1 drive 0
disk            wd3     at wdc1 drive 1

device          wcd0

options         IDE_DELAY=2000  # Be optimistic about Joe IDE device

options         "VM86"
options         VESA

# atkbdc0 controlls both the keyboard and the PS/2 mouse
controller      atkbdc0 at isa? port IO_KBD
device          psm0    at atkbdc? irq 12
device          atkbd0  at atkbdc? irq 1

device          vga0    at isa? port ? conflicts

# splash screen/screen saver
pseudo-device   splash

# syscons is the default console driver, resembling an SCO console
device          sc0     at isa?

# Mandatory, don't remove
device          npx0    at isa? port "IO_NPX" irq 13

device          sio0    at isa? port "IO_COM1" irq 4
device          sio1    at isa? port "IO_COM2" irq 3

device          ed0     at isa? port 0x280 irq 5 iomem 0xd8000

controller      ppbus0
device          nlpt0   at ppbus?
device          plip0   at ppbus?
device          ppi0    at ppbus?
device          pps0    at ppbus?
device          lpbb0   at ppbus?

controller      ppc0    at isa? disable port ? irq 7

device          de0
device          fxp0

controller      pnp0

controller      snd0
device sb0      at isa? port 0x220 irq 5 drq 1
device sbxvi0   at isa? drq 5
device sbmidi0  at isa? port 0x330
device opl0     at isa? port 0x388
device awe0     at isa? port 0x620
device          joy0    at isa? port "IO_GAME"

device          apm0    at isa? conflicts

controller smbus0

controller intpm0

device smb0     at smbus?

controller iicbus0
controller iicbb0

device ic0      at iicbus?
device iic0     at iicbus?
device iicsmb0  at iicbus?

controller      ahc0
controller      scbus0  #base SCSI code
device          ch0     #SCSI media changers
device          da0     #SCSI direct access devices (aka disks)
device          sa0     #SCSI tapes
device          cd0     #SCSI CD-ROMs
device         od0     #SCSI optical disk
device          pass0   #CAM passthrough driver


pseudo-device   loop
pseudo-device   ether
pseudo-device   pty             16
pseudo-device   bpfilter        4
pseudo-device   gzip            # Exec gzipped a.out's
pseudo-device   ccd     4       #Concatenated disk driver
pseudo-device   vn


Reply via email to