Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 May 2003 19:24:15 +0300
From:      Markus =?ISO-8859-1?Q?Niemist=F6?= <markus.niemisto@mobiili.net>
To:        mobile@freebsd.org
Subject:   Re: CIS reading problems
Message-ID:  <20030530192415.3692b91d.markus.niemisto@mobiili.net>

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

I am having problems similiar to Mr Walsh's. I've tracked errors down to
pccard_scan_cis also. Commenting few lines out makes the panic go away
but then FreeBSD doesn't find any functions from my card.

There is my dmesg and bt et co from one panic included in this mail.

I am currently using OLDCARD but if more information is needed, I can
compile my NEWCARD kernel again.

I've sent error report this to current@ but no-one has replied.

Thanks,
	Markus Niemist=F6

PS. I am not on this list, so please CC me.

Begin forwarded message:

Date: Wed, 14 May 2003 20:26:13 +0300
From: Markus Niemist=F6 <markus.niemisto@mobiili.net>
To: current@freebsd.org
Subject: Cardbus causing panics


Hello

Problem is: my laptop has support for 16-bit cardbus (driver pccard in
FreeBSD) and for pcic. Everything works fine as long as I use pcic and
OLDCARD implementation. But when I compile a kernel using NEWCARD,
kernel crashes immediately after I insert a PCMCIA card.

I have two cards: 3Com Etherlink III 3C589 (if_ep) and MultiTech
MultiMobile 56kBps modem (works with generic sio). Both these cards work
fine with OLDCARD but cause panic when used with NEWCARD.

This panic happened when inserting Etherlink III. My kernel is cvsuped
few hours ago.

Thanks,
	Markus Niemist=F6

------------

GNU gdb 5.2.1 (FreeBSD)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are welcome to change it and/or distribute copies of it under certain
conditions. Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details. This GDB was configured as "i386-undermydesk-freebsd".
(kgdb) e=08 =08symbol-file kernel.debug
Reading symbols from kernel.debug...done.
(kgdb) exec-g=08 =08file kernel
(kgdb) core-file /usr/vmcore/vmcore.0
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address	=3D 0xc6a12000
fault code		=3D supervisor read, page not present
instruction pointer	=3D 0x8:0xc014b2a5
stack pointer	        =3D 0x10:0xc66539e4
frame pointer	        =3D 0x10:0xc6653be0
code segment		=3D base 0x0, limit 0xfffff, type 0x1b
			=3D DPL 0, pres 1, def32 1, gran 1
processor eflags	=3D interrupt enabled, resume, IOPL =3D 0
current process		=3D 5 (cbb0)
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 5.1-BETA #20: Wed May 14 19:30:46 EEST 2003
    maku@ogorod.dielocalwarez.com:/usr/src/sys/i386/compile/-=3DDLW=3D-
Preloaded elf kernel "/boot/kernel/kernel" at 0xc040f000.
Preloaded elf module "/boot/kernel/if_ep.ko" at 0xc040f1cc.
Preloaded elf module "/boot/kernel/snd_pcm.ko" at 0xc040f278.
Preloaded elf module "/boot/kernel/snd_mss.ko" at 0xc040f324.
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 166195800 Hz
CPU: Pentium/P55C (166.20-MHz 586-class CPU)
  Origin =3D "GenuineIntel"  Id =3D 0x544  Stepping =3D 4
  Features=3D0x8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,MMX>
real memory  =3D 84017152 (80 MB)
avail memory =3D 77168640 (73 MB)
Intel Pentium detected, installing workaround for F00F bug
VESA: v2.0, 2048k memory, flags:0x0, mode table:0xc0371f80 (1000040)
VESA: CHIPS 65554 Super VGA
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 2 entries at 0xc00fdc30
pcib0: <Host to PCI bridge> at pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
cbb0: <ToPIC95B PCI-CardBus Bridge> irq 11 at device 2.0 on pci0
cardbus0: <CardBus bus> on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb1: <ToPIC95B PCI-CardBus Bridge> irq 11 at device 2.1 on pci0
cardbus1: <CardBus bus> on cbb1
pccard1: <16-bit PCCard bus> on cbb1
pci0: <display, VGA> at device 4.0 (no driver attached)
isa0: <ISA bus> on motherboard
orm0: <Option ROM> at iomem 0xc0000-0xcbfff on isa0
pmtimer0 on isa0
ata0 at port 0x3f6,0x1f0-0x1f7 irq 14 on isa0
ata1 at port 0x376,0x170-0x177 irq 15 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model GlidePoint, device ID 0
fdc0: <NEC 765 or clone> at port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=3D0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
isa0 speaker0: <PC speaker> at port 0x61 on isa0
unknown: <PNP0303> can't assign resources (port)
unknown: <TOS7400> can't assign resources (irq)
unknown: <PNP0700> can't assign resources (port)
unknown: <PNP0600> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
pcm0: <CS423x> at port 0x220-0x22f,0x388-0x38b,0x534-0x537 irq 5 drq 1,0
on isa0 Timecounters tick every 10.000 msec
ad0: 2937MB <TOSHIBA MK3003MAN> [5968/16/63] at ata0-master PIO4
Mounting root from ufs:/dev/ad0s1a


