Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jun 2001 17:50:47 +0200
From:      Mitja Horvat <mitja.horvat@hermes.si>
To:        freebsd-stable@freebsd.org
Subject:   3Com 3c905B related kernel panic
Message-ID:  <200106061550.f56FomJ00618@lamu.hermes.si>

next in thread | raw e-mail | index | archive | help
Hi all,

the recent change made on sys/pci/if_xl.c(from the C source:
src/sys/pci/if_xl.c,v 1.72.2.5 2001/05/31 22:09:53 wpaul) seems
to make my system panic under moderate network load, like
downloading a 20MB+ file from a server on the local LAN. I backed
out the change (basically copying the old if_xl.c from 4.3-RELEASE)
and the system is now rock solid again. The panic is easily
reproducible, but the most weird thing is that I didn't get only
panics, but occasional hard lock-ups and also random cache
corruptions; for example, few times it corrupted the in RAM cached
libc, so all freshly started dynamically linked executables
cored.

The diff is not very large, since it includes only these three lines:
+       /* increase packet size to allow reception of 802.1q or ISL packets */
+        if (sc->xl_type == XL_TYPE_905B) 
+               CSR_WRITE_2(sc, XL_W3_MAXPKTSIZE, XL_PACKET_SIZE);

What is this supposed to do other than panicing my machine? :) 

I have these options enabled, but I don't think they are the culprits:
loader.conf:
hw.ata.wc="1"
hw.ata.tags="1"
hw.ata.atapi_dma="1"
sysctl:
vfs.vmdirioenable=1

This is a backtrace of the kernel panic and below it you can find
my dmesg output:

----------------------------------------------------------------------
GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
IdlePTD 3559424
initial pcb at 2da160
panicstr: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0xc0c113bd
fault code		= supervisor write, page not present
instruction pointer	= 0x8:0xc01d275b
stack pointer	        = 0x10:0xc0298e84
frame pointer	        = 0x10:0xc0298e90
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= Idle
interrupt mask		= net tty 
trap number		= 12
panic: page fault

syncing disks... 

Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x30
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0xc01dd084
stack pointer	        = 0x10:0xc0298cb0
frame pointer	        = 0x10:0xc0298cb8
code segment		= base 0x0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, def32 1, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= Idle
interrupt mask		= net tty bio cam 
trap number		= 12
panic: page fault
Uptime: 24s

dumping to dev #ad/0x30001, offset 524416
dump ata0: resetting devices .. ad0: invalidating queued requests
done
255 254 253 252 251 250 249 248 247 246 245 244 243 242 241 240 239 238 237 
236 235 234 233 232 231 230 229 228 227 226 225 224 223 222 221 220 219 218 
217 216 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 
198 197 196 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180 
179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 161 
160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 143 142 
141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 125 124 123 
122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 
103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 
79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 
53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 
27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 
---
#0  dumpsys () at ../../kern/kern_shutdown.c:469
469		if (dumping++) {
(kgdb) #0  dumpsys () at ../../kern/kern_shutdown.c:469
#1  0xc013f2a7 in boot (howto=260) at ../../kern/kern_shutdown.c:309
#2  0xc013f624 in poweroff_wait (junk=0xc02795af, howto=0)
    at ../../kern/kern_shutdown.c:556
#3  0xc0245039 in trap_fatal (frame=0xc0298c70, eva=48)
    at ../../i386/i386/trap.c:951
#4  0xc0244d11 in trap_pfault (frame=0xc0298c70, usermode=0, eva=48)
    at ../../i386/i386/trap.c:844
#5  0xc02448f7 in trap (frame={tf_fs = 16, tf_es = -1071054832, 
      tf_ds = -1072496624, tf_edi = 0, tf_esi = 0, tf_ebp = -1071018824, 
      tf_isp = -1071018852, tf_ebx = -1070953412, tf_edx = 6864960, 
      tf_ecx = -1057548275, tf_eax = 0, tf_trapno = 12, tf_err = 0, 
      tf_eip = -1071787900, tf_cs = 8, tf_eflags = 66050, tf_esp = 
-970788628, 
      tf_ss = 0}) at ../../i386/i386/trap.c:443
#6  0xc01dd084 in acquire_lock (lk=0xc02a8c3c)
    at ../../ufs/ffs/ffs_softdep.c:271
