Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Dec 2000 13:31:46 +0100 (CET)
From:      lkoeller@cc.fh-lippe.de
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        lkoeller@cc.fh-lippe.de
Subject:   kern/23752: panic with smp kernel and dma lpt
Message-ID:  <200012221231.eBMCVkQ01345@odie.lippe.de>
Resent-Message-ID: <200012221240.eBMCe1R67495@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         23752
>Category:       kern
>Synopsis:       panic with smp 4.2 kernel and dma lpt
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 22 04:40:01 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Charlie &
>Release:        FreeBSD 4.2-RELEASE i386
>Organization:
Fachhochschule Lippe, Lemgo, Germany
>Environment:

	i386 4.2-RELEASE kernel
	SMP (2xPPro)

>Description:

	when enableing dma lpt support via

	lptcontrol -e /dev/lpctl0

	on an ECC capable parallel port, the kernel panics

	panic: isa_dmastart: bad bounce buffer
	mp_lock = 00000001; cpuid = 0; lapic.id = 00000000
	Debugger("panic")
	Stopped  at	Debugger + 0x34: movb $0, in_Debugger.579

	Exactley the same configuration had worked on a 3.X System for
	several month on the same hardware.

	A core dump is available.

	Kernel config file:

#####################################################################
# ODIE kernel config file
#
machine		"i386"
cpu		"I686_CPU"
ident		ODIE
maxusers        32

#####################################################################
# The root device and filesystem type can be compiled in;
# this provides a fallback option if the root device cannot
# be correctly guesst by the bootstrap code, or an override if
# the RB_DFLTROOT flag (-r) is specified when booting the kernel.
#
options 	ROOTDEVNAME=\"ufs:da1s1a\"

#####################################################################
# This allows you to actually store this configuration file into
# the kernel binary itself, where it may be later read by saying:
#    strings /kernel | grep ^___ | sed -e 's/^___//' > MYKERNEL
#
options         INCLUDE_CONFIG_FILE     # Include this file in kernel
options         USERCONFIG              #boot -c editor
options         VISUAL_USERCONFIG       #visual boot -c editor

#####################################################################
# Create a SMP capable kernel (mandatory options):
#
options		SMP		#Smmetric Multiprocessor Kernel
options		APIC_IO		#Smmetric (APIC) I/O

#####################################################################
# Lets always enable the kernel debugger for SMP.
#
options         DDB

#####################################################################
# KTRACE enables the system-call tracing facility ktrace(2).
#
options         KTRACE                  #kernel tracing

#####################################################################
# POSIX P1003.1B
#
# Real time extensions added int the 1993 Posix
# P1003_1B: Infrastructure
# _KPOSIX_PRIORITY_SCHEDULING: Build in _POSIX_PRIORITY_SCHEDULING
# _KPOSIX_VERSION:             Version kernel is built for
#
options         P1003_1B
options         _KPOSIX_PRIORITY_SCHEDULING


#####################################################################
# Further options: network, FS, Console, SYSV-Shmem, ....
#
options         INET                    #InterNETworking
options         INET6                   #IPv6 communications protocols
options         "COMPAT_43"             #Compatible with BSD 4.3
options		ICMP_BANDLIM		#Rate limit bad replies
options 	TCP_DROP_SYNFIN		#drop TCP packets with SYN+FIN
options 	TCP_RESTRICT_RST	#restrict emission of TCP RST
options 	IPFIREWALL		#firewall
options 	IPFIREWALL_VERBOSE	#print info about dropped packets
options 	IPFIREWALL_VERBOSE_LIMIT=100	#limit verbosity
options		IPFIREWALL_DEFAULT_TO_ACCEPT	#allow everything by default
options         DUMMYNET		#"dummynet" bandwidth limiter
options		BRIDGE			#needed by vmware
options		NMBCLUSTERS=16384

options         FFS                     #Berkeley Fast Filesystem
options         FFS_ROOT                #FFS usable as root device [keep this!]
options         SOFTUPDATES             #Improving fs speed and security

options		EXT2FS
					#Read .../../ufs/ffs/README.softupdates
options         PROCFS                  #Process filesystem
options         QUOTA                   #enable disk quotas

options         SYSVSHM                 #System V shared memory support
options         SYSVSEM                 #System V Semophore support
options         SYSVMSG                 #System V Message support

options         MAXCONS=12              #Number of max. allowed virt. consoles
options         SC_HISTORY_SIZE=512     #number of history buffer lines
options         CONSPEED=19200          #default speed for console
options         BREAK_TO_DEBUGGER       #BREAK on console goes to DDB
options         XSERVER                 #include code for XFree86
options         UCONSOLE                #Allow ordinary users to take the
options 	VESA			#Support for VESA video modes
options 	KBD_INSTALL_CDEV	#install a CDEV entry in /dev


#####################################################################
# ISA devices
#####################################################################

device		isa

options         "AUTO_EOI_1"
options         "AUTO_EOI_2"

