Re: Cardbus GbE (Realtek 8169SBL) supported?

From: Pyun YongHyeon <pyunyh_at_gmail.com>
Date: Mon, 19 May 2008 19:05:23 +0900
On Mon, May 19, 2008 at 04:14:59PM +0900, To Norikatsu Shigemura wrote:
 > On Sat, May 17, 2008 at 11:12:20PM +0900, Norikatsu Shigemura wrote:
 >  > 	I bought a cardbus GbE card used Realtek 8169SBL, today:-).  But
 >  > 	re(4) doesn't attach it.
 >  > 
 >  > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 >  > re0: <RealTek 8169 Gigabit Ethernet> port 0x3100-0x31ff mem 0xb0103000-0xb01031ff irq 22 at device 0.0 on cardbus0
 >  > re0: reset never completed!
 >  > re0: Unknown H/W revision: 7cc00000
 >  > device_attach: re0 attach returned 6
 >  > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 >  > 
 >  > 	I fixed 'Unknown H/W revision' issue, but...
 >  > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 >  > --- sys/dev/re/if_re.c.orig	2008-04-15 16:02:23.631923000 +0900
 >  > +++ sys/dev/re/if_re.c	2008-05-17 23:06:05.632249124 +0900
 >  > _at__at_ -225,6 +225,7 _at__at_
 >  >  	{ RL_HWREV_8101E, RL_8169, "8101E"},
 >  >  	{ RL_HWREV_8168_SPIN2, RL_8169, "8168"},
 >  >  	{ RL_HWREV_8168_SPIN3, RL_8169, "8168"},
 >  > +	{ RL_HWREV_8169_8110SBL, RL_8169, "8169SBL"},
 >  >  	{ 0, 0, NULL }
 >  >  };
 >  >  
 >  > --- sys/pci/if_rlreg.h.orig	2008-03-31 13:03:14.000000000 +0900
 >  > +++ sys/pci/if_rlreg.h	2008-05-17 23:07:01.584996720 +0900
 >  > _at__at_ -171,6 +171,7 _at__at_
 >  >  #define RL_HWREV_8139CPLUS	0x74800000
 >  >  #define RL_HWREV_8101		0x74c00000
 >  >  #define RL_HWREV_8100		0x78800000
 >  > +#define RL_HWREV_8169_8110SBL	0x7cc00000
 >  >  
 >  >  #define RL_TXDMA_16BYTES	0x00000000
 >  >  #define RL_TXDMA_32BYTES	0x00000100
 >  > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 >  > 
 >  > 	I couldn't fix mii phy issue.
 >  > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 >  > re0: <RealTek 8169 Gigabit Ethernet> port 0x3100-0x31ff mem 0xb0103000-0xb01031ff irq 22 at device 0.0 on cardbus0
 >  > re0: reset never completed!
 >  > re0: MII without any phy!
 >  > device_attach: re0 attach returned 6
 >  > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 >  > 
 >  > 	How do I fix this issue?  What I should report?
 > 
 > Hmm, it seems that this hardware is newer one as you know. ATM
 > there are several new gneration of RealTek controllers not
 > supported by re(4). For instance, RTL8168C, RTL8168CP, RTL8111C
 > and RTL8111CP.
 > These controllers seems to use different descriptor formats and
 > have lots of new magic registers. There are no publicly available
 > datasheet to BSD developers so it would take long time to get a
 > stable driver for these controllers. I already tried to contact
 > RealTek for datasheet but they requested signing NDA which I can't
 > accept. Some users reported partial success for WIP version but
 > others still have trouble to get a valid link. It seems that re(4)
 > need magic for PHY hardwares as Linux. :-(
 > 
 > For 8169 family hardware, re(4) have worked without problems so
 > far. Since your controller seems to be 8169 family I have no clue
 > why re_reset() timed out for reset operation. Anyway, here is WIP
 > version, would you give it a try?
 > 
 > The WIP version was generated against HEAD but I guess it would
 > apply to RELENG_7 too. You can find the WIP version in the
 > following URL.
 > 
 > http://people.freebsd.org/re/re.HEAD.20080519

Oops, it should be read as 
http://people.freebsd.org/~yongari/re/re.HEAD.20080519

-- 
Regards,
Pyun YongHyeon
Received on Mon May 19 2008 - 08:05:31 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:31 UTC