5.3-BETA5 panics when inserting dc0 carbus card (only with ACPI enabled)

From: Johan Karlsson <johan_at_freebsd.org>
Date: Wed, 22 Sep 2004 10:16:16 +0200
Hi

I get an instant panic when I insert the network card into my T20.
The card:
dc0: <Xircom X3201 10/100BaseTX> port 0x1080-0x10ff mem 0x88000000-0x880007ff,0x88000800-0x88000fff irq 11 at device 0.0 on cardbus1

And the panic message:
cbb alloc res fail
cardbus1: Can't get memory for IO ports
found->	vendor=0x115d, dev=0x0003, revid=0x03
	bus=5, slot=0, func=0
	class=02-00-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0000, statreg=0x0210, cachelnsz=8 (dwords)
	lattimer=0xa8 (5040 ns), mingnt=0x14 (5000 ns), maxlat=0x28 (10000 ns)
	intpin=a, irq=255
	powerspec 1  supports D0 D1 D2 D3  current D0
dc0: <Xircom X3201 10/100BaseTX> port 0-0x7f mem 0x88000000-0x880007ff,0x88000800-0x88000fff at device 0.0 on cardbus1
cbb alloc res fail
dc0: couldn't map ports/memory


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address	= 0x30
fault code		= supervisor write, page not present
instruction pointer	= 0x8:0xc079238e
stack pointer	        = 0x10:0xcc75cc10
frame pointer	        = 0x10:0xcc75cc14
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 39 (cbb1)
trap number		= 12
panic: page fault
cpuid = 0
Uptime: 4m42s
Dumping 255 MB
 16 32 48 64 80 96 112 128 144 160 176 192 208 224 240
Dump complete
Shutting down ACPI
stray irq9
Automatic reboot in 15 seconds - press a key on the console to abort
--> Press a key on the console to reboot,
--> or switch off the system now.
Rebooting...


I only get the panic when ACPI is enabled. With ACPI disabled it attached
properly and works as expected.

If I leave the card in the slot during boot it will panic when it tries to
attached it with the same message.

Moreover, I have seen a similar panic (if not the exact same one) on
another T20 with another cardbus card.

I have attached two verbose dmesg output (gzipped)
1) just after boot with ACPI enabled
2) after inserting the dc0 card with ACPI disabled

I have also attached a script output from kgdb session with
a backtrace and a 'list *<instruction pointer>'

These files can also be found at
http://numeri.campus.luth.se/~k/dmesg.acpi
http://numeri.campus.luth.se/~k/dmesg.no_acpi
http://numeri.campus.luth.se/~k/kgdb.out

Please let me know if there is any other info I can provide that will
help with the debugging of this problem.

/Johan K
--
Johan Karlsson		mailto:johan_at_FreeBSD.org

Received on Wed Sep 22 2004 - 06:16:20 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:13 UTC