From owner-freebsd-current@FreeBSD.ORG Mon May 19 07:15:07 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 A4CA410656B5 for ; Mon, 19 May 2008 07:15:07 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.234]) by mx1.freebsd.org (Postfix) with ESMTP id 697318FC2B for ; Mon, 19 May 2008 07:15:07 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1370019rvf.43 for ; Mon, 19 May 2008 00:15:07 -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=R99dUNzVaBlVrvLDeRxOs+uXvSr2EmnJSjvmub3i1aU=; b=azVA0M7rs8HgEhWwyKYUrZvG3hEVxRkaj/ZeoWzJKycm8yV3H7r7ZCgMdQGsmiVukFikWiVrkvQds9JamU0766iKdl4oj0+TqojgvDzjWLJmwC+vY+Ew7ZHF39oY1Oxl7ibye8mKpn0YlL9uWPrI8/GlLx8c+Jq2lA9K6AcHcks= 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=QvdHRSpzJeN2TD3MiKPfGaePEHOh+PJBiVZD6pdfAJPxr3pYHGOCQhrwWL0BWtQVWcqiDFcYHSqQRqXSPaWmoz0GwUljHeX+Hee2jihjDCAUvqo4nF6LSF98hXufzFkgND3oiR8UQ6KyddZKac5QVOHeC17Vt+2BvjVptgiQYDY= Received: by 10.140.185.19 with SMTP id i19mr3471135rvf.296.1211181306867; Mon, 19 May 2008 00:15:06 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id l31sm12392576rvb.6.2008.05.19.00.15.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 19 May 2008 00:15:05 -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 m4J7F0UK026499 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 19 May 2008 16:15:00 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m4J7Ex2g026498; Mon, 19 May 2008 16:14:59 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Mon, 19 May 2008 16:14:59 +0900 From: Pyun YongHyeon To: Norikatsu Shigemura Message-ID: <20080519071459.GA26209@cdnetworks.co.kr> References: <20080517231220.c64a992b.nork@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080517231220.c64a992b.nork@FreeBSD.org> 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 07:15:07 -0000 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 -- Regards, Pyun YongHyeon