From nobody@FreeBSD.org  Fri Jan 28 03:03:18 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2BF2D16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 28 Jan 2005 03:03:18 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 44B1E43D1D
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 28 Jan 2005 03:03:17 +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 j0S33GMi014887
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 28 Jan 2005 03:03:16 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j0S33Gin014882;
	Fri, 28 Jan 2005 03:03:16 GMT
	(envelope-from nobody)
Message-Id: <200501280303.j0S33Gin014882@www.freebsd.org>
Date: Fri, 28 Jan 2005 03:03:16 GMT
From: Andrus Nomm <andrus@members.ee>
To: freebsd-gnats-submit@FreeBSD.org
Subject: re NIC driver update for D-Link DGE-528T detection
X-Send-Pr-Version: www-2.3

>Number:         76780
>Category:       kern
>Synopsis:       [patch] re NIC driver update for D-Link DGE-528T detection
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 28 03:10:18 GMT 2005
>Closed-Date:    Fri Aug 05 10:20:44 CEST 2005
>Last-Modified:  Fri Aug 05 10:20:44 CEST 2005
>Originator:     Andrus Nomm
>Release:        5.3-RELEASE
>Organization:
none
>Environment:
FreeBSD c 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #19: Thu Jan 27 09:16:02 UTC 2005     root@c.office:/usr/obj/usr/src/sys/COMMUNITY  i386

>Description:
      FreeBSD 5.3 failes to detect this GIGABIT network card. Card itself have common Realtek 8169S chipset but combination of vendor and device id does not mach.


>How-To-Repeat:
      Just insert this card to PC. On box of card:
Vendor: D-Link
Model No: DGE-528T

pciconf -l shows for this card:
class=0x020000 card=0x43001186 chip=0x43001186 rev=0x10 hdr=0x0


>Fix:
      I have created small patch what add entry for this card. I have tested on my PC for around weeks (card is inserted into fileserver). 

1. Patch is located at http://andrus.members.ee/re.patch
2. Copy it to /usr/src/
3. Patch it: (E.g: patch -p1 < re.patch )
4. Recompile kernel (dont forget to add "device re") into kernel config
5. reboot ;)
>Release-Note:
>Audit-Trail:

From: =?ISO-8859-1?Q?Erik_Ran=E0?= <ranajas@hotmail.com>
To: bug-followup@FreeBSD.org, andrus@members.ee
Cc:  
Subject: Re: kern/76780: re NIC driver update for D-Link DGE-528T detection
Date: Sat, 07 May 2005 18:26:56 +0200

 Is this bug going to be solved?

From: Sergey Matveychuk <sem@FreeBSD.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/76780: [patch] re NIC driver update for D-Link DGE-528T
 detection
Date: Thu, 04 Aug 2005 15:42:31 +0400

 Send your patch as follow-up.
 You can found a committer only if he'll see the patch.
 
 -- 
 Sem.

From: "Anatoli Klassen" <anatoli@aksoft.net>
To: bug-followup@FreeBSD.org,
 andrus@members.ee
Cc:  
Subject: Re: kern/76780: [patch] re NIC driver update for D-Link DGE-528T 
     detection
Date: Thu, 4 Aug 2005 16:04:26 +0200 (CEST)

 Hi
 
 I have the same card (D-Link DGE-528T) on RELENG_5.
 After applying the patch the card is recognized by re driver and works
 without any problems with 1Gbit speed.
 
 Here is the patch from Andrus Nomm:
 
 diff -ru old/sys/dev/re/if_re.c new/sys/dev/re/if_re.c
 --- old/sys/dev/re/if_re.c	Tue Oct 12 21:51:20 2004
 +++ new/sys/dev/re/if_re.c	Thu Jan 27 10:49:49 2005
 @@ -160,6 +160,8 @@
   * Various supported device vendors/types and their names.
   */
  static struct rl_type re_devs[] = {
 +        { DLINK_VENDORID, DLINK_DEVICEID_528T, RL_HWREV_8169S,
 +                "D-Link DGE-528(T) Gigabit Ethernet Adapter" },
  	{ RT_VENDORID, RT_DEVICEID_8139, RL_HWREV_8139CPLUS,
  		"RealTek 8139C+ 10/100BaseTX" },
  	{ RT_VENDORID, RT_DEVICEID_8169, RL_HWREV_8169,
 diff -ru old/sys/pci/if_rlreg.h new/sys/pci/if_rlreg.h
 --- old/sys/pci/if_rlreg.h	Tue Oct 12 21:51:20 2004
 +++ new/sys/pci/if_rlreg.h	Fri Jan 28 03:49:06 2005
 @@ -793,6 +793,10 @@
   * D-Link DFE-530TX+ device ID
   */
  #define DLINK_DEVICEID_530TXPLUS		0x1300
 +/*
 + * D-Link DFE-5280T device ID
 + */
 +#define DLINK_DEVICEID_528T			0x4300
 
  /*
   * D-Link DFE-690TXD device ID
 
 
State-Changed-From-To: open->closed 
State-Changed-By: tobez 
State-Changed-When: Fri Aug 5 10:18:21 CEST 2005 
State-Changed-Why:  
Committed to HEAD with minor whitespace and placement changes, thanks 
for the patch!  This will be MFCed to RELENG_6 and RELENG_5 in some 
time. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=76780 
>Unformatted:
