Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 May 2008 16:14:59 +0900
From:      Pyun YongHyeon <pyunyh@gmail.com>
To:        Norikatsu Shigemura <nork@FreeBSD.org>
Cc:        freebsd-current@FreeBSD.org
Subject:   Re: Cardbus GbE (Realtek 8169SBL) supported?
Message-ID:  <20080519071459.GA26209@cdnetworks.co.kr>
In-Reply-To: <20080517231220.c64a992b.nork@FreeBSD.org>
References:  <20080517231220.c64a992b.nork@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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
 > @@ -225,6 +225,7 @@
 >  	{ 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
 > @@ -171,6 +171,7 @@
 >  #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
-- 
Regards,
Pyun YongHyeon



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