Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jun 2009 04:21:09 GMT
From:      "Rashid N. Achilov" <citycat4@ngs.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/135989: device vr support D-Link DFE-520TX, but none notified this
Message-ID:  <200906240421.n5O4L952099649@www.freebsd.org>
Resent-Message-ID: <200906240430.n5O4U2JS080062@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         135989
>Category:       kern
>Synopsis:       device vr support D-Link DFE-520TX, but none notified this
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 24 04:30:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Rashid N. Achilov
>Release:        7.2-RELEASE
>Organization:
LLC "AS-System Complex"
>Environment:
FreeBSD 7.2-RELEASE #0: Wed Jun 10 14:19:08 NOVST 2009
glance kernel: root@glance.askd.gmbh:/usr/obj/usr/src/sys/Glance
>Description:
I had NIC D-Link DFE-520TX, but I could not detect, which driver supports this. NOTES file does not mark anything about this NIC

svr-63:[root] 251>cd /sys/conf && grep 520 *
NOTES:hint.uart.0.baud="115200"

svr-63:[root] 255>cd /sys/i386/conf && grep 520 *
LINT:options    CONSPEED=115200
NOTES:# CPU_ELAN enables support for AMDs ElanSC520 CPU.
NOTES:options   CONSPEED=115200         # Speed for serial console

I have to reload server with GENERIC kernel and this way I have detect, that this NIC supported by vr driver

Jun 24 10:38:14 glance kernel: vr0: <VIA VT6105 Rhine III 10/100BaseTX> port 0xd800-0xd8ff mem 0xff8ffc00-0xff8ffcff irq 22 at device 1.0 on pci1
Jun 24 10:38:14 glance kernel: vr0: Quirks: 0x0
Jun 24 10:38:14 glance kernel: vr0: Revision: 0x8b
Jun 24 10:38:14 glance kernel: miibus0: <MII bus> on vr0
Jun 24 10:38:14 glance kernel: ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
Jun 24 10:38:14 glance kernel: ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
Jun 24 10:38:14 glance kernel: vr0: Ethernet address: 00:1b:11:c3:8e:cc
Jun 24 10:38:14 glance kernel: vr0: [ITHREAD]

manual page about  vr doesn't know anything about DFE-520TX (but claims about support DFE530-TX). So, only way to detect right driver for NIC is load server with GENERIC kernel, that's incorrect. I had done a coulpe simply patches, which included notification about supporting D-Link DFE-520TX NIC's


>How-To-Repeat:
Install D-Link DFE-520TX and try to guess, which driver support it without reloading GENERIC kernel or loading all available NIC drivers
>Fix:
Patches included

Patch attached with submission follows:

--- sys/conf/NOTES.old	2009-03-22 22:27:14.000000000 +0600
+++ sys/conf/NOTES	2009-06-24 11:11:13.000000000 +0700
@@ -1824,8 +1824,8 @@
 # txp:	Support for 3Com 3cR990 cards with the "Typhoon" chipset
 # vr:   Support for various fast ethernet adapters based on the VIA
 #       Technologies VT3043 `Rhine I' and VT86C100A `Rhine II' chips,
-#       including the D-Link DFE530TX (see 'rl' for DFE530TX+), the Hawking
-#       Technologies PN102TX, and the AOpen/Acer ALN-320.
+#       including the D-Link DFE520TX and D-Link DFE530TX (see 'rl' for DFE530TX+),
+#	the Hawking Technologies PN102TX, and the AOpen/Acer ALN-320.
 # vx:   3Com 3C590 and 3C595
 # wb:   Support for fast ethernet adapters based on the Winbond W89C840F chip.
 #       Note: this is not the same as the Winbond W89C940F, which is a


--- share/man/man4/vr.4.old	2008-04-11 10:49:47.000000000 +0700
+++ share/man/man4/vr.4	2009-06-24 11:16:35.000000000 +0700
@@ -130,6 +130,8 @@
 .It
 AOpen/Acer ALN-320
 .It
+D-Link DFE520-TX
+.It
 D-Link DFE530-TX
 .It
 Hawking Technologies PN102TX




>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906240421.n5O4L952099649>