Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jul 2008 20:44:46 +0900
From:      Pyun YongHyeon <pyunyh@gmail.com>
To:        NAGATA Shinya <maya@negeta.com>
Cc:        Tadashi Takahashi <takahashi.tadashi@nifty.com>, freebsd-stable@freebsd.org
Subject:   Re: Realtek 8102EL
Message-ID:  <20080708114446.GH12415@cdnetworks.co.kr>
In-Reply-To: <86hcb0r9d7.wl%maya@negeta.com>
References:  <86wsjxpehl.wl%maya@negeta.com> <48729132.10307@delphij.net> <86lk0ds4p9.wl%maya@negeta.com> <20080708005226.GB12415@cdnetworks.co.kr> <6.2.3.4.2.20080708100506.02775558@pop.nifty.com> <20080708014321.GD12415@cdnetworks.co.kr> <86hcb0r9d7.wl%maya@negeta.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--/WwmFnJnmDyWGHa4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Tue, Jul 08, 2008 at 06:52:20PM +0900, NAGATA Shinya wrote:
 > >  > re0: MAC rev. 0x00200000
 > >  > re0: Unknown H/W revision: 0x24800000
 > >  > device_attach: re0 attach returned 6
 > >  >
 > >
 > > Apply attached one and let me know how it goes.
 > 
 > Thank you for your patch.
 > 
 > It doesn't work on 6.3-p2.

:-(

 > > pci1: <ACPI PCI bus> on pcib1
 > > pci1: <network, ethernet> at device 0.0 (no driver attached)
 > 
 > It can find this chip on RELENG_7, and can up as re0.
 > But ping does not reach to other host / from other host.
 > > pci1: <ACPI PCI bus> on pcib1
 > > re0: <RealTek 8101E PCIe 10/100baseTX> port 0x2000-0x20ff mem 0x90200000-0x90200fff,0x90000000-0x9000ffff irq 16 at device 0.0 on pci1
 > > miibus0: <MII bus> on re0
 > > rlphy0: <RTL8201L 10/100 media interface> PHY 1 on miibus0
 > > rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 > > re0: Ethernet address: 00:1c:c0:47:32:5d
 > > re0: [FILTER]
 > 

Thanks! This is good information. It seems that newer 810x PCIe
controllers seems to use different descriptor format such that
checksum offload didn't work on these controllers.
Backout previous patch and try attached patch.
 > 
 > In addition, intel says this chip is 8102, and the print on IC too.
 > http://www.intel.com/support/motherboards/desktop/D945GCLF/sb/CS-029163.htm
 > 

Yeah, I've corrected controller name and added a new one too.

-- 
Regards,
Pyun YongHyeon

--/WwmFnJnmDyWGHa4
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="re.8102E.patch"

--- sys/dev/re/if_re.c.orig	2008-07-08 20:35:11.000000000 +0900
+++ sys/dev/re/if_re.c	2008-07-08 20:36:04.000000000 +0900
@@ -170,7 +170,7 @@
 	{ RT_VENDORID, RT_DEVICEID_8139, 0,
 	    "RealTek 8139C+ 10/100BaseTX" },
 	{ RT_VENDORID, RT_DEVICEID_8101E, 0,
-	    "RealTek 8101E PCIe 10/100baseTX" },
+	    "RealTek 8101/8102/8102E(L) PCIe 10/100baseTX" },
 	{ RT_VENDORID, RT_DEVICEID_8168, 0,
 	    "RealTek 8168/8168B/8168C/8168CP/8111B/8111C/8111CP PCIe "
 	    "Gigabit Ethernet" },
@@ -206,6 +206,8 @@
 	{ RL_HWREV_8101, RL_8139, "8101"},
 	{ RL_HWREV_8100E, RL_8169, "8100E"},
 	{ RL_HWREV_8101E, RL_8169, "8101E"},
+	{ RL_HWREV_8102E, RL_8169, "8102E"},
+	{ RL_HWREV_8102EL, RL_8169, "8102EL"},
 	{ RL_HWREV_8168_SPIN2, RL_8169, "8168"},
 	{ RL_HWREV_8168_SPIN3, RL_8169, "8168"},
 	{ RL_HWREV_8168C, RL_8169, "8168C/8111C"},
@@ -1271,7 +1273,13 @@
 		break;
 	case RL_HWREV_8100E:
 	case RL_HWREV_8101E:
-		sc->rl_flags |= RL_FLAG_INVMAR | RL_FLAG_PHYWAKE;
+		sc->rl_flags |= RL_FLAG_NOJUMBO | RL_FLAG_INVMAR |
+		    RL_FLAG_PHYWAKE;
+		break;
+	case RL_HWREV_8102E:
+	case RL_HWREV_8102EL:
+		sc->rl_flags |= RL_FLAG_NOJUMBO | RL_FLAG_INVMAR |
+		    RL_FLAG_PHYWAKE | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT;
 		break;
 	case RL_HWREV_8168_SPIN1:
 	case RL_HWREV_8168_SPIN2:
--- sys/pci/if_rlreg.h.orig	2008-07-08 20:32:14.000000000 +0900
+++ sys/pci/if_rlreg.h	2008-07-08 20:37:56.000000000 +0900
@@ -156,9 +156,11 @@
 #define RL_HWREV_8169S		0x04000000
 #define RL_HWREV_8169_8110SB	0x10000000
 #define RL_HWREV_8169_8110SC	0x18000000
+#define RL_HWREV_8102EL		0x24800000
 #define RL_HWREV_8168_SPIN1	0x30000000
 #define RL_HWREV_8100E		0x30800000
 #define RL_HWREV_8101E		0x34000000
+#define RL_HWREV_8102E		0x34800000
 #define RL_HWREV_8168_SPIN2	0x38000000
 #define RL_HWREV_8168_SPIN3	0x38400000
 #define RL_HWREV_8168C		0x3C000000

--/WwmFnJnmDyWGHa4--



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