Date: Fri, 6 Jun 2003 19:18:02 +1000 (EST) From: David Burns <david.burns@dugeem.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/52980: [patch] dc(4) driver fails to init Intel 21143 Cardbus NIC Message-ID: <200306060918.h569I2U66960@blah.ryde.dugeem.net> Resent-Message-ID: <200306060920.h569KEL8061530@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306060918.h569I2U66960>