From owner-freebsd-stable@FreeBSD.ORG Mon Feb 22 15:40:55 2010 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A57871065679 for ; Mon, 22 Feb 2010 15:40:55 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [194.58.105.35]) by mx1.freebsd.org (Postfix) with ESMTP id EDA3E8FC19 for ; Mon, 22 Feb 2010 15:40:54 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1NjaOz-0008WM-6Q; Mon, 22 Feb 2010 18:40:53 +0300 Date: Mon, 22 Feb 2010 18:40:53 +0300 From: Slawa Olhovchenkov To: Pyun YongHyeon Message-ID: <20100222154053.GC29362@zxy.spb.ru> References: <20100219055129.GL55307@zxy.spb.ru> <20100219122415.GR55307@zxy.spb.ru> <20100219190359.GJ11675@michelle.cdnetworks.com> <20100219191103.GT55307@zxy.spb.ru> <20100219200647.GK11675@michelle.cdnetworks.com> <20100219201359.GU55307@zxy.spb.ru> <20100219211201.GL11675@michelle.cdnetworks.com> <20100220214450.GV55307@zxy.spb.ru> <20100221234153.GA1251@michelle.cdnetworks.com> <20100222071847.GX55307@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100222071847.GX55307@zxy.spb.ru> User-Agent: Mutt/1.5.20 (2009-06-14) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: Nick Rogers , stable@freebsd.org Subject: Re: trap 12: page fault while in kernel mode on 8.0-RELEASE (possibly bge(4) related) 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, 22 Feb 2010 15:40:55 -0000 On Mon, Feb 22, 2010 at 10:18:47AM +0300, Slawa Olhovchenkov wrote: > On Sun, Feb 21, 2010 at 03:41:53PM -0800, Pyun YongHyeon wrote: > > > On Sun, Feb 21, 2010 at 12:44:50AM +0300, Slawa Olhovchenkov wrote: > > > On Fri, Feb 19, 2010 at 01:12:01PM -0800, Pyun YongHyeon wrote: > > > > > > > Normally you should not have any FCS errors, it could be related > > > > with signal quality and these errors might not be correctly > > > > counted. > > > > > > I can't check cable and switch counters on bge1 before Feb 24. > > > > > > > > 3. packets don't lost on sources at Aug'09 > > > > > > > > Since I don't have BCM5704 hardware it's hard to find which > > > > revision may affect to this issue. Could you narrow down which > > > > revision number started showing the issue? > > > > > > I am don't update source between Aug'09 and Feb 16. > > > > > > > There were many bge(4) changes in that time frame. So it's hard to > > find which commit is guilty for the packet drop issue. If you can > > narrow down possible changes that might affect the issue that could > > help me a lot. You can do binary searching technique for the SVN > > revisions to know possible candidates. > > http://svn.freebsd.org/viewvc/base/head/sys/dev/bge/if_bge.c > > How I can do this? > I don't work w/ svn before and don't know optimal way for one file. mail# rm sys/dev/bge/* mail# svn checkout -r 201697 svn://svn.freebsd.org/base/stable/8/sys/dev/bge/ sys/dev/bge A sys/dev/bge/if_bgereg.h A sys/dev/bge/if_bge.c Checked out revision 201697. mail# make -DNO_CLEAN -DKERNFAST buildkernel ===> bge (all) cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/MAIL/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -g -fno-omit-frame-pointer -I/usr/obj/usr/src/sys/MAIL -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/src/sys/modules/bge/../../dev/bge/if_bge.c ld -d -warn-common -r -d -o if_bge.ko.debug if_bge.o :> export_syms awk -f /usr/src/sys/conf/kmod_syms.awk if_bge.ko.debug export_syms | xargs -J% objcopy % if_bge.ko.debug objcopy --only-keep-debug if_bge.ko.debug if_bge.ko.symbols objcopy --strip-debug --add-gnu-debuglink=if_bge.ko.symbols if_bge.ko.debug if_bge.ko ===> mii (all) cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/MAIL/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -g -fno-omit-frame-pointer -I/usr/obj/usr/src/sys/MAIL -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/src/sys/modules/mii/../../dev/mii/brgphy.c ld -d -warn-common -r -d -o miibus.ko.debug acphy.o amphy.o atphy.o axphy.o bmtphy.o brgphy.o ciphy.o e1000phy.o exphy.o gentbi.o icsphy.o inphy.o ip1000phy.o jmphy.o lxtphy.o miibus_if.o mii.o mii_physubr.o mlphy.o nsgphy.o nsphy.o nsphyter.o pnaphy.o qsphy.o rgephy.o rlphy.o ruephy.o tdkphy.o tlphy.o truephy.o ukphy.o ukphy_subr.o xmphy.o echo mii_mediachg mii_phy_probe mii_phy_reset mii_pollstat mii_tick > export_syms awk -f /usr/src/sys/conf/kmod_syms.awk miibus.ko.debug export_syms | xargs -J% objcopy % miibus.ko.debug objcopy --only-keep-debug miibus.ko.debug miibus.ko.symbols objcopy --strip-debug --add-gnu-debuglink=miibus.ko.symbols miibus.ko.debug miibus.ko