Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Aug 1997 20:42:03 -0700 (PDT)
From:      Thomas Dean <tomdean@celebris.tddhome>
To:        current@FreeBSD.ORG
Subject:   Trap 9 When Boot SMP
Message-ID:  <199708080342.UAA00262@celebris.tddhome>

next in thread | raw e-mail | index | archive | help
I have been trying to get SMP running on my machine,
a Digital Equipment Corp. Celebris XL 5133DP.

I get a trap 9 when I try to run an SMP kernel.  I tried -current
and 3.0-970618-SNAP,  with similar results.

It looks like this machine will NOT run SMP.  It does run WINNT
and utilize both cpu's.

Is there any hope for this machine (or me)?

I have included some of the power-on-test output, the output
from dmesg, the output from mptable, and a re-type of the
trap message.

I was running 
   FreeBSD 3.0-970618-SNAP #0: Thu Aug  7 15:33:50 PDT 1997
   GENERIC
for the dmesg and the mptable output.

I successfully built a kernel derived from GENERIC.  It boots and
runs fine.  There were some warnings about pointer types during the
build.  I will locate these and send a proposed fix, later.

I added the kernel options from mptable to this config file and
built a kernel with only the same few warnings.

The kernel boot process ended with a trap 9.

I built SMP-GENERIC without change.  Except for slightly different
addresses, the results were the same.

Is any of this information useful?

###########################################################################

>From the machine POST - copyright notices, etc. deleted...

Matrox Power Graphics Accelerator
MGA Series
VGA/VBE BIOS version V1.5

Phoenix BIOS Version 4.04 Plug and Play

Celebris XL 5133DP Version 2.04

NCR SDMS V3.0 PCI SCSI BIOS PCI Rev 2.0
NCRPCI-3.05.03

###########################################################################
###########################################################################

First, dmesg:

Copyright (c) 1992-1997 FreeBSD Inc.
Copyright (c) 1982, 1986, 1989, 1991, 1993
	The Regents of the University of California. All rights reserved.
FreeBSD 3.0-970618-SNAP #0: Thu Aug  7 15:33:50 PDT 1997
    root@celebris:/usr/src/sys/compile/CELEBRIS
CPU: Pentium (133.35-MHz 586-class CPU)
  Origin = "GenuineIntel"  Id = 0x525  Stepping=5
  Features=0x3bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC>
real memory  = 33554432 (32768K bytes)
avail memory = 30539776 (29824K bytes)
Probing for devices on PCI bus 0:
chip0: <Intel 82434NX (Neptune) PCI cache memory controller> rev 0x11 on pci0.0.0
ncr0: <ncr 53c810 scsi> rev 0x02 int a irq 11 on pci0.1.0
ncr0: waiting for scsi devices to settle
scbus0 at ncr0 bus 0
sd0 at scbus0 target 0 lun 0
sd0: <QUANTUM FIREBALL1080S 1Q09> type 0 fixed SCSI 2
sd0: Direct-Access 
sd0: 10.0 MB/s (100 ns, offset 8)
1042MB (2134305 512 byte sectors)
sd1 at scbus0 target 1 lun 0
sd1: <QUANTUM FIREBALL ST3.2S 0F0C> type 0 fixed SCSI 2
sd1: Direct-Access 
sd1: 10.0 MB/s (100 ns, offset 8)
3090MB (6328861 512 byte sectors)
sd2 at scbus0 target 2 lun 0
sd2: <QUANTUM EMPIRE_1080S 1240> type 0 fixed SCSI 2
sd2: Direct-Access 
sd2: 10.0 MB/s (100 ns, offset 8)
1029MB (2109376 512 byte sectors)
cd0 at scbus0 target 5 lun 0
cd0: <TOSHIBA CD-ROM XM-5401TA 3605> type 5 removable SCSI 2
cd0: CD-ROM 
cd0: asynchronous.
cd present [328355 x 2048 byte records]
chip1: <Intel 82378IB PCI to ISA bridge> rev 0x88 on pci0.2.0
vga0: <VGA-compatible display device> rev 0x01 int a irq 9 on pci0.6.0
de0: <Digital 21041 Ethernet> rev 0x11 int a irq 10 on pci0.8.0
de0: DE450-CA 21041 [10Mb/s] pass 1.1
de0: address 00:00:f8:02:76:db
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <16 virtual consoles, flags=0x0>
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16550A
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16550A
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
psm0 at 0x60-0x64 irq 12 on motherboard
psm0: device ID 0
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: NEC 72065B
fd0: 1.44MB 3.5in
npx0 on motherboard
npx0: INT 16 interface
de0: enabling BNC port

###########################################################################
###########################################################################

now, from mptable

===============================================================================

MPTable, version 2.0.11

-------------------------------------------------------------------------------

MP Floating Pointer Structure:

  location:			EBDA
  physical address:		0x0009fc30
  signature:			'_MP_'
  length:			16 bytes
  version:			1.1
  checksum:			0x55
  mode:				Virtual Wire

