From owner-freebsd-bugs@FreeBSD.ORG Thu Jan 5 05:40:05 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org 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 A774B16A41F for ; Thu, 5 Jan 2006 05:40:05 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C57A043D5D for ; Thu, 5 Jan 2006 05:40:04 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k055e4od078729 for ; Thu, 5 Jan 2006 05:40:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k055e4Iu078728; Thu, 5 Jan 2006 05:40:04 GMT (envelope-from gnats) Resent-Date: Thu, 5 Jan 2006 05:40:04 GMT Resent-Message-Id: <200601050540.k055e4Iu078728@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, Jeremy Ehrhardt Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 76F4216A41F for ; Thu, 5 Jan 2006 05:35:57 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [216.136.204.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E40743D46 for ; Thu, 5 Jan 2006 05:35:57 +0000 (GMT) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k055ZuUO012037 for ; Thu, 5 Jan 2006 05:35:56 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id k055Zu5k012036; Thu, 5 Jan 2006 05:35:56 GMT (envelope-from nobody) Message-Id: <200601050535.k055Zu5k012036@www.freebsd.org> Date: Thu, 5 Jan 2006 05:35:56 GMT From: Jeremy Ehrhardt To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: kern/91332: [patch] Linksys EG1032 V3.0 Gigabit card captured by sk(4), should be re(4) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jan 2006 05:40:05 -0000 >Number: 91332 >Category: kern >Synopsis: [patch] Linksys EG1032 V3.0 Gigabit card captured by sk(4), should be re(4) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jan 05 05:40:04 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Jeremy Ehrhardt >Release: 6.0-RELEASE >Organization: Caltech >Environment: FreeBSD turbine.caltech.edu 6.0-RELEASE FreeBSD 6.0-RELEASE #2: Wed Jan 4 17:53:35 PST 2006 root@turbine.caltech.edu:/usr/obj/usr/src/sys/SANDERS i386 >Description: The V1.0 and V2.0 versions of the Linksys EG1032 Gigabit Ethernet PCI card are supported by the sk(4) driver. Linksys changed the chipset to the RealTek RTL-8169S in the V3.0 version of the card, but did not change the PCI device ID (0x1032). The card is captured by the sk(4) driver, instead of the appropriate re(4) driver, and produces the following errors in dmesg: skc0: port 0xe000-0xe0ff mem 0xdf002000-0xdf0020ff irq 10 at device 20.0 on pci0 sk0: couldn't map ports/memory device_attach: skc0 attach returned 6 The following output from scanpci -v describes the V3.0 version of the card: pci bus 0x0000 cardnum 0x14 function 0x00: vendor 0x1737 device 0x1032 Linksys Device unknown CardVendor 0x1737 card 0x0024 (Card unknown) STATUS 0x02b0 COMMAND 0x0007 CLASS 0x02 0x00 0x00 REVISION 0x10 BIST 0x00 HEADER 0x00 LATENCY 0x20 CACHE 0x08 BASE0 0x0000e001 addr 0x0000e000 I/O BASE1 0xdf002000 addr 0xdf002000 MEM MAX_LAT 0x40 MIN_GNT 0x20 INT_PIN 0x01 INT_LINE 0x0a >How-To-Repeat: On FreeBSD 6.0-RELEASE: install a Linksys EG1032 V3.0 Gigabit Ethernet PCI card. If the re(4) driver is present, it will ignore the card. If the sk(4) driver is present, it will attempt to drive the card, but fail. >Fix: I have created a patch for the re(4) driver to add support for this card. However, if the sk(4) driver is loaded, it will still capture the card and the card will not operate. I don't know how to correct this. The workaround is to unload or remove the sk(4) driver. patches as produced by diff -u: patch for src/sys/dev/if_re.c: --- if_re.c.original Wed Jan 4 17:33:04 2006 +++ if_re.c Wed Jan 4 17:32:42 2006 @@ -177,6 +177,8 @@ "RealTek 8110S Single-chip Gigabit Ethernet" }, { COREGA_VENDORID, COREGA_DEVICEID_CGLAPCIGT, RL_HWREV_8169S, "Corega CG-LAPCIGT (RTL8169S) Gigabit Ethernet" }, + { LINKSYS_VENDORID, LINKSYS_DEVICEID_EG1032V30, RL_HWREV_8169S, + "Linksys EG1032 V3.0 (RTL8169S) Gigabit Ethernet" }, { 0, 0, 0, NULL } }; patch for src/sys/pci/if_rlreg.h: --- if_rlreg.h.original Wed Jan 4 17:33:25 2006 +++ if_rlreg.h Wed Jan 4 17:30:40 2006 @@ -870,6 +870,16 @@ #define EDIMAX_DEVICEID_EP4103DL 0xAB06 /* + * Linksys vendor ID + */ +#define LINKSYS_VENDORID 0x1737 + +/* + * Linksys EG1032 V3.0 device ID + */ +#define LINKSYS_DEVICEID_EG1032V30 0x1032 + +/* * PCI low memory base and low I/O base register, and * other PCI registers. */ >Release-Note: >Audit-Trail: >Unformatted: