From owner-freebsd-bugs@FreeBSD.ORG Fri Jun 6 02:20:15 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6345037B401 for ; Fri, 6 Jun 2003 02:20:15 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E03243FAF for ; Fri, 6 Jun 2003 02:20:14 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h569KEUp061531 for ; Fri, 6 Jun 2003 02:20:14 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h569KEL8061530; Fri, 6 Jun 2003 02:20:14 -0700 (PDT) Resent-Date: Fri, 6 Jun 2003 02:20:14 -0700 (PDT) Resent-Message-Id: <200306060920.h569KEL8061530@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, David Burns Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 77A0B37B401 for ; Fri, 6 Jun 2003 02:18:06 -0700 (PDT) Received: from mail011.syd.optusnet.com.au (mail011.syd.optusnet.com.au [210.49.20.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0784643F85 for ; Fri, 6 Jun 2003 02:18:05 -0700 (PDT) (envelope-from david@dugeem.net) Received: from blah.ryde.dugeem.net (c19426.carlnfd1.nsw.optusnet.com.au [211.28.175.9])h569I3X12893 for ; Fri, 6 Jun 2003 19:18:04 +1000 Received: (from david@localhost) by blah.ryde.dugeem.net (8.11.6/8.11.6) id h569I2U66960; Fri, 6 Jun 2003 19:18:02 +1000 (EST) (envelope-from david.burns@dugeem.net) Message-Id: <200306060918.h569I2U66960@blah.ryde.dugeem.net> Date: Fri, 6 Jun 2003 19:18:02 +1000 (EST) From: David Burns To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/52980: [patch] dc(4) driver fails to init Intel 21143 Cardbus NIC X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jun 2003 09:20:15 -0000 >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 >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: