From owner-freebsd-stable@FreeBSD.ORG Tue Jul 8 01:45:32 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7ECC21065670 for ; Tue, 8 Jul 2008 01:45:32 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.225]) by mx1.freebsd.org (Postfix) with ESMTP id 440CA8FC18 for ; Tue, 8 Jul 2008 01:45:32 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so3046490rvf.43 for ; Mon, 07 Jul 2008 18:45:32 -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=isJRYrf1Bo9aVONxs7Az591I9Jir7H05O+hs96x5vB8=; b=yIBkacOzfL15egomPvQidwOEDwhmeziP/FjMkJJDzwQzTz86Hcb5XA+RUzTrkWwRIa sh6muuCmU5HLQuKwehFON1zI4J5KNgP1JP6Gs2fJ/NJhuIxQo8l7u+b9qpA8Fua2KhJE /PIrQb/6fajUMagRKk/PqJwDwarQRdi9o7lFE= 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=vPdJrgMcvEsg/TkQ5Dwbh9mGKylWQj5vhgfCrX1Jl9nRJQRQLLBP1bBRjG7/IrcEOq s96cEp5Y8qrqApziTwNl4kmEED2AJJ5gan3l4JVYilKgo7NuiB/RYuUhey4rKSAFBWPJ HXHD7H4wy8FPNHtELYTbbHK9wtDEkOKYzu+BY= Received: by 10.140.163.12 with SMTP id l12mr2851951rve.137.1215481531937; Mon, 07 Jul 2008 18:45:31 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ( [211.53.35.84]) by mx.google.com with ESMTPS id f21sm7433381rvb.0.2008.07.07.18.45.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 07 Jul 2008 18:45:30 -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 m681hLY3012829 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 8 Jul 2008 10:43:21 +0900 (KST) (envelope-from pyunyh@gmail.com) Received: (from yongari@localhost) by michelle.cdnetworks.co.kr (8.13.5/8.13.5/Submit) id m681hLCr012828; Tue, 8 Jul 2008 10:43:21 +0900 (KST) (envelope-from pyunyh@gmail.com) Date: Tue, 8 Jul 2008 10:43:21 +0900 From: Pyun YongHyeon To: Tadashi Takahashi Message-ID: <20080708014321.GD12415@cdnetworks.co.kr> References: <86wsjxpehl.wl%maya@negeta.com> <48729132.10307@delphij.net> <86lk0ds4p9.wl%maya@negeta.com> <20080708005226.GB12415@cdnetworks.co.kr> <6.2.3.4.2.20080708100506.02775558@pop.nifty.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="J2SCkAp4GZ/dPZZf" Content-Disposition: inline In-Reply-To: <6.2.3.4.2.20080708100506.02775558@pop.nifty.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-stable@freebsd.org, NAGATA Shinya Subject: Re: Realtek 8102EL X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jul 2008 01:45:32 -0000 --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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: 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: 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: 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@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-stable > >To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- Regards, Pyun YongHyeon --J2SCkAp4GZ/dPZZf Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="re.8101E.patch" --- 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 --J2SCkAp4GZ/dPZZf--