From nobody@FreeBSD.org  Tue May  9 23:19:33 2006
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 18E0716A401
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  9 May 2006 23:19:33 +0000 (UTC)
	(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 D6B5043D46
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  9 May 2006 23:19:32 +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 k49NJW0c079950
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 9 May 2006 23:19:32 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k49NJWmi079949;
	Tue, 9 May 2006 23:19:32 GMT
	(envelope-from nobody)
Message-Id: <200605092319.k49NJWmi079949@www.freebsd.org>
Date: Tue, 9 May 2006 23:19:32 GMT
From: Kai Hugo Hustoft Endresen <kaihugoh@stud.ntnu.no>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Added DEFINE to if_nve.c/if_nvereg.h to get NIC working on Asus K8N-VM
X-Send-Pr-Version: www-2.3

>Number:         97063
>Category:       kern
>Synopsis:       [nve] [patch] Added DEFINE to if_nve.c/if_nvereg.h to get NIC working on Asus K8N-VM
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    obrien
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 09 23:20:13 GMT 2006
>Closed-Date:    Sat Dec 08 21:35:39 UTC 2007
>Last-Modified:  Sat Dec 08 21:35:39 UTC 2007
>Originator:     Kai Hugo Hustoft Endresen
>Release:        6.1-STABLE
>Organization:
Norwegian University of Science and Technology
>Environment:
FreeBSD euler.sorcererx.net 6.1-STABLE FreeBSD 6.1-STABLE #2: Wed May 10 00:48:41 CEST 2006     sorcererx@euler.sorcererx.net:/usr/obj/usr/src/sys/EULER  amd64

>Description:
the onboard Network card on Asus K8N-VM is not detected properly.
It is a nForce MCP51 Ethernet Controller (PHY is Realtek ALC8201CL (RTL8201CL)).
lspci gives:
00:14.0 Bridge: nVidia Corporation MCP51 Ethernet Controller (rev a1)
00:14.0 0680: 10de:0269 (rev a1)

by adding the diffs below I get:
nve0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet6 fe80::215:f2ff:fe5a:1a42%nve0 prefixlen 64 scopeid 0x2 
        inet 129.241.138.218 netmask 0xfffffe00 broadcast 129.241.139.255
        ether 00:15:f2:5a:1a:42
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active


>How-To-Repeat:

>Fix:
--- /usr/src/sys/dev/nve/if_nve.c       Sun Dec 25 22:57:03 2005
+++ /usr/src/sys/dev/nve/if_nve.c    Wed May 10 01:07:59 2006
@@ -235,6 +235,8 @@
        "NVIDIA nForce MCP10 Networking Adapter"},
        {NVIDIA_VENDORID, NFORCE_MCPNET11_DEVICEID,
        "NVIDIA nForce MCP11 Networking Adapter"},
+       {NVIDIA_VENDORID, NFORCE_MCPNET51_DEVICEID,
+       "NVIDIA nFORCE MCP51 Networking Adapter"},
        {0, 0, NULL}
 };
--- /usr/src/sys/dev/nve/if_nvereg.h    Mon Dec 12 20:40:04 2005
+++ /usr/src/sys/dev/nve/if_nvereg.h Wed May 10 01:07:59 2006
@@ -46,6 +46,7 @@
 #define        NFORCE_MCPNET9_DEVICEID 0x0057
 #define        NFORCE_MCPNET10_DEVICEID 0x0037
 #define        NFORCE_MCPNET11_DEVICEID 0x0038 
+#define NFORCE_MCPNET51_DEVICEID 0x0269
 
 #define        NV_RID          0x10

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: glebius 
State-Changed-When: Wed May 24 12:04:40 UTC 2006 
State-Changed-Why:  
These PCI IDs had been added to driver quite a long time ago, but 
hasn't been merged to RELENG_6. 


Responsible-Changed-From-To: freebsd-bugs->obrien 
Responsible-Changed-By: glebius 
Responsible-Changed-When: Wed May 24 12:04:40 UTC 2006 
Responsible-Changed-Why:  
Assign to David, who forgot to merge. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=97063 

From: Andriy Gapon <avg@icyb.net.ua>
To: bug-followup@FreeBSD.org
Cc: Gleb Smirnoff <glebius@freebsd.org>, 
 "David E. O'Brien" <obrien@FreeBSD.org>
Subject: Re: kern/97063: [nve] [patch] Added DEFINE to if_nve.c/if_nvereg.h
 to get NIC working on Asus K8N-VM
Date: Fri, 16 Mar 2007 17:08:26 +0200

 Bugmeisters, David, Gleb,
 
 I think this ID is already in 6.2.
 
 Committers, David,
 
 please please take a look at
 http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/108046
 
 -- 
 Andriy Gapon
State-Changed-From-To: patched->closed 
State-Changed-By: remko 
State-Changed-When: Sat Dec 8 21:35:38 UTC 2007 
State-Changed-Why:  
I see that this is supported under RELENG_[6,6_3,7] so all MFC's had 
been done for this, thanks for the submission though! 

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