kernel oops with CNET PRO 120

M.Schimschak masch@iff077.iff.kfa-juelich.de
Sat Sep 4 08:39:05 1999


Hi,

I get a kernel oops when I try to configure the ethernet interface
with a CNET PRO 120WL(A) PCI ethernet adapter. I assume it's caused by
a misconfiguration but I cannot figure out what I have done wrong. Any
hint is appreciated.

So, here are the details:

First, my entries in  /etc/conf.modules are:

alias eth0 tulip
options tulip debug=6

Installing the tulip module with "insmod tulip" leaves the following
entry in /var/log/messages

tulip.c:v0.89H 5/23/98 becker@cesdis.gsfc.nasa.gov 
eth0: Macronix 98715 PMAC at 0x6100, 00 80 ad 77 8e c9, IRQ 10. 
eth0:  EEPROM default media type 10baseT. 

which seems to be correct.

Now, when trying to configure the ethernet interface with "ifconfig
eth0 10.0.0.1" a segfault occurs leaving the following trace of a
kernel oops in /var/log/messages (filterd through ksymoops, kernel
version is 2.2.12, but it's reproducible with a RedHat shipped 2.0.36
kernel as well):

Sep  4 12:20:13 charlie kernel: Unable to handle kernel paging request at virtual address 2d646c2c 
Sep  4 12:20:13 charlie kernel: current->tss.cr3 = 02139000, %cr3 = 02139000 
Sep  4 12:20:13 charlie kernel: *pde = 00000000 
Sep  4 12:20:13 charlie kernel: Oops: 0000 
Sep  4 12:20:13 charlie kernel: CPU:    0 
Sep  4 12:20:13 charlie kernel: EIP:    0010:[fat:fat_esc2uni+49706/44339722] 
Sep  4 12:20:13 charlie kernel: EFLAGS: 00010246 
Sep  4 12:20:13 charlie kernel: eax: fffffff8   ebx: 2d646c2c   ecx: 00000000   edx: c01b9800 
Sep  4 12:20:13 charlie kernel: esi: c3e84d40   edi: c3e84d40   ebp: 00006100   esp: c25f9e1c 
Sep  4 12:20:13 charlie kernel: ds: 0018   es: 0018   ss: 0018 
Sep  4 12:20:13 charlie kernel: Process ifconfig (pid: 437, process nr: 40, stackpage=c25f9000) 
Sep  4 12:20:13 charlie kernel: Stack: c3e84d40 00000010 00000008 00000000 c011e7e2 c3fff2c0 00000286 c3aa39a0  
Sep  4 12:20:13 charlie kernel:        00000008 00000620 c3fee920 c0143677 c3e84d40 fffffff8 c01b9800 0000001f  
Sep  4 12:20:13 charlie kernel:        000001f0 c4849221 00000612 00000008 c01b9800 c01b9800 00006100 c48477f4  
Sep  4 12:20:13 charlie kernel: Call Trace: [kmalloc+234/348] [alloc_skb+111/240] [fat:fat_esc2uni+55949/44333479] [fat:fat_esc2uni+49248/44340180] [fib_inetaddr_event+69/76] [dev_open+37/128] [dev_change_flags+74/248]  
Sep  4 12:20:13 charlie kernel: Code: 8a 13 8b 74 24 68 88 56 3c 83 7c 24 6c 00 74 18 8b 44 24 38  
Warning: trailing garbage ignored on Code: line
  Text: 'Code: 8a 13 8b 74 24 68 88 56 3c 83 7c 24 6c 00 74 18 8b 44 24 38  '
  Garbage: '  '

Code:  00000000 Before first symbol            00000000 <_IP>: <===
Code:  00000000 Before first symbol               0:    8a 13           movb   (%ebx),%dl <===
Code:  00000002 Before first symbol               2:    8b 74 24 68     movl   0x68(%esp,1),%esi
Code:  00000006 Before first symbol               6:    88 56 3c        movb   %dl,0x3c(%esi)
Code:  00000009 Before first symbol               9:    83 7c 24 6c 00  cmpl   $0x0,0x6c(%esp,1)
Code:  0000000e Before first symbol               e:    74 18           je      00000028 Before first symbol
Code:  00000010 Before first symbol              10:    8b 44 24 38     movl   0x38(%esp,1),%eax



Below I attached the output of tulip-diag:

----- output of "tulip-diag -a": -----

tulip-diag.c:v1.12 7/31/99 Donald Becker (becker@cesdis.gsfc.nasa.gov)
Index #1: Found a Macronix 98715 PMAC adapter at 0x6100.
Macronix 98715 PMAC chip registers at 0x6100:
  fe580000 ffffffff ffffffff dbf7f6ff ffdff7ed e4000000 00000000 e7fe0000
  fffe0000 0fffcf08 fffff1fd fffe0000 000020ce ffff0001 fffffff9 fff00000
  03300000 03300000 03300000 fc0ffff0 00004200 00004200 00004200 00004200
  00004200 00004200 00004200 00004200 00004200 00004200 00004200 00004200
 Port selection is 10mpbs-serial, half-duplex.
 Transmit stopped, Receive stopped, half-duplex.
  The Rx process state is 'Stopped'.
  The Tx process state is 'Stopped'.
  The transmit threshold is 72.

----- output of "tulip-diag -e": -----

tulip-diag.c:v1.12 7/31/99 Donald Becker (becker@cesdis.gsfc.nasa.gov)
Index #1: Found a Macronix 98715 PMAC adapter at 0x6100.
 Port selection is 10mpbs-serial, half-duplex.
 Transmit stopped, Receive stopped, half-duplex.
  The Rx process state is 'Stopped'.
  The Tx process state is 'Stopped'.
  The transmit threshold is 72.
EEPROM size is 6.
Ethernet MAC Station Address 00:80:AD:77:8E:C9.
EEPROM transceiver/media description for the Macronix 98715 PMAC chip.
Leaf node at offset 128, default media type 0000 (10baseT).
 0 transceiver description blocks:

----- output of "tulip-diag -m": -----

tulip-diag.c:v1.12 7/31/99 Donald Becker (becker@cesdis.gsfc.nasa.gov)
Index #1: Found a Macronix 98715 PMAC adapter at 0x6100.
 Port selection is 10mpbs-serial, half-duplex.
 Transmit stopped, Receive stopped, half-duplex.
  The Rx process state is 'Stopped'.
  The Tx process state is 'Stopped'.
  The transmit threshold is 72.
   No MII transceivers found!



Thanks,
	Martin