From owner-freebsd-current@FreeBSD.ORG Mon May 19 10:05:31 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5BCD106566C for ; Mon, 19 May 2008 10:05:31 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.238]) by mx1.freebsd.org (Postfix) with ESMTP id 69C7A8FC16 for ; Mon, 19 May 2008 10:05:31 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1433623rvf.43 for ; Mon, 19 May 2008 03:05:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; bh=PJGSbTRU4kqeThI7F7/y9qQlT6s4UVemieyE5gd8Dvk=; b=E53w3iCNjfYJx4VubmmvsZUYP6hdkovWZEixHbakDB++Z2x6XmTaECg2cTQvHlJezksxU3L7czj3VX5kpsAOJOgPY7VRlV58vuCHfVv1cJSu3vPwD+J6RZB8fHUiO+6dp9Ygk0CYK6xG+nlv0PtXNPIkS5dc0jv/Kb9SHpMETCs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=YZMUgUsgMyDm+6Hdf+FK0U1wAsonQK/c0BVlznjk9CbHSexvWElZR2X/w8alKliIQncVtsODK12Up3pME5pgKBDYu8IEbqQCxzTnH2GP4BN5grLDLHxg/EsdKDGEPLP1UxrnBwi+qYgsv/b2/A76VyXLwiwb/1bpq3wSpSvnCA0= Received: by 10.140.171.18 with SMTP id t18mr3571088rve.22.1211191530911; Mon, 19 May 2008 03:05:30 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id f21sm12729071rvb.0.2008.05.19.03.05.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 19 May 2008 03:05:29 -0700 (PDT) Received: from michelle.cdnetworks.co.kr (localhost.cdnetworks.co.kr [127.0.0.1]) by michelle.cdnetworks.co.kr (8.13.5/8.13.5) with ESMTP id m4JA5O2b026992 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 19 May 2008 19:05:25 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m4JA5O8L026991; Mon, 19 May 2008 19:05:24 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Mon, 19 May 2008 19:05:23 +0900 From: Pyun YongHyeon To: Norikatsu Shigemura Message-ID: <20080519100523.GB26209@cdnetworks.co.kr> References: <20080517231220.c64a992b.nork@FreeBSD.org> <20080519071459.GA26209@cdnetworks.co.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080519071459.GA26209@cdnetworks.co.kr> User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@FreeBSD.org Subject: Re: Cardbus GbE (Realtek 8169SBL) supported? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 May 2008 10:05:31 -0000 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: 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: 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