[tulip] tulip.c v0.92w and RNIS device

Benoit Brodard bbrodard@free.fr
Wed, 22 Aug 2001 19:12:14 +0200 (MEST)


Hi,

To solve carrier error problems with a DEC21*4* device, I patched the Tulip 
driver in a 2.2 kernel from version v0.91g to v0.92w, no module, everything 
compiled in the keernel. I also added the pci-scan code.
Now, I observe an extra eth0 AMPR NET/ROM interface on another linux box with 
the new kernel, an RNIS board, and 2 Ethernet cards. My old eth0 device is now 
configurable as eth2.
Does anyone have an idea of why this misconfigured eth0 appeared and how I can 
get rid of it ?

Thanks a lot for any insights, I include below ifconfig, /proc/pci, part of 
dmesg outputs for both configurations, prior and after the upgrade.

-Benoit

Initial configuration read :
------------- tulip 0.91g ---------------------------
ifconfig:
==========
eth0      Link encap:Ethernet  HWaddr 00:D0:09:66:6B:94  
          inet addr:10.10.192.32  Bcast:10.10.192.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2139 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          Interrupt:11 Base address:0xcc00 

eth1      Link encap:Ethernet  HWaddr 00:50:BA:1D:FF:CD  
          inet addr:10.10.0.2  Bcast:10.10.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1712 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1275 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          Interrupt:12 Base address:0xc000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0

/proc/pci :
===========
(...)
  Bus  1, device   4, function  0:
    Ethernet controller: VIA Technologies Unknown device (rev 67).
      Vendor id=1106. Device id=3065.
      Medium devsel.  IRQ 12.  Master Capable.  Latency=32.  Min Gnt=3.Max 
Lat=8.
      I/O at 0xc000 [0xc001].
      Non-prefetchable 32 bit memory at 0xc1001000 [0xc1001000].
  Bus  1, device   5, function  0:
    Network controller: PLX Unknown device (rev 1).
      Vendor id=10b5. Device id=1187.
      Medium devsel.  Fast back-to-back capable.  IRQ 11.  
      Non-prefetchable 32 bit memory at 0xc1000000 [0xc1000000].
      I/O at 0xc400 [0xc401].
      I/O at 0xc800 [0xc801].
  Bus  1, device   7, function  0:
    Ethernet controller: Realtek 8139 (rev 16).
      Medium devsel.  Fast back-to-back capable.  IRQ 11.  Master Capable.  
Latency=32.  Min Gnt=32.Max Lat=64.
      I/O at 0xcc00 [0xcc01].
      Non-prefetchable 32 bit memory at 0xc1002000 [0xc1002000].

