Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Apr 2008 15:50:03 GMT
From:      Martin Matuska <mm@FreeBSD.org>
To:        freebsd-net@FreeBSD.org
Subject:   Re: kern/123053: [re] re(4) unsupported hardware revision
Message-ID:  <200804241550.m3OFo3PI036589@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/123053; it has been noted by GNATS.

From: Martin Matuska <mm@FreeBSD.org>
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
 



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