Realtek 8102EL

Pyun YongHyeon pyunyh at gmail.com
Tue Jul 8 01:45:32 UTC 2008


On Tue, Jul 08, 2008 at 10:14:15AM +0900, Tadashi Takahashi wrote:
 > I have same motherboard and I tried re patch as follows.
 > The result is still failed.
 > 
 > http://people.freebsd.org/~yongari/re/re.HEAD.20080624
 > 
 > 
 > re0: <RealTek 8101E PCIe 10/100baseTX> port 0x2000-0x20ff mem 
 > 0x48200000-0x48200
 > fff,0x48000000-0x4800ffff irq 16 at device 0.0 on pci1
 > re0: Chip rev. 0x24800000
                  ^^^^^^^^^^
Aha, this explains why it wasn't probed in 6.x. This looks like 
a new revision.

 > 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.

 > Thanks,
 > Tadashi Takahashi
 > 
 > 
 > 
 > At 09:52 08/07/08, Pyun YongHyeon wrote:
 > >On Tue, Jul 08, 2008 at 07:35:30AM +0900, NAGATA Shinya wrote:
 > > > > Could you please try 'boot -v' and see if there is some error 
 > > messages?
 > > >
 > > > 're0' is displayed. But it seems like kernel couldn't find a driver.
 > > > | re0: Reserved 0x100 bytes for rid 0x10 type 4 at 0x2000
 > > > | pci1: <network, ethernet> at device 0.0 (no driver attached)
 > > >
 > > >
 > > > --
 > > > NAGATA Shinya
 > >
 > > > Consoles: internal video/keyboard  serial port
 > > > BIOS drive C: is disk0
 > > > BIOS 572kB/2085068kB available memory
 > > >
 > >
 > >[...]
 > >
 > > > found-> vendor=0x10ec, dev=0x8136, revid=0x02
 > >           ^^^^^^^^^^^^^^^^^^^^^^^^^
 > >
 > >This looks like RealTek 8101 PCIe fast ethernet controller.
 > >
 > > >         bus=1, slot=0, func=0
 > > >         class=02-00-00, hdrtype=0x00, mfdev=0
 > > >         cmdreg=0x0007, statreg=0x0010, cachelnsz=16 (dwords)
 > > >         lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
 > > >         intpin=a, irq=11
 > > >         powerspec 3  supports D0 D1 D2 D3  current D0
 > > >         MSI supports 1 message, 64 bit
 > > >         MSI-X supports 2 messages in map 0x20
 > > >         map[10]: type 4, range 32, base 00002000, size  8, enabled
 > > > pcib1: requested I/O range 0x2000-0x20ff: in range
 > > >         map[18]: type 1, range 64, base 90200000, size 12, enabled
 > > > pcib1: requested memory range 0x90200000-0x90200fff: good
 > > >         map[20]: type 3, range 64, base 90000000, size 16, enabled
 > > > pcib1: requested memory range 0x90000000-0x9000ffff: good
 > > > pcib1: matched entry for 1.0.INTA
 > > > pcib1: slot 0 INTA hardwired to IRQ 16
 > > > re0: Reserved 0x100 bytes for rid 0x10 type 4 at 0x2000
 > > > pci1: <network, ethernet> at device 0.0 (no driver attached)
 > >         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 > >
 > >This indicates re(4) probe didn't recognize the hardware. I have no
 > >idea why this can happen. Would you try 7-stable? 7-stable changed
 > >device probe/attach routine so it compares PCI device ids in probe
 > >stage intead of allocating resources as 6.x.
 > >
 > >--
 > >Regards,
 > >Pyun YongHyeon
 > >_______________________________________________
 > >freebsd-stable at freebsd.org mailing list
 > >http://lists.freebsd.org/mailman/listinfo/freebsd-stable
 > >To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"
 > 

-- 
Regards,
Pyun YongHyeon
-------------- next part --------------
--- sys/dev/re/if_re.c.orig	2008-07-02 17:00:14.000000000 +0900
+++ sys/dev/re/if_re.c	2008-07-08 10:38:14.000000000 +0900
@@ -206,6 +206,7 @@
 	{ RL_HWREV_8101, RL_8139, "8101"},
 	{ RL_HWREV_8100E, RL_8169, "8100E"},
 	{ RL_HWREV_8101E, RL_8169, "8101E"},
+	{ RL_HWREV_8101E_SPIN2, RL_8169, "8101E"},
 	{ RL_HWREV_8168_SPIN2, RL_8169, "8168"},
 	{ RL_HWREV_8168_SPIN3, RL_8169, "8168"},
 	{ RL_HWREV_8168C, RL_8169, "8168C/8111C"},
--- sys/pci/if_rlreg.h.orig	2008-03-31 13:03:14.000000000 +0900
+++ sys/pci/if_rlreg.h	2008-07-08 10:40:48.000000000 +0900
@@ -156,6 +156,7 @@
 #define RL_HWREV_8169S		0x04000000
 #define RL_HWREV_8169_8110SB	0x10000000
 #define RL_HWREV_8169_8110SC	0x18000000
+#define RL_HWREV_8101E_SPIN2	0x24800000
 #define RL_HWREV_8168_SPIN1	0x30000000
 #define RL_HWREV_8100E		0x30800000
 #define RL_HWREV_8101E		0x34000000


More information about the freebsd-stable mailing list