#7  0xc01e26d0 in softdep_count_dependencies (bp=0xc622f0ec, wantcount=0)
    at ../../ufs/ffs/ffs_softdep.c:4753
#8  0xc01e58dc in ffs_fsync (ap=0xc0298d2c) at ../../ufs/ffs/ffs_vnops.c:168
#9  0xc01e441b in ffs_sync (mp=0xc0f6ce00, waitfor=2, cred=0xc0a3b680, 
    p=0xc02eeee0) at vnode_if.h:558
#10 0xc016e187 in sync (p=0xc02eeee0, uap=0x0) at 
.../../kern/vfs_syscalls.c:545
#11 0xc013f07a in boot (howto=256) at ../../kern/kern_shutdown.c:233
#12 0xc013f624 in poweroff_wait (junk=0xc02795af, howto=0)
    at ../../kern/kern_shutdown.c:556
#13 0xc0245039 in trap_fatal (frame=0xc0298e44, eva=3233878973)
    at ../../i386/i386/trap.c:951
#14 0xc0244d11 in trap_pfault (frame=0xc0298e44, usermode=0, eva=3233878973)
    at ../../i386/i386/trap.c:844
#15 0xc02448f7 in trap (frame={tf_fs = 6750224, tf_es = -1058275312, 
      tf_ds = -1062797296, tf_edi = -1062850816, tf_esi = 6757394, 
      tf_ebp = -1071018352, tf_isp = -1071018384, tf_ebx = -1062850816, 
      tf_edx = -1063006208, tf_ecx = -1430140671, tf_eax = 1917885, 
      tf_trapno = 12, tf_err = 2, tf_eip = -1071831205, tf_cs = 8, 
      tf_eflags = 66054, tf_esp = -1058240740, tf_ss = -1062683392})
    at ../../i386/i386/trap.c:443
#16 0xc01d275b in xl_newbuf (sc=0xc0ec8000, c=0xc0ec871c)
    at ../../pci/if_xl.c:1716
#17 0xc01d292c in xl_rxeof (sc=0xc0ec8000) at ../../pci/if_xl.c:1817
#18 0xc01d3004 in xl_intr (arg=0xc0ec8000) at ../../pci/if_xl.c:2036
(kgdb) 

----------------------------------------------------------------------
Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.3-STABLE #2: Wed Jun  6 16:52:51 CEST 2001
    root@lamu.hermes.si:/usr/src/sys/compile/LAMU
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 797969218 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (797.97-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x686  Stepping = 6
  
Features=0x387f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,PN,MMX,FXSR,SSE>
real memory  = 268369920 (262080K bytes)
avail memory = 257945600 (251900K bytes)
Preloaded elf kernel "kernel" at 0xc0346000.
VESA: v2.0, 16384k memory, flags:0x1, mode table:0xc02ee682 (1000022)
VESA: ATI RAGE128
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib2: <VIA 82C598MVP (Apollo MVP3) PCI-PCI (AGP) bridge> at device 1.0 on 
pci0
pci1: <PCI bus> on pcib2
pci1: <ATI model 5046 graphics accelerator> at 0.0 irq 10
isab0: <VIA 82C686 PCI-ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <VIA 82C686 ATA66 controller> port 0xd000-0xd00f at device 7.1 on 
pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <VIA 83C572 USB controller> at 7.2 irq 9
pci0: <VIA 83C572 USB controller> at 7.3 irq 9
pcm0: <AudioPCI ES1373-8> port 0xdc00-0xdc3f irq 10 at device 17.0 on pci0
xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xe000-0xe07f mem 
0xdb000000-0xdb00007f irq 11 at device 19.0 on pci0
xl0: Ethernet address: 00:01:02:e0:fe:ca
miibus0: <MII bus> on xl0
xlphy0: <3Com internal media interface> on miibus0
xlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pcib1: <Host to PCI bridge> on motherboard
pci2: <PCI bus> on pcib1
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> on isa0
sc0: VGA <16 virtual consoles, flags=0x200>
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
ad0: 14649MB <IBM-DTLA-307015> [29765/16/63] at ata0-master tagged UDMA66
acd0: DVD-ROM <PIONEER DVD-ROM DVD-115> at ata1-master using UDMA33
no devsw (majdev=0 bootdev=0xa0200000)
Mounting root from ufs:/dev/ad0s1a

Regards,
Mitja


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200106061550.f56FomJ00618>