dmesg :
========
(...)
PCI: BIOS32 Service Directory structure at 0xc00fabe0
PCI: BIOS32 Service Directory entry at 0xfb0c0
PCI: BIOS probe returned s=00 hw=11 ver=02.10 l=01
PCI: PCI BIOS revision 2.10 entry at 0xfb0f0
PCI: Using configuration type 1
PCI: Probing PCI hardware
pci_scan_bus for bus 0
PCI: 00:00 [8086/7120] 000600 00
PCI: 00:08 [8086/7121] 000300 00
PCI: 00:f0 [8086/2418] 000604 01
PCI: 00:f8 [8086/2410] 000601 80
PCI: 00:f9 [8086/2411] 000101 00
PCI: Scanning for ghost devices on bus 0
pci_scan_bus for bus 1
PCI: 01:20 [1106/3065] 000200 00
PCI: 01:28 [10b5/1187] 000280 00
PCI: 01:38 [10ec/8139] 000200 00
PCI: Scanning for ghost devices on bus 1
PCI: pci_scan_bus returning with max=01
PCI: pci_scan_bus returning with max=01
pci_fixup_peer_bridges with cnt=0 && b->subordinate=1
PCI: Sorting device list...
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
(...)
ISDN subsystem Rev: 1.1.1.1/1.1.1.1/1.3/1.3/none/1.1.1.1
HiSax: Linux Driver for passive ISDN cards
HiSax: Version 3.3a (kernel)
HiSax: Layer1 Revision 1.1.1.1
HiSax: Layer2 Revision 1.1.1.1
HiSax: TeiMgr Revision 1.1.1.1
HiSax: Layer3 Revision 1.1.1.1
HiSax: LinkLayer Revision 1.1.1.1
HiSax: Total 2 cards defined
HiSax: Card 1 Protocol EDSS1 Id=HiSax (0)
Gazel: Driver Revision 1.1.1.1
Gazel: PCI card automatic recognition
Gazel: Card PCI R753 found
Gazel: config irq:11 ipac:0xC800  cfg:0xC400
Gazel: IPAC version 2
Gazel: IRQ 11 count 0
Gazel: IRQ 11 count 3
HiSax: DSS1 Rev. 1.1.1.1
HiSax: 2 channels added
HiSax: MAX_WAITING_CALLS added
HiSax: Card 2 Protocol EDSS1 Id=HiSax1 (1)
HiSax: W6692 driver Rev. 1.1.1.1
W6692: No PCI card found
HiSax: Card Winbond 6692 not installed !
PCI_IDE: unknown IDE controller on PCI bus 00 device f9, VID=8086, DID=2411
PCI_IDE: not 100% native mode: will probe irqs later
hda: WDC WD153AA-00BAA0, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: WDC WD153AA-00BAA0, 14679MB w/2048kB Cache, CHS=1871/255/63
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
scsi : 0 hosts.
scsi : detected total.
PPP: version 2.3.10 (demand dialling)
TCP compression code copyright 1989 Regents of the University of California
PPP line discipline registered.
3c59x.c:v0.99H 11/17/98 Donald Becker 
http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html
pcnet32.c: PCI bios is present, checking for devices...
rtl8139.c:v1.07 5/6/99 Donald Becker 
http://cesdis.gsfc.nasa.gov/linux/drivers/rtl8139.html
eth0: RealTek RTL8139 Fast Ethernet at 0xcc00, IRQ 11, 00:d0:09:66:6b:94.
via-rhine.c:v1.08b-LK1.0.0 12/14/2000 Written by Donald Becker
 http://www.scyld.com/network/via-rhine.html
eth1: VIA VT6102 Rhine-II at 0xc000, 00:50:ba:1d:ff:cd, IRQ 12.
eth1: MII PHY found at address 8, status 0x782d advertising 01e1 Link 40a1.
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

------------- tulip 0.92w ---------------------------
ifconfig :
===========
eth0      Link encap:AMPR NET/ROM  HWaddr   
          UP RUNNING  MTU:0  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 

eth1      Link encap:Ethernet  HWaddr 00:D0:09:66:6B:94  
          inet addr:10.10.0.2  Bcast:10.10.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:35 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          Interrupt:11 Base address:0xcc00 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 

/proc/pci :
============
  Bus  1, device   4, function  0:
    Ethernet controller: VIA Technologies Unknown device (rev 67).
      Vendor id=1106. Device id=3065.
      Medium devsel.  IRQ 12.  Master Capable.  Latency=32.  Min Gnt=3.Max 
Lat=8.
      I/O at 0xc000 [0xc001].
      Non-prefetchable 32 bit memory at 0xc1001000 [0xc1001000].
  Bus  1, device   5, function  0:
    Network controller: PLX Unknown device (rev 1).
      Vendor id=10b5. Device id=1187.
      Medium devsel.  Fast back-to-back capable.  IRQ 11.  
      Non-prefetchable 32 bit memory at 0xc1000000 [0xc1000000].
      I/O at 0xc400 [0xc401].
      I/O at 0xc800 [0xc801].
  Bus  1, device   7, function  0:
    Ethernet controller: Realtek 8139 (rev 16).
      Medium devsel.  Fast back-to-back capable.  IRQ 11.  Master Capable.  
Latency=32.  Min Gnt=32.Max Lat=64.
      I/O at 0xcc00 [0xcc01].
      Non-prefetchable 32 bit memory at 0xc1002000 [0xc1002000].

