Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Sep 1998 13:40:13 -0400 (EDT)
From:      Robert Watson <robert@fledge.watson.org>
To:        freebsd-bugs@FreeBSD.ORG
Subject:   after wakeup from apm sleep: pccardd[46]: No free configuration for card 3...
Message-ID:  <Pine.BSF.3.96.980923133349.479A-100000@sleipnir.pr3.watson.org>

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


I am using an IBM 560E notebook with a 3com 3C589C ethernet card; the
version of FreeBSD is 3.0-CURRENT.

uname -a reports:

FreeBSD sleipnir.watson.org 3.0-CURRENT FreeBSD 3.0-CURRENT #8: Mon Sep 21
14:00:31 EDT 1998
robert@sleipnir.watson.org:/usr/src/sys/compile/SLEIPNIR-SB  i386

I have APM and pccard enabled in my kernel (config file below); however, I
often get the following message on waking up the notebook after a sleep
(with the card still in the slot): 

Sep 23 13:33:15 sleipnir /kernel: ep0: unload
Sep 23 13:33:16 sleipnir /kernel: Return IRQ=10
Sep 23 13:33:16 sleipnir /kernel: Slot 0, unfielded interrupt (0)
Sep 23 13:33:16 sleipnir /kernel: Card disabled, slot 0
Sep 23 13:33:16 sleipnir /kernel: resumed from suspended mode (slept
00:35:56)
Sep 23 13:33:16 sleipnir /kernel: Card inserted, slot 0
Sep 23 13:33:21 sleipnir pccardd[46]: No free configuration for card 3Com
Corporation

The 'No free configuration' message is followed by the ep0 device no
longer being usable -- attempts to use the interface result in a 'network
down' error.  Needless to say, ifconfig reports:

ep0: flags=8803<UP,BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        ether 00:a0:24:60:31:9c 

The only way to get the device back seems to be to reboot.  Inserting
'PCIC_RESUME_RESET' removed a crash that used to happen in this situation,
but I am still getting the no-free-configuration error.  Here is the
kernel config file: 

machine		"i386"
#cpu		"I386_CPU"
#cpu		"I486_CPU"
cpu		"I586_CPU"
#cpu		"I686_CPU"
ident		SLEIPNIR
maxusers	64

#options		MATH_EMULATE		#Support for x87 emulation
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		USERCONFIG		#boot -c editor
options		VISUAL_USERCONFIG	#visual boot -c editor

options		INCLUDE_CONFIG_FILE
options		DDB
options		MFS
options		DEVFS

#options         MROUTING                # Multicast routing

# Coda stuff:
options         CODA                    #CODA filesystem.
pseudo-device   vcoda   4               #coda minicache <-> venus comm.

options PCIC_RESUME_RESET

config		kernel	root on wd0

controller	isa0
controller	pci0
controller	pnp0

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

options		"CMD640"	# work around CMD640 chip deficiency
controller	wdc0	at isa? port "IO_WD1" bio irq 14 vector wdintr
disk		wd0	at wdc0 drive 0

controller	wdc1	at isa? port "IO_WD2" bio irq 15 vector wdintr

#options		ATAPI		#Enable ATAPI support for IDE bus
#options		ATAPI_STATIC	#Don't do it as an LKM
#device		wcd0	#IDE CD-ROM

#controller	aic0	at isa? port 0x340 bio irq 11 vector aicintr

#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

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

#
# Laptop support (see LINT for more options)
#
device		apm0    at isa? flags 0x31	# Advanced Power Management

# PCCARD (PCMCIA) support
controller	card0
device		pcic0	at card?
device		pcic1	at card?

device		sio0	at isa? port "IO_COM1" flags 0x10 tty irq 4 vector siointr
device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr
device		sio2	at isa? port "IO_COM3" tty irq 9 vector siointr
device		sio3	at isa? port "IO_COM4" tty irq 11 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
options		PSM_HOOKAPM		#hook the APM resume event
options		PSM_RESETAFTERSUSPEND	#reset the device at the resume event

#device ed0 at isa? port 0x280 net irq 10 iomem 0xd8000 vector edintr
#device ep0 at isa? port 0x300 net irq 10 vector epintr
#device fe0 at isa? port 0x300 net irq ? vector feintr
device ep0 at isa? net irq 10 vector epintr


pseudo-device	loop
pseudo-device	ether
#pseudo-device	sl	1
# iijppp uses tun instead of ppp device
pseudo-device	ppp	1
pseudo-device	tun	2
pseudo-device	pty	48
pseudo-device	snp	3
pseudo-device	vn
pseudo-device	bpfilter	4
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

# This provides support for System V shared memory.
#
options         SYSVSHM
options		SYSVSEM
options		SYSVMSG

#device pcm0 at isa? port ? tty irq 5 drq 1 flags 0x0 vector pcmintr

device sb0      at isa? port 0x220 irq 5 drq 1 vector sbintr
device opl0     at isa? port 0x388
controller      snd0




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?Pine.BSF.3.96.980923133349.479A-100000>