kern/137672: [re] add bits to support the 8168DP version
Joerg Pulz
Joerg.Pulz at frm2.tum.de
Tue Aug 11 14:40:02 UTC 2009
>Number: 137672
>Category: kern
>Synopsis: [re] add bits to support the 8168DP version
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Aug 11 14:40:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: Joerg Pulz
>Release: FreeBSD 8.0-BETA2 amd64
>Organization:
Technische Universitaet Muenchen / FRM II
>Environment:
System: FreeBSD hades.admin.frm2 8.0-BETA2 FreeBSD 8.0-BETA2 #0: Tue Aug 11 12:38:18 CEST 2009 root at hades.admin.frm2:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
Up to now, FreeBSDs re(4) driver doesn't support the 8168DP, as found in
e.g. FTS Celsius R570.
I've added the necessary bits to let re(4) attach to this card to make
it actually useable.
While here, add some description consistancy.
Would be nice to see this in the tree for 8.0-RELEASE.
>How-To-Repeat:
>Fix:
- apply the patch
- build, install and boot the new kernel
--- RealTek_8168DP.patch begins here ---
--- dev/re/if_re.c.orig 2009-08-11 15:39:50.000000000 +0200
+++ dev/re/if_re.c 2009-08-11 15:40:00.000000000 +0200
@@ -174,7 +174,7 @@
{ RT_VENDORID, RT_DEVICEID_8101E, 0,
"RealTek 8101E/8102E/8102EL PCIe 10/100baseTX" },
{ RT_VENDORID, RT_DEVICEID_8168, 0,
- "RealTek 8168/8168B/8168C/8168CP/8168D/8111B/8111C/8111CP PCIe "
+ "RealTek 8168/8168B/8168C/8168CP/8168D/8168DP/8111B/8111C/8111CP/8111D/8111DP PCIe "
"Gigabit Ethernet" },
{ RT_VENDORID, RT_DEVICEID_8169, 0,
"RealTek 8169/8169S/8169SB(L)/8110S/8110SB(L) Gigabit Ethernet" },
@@ -217,7 +217,8 @@
{ RL_HWREV_8168C, RL_8169, "8168C/8111C"},
{ RL_HWREV_8168C_SPIN2, RL_8169, "8168C/8111C"},
{ RL_HWREV_8168CP, RL_8169, "8168CP/8111CP"},
- { RL_HWREV_8168D, RL_8169, "8168D"},
+ { RL_HWREV_8168D, RL_8169, "8168D/8111D"},
+ { RL_HWREV_8168DP, RL_8169, "8168DP/8111DP"},
{ 0, 0, NULL }
};
@@ -1282,6 +1283,7 @@
/* FALLTHROUGH */
case RL_HWREV_8168CP:
case RL_HWREV_8168D:
+ case RL_HWREV_8168DP:
sc->rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PAR |
RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_CMDSTOP |
RL_FLAG_AUTOPAD;
--- pci/if_rlreg.h.orig 2009-08-11 15:37:23.000000000 +0200
+++ pci/if_rlreg.h 2009-08-11 15:38:15.000000000 +0200
@@ -161,6 +161,7 @@
#define RL_HWREV_8102EL 0x24800000
#define RL_HWREV_8102EL_SPIN1 0x24c00000
#define RL_HWREV_8168D 0x28000000
+#define RL_HWREV_8168DP 0x28800000
#define RL_HWREV_8168_SPIN1 0x30000000
#define RL_HWREV_8100E 0x30800000
#define RL_HWREV_8101E 0x34000000
--- RealTek_8168DP.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list