From owner-freebsd-net@FreeBSD.ORG Thu Apr 24 15:50:03 2008 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D942106564A for ; Thu, 24 Apr 2008 15:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 472788FC17 for ; Thu, 24 Apr 2008 15:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m3OFo39E036590 for ; Thu, 24 Apr 2008 15:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m3OFo3PI036589; Thu, 24 Apr 2008 15:50:03 GMT (envelope-from gnats) Date: Thu, 24 Apr 2008 15:50:03 GMT Message-Id: <200804241550.m3OFo3PI036589@freefall.freebsd.org> To: freebsd-net@FreeBSD.org From: Martin Matuska Cc: Subject: Re: kern/123053: [re] re(4) unsupported hardware revision X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Martin Matuska List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Apr 2008 15:50:03 -0000 The following reply was made to PR kern/123053; it has been noted by GNATS. From: Martin Matuska To: bug-followup@FreeBSD.org, mm@FreeBSD.org Cc: Subject: Re: kern/123053: [re] re(4) unsupported hardware revision Date: Thu, 24 Apr 2008 17:39:54 +0200 This seems to be another 8168, I am successfully running the following patch= : Index: src/sys/dev/re/if_re.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/dev/re/if_re.c,v retrieving revision 1.95.2.18 diff -u -r1.95.2.18 if_re.c --- src/sys/dev/re/if_re.c=0922 Apr 2008 06:14:56 -0000=091.95.2.18 +++ src/sys/dev/re/if_re.c=0924 Apr 2008 15:33:36 -0000 @@ -184,6 +184,8 @@ =09=09"RealTek 8168/8111B PCIe Gigabit Ethernet" }, =09{ RT_VENDORID, RT_DEVICEID_8168, RL_HWREV_8168_SPIN3, =09=09"RealTek 8168/8111B PCIe Gigabit Ethernet" }, +=09{ RT_VENDORID, RT_DEVICEID_8168, RL_HWREV_8168_SPIN4, +=09=09"RealTek 8168/8111B PCIe Gigabit Ethernet" }, =09{ RT_VENDORID, RT_DEVICEID_8169, RL_HWREV_8169, =09=09"RealTek 8169 Gigabit Ethernet" }, =09{ RT_VENDORID, RT_DEVICEID_8169, RL_HWREV_8169S, @@ -225,6 +227,7 @@ =09{ RL_HWREV_8101E, RL_8169, "8101E"}, =09{ RL_HWREV_8168_SPIN2, RL_8169, "8168"}, =09{ RL_HWREV_8168_SPIN3, RL_8169, "8168"}, +=09{ RL_HWREV_8168_SPIN4, RL_8169, "8168"}, =09{ 0, 0, NULL } }; @@ -697,6 +700,7 @@ =09case RL_HWREV_8168_SPIN1: =09case RL_HWREV_8168_SPIN2: =09case RL_HWREV_8168_SPIN3: +=09case RL_HWREV_8168_SPIN4: =09=09CSR_WRITE_4(sc, RL_MAR0, bswap32(hashes[1])); =09=09CSR_WRITE_4(sc, RL_MAR4, bswap32(hashes[0])); =09=09break; @@ -1305,6 +1309,7 @@ =09=09=09case RL_HWREV_8169_8110SC: =09=09=09case RL_HWREV_8168_SPIN2: =09=09=09case RL_HWREV_8168_SPIN3: +=09=09=09case RL_HWREV_8168_SPIN4: =09=09=09=09re_gmii_writereg(dev, 1, 0x1f, 0); =09=09=09=09re_gmii_writereg(dev, 1, 0x0e, 0); =09=09=09=09break; Index: src/sys/pci/if_rlreg.h =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/pci/if_rlreg.h,v retrieving revision 1.67.2.7 diff -u -r1.67.2.7 if_rlreg.h --- src/sys/pci/if_rlreg.h=0922 Apr 2008 06:13:05 -0000=091.67.2.7 +++ src/sys/pci/if_rlreg.h=0924 Apr 2008 15:33:36 -0000 @@ -161,6 +161,7 @@ #define RL_HWREV_8101E=09=090x34000000 #define RL_HWREV_8168_SPIN2=090x38000000 #define RL_HWREV_8168_SPIN3=090x38400000 +#define RL_HWREV_8168_SPIN4=090x3c000000 #define RL_HWREV_8139=09=090x60000000 #define RL_HWREV_8139A=09=090x70000000 #define RL_HWREV_8139AG=09=090x70800000