-------------------------------------------------------------------------------

  MP default config type: 5

   bus: ISA+PCI, APIC: Integrated

-------------------------------------------------------------------------------

# SMP kernel config file options:


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

# Useful:
#options		SMP_AUTOSTART		# start the additional CPUs during boot

# Optional (built-in defaults will work in most cases):
# found a note in the archive to add these, so, here goes.
options		NCPU=2			# number of CPUs
options		NBUS=2			# number of busses
options		NAPIC=1			# number of IO APICs
options		NINTR=24		# number of INTs

# Currently broken:
#options		SMP_PRIVPAGES		# BROKEN, DO NOT use!

# Rogue hardware:
#
#  Tyan Tomcat II:
#options		SMP_TIMER_NC		# 
#
#  SuperMicro P6DNE:
#options		SMP_TIMER_NC		# 


###########################################################################
###########################################################################

The kernel config file:


#
# CELEBRIS-SMP
#
# 970807 tomdean
#
# derived from	$Id: GENERIC,v 1.91 1997/06/06 12:24:43 jkh Exp $

machine		"i386"
cpu		"I586_CPU"
ident		CELEBRIS
maxusers	50


#.................................................................
#
# options from mptable
#
#MPTable, version 2.0.11
#
#--------------------------------------------------------------------------
#
#MP Floating Pointer Structure:
#
#  #location:                     EBDA
#  physical address:             0x0009fc30
#  signature:                    '_MP_'
#  length:                       16 bytes
#  version:                      1.1
#  checksum:                     0x55
#  mode:                         Virtual Wire
#
#--------------------------------------------------------------------------
#
#  MP default config type: 5
#
#   bus: ISA+PCI, APIC: Integrated
#
#--------------------------------------------------------------------------
#
# SMP kernel config file options:

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

# Useful:
#options                SMP_AUTOSTART   # start the additional CPUs during boot

# Optional (built-in defaults will work in most cases):
#options                NCPU=2                  # number of CPUs
#options                NBUS=2                  # number of busses
#options                NAPIC=1                 # number of IO APICs
#options                NINTR=24                # number of INTs

# Currently broken:
#options                SMP_PRIVPAGES           # BROKEN, DO NOT use!

# Rogue hardware:
#
#  Tyan Tomcat II:
#options                SMP_TIMER_NC            # 
#
#  SuperMicro P6DNE:
#options                SMP_TIMER_NC            # 

#.................................................................

options		INET			#InterNETworking
options		FFS			#Berkeley Fast Filesystem
options		NFS			#Network Filesystem
options		MSDOSFS			#MSDOS Filesystem
options		"CD9660"		#ISO 9660 Filesystem
options		PROCFS			#Process filesystem
options		"COMPAT_43"		#Compatible with BSD 4.3 [KEEP THIS!]
options		SCSI_DELAY=15		#Be pessimistic about Joe SCSI device
options		BOUNCE_BUFFERS		#include support for DMA bounce buffers
options		UCONSOLE		#Allow users to grab the console
options		FAILSAFE		#Be conservative

options		SYSVSHM			# for X11
options		SYSVSEM			# for X11
options		SYSVMSG			# for X11

options		PSM_CHECKSYNC		# resync when switch console modes

config		kernel	root on sd2

controller	isa0
controller	pci0

controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0
tape		ft0	at fdc0 drive 2

controller	ncr0

controller	scbus0

device		sd0

#device		od0	#See LINT for possible `od' options.

device		st0

device		cd0	#Only need one of these, the code dynamically grows

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
options			XSERVER			# support for X server

device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr

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

device		lpt0	at isa? port? tty irq 7 vector lptintr

device		psm0	at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr

device de0

pseudo-device	loop
pseudo-device	ether
pseudo-device	log
pseudo-device	sl	1
# ijppp uses tun instead of ppp device
#pseudo-device	ppp	1
pseudo-device	tun	1
pseudo-device	pty	16
pseudo-device	gzip		# Exec gzipped a.out's

# KTRACE enables the system-call tracing facility ktrace(2).
# This adds 4 KB bloat to your kernel, and slightly increases
# the costs of each syscall.
options		KTRACE		#kernel tracing

###########################################################################
###########################################################################

 Booting the new kernel resulted in a trap:

 ...
 npx0: INT16 interface
 stray irq 13
 Enabled INTS: 1,2,3,4,6,7,8,10,11,12,13,imem 0x00ffc221

 Fatal Trap 9: general protection fault while in kernel mode
 cpunumber=0
 ip  = 0x8: 0xfo1d7c1e
 sp  = 0x10:0xf4730eac
 fp  = 0x10:0xf4730efc
 cs  = base 0x0, limit 0xfffff, type 0x1b
     = DPL 0, pres 1, def32 1, gran 1
 proc eflags = interrupt enabled, resume, IOPL=0
 current process = 5(cpuidle0)
 interrupt mask =
 trap number = 9
 panic: general protection fault
 cpu #0



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199708080342.UAA00262>