Going at it today.

One issue seems to be disabling interrupts by writing 0x0 to
CB_SOCKET_MASK in yenta_probe.  I don't know enough about driver
development to know why that blows up, but the same thing is done
(with the same comment) in the 2.4 series' initialization (yenta_open)
as well.  Preventing those via #ifdef results in the driver lasting
longer, but not much so - attached are the raw oops and same run
through ksym.  Also, below is the debug output from yenta_socket.c up
to and including the first line in the oops file above (not really
part, but it's an anchor).  Now we're really getting out of my depth.

################################
Yenta: CardBus bridge found at 0000:00:01.0 [0000:0000]
config_writel: 803ab000 0044 00000000
config_writel: 803ab000 0010 1c000000
config_writew: 803ab000 0004 0087
config_writeb: 803ab000 000c 08
config_writeb: 803ab000 000d a8
config_writel: 803ab000 0018 b0040100
config_readw: 803ab000 003e 0340
config_writew: 803ab000 003e 0500
config_readl: 803ab000 0034 00000000
config_readl: 803ab000 0038 00000000
yenta 0000:00:01.0: no resource of type 100 available, trying to continue...
config_readl: 803ab000 0080 08449060
Yenta: Enabling burst memory read transactions
config_writel: 803ab000 0080 0844d060
config_readb: 803ab000 0093 60
Yenta: Using CSCINT to route CSC interrupts to PCI
Yenta: Routing CardBus interrupts to PCI
config_readl: 803ab000 008c 00001000
config_readb: 803ab000 0092 66
Yenta TI: socket 0000:00:01.0, mfunc 0x00001000, devctl 0x66
ksymoops 2.4.11 on i686 2.6.23-hardened-r5.  Options used
     -v ../kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/linux-2.6.22/vmlinux 
(specified)
     -K (specified)
     -l ./modules-5.txt (specified)
     -o ../kamikaze_7.09/build_mipsel/root/lib/modules/2.6.22/ (specified)
     -m 
../kamikaze_7.09/build_mipsel/linux-2.6-brcm47xx/linux-2.6.22/System.map 
(specified)

No modules in ksyms, skipping objects
No ksyms, skipping lsmod
Data bus error, epc == c00c4178, ra == c00c5c94
Cpu 0
$ 0   : 00000000 1000a800 c00aa000 80240000
$ 4   : 803ab000 00000001 00000001 00000000
$ 8   : 80239b00 80240000 80280000 80280000
$12   : 80280000 80e03bd2 80278d04 00000000
$16   : 80110000 00000066 803ab000 80110000
$20   : c00d0000 00001000 80023454 c00d0000
$24   : 00000000 80203c24                  
$28   : 80e02000 80e03ce0 c00d0000 c00c5c94
Hi    : 00000063
Lo    : 126fa800
epc   : c00c4178     Not tainted
Using defaults from ksymoops -t elf32-i386 -a i386
Cause : 0000001c
        803ab000 80110000 c00c5c94 c00c5b1c 00000000 802c20ec 00001000 00000066
        00000066 80e03d48 00001066 c00d0000 00000000 c00c54b0 00000000 c00d0000
        80108b28 80108aa0 802c2000 c00d0000 803ab000 c00c89ac 802c20b0 c00c9018
        00000200 0000003e 00000028 802100c3 802c0340 1c000000 1c000fff 80e8ebc0
Call 
Trace:[<80110000>][<80023478>][<80110000>][<80110000>][<c00c5c94>][<c00c5b1c>][<c00c54b0>][<80108b28>][<80108aa0>][<c00c89ac>][<801287c8>][<8010ed2c>][<8012c2a4>][<801f7f5c>][<800bd85c>][<8012c714>][<8012af2c>][<800f9570>][<8012c5ac>][<8012b098>][<801287c8>][<8012b4b8>][<80066a34>][<8010ef44>][<80047898>][<8000bc60>][<8024b920>][<8024b920>]
Code: afb00018  8c82000c  00809021 <90500803> 3c11c00d  321000ff  3c028002  
3c05c00d  26249040 


>>$12; 80280000 <swap_info+cc/88c>
>>$14; 80278d04 <oops_timestamp.18524+0/4>
>>$16; 80110000 <pci_write_config+d8/22c>
>>$19; 80110000 <pci_write_config+d8/22c>
>>$22; 80023454 <printk+0/30>
>>$25; 80203c24 <small_digits.6635+0/2c>

>>EIP; c00c4178 <END_OF_CODE+3fe38a38/????>   <=====

Trace; 80110000 <pci_write_config+d8/22c>
Trace; 80023478 <printk+24/30>
Trace; 80110000 <pci_write_config+d8/22c>
Trace; 80110000 <pci_write_config+d8/22c>
Trace; c00c5c94 <END_OF_CODE+3fe3a554/????>
Trace; c00c5b1c <END_OF_CODE+3fe3a3dc/????>
Trace; c00c54b0 <END_OF_CODE+3fe39d70/????>
Trace; 80108b28 <pci_bus_write_config_dword+0/84>
Trace; 80108aa0 <pci_bus_write_config_word+0/88>
Trace; c00c89ac <END_OF_CODE+3fe3d26c/????>
Trace; 801287c8 <device_remove_file+0/5c>
Trace; 8010ed2c <pci_device_probe+68/a4>
Trace; 8012c2a4 <driver_probe_device+17c/290>
Trace; 801f7f5c <klist_next+6c/a4>
Trace; 800bd85c <sysfs_create_dir+64/88>
Trace; 8012c714 <__driver_attach+168/2b8>
Trace; 8012af2c <next_device+10/2c>
Trace; 800f9570 <kobject_shadow_add+f4/1f8>
Trace; 8012c5ac <__driver_attach+0/2b8>
Trace; 8012b098 <bus_for_each_dev+54/a0>
Trace; 801287c8 <device_remove_file+0/5c>
Trace; 8012b4b8 <bus_add_driver+8c/1e0>
Trace; 80066a34 <remove_vm_area+48/74>
Trace; 8010ef44 <__pci_register_driver+58/ac>
Trace; 80047898 <sys_init_module+11d0/1334>
Trace; 8000bc60 <stack_done+20/3c>
Trace; 8024b920 <unpack_to_rootfs+5a8/ad0>
Trace; 8024b920 <unpack_to_rootfs+5a8/ad0>

Code;  c00c416c <END_OF_CODE+3fe38a2c/????>
00000000 <_EIP>:
Code;  c00c416c <END_OF_CODE+3fe38a2c/????>
   0:   18 00                     sbb    %al,(%eax)
Code;  c00c416e <END_OF_CODE+3fe38a2e/????>
   2:   b0 af                     mov    $0xaf,%al
Code;  c00c4170 <END_OF_CODE+3fe38a30/????>
   4:   0c 00                     or     $0x0,%al
Code;  c00c4172 <END_OF_CODE+3fe38a32/????>
   6:   82                        (bad)  
Code;  c00c4173 <END_OF_CODE+3fe38a33/????>
   7:   8c 21                     mov    %fs,(%ecx)
Code;  c00c4175 <END_OF_CODE+3fe38a35/????>
   9:   90                        nop    
Code;  c00c4176 <END_OF_CODE+3fe38a36/????>   <=====
   a:   80 00 03                  addb   $0x3,(%eax)   <=====
Code;  c00c4179 <END_OF_CODE+3fe38a39/????>
   d:   08 50 90                  or     %dl,-0x70(%eax)
Code;  c00c417c <END_OF_CODE+3fe38a3c/????>
  10:   0d c0 11 3c ff            or     $0xff3c11c0,%eax
Code;  c00c4181 <END_OF_CODE+3fe38a41/????>
  15:   00 10                     add    %dl,(%eax)
Code;  c00c4183 <END_OF_CODE+3fe38a43/????>
  17:   32 02                     xor    (%edx),%al
Code;  c00c4185 <END_OF_CODE+3fe38a45/????>
  19:   80 02 3c                  addb   $0x3c,(%edx)
Code;  c00c4188 <END_OF_CODE+3fe38a48/????>
  1c:   0d c0 05 3c 40            or     $0x403c05c0,%eax
Code;  c00c418d <END_OF_CODE+3fe38a4d/????>
  21:   90                        nop    
Code;  c00c418e <END_OF_CODE+3fe38a4e/????>
  22:   24 26                     and    $0x26,%al

Yenta TI: socket 0000:00:01.0, mfunc 0x00001000, devctl 0x66
Data bus error, epc == c00c4178, ra == c00c5c94
Oops[#1]:
Cpu 0
$ 0   : 00000000 1000a800 c00aa000 80240000
$ 4   : 803ab000 00000001 00000001 00000000
$ 8   : 80239b00 80240000 80280000 80280000
$12   : 80280000 80e03bd2 80278d04 00000000
$16   : 80110000 00000066 803ab000 80110000
$20   : c00d0000 00001000 80023454 c00d0000
$24   : 00000000 80203c24                  
$28   : 80e02000 80e03ce0 c00d0000 c00c5c94
Hi    : 00000063
Lo    : 126fa800
epc   : c00c4178     Not tainted
ra    : c00c5c94 Status: 1000a803    KERNEL EXL IE 
Cause : 0000001c
PrId  : 00029007
Modules linked in: yenta_socket rsrc_nonstatic pcmcia pcmcia_core ipt_ULOG 
xt_string ipt_layer7 ipt_ipp2p iptable_raw xt_portscan xt_CHAOS xt_DELUDE 
xt_pkttype ipt_owner ipt_LOG ipt_recent xt_NOTRACK xt_connbytes xt_helper 
xt_CONNMARK xt_connmark ppp_async ppp_generic slhc crc_ccitt switch_robo 
switch_core diag
Process insmod (pid: 407, threadinfo=80e02000, task=802fa800)
Stack : 803ab000 80110000 c00d0000 80023478 80e03cf8 802c2278 80110000 00000066
        803ab000 80110000 c00c5c94 c00c5b1c 00000000 802c20ec 00001000 00000066
        00000066 80e03d48 00001066 c00d0000 00000000 c00c54b0 00000000 c00d0000
        80108b28 80108aa0 802c2000 c00d0000 803ab000 c00c89ac 802c20b0 c00c9018
        00000200 0000003e 00000028 802100c3 802c0340 1c000000 1c000fff 80e8ebc0
        ...
Call 
Trace:[<80110000>][<80023478>][<80110000>][<80110000>][<c00c5c94>][<c00c5b1c>][<c00c54b0>][<80108b28>][<80108aa0>][<c00c89ac>][<801287c8>][<8010ed2c>][<8012c2a4>][<801f7f5c>][<800bd85c>][<8012c714>][<8012af2c>][<800f9570>][<8012c5ac>][<8012b098>][<801287c8>][<8012b4b8>][<80066a34>][<8010ef44>][<80047898>][<8000bc60>][<8024b920>][<8024b920>]

Code: afb00018  8c82000c  00809021 <90500803> 3c11c00d  321000ff  3c028002  
3c05c00d  26249040 
_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to