[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cpu_switch() panics in 2.1-amiga



Hi!

I just did something really stupid to my root partition so I'm having to
re-build it and my kernel.  I've got most everything back to normal by
reinstalling from the CD and backups.  I'm using 2.1-Amiga on a stock,
25Mhz '30 A3000 with a MultiFace serial/parallel board, a CyberGraphix
board and an Ariadne ethernet board on the system.

My remaining problem is I'm trying to compile a kernel without all the isa
stuff to avoid a problem with fifo errors with the MF board.  I did this
before with some success, though I never managed to make the fifo overflows
go away entirely.  (Why am I compiling my kernel you ask?  Well, I did put 
the kernel and config file I used at the time away somewhere safe.  However, 
I can't for the life of me remember _where_.  Let's just drop the subject, 
ok? :) 

With my current kernel I did reduce the fifo errors, but now I'm getting
occasional cpu_switch() panics (sig 11 in pid 0), which I didn't get with
my old kernel.  Unfortunately I don't have a crash dump yet (I need to
rearrange things for more file space) but I was wondering if someone could
take a look and tell me if they see anything obviously wrong with the
config I'm using?  Just so I don't go too far down what might be the wrong
path (and to make sure I'm not doing something plain boneheaded).

Basically, what I've done so far is just comment out everything in GENERIC
that I'm not using hardware-wise, and then uncomment the
"SERIBUF_SIZE=4096" and "SEROBUF_SIZE=32" options since these are used in
mfc.c.  That's the current kernel that panics.  I'm pretty sure it's the 
virtually the same config as the old one though, according to notes I made
to myself at the time.

I'm in the process of compiling a new kernel now with LEV6_DEFER .. is that
the next step or will that just get me in deeper?  I don't recall using it
before and I can't quite follow everything that it does.  Would it help
with the MF board's serial or is it just for the built-in serial?

I also have IPL_REMAP_1 turned off in both the kernel I'm compiling now and
the one that panics; was this the right thing to do?  My notes from long
ago say yes, but I don't remember exactly why.  It looked like it's for the
isa/bridge stuff so I went ahead and turned it off. 


TIA,


  -John

(dmesg and config below)


OpenBSD 2.1 (AWK) #0: Mon Feb 23 12:08:08 PST 1998
    root_(_at_)_awk:/usr/src/sys/arch/amiga/compile/AWK
Amiga 3000 (m68030 CPU/MMU m68882 FPU)
real  mem = 12582912 (1536 pages)
avail mem = 10371072 (1266 pages)
using 89 buffers containing 729088 bytes of memory
memory segment 0 at 7400000 size c00000
memory segment 1 at 0 size 200000
mainbus0 (root)
clock0 at mainbus0: CIA B system hz 100 hardware hz 715909
Calibrating delay loop... 
diff 1028 us, new divisor 335/1024 us
diff 1023 us, new divisor 335/1024 us
diff 1021 us, new divisor 335/1024 us
ser0 at mainbus0: input fifo 4096 output fifo 32
par0 at mainbus0
kbd0 at mainbus0: CIA A type Amiga
ms0 at mainbus0
ms1 at mainbus0
grfcc0 at mainbus0
grf0 at grfcc0: width 640 height 400 colors 4
ite0 at grf0: rows 0 cols 0 repeat at (30/100)s next at (10/100)s has keyboard
fdc0 at mainbus0: dmabuf pa 0x1e5258: dmabuf ka 0x2de1258
fd0 at fdc0 unit 0: 3.5dd 80 cyl, 2 head, 11 sec [9 sec], 512 bytes/sec
fd1 at fdc0 unit 1: 3.5dd 80 cyl, 2 head, 11 sec [9 sec], 512 bytes/sec
zbus0 at mainbus0: i/o size 0x04000000
ae0 at zbus0 rom 0xe90000 man/pro 2167/201
ae0: hardware address 00:60:30:00:06:f5 32K  chip-revision: B1
mfc0 at zbus0 rom 0xea0000 man/pro 2092/18
mfcs0 at mfc0: input fifo 4096 output fifo 32
mfcs1 at mfc0: input fifo 4096 output fifo 32
grfcv0 at zbus0 rom 0x40000000 man/pro 8512/34
grf5 at grfcv0: width 640 height 480 colors 16
ite5 at grf5: rows 60 cols 80 repeat at (30/100)s next at (10/100)s has keyboard
grfcv: CyberVision64 with 2MB being used
ahsc0 at mainbus0
scsibus0 at ahsc0: 8 targets
sd0 at scsibus0 targ 2 lun 0: <QUANTUM, LPS270S, 5900> SCSI2 0/direct fixed
sd0: 258MB, 2740 cyl, 2 head, 96 sec, 512 bytes/sec
sd1 at scsibus0 targ 3 lun 0: <QUANTUM, LIGHTNING 730S, 241E> SCSI2 0/direct fixed
sd1: 699MB, 3658 cyl, 4 head, 97 sec, 512 bytes/sec
sd2 at scsibus0 targ 4 lun 0: <QUANTUM, FIREBALL_TM1280S, 300N> SCSI2 0/direct fixed
sd2: 1222MB, 6810 cyl, 2 head, 183 sec, 512 bytes/sec
sd3 at scsibus0 targ 5 lun 0: <IOMEGA, ZIP 100, E.03> SCSI2 0/direct removable
sd3: 96MB, 96 cyl, 64 head, 32 sec, 512 bytes/sec
sd4 at scsibus0 targ 6 lun 0: <MATSHITA, PD-1 LF-1000, A106> SCSI2 7/optical removable
sd4: drive offline
cd0 at scsibus0 targ 6 lun 1: <MATSHITA, PD-1 LF-1000, A106> SCSI2 5/cdrom removable
sd3: no rdb nor BSD disklabel found
10 views configured
rootdev=0x410 rrootdev=0x810 rawdev=0x812
sd3: no rdb nor BSD disklabel found
mfcs1: fifo overflow




#	$OpenBSD: GENERIC,v 1.20 1997/03/25 16:53:56 niklas Exp $
#	$NetBSD: GENERIC,v 1.69 1997/01/17 14:29:42 is Exp $

#
# GENERIC AMIGA
#
# This configuration file contains all possible options
#

include "arch/amiga/conf/std.amiga"
include "conf/GENERIC"

maxusers	8

#
# mainboards to support (in addition to Amiga)
#
#option		DRACO

#
# processors this kernel should support
#
#option		"M68060"	# support for 060
#option		"M060SP"	# ...and MC68060 support package
#option		"M68040"	# support for 040
#option		FPSP		# MC68040 floating point support
option		"M68030"	# support for 030
option		"M68020"	# support for 020/851
option		FPCOPROC	# Support for MC6888[12] (Required)

#
# File systems
#
option		ADOSFS		# AmigaDOS file system

#
# Compatability options for various existing systems
#
option		COMPAT_SUNOS	# Support to run Sun (m68k) executables
#option		COMPAT_HPUX	# HP300 compatability

#
# Support for various kernel options
#

option		GENERIC		# Mini-root boot support
option		"NKMEMCLUSTERS=256"	# Size of kernel malloc area

#
# Misc. debuging options
#
#option		DEBUG		# Add debugging statements
#option		SYSCALL_DEBUG	# debug all syscalls.
#option		SCSIDEBUG	# Add SCSI debugging statements
#option		PANICBUTTON	# Forced crash via keypress (???)

#
# Amiga specific options
#
option		MACHINE_NONCONTIG # Non-contiguous memory support
# ATTENTION: There is NO WARRANTY AT ALL that the sync will be complete
# before the 10 secondinterval ends, or that KBDRESET does work at all.
#option		KBDRESET	# sync on Ctrl-Amiga-Amiga

# These options improve performance with the built-in serial port
# on slower Amigas.  Try the larger buffers first then lev6_defer.
option		"SERIBUF_SIZE=4096"
option		"SEROBUF_SIZE=32"
#option		LEV6_DEFER	# defers l6 to l4 (below serial l5)
#option		IPL_REMAP_1	# use remapping interruptsystem version 1
#option		IPL_REMAP_2	# and version 2 (not yet done)

#option		RETINACONSOLE	# enable code to allow retina to be console
#option		ULOWELLCONSOLE	# enable code to allow a2410 to be console
#option		CL5426CONSOLE	# Cirrus console
option		CV64CONSOLE	# CyberVision console
#option		TSENGCONSOLE	# Tseng console

option		GRF_ECS		# Enhanced Chip Set
option		GRF_NTSC	# NTSC
option		GRF_PAL		# PAL
#option		"GRF_A2024"	# Support for the A2024
#option		GRF_AGA		# AGA Chip Set
#option		"KFONT_8X11"	# 8x11 font

# This is how you would tell the kernel the A2410 oscillator frequencies:
# The used frequencies are the defaults, and don't need option setting
#option		"ULOWELL_OSC1=36000000"
#option		"ULOWELL_OSC2=66667000"

# This is how you specify the blitting speed, higher values may speed up blits
# a little bit.  If you raise this value too much some trash may appear.
# the commented version is the default.
#option		RH_MEMCLK 61000000
# this option enables the 64 bit sprite which doesn't seems to be work
# for quite a few people.  E.g. The cursor sprite will turn to a block
# when moved to the top of the screen in X.
#option		RH_64BIT_SPRITE
# enables fast scroll code appears to now work on 040 systems.
#option		RETINA_SPEED_HACK
# enables the Hardwarecursor which does not work on some systems.
#option		RH_HARDWARECURSOR

grfcc0		at mainbus0		# custom chips
#grfrt0		at zbus0		# retina II
#grfrh0		at zbus0		# retina III
#grfcl*		at zbus0		# Picasso II/Piccalo/Spectrum
#grful0		at zbus0		# A2410
grfcv0		at zbus0		# CyberVision 64
#grfet*		at zbus0		# Tseng (oMniBus, Domino, Merlin)

grf0		at grfcc0
#grf1		at grfrt0
#grf2		at grfrh0
#grf3		at grfcl?
#grf4		at grful0
grf5		at grfcv0
#grf6		at grfet?

ite0		at grf0			# terminal emulators for grf's
#ite1		at grf1			# terminal emulators for grf's
#ite2		at grf2			# terminal emulators for grf's
#ite3		at grf3			# terminal emulators for grf's
#ite4		at grf4			# terminal emulators for grf's
ite5		at grf5			# terminal emulators for grf's
#ite6		at grf6			# terminal emulators for grf's

#msc0		at zbus0		# A2232 MSC multiport serial.
mfc0		at zbus0		# MultiFaceCard I/O board
mfcs0		at mfc0 unit 0		# MFC serial
mfcs1		at mfc0 unit 1		# MFC serial
#mfcp0		at mfc0 unit 0		# MFC parallel [not available yet]
#mfc1		at zbus0		# MultiFaceCard 2nd I/O board
#mfcs2		at mfc1 unit 0
#mfcs3		at mfc1 unit 1
#mfcp1		at mfc1 unit 0

#le0		at zbus0		# Lance ethernet.
#ed0		at zbus0		# dp8390 ethernet
#es0		at zbus0		# SMC 91C90 ethernet
#qn0		at zbus0		# quicknet ethernet
ae0		at zbus0		# Ariadne ethernet
#bah0		at zbus0		# C= arcnet


# scsi stuff, all possible
#gvpbus*		at zbus0
#gtsc0		at gvpbus?		# GVP series II scsi
ahsc0		at mainbus0		# A3000 scsi
#atzsc0		at zbus0		# A2091 scsi
#wstsc0		at zbus0		# Wordsync II scsi
#ivsc0		at zbus0		# IVS scsi
#mlhsc0		at zbus0		# Hacker scsi
#otgsc0		at zbus0		# 12 gauge scsi
#zssc0		at zbus0		# Zeus scsi
#mgnsc0		at zbus0		# Magnum scsi
#wesc0		at zbus0		# Warp Engine scsi
#idesc0		at mainbus0		# A4000 & A1200 IDE
#afsc0		at zbus0		# A4091 scsi
#aftsc0		at mainbus0		# A4000T scsi
#flsc0		at zbus0		# FastlaneZ3 scsi
#bzsc0		at zbus0		# Blizzard 1230 I,II scsi
#bztzsc0		at zbus0		# Blizzard 2060 scsi
#empsc0		at zbus0		# Emplant scsi
#drsc0		at mainbus0		# DraCo scsi

#scsibus*	at gtsc0
scsibus*	at ahsc0
#scsibus*	at atzsc0
#scsibus*	at wstsc0
#scsibus*	at ivsc0
#scsibus*	at mlhsc0
#scsibus*	at otgsc0
#scsibus*	at zssc0
#scsibus*	at mgnsc0
#scsibus*	at wesc0
#scsibus*	at idesc0
#scsibus*	at afsc0
#scsibus*	at aftsc0
#scsibus*	at flsc0
#scsibus*	at bzsc0
#scsibus*	at bztzsc0
#scsibus*	at empsc0
#scsibus*	at drsc0

# each hard drive from low target to high
# will configure to the next available sd unit number
sd*	at scsibus? target ? lun ?	# scsi disks
st*	at scsibus? target ? lun ?	# scsi tapes
cd*	at scsibus? target ? lun ?	# scsi cd's
ss*	at scsibus? target ? lun ?	# scsi scanners
ch*	at scsibus? target ? lun ?	# scsi autochangers
uk*	at scsibus? target ? lun ?	# scsi unknown

#ggbus*	at zbus0			# Goldengate bridge
#isa*	at ggbus?

#cross*	at zbus0			# CrossLink bridge
#isa*	at cross?

#isapnp0	at isa?

#com0	at isa? port 0x3f8 irq 4	# Standard PC serial ports
#com1	at isa? port 0x2f8 irq 3
#com2	at isa? port 0x3e8 irq 5
#com3	at isa? port 0x2e8 irq 9	# (conflicts with some video cards)
#com4	at isa? port 0x0f0 irq 11	# Crosslink builtin ports
#com5	at isa? port 0x0f8 irq 10
#ast0	at isa? port 0x1a0 irq 3	# AST 4-port serial cards
#com*	at ast? slave ?
#boca0	at isa? port 0x100 irq 5	# BOCA 8-port serial cards
#com*	at boca? slave ?
#rtfps0	at isa? port 0x1230 irq 10	# RT 4-port serial cards
#com*	at rtfps? slave ?
# option for using CD1400 handshaking for incoming data
# requires a special cable that exchanges the RTS and DTR lines
# options CY_HW_RTS
# cy0	at isa? iomem 0xd4000 irq 12	# ISA cyclom card

#lpt0	at isa? port 0x378 irq 7	# Standard PC parallel ports
#lpt1	at isa? port 0x278
#lpt2	at isa? port 0x3bc

#wdc0	at isa? port 0x1f0 irq 14	# ST506, ESDI, and IDE controllers
#wdc1	at isa? port 0x170 irq ?
#wd*	at wdc? drive ?

#atapibus* at wdc?
#acd*	at atapibus? drive ?

# XXX should be ed but clashes with Zorro ed device
#isaed0	at isa? port 0x280 iomem 0xd0000 irq 9	# WD/SMC, 3C503, and NE[12]000
#isaed1	at isa? port 0x250 iomem 0xd8000 irq 9	#   ethernet cards
#isaed2	at isa? port 0x300 iomem 0xcc000 irq 10

fd*	at fdc0 unit ?

pseudo-device	view	10		# views

config	bsd swap on generic