trap 12: page fault while in kernel mode on 8.0-RELEASE (possibly bge(4) related)

Slawa Olhovchenkov slw at zxy.spb.ru
Mon Feb 22 15:40:55 UTC 2010


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



More information about the freebsd-stable mailing list