kern/52980: [patch] dc(4) driver fails to init Intel 21143 Cardbus
NIC
David Burns
david.burns at dugeem.net
Fri Jun 6 02:20:15 PDT 2003
>Number: 52980
>Category: kern
>Synopsis: [patch] dc(4) driver fails to init Intel 21143 Cardbus NIC
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Jun 06 02:20:13 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: David Burns <david.burns at dugeem.net>
>Release: FreeBSD 5.1-RC1 i386
>Organization:
(this space available for rent)
>Environment:
System: FreeBSD blahblah.ryde.dugeem.net 5.1-RC1 FreeBSD 5.1-RC1 #15: Thu Jun 5 23:42:21 EST 2003 root@:/usr/src/sys/i386/compile/DUGEEM i386
>Description:
Attempting to use a (1998 vintage) Xircom CBE 10/100 Cardbus Ethernet NIC with
5.1-RC1. PCI/Cardbus init successfully identifies card as Intel 21143 NIC, (ie
early Xircom 21143 based Cardbus NIC - this is correct!) but shows incorrect
MAC address of 00:00:00:00:00:00.
NIC would still not work even if MAC address was manually set through ifconfig.
Fix is attached.
>How-To-Repeat:
1. Install FreeBSD 5.1-RC1 on laptop with Cardbus slot(s)
2. Insert Xircom CBE 10/100 Cardbus Ethernet NIC
3. Observe incorrect MAC address
4. ifconfig dc0 ether 00:01:02:03:04:05
5. ifconfig dc0 inet 192.168.63.63/24
6. ifconfig dc0 (output shows inactive status)
>Fix:
1. If 21143 chipset found, test for DC_PCI_CCIS != 0. If yes, then set
sc->dc_type = DC_TYPE_21143_CB
2. Use new type to obtain MAC address from CIS - same code as DC_TYPE_XIRCOM
3. Need to set 21143 GPIO outputs to MII/SYM (similar to Xircom x3201).
(Also enable activity LED - needs to be tested on x3201)
See attached diff -u output.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list