Fatal trap 12: page fault while in kernel mode
fault virtual address	=3D 0xc6d13000
fault code		=3D supervisor read, page not present
instruction pointer	=3D 0x8:0xc014b2a5
stack pointer	        =3D 0x10:0xc66539e4
frame pointer	        =3D 0x10:0xc6653be0
code segment		=3D base 0x0, limit 0xfffff, type 0x1b
			=3D DPL 0, pres 1, def32 1, gran 1
processor eflags	=3D interrupt enabled, resume, IOPL =3D 0
current process		=3D 5 (cbb0)
Dumping 80 MB
ata0: resetting devices ..
done
 16 32 48 64 80
---
Reading symbols from /boot/kernel/if_ep.ko...done.
Loaded symbols for /boot/kernel/if_ep.ko
Reading symbols from /boot/kernel/snd_pcm.ko...done.
Loaded symbols for /boot/kernel/snd_pcm.ko
Reading symbols from /boot/kernel/snd_mss.ko...done.
Loaded symbols for /boot/kernel/snd_mss.ko
#0  doadump () at ../../../kern/kern_shutdown.c:238
238		dumping++;
(kgdb) backtrace
#0  doadump () at ../../../kern/kern_shutdown.c:238
#1  0xc012895e in db_fncall (dummy1=3D0, dummy2=3D0, dummy3=3D-966444976,=20
    dummy4=3D0xc665381c "=B6=DB(=C0H8e=C6=A1=BF(=C0=A0=DD5=C0\"\t") at
../../../ddb/db_command.c:546
#2  0xc0128772 in db_command (last_cmdp=3D0xc02e4f00, cmd_table=3D0x0,=20
    aux_cmd_tablep=3D0xc02e0350, aux_cmd_tablep_end=3D0xc02e0354)
    at ../../../ddb/db_command.c:346
#3  0xc012883b in db_command_loop () at ../../../ddb/db_command.c:470
#4  0xc012afab in db_trap (type=3D12, code=3D0) at ../../../ddb/db_trap.c:72
#5  0xc0295cbf in kdb_trap (type=3D12, code=3D0, regs=3D0xc66539a4)
    at ../../../i386/i386/db_interface.c:170
#6  0xc02a509d in trap_fatal (frame=3D0xc66539a4, eva=3D3335598080)
    at ../../../i386/i386/trap.c:829
#7  0xc02a4dfb in trap_pfault (frame=3D0xc66539a4, usermode=3D0,
#eva=3D3335598080)
    at ../../../i386/i386/trap.c:748
#8  0xc02a4a41 in trap (frame=3D
      {tf_fs =3D 24, tf_es =3D 16, tf_ds =3D 16, tf_edi =3D -1062736620, tf=
_esi
=3D -966444044, tf_ebp =3D -966444064, tf_isp =3D -966444592, tf_ebx =3D
-1062737408, tf_edx =3D -959373312, tf_ecx =3D 0, tf_eax =3D 4096, tf_trapn=
o =3D
12, tf_err =3D 0, tf_eip =3D -1072385371, tf_cs =3D 8, tf_eflags =3D 66050,
tf_esp =3D -966444416, tf_ss =3D 1})    at ../../../i386/i386/trap.c:433
#9  0xc02972b8 in calltrap () at {standard input}:96
#10 0xc014b155 in pccard_read_cis (sc=3D0xc0a7ea00)
    at ../../../dev/pccard/pccard_cis.c:98
#11 0xc0149452 in pccard_attach_card (dev=3D0xc0a6c400)
    at ../../../dev/pccard/pccard.c:185
#12 0xc0150fda in CARD_ATTACH_CARD (dev=3D0xc0a6c400) at card_if.h:67
#13 0xc014f425 in cbb_insert (sc=3D0xc0a7ec00) at
#../../../dev/pccbb/pccbb.c:925 14 0xc014f2ce in cbb_event_thread
#(arg=3D0xc0a7ec00)
    at ../../../dev/pccbb/pccbb.c:883
#15 0xc01852f8 in fork_exit (callout=3D0xc014f260 <cbb_event_thread>,=20
    arg=3D0xc0a7ec00, frame=3D0xc6653d48) at ../../../kern/kern_fork.c:768



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030530192415.3692b91d.markus.niemisto>