dmesg :
========
(...)
PCI: BIOS32 Service Directory structure at 0xc00fabe0
PCI: BIOS32 Service Directory entry at 0xfb0c0
PCI: BIOS probe returned s=00 hw=11 ver=02.10 l=01
PCI: PCI BIOS revision 2.10 entry at 0xfb0f0
PCI: Using configuration type 1
PCI: Probing PCI hardware
pci_scan_bus for bus 0
PCI: 00:00 [8086/7120] 000600 00
PCI: 00:08 [8086/7121] 000300 00
PCI: 00:f0 [8086/2418] 000604 01
PCI: 00:f8 [8086/2410] 000601 80
PCI: 00:f9 [8086/2411] 000101 00
PCI: Scanning for ghost devices on bus 0
pci_scan_bus for bus 1
PCI: 01:20 [1106/3065] 000200 00
PCI: 01:28 [10b5/1187] 000280 00
PCI: 01:38 [10ec/8139] 000200 00
PCI: Scanning for ghost devices on bus 1
PCI: pci_scan_bus returning with max=01
PCI: pci_scan_bus returning with max=01
pci_fixup_peer_bridges with cnt=0 && b->subordinate=1
PCI: Sorting device list...
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
(...)
ISDN subsystem Rev: 1.1.1.1/1.1.1.1/1.3/1.3/none/1.1.1.1
HiSax: Linux Driver for passive ISDN cards
HiSax: Version 3.3a (kernel)
HiSax: Layer1 Revision 1.1.1.1
HiSax: Layer2 Revision 1.1.1.1
HiSax: TeiMgr Revision 1.1.1.1
HiSax: Layer3 Revision 1.1.1.1
HiSax: LinkLayer Revision 1.1.1.1
HiSax: Approval certification failed because of
HiSax: unauthorized source code changes
HiSax: Total 2 cards defined
HiSax: Card 1 Protocol EDSS1 Id=HiSax (0)
Gazel: Driver Revision 1.1.1.1
Gazel: PCI card automatic recognition
Gazel: Card PCI R753 found
Gazel: config irq:11 ipac:0xC800  cfg:0xC400
Gazel: IPAC version 2
Gazel: IRQ 11 count 0
Gazel: IRQ 11 count 3
HiSax: DSS1 Rev. 1.1.1.1
HiSax: 2 channels added
HiSax: MAX_WAITING_CALLS added
HiSax: Card 2 Protocol EDSS1 Id=HiSax1 (1)
HiSax: W6692 driver Rev. 1.1.1.1
W6692: No PCI card found
HiSax: Card Winbond 6692 not installed !
PCI_IDE: unknown IDE controller on PCI bus 00 device f9, VID=8086, DID=2411
PCI_IDE: not 100% native mode: will probe irqs later
hda: WDC WD153AA-00BAA0, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: WDC WD153AA-00BAA0, 14679MB w/2048kB Cache, CHS=1871/255/63
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
scsi : 0 hosts.
scsi : detected total.
PPP: version 2.3.10 (demand dialling)
TCP compression code copyright 1989 Regents of the University of California
PPP line discipline registered.
3c59x.c:v0.99H 11/17/98 Donald Becker 
http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html
pcnet32.c: PCI bios is present, checking for devices...
tulip.c:v0.92w 7/9/2001  Written by Donald Becker <becker@scyld.com>
  http://www.scyld.com/network/tulip.html
rtl8139.c:v1.07 5/6/99 Donald Becker 
http://cesdis.gsfc.nasa.gov/linux/drivers/rtl8139.html
eth1: RealTek RTL8139 Fast Ethernet at 0xcc00, IRQ 11, 00:d0:09:66:6b:94.
via-rhine.c:v1.08b-LK1.0.0 12/14/2000 Written by Donald Becker
 http://www.scyld.com/network/via-rhine.html
eth2: VIA VT6102 Rhine-II at 0xc000, 00:50:ba:1d:ff:cd, IRQ 12.
eth2: MII PHY found at address 8, status 0x782d advertising 01e1 Link 40a1.