#####################################################################
#
# Notes on APM
#  The flags takes the following meaning for apm0:
#    0x0040  Use the segment limits that the BIOS reports.
#    0x0020  Statclock is broken.
#    0x0011  Limit APM protocol to 1.1 or 1.0
#    0x0010  Limit APM protocol to 1.0
#  If `options VM86' is set, V86 mode is used in APM initialization
#  instead of real mode.  VM86 is recommended if you want to use APM.
#
device          apm0    at isa?

#####################################################################
# Floppy
#
device		fdc0    at isa? port IO_FD1 irq 6 drq 2
device          fd0     at fdc0 drive 0
device          fd1     at fdc0 drive 1

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

#####################################################################
# The video card driver.
#
device          vga0    at isa?
# Splash screen at start up!  Screen savers require this too.
pseudo-device   splash

#####################################################################
# syscons is the default console driver, resembling an SCO console
#
device          sc0     at isa?
device          npx0    at nexus? port IO_NPX irq 13

#####################################################################
# sio1 (dcf-77)
# serial console
#
# Serial (COM) ports
device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 irq 3
device		sio2	at isa? disable port IO_COM3 irq 5
device		sio3	at isa? disable port IO_COM4 irq 9

#####################################################################
# Parallel-Port Bus
#
# Anscheinend mit "net" statt "tty" Probleme mit gehechselten Zeilen
# beim Drucken
#
# vpo   Iomega Zip Drive
#       Requires SCSI disk support ('scbus' and 'da'), best
#       performance is achieved with ports in EPP 1.9 mode.
# lpt   Parallel Printer
# plip  Parallel network interface
# ppi   General-purpose I/O ("Geek Port")
# pps   Pulse per second Timing Interface
# lpbb  Philips official parallel port I2C bit-banging interface
#
device		ppc0	at isa? port? flags 0x08 irq 7
device		ppbus
device          vpo
device          lpt
device          plip
device          ppi

#####################################################################
# Audio drivers: `snd', `sb', `pas', `gus', `pca'
#
#device		snd
#device		sb0	at isa? port 0x220 irq 5 drq 1
#device		sbxvi0	at isa? irq? drq 5
#device		opl0	at isa? port 0x388
#device		sbmidi0	at isa? port 0x330
#device		awe0	at isa? port 0x620
#device		joy0	at isa? port IO_GAME


#####################################################################
# Luigi's snd code (use INSTEAD of snd0 and all VOXWARE drivers!).
# You may also wish to enable the pnp controller with this, for pnp
# sound cards.
#
option		PNPBIOS
device		pcm
device		sbc


#####################################################################
# PCI devices
#####################################################################

device		pci0

#####################################################################
# SCSI Controllers
# A single entry for any of these controllers (ncr, ahb, ahc) is
# sufficient for any number of installed devices.
#
device		ahc0		# AHA2940 and onboard AIC7xxx devices
device		ahc1
option		SCSI_DELAY=8000

#####################################################################
# SCSI peripherals und für ZIP-Drives
# Only one of each of these is needed, they are dynamically allocated.
#
device		scbus0 at ahc0	# bus (required)
device		scbus1 at ahc1	# bus (required)
device		da		# Access (disks)
device		sa		# Access (tape etc)
device		cd		# CD
device		pass		# Passthrough device (direct SCSI)

###############################################
# AH 2940 UW
#
device		da0     at scbus0 target  0	# Seagate ST15150N
device		da1     at scbus0 target  8	# Seagate ST39102LW (DEC)
device		da2	at scbus0 target  9	# Seagate ST32171W
device		da3	at scbus0 target 10	# Seagate ST32171W
device		da4	at scbus0 target 11	# Seagate ST19101W
#
device          pass5   at scbus1 target  3	# UMAX Astra 2200
#
device          cd0     at scbus1 target  5	# Pioneer DR-U10x
device          cd1     at scbus1 target  6	# Ricoh   7060S
device          cd2     at scbus0 target  6	# Pioneer DR-U12x
#
device		sa0	at scbus1 target  4	# Seagate Python 28388


#####################################################################
# Network Card
#
device		miibus
device		fxp	# Intel EtherExpress PRO/100B (82557, 82558)

#####################################################################
# USB support (wird auch alles dynamisch vom usbd geladen!)
device		uhci
device		ohci
device		usb
device		ugen
device		uhid
device		ukbd
device		ulpt
device		umass
device		ums
device		uscanner

#####################################################################
# Useful pseudo devices
#####################################################################
pseudo-device	loop
pseudo-device	ether
pseudo-device	sl	1
pseudo-device	ppp	1
pseudo-device	tun	1
pseudo-device	pty	16
pseudo-device	gzip		# Exec gzipped a.out's
pseudo-device	bpf	4	#Berkeley packet filter
pseudo-device   vn              #Vnode driver (turns a file into a device)
pseudo-device   snp	3	#Snoop device - to look at pty/vty/etc..
pseudo-device	md		# Memory "disks"
pseudo-device   gif     4       # IPv6 and IPv4 tunneling
pseudo-device   faith   1       # IPv6-to-IPv4 relaying (translation)


>How-To-Repeat:

	On an SMP machine with ECC printer port:

	lptcontrol -e -d /dev/lpctl0

>Fix:

        ?

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




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