From owner-freebsd-stable@FreeBSD.ORG Mon Jan 12 23:09:06 2009 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 C1DF110656C6 for ; Mon, 12 Jan 2009 23:09:06 +0000 (UTC) (envelope-from freebsd@optiksecurite.com) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.freebsd.org (Postfix) with ESMTP id 92C448FC1E for ; Mon, 12 Jan 2009 23:09:06 +0000 (UTC) (envelope-from freebsd@optiksecurite.com) MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from [69.69.69.183] ([69.70.93.206]) by VL-MH-MR002.ip.videotron.ca (Sun Java(tm) System Messaging Server 6.3-4.01 (built Aug 3 2007; 32bit)) with ESMTP id <0KDD00JDKPITASC1@VL-MH-MR002.ip.videotron.ca> for freebsd-stable@freebsd.org; Mon, 12 Jan 2009 17:08:53 -0500 (EST) Message-id: <496BBFF6.7010300@optiksecurite.com> Date: Mon, 12 Jan 2009 17:11:02 -0500 From: FreeBSD User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) To: pyunyh@gmail.com References: <8dfae1c10901070639x67945324jeeecfcac647d7976@mail.gmail.com> <8dfae1c10901071550s69d99802p31ca7c775f3d6823@mail.gmail.com> <88527079.20090111192206@donpac.ru> <20090112011146.GC46346@cdnetworks.co.kr> In-reply-to: <20090112011146.GC46346@cdnetworks.co.kr> Cc: freebsd-stable@freebsd.org Subject: Re: FreeBSD 7.1 Breaks re and rl Network Interface Drivers X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Jan 2009 23:09:08 -0000 Pyun YongHyeon a écrit : > On Sun, Jan 11, 2009 at 07:22:06PM +0300, Eugene Gladchenko wrote: > > Walter, > > > > Thursday, January 8, 2009, 2:50:40 AM, you wrote: > > > > WV> Booting kernel.old, which is 7.0-RELEASE-p7 completely alleviates all > > WV> problems. I believe this roundly confirms that this is a bug in the > > WV> 7.1-RELEASE re kernel drivers. > > > > Does kern/130011 look similar? http://www.freebsd.org/cgi/query-pr.cgi?pr=130011 > > Do you have RTL8168C controller? If not, it's not related with > Walter's issue as 7.0-RELEASE didn't have a support for RTL8168C. > > > > > The re driver was really broken in 7.1-RC2 and the fix didn't get to 7.1-RELEASE. > > If you have re(4) issues, please provide more details such as > dmesg output, way to reproduce the issue etc. > Hi, I have the exact same card and the exact same problem as the PR you mentionned. re0@pci0:3:0:0: class=0x020000 card=0x02831028 chip=0x816810ec rev=0x02 hdr=0x00 vendor = 'Realtek Semiconductor' device = 'RTL8168/8111 PCI-E Gigabit Ethernet NIC' class = network subclass = ethernet re0: port 0xd800-0xd8ff mem 0xfeaff000-0xfeafffff,0xfdff0000-0xfdffffff irq 18 at device 0.0 on pci3 re0: Chip rev. 0x3c000000 re0: MAC rev. 0x00400000 re0: PHY write failed re0: PHY write failed re0: MII without any phy! device_attach: re0 attach returned 6 I tried to compile a new kernel with the latest version of the 3 files listed in the PR: src/sys/dev/re/if_re.c,v 1.147 2008/12/22 00:46:22 yongari src/sys/pci/if_rl.c,v 1.170.2.10 2009/01/12 04:10:40 yongari src/sys/pci/if_rlreg.h,v 1.67.2.16 2009/01/12 03:48:25 yongari but I get the following error in buildworld: cc -c -O -pipe -std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Werror /usr/src/sys/dev/re/if_re.c /usr/src/sys/dev/re/if_re.c: In function 're_miibus_statchg': /usr/src/sys/dev/re/if_re.c:594: error: 'RL_FLAG_FASTETHER' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c:594: error: (Each undeclared identifier is reported only once /usr/src/sys/dev/re/if_re.c:594: error: for each function it appears in.) /usr/src/sys/dev/re/if_re.c: In function 're_reset': /usr/src/sys/dev/re/if_re.c:703: error: 'RL_FLAG_PHY8169' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c:705: error: 'RL_FLAG_PHY8110S' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c: In function 're_attach': /usr/src/sys/dev/re/if_re.c:1160: error: 'RL_FLAG_PCIE' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c:1242: error: 'RL_FLAG_FASTETHER' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c:1245: error: 'RL_FLAG_PHY8110S' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c:1256: error: 'RL_FLAG_CMDSTOP' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c:1260: error: 'RL_FLAG_WOLRXENB' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c:1267: error: 'RL_FLAG_MACSLEEP' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c:1292: error: 'RL_FLAG_PHY8169' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c:1362: error: 'RL_MACDBG' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c:1363: error: 'RL_GPIO' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c: In function 're_int_task': /usr/src/sys/dev/re/if_re.c:2184: error: 'RL_FLAG_PCIE' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c: In function 're_stop': /usr/src/sys/dev/re/if_re.c:2908: error: 'RL_FLAG_CMDSTOP' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c:2909: error: 'RL_CMD_STOPREQ' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c: In function 're_resume': /usr/src/sys/dev/re/if_re.c:2989: error: 'RL_FLAG_MACSLEEP' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c:2990: error: 'RL_MACDBG' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c:2991: error: 'RL_GPIO' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c: In function 're_setwol': /usr/src/sys/dev/re/if_re.c:3050: error: 'RL_FLAG_MACSLEEP' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c:3051: error: 'RL_MACDBG' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c:3052: error: 'RL_GPIO' undeclared (first use in this function) /usr/src/sys/dev/re/if_re.c:3056: error: 'RL_FLAG_WOLRXENB' undeclared (first use in this function) *** Error code 1 Stop in /usr/obj/usr/src/sys/GENERIC. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. ------------ Thanks a lot for your help! Martin