From root@lippe.de  Fri Dec 22 04:37:41 2000
Return-Path: <root@lippe.de>
Received: from henoch.cc.fh-lippe.de (henoch.cc.fh-lippe.de [193.16.112.72])
	by hub.freebsd.org (Postfix) with ESMTP id 7C64837B402
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 22 Dec 2000 04:37:40 -0800 (PST)
Received: from spock.cc.fh-lippe.de([193.16.118.120]) (11778 bytes) 
	by henoch.cc.fh-lippe.de
	via sendmail with P:esmtp/R:inet_hosts/T:smtp
	(sender: <root@lippe.de>) 
	id <m149RS7-0000VkC@henoch.cc.fh-lippe.de>
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 22 Dec 2000 13:37:39 +0100 (MET)
	(Smail-3.2.0.111 2000-Feb-17 #1 built 2000-Mar-17)
Received: from door.lippe.de(heptagon.cc.fh-lippe.de[193.16.112.178]) (11414 bytes) by spock.cc.fh-lippe.de
	via sendmail with P:smtp/R:smart_host/T:smtp
	(sender: <root@lippe.de>) 
	id <m149RS3-0006y2C@spock.cc.fh-lippe.de>
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 22 Dec 2000 13:37:35 +0100 (MET)
	(Smail-3.2.0.111 2000-Feb-17 #1 built 2000-Mar-17)
Received: from odie.lippe.de (root@odie.lippe.de [192.168.4.2])
	by door.lippe.de (8.9.3/8.9.3) with ESMTP id NAA45997
	for <FreeBSD-gnats-submit@freebsd.org>; Fri, 22 Dec 2000 13:31:47 +0100 (CET)
	(envelope-from root@lippe.de)
Received: (from root@localhost)
	by odie.lippe.de (8.11.1/8.11.1) id eBMCVkQ01345;
	Fri, 22 Dec 2000 13:31:46 +0100 (CET)
	(envelope-from root)
Message-Id: <200012221231.eBMCVkQ01345@odie.lippe.de>
Date: Fri, 22 Dec 2000 13:31:46 +0100 (CET)
From: lkoeller@cc.fh-lippe.de
Sender: root@lippe.de
Reply-To: lkoeller@cc.fh-lippe.de
To: FreeBSD-gnats-submit@freebsd.org
Cc: lkoeller@cc.fh-lippe.de
Subject: panic with smp kernel and dma lpt
X-Send-Pr-Version: 3.2

>Number:         23752
>Category:       kern
>Synopsis:       panic with smp 4.2 kernel and dma lpt
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 22 04:40:01 PST 2000
>Closed-Date:    Sun Nov 18 12:14:56 PST 2001
>Last-Modified:  Sun Nov 18 12:15:20 PST 2001
>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 fr 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:
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Sun Nov 18 11:31:32 PST 2001 
State-Changed-Why:  

Does this problem still occur with more recent releases? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=23752 
State-Changed-From-To: feedback->closed 
State-Changed-By: iedowse 
State-Changed-When: Sun Nov 18 12:14:56 PST 2001 
State-Changed-Why:  

Submitter says that the problem is fixed. Thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=23752 
>Unformatted:
