Testers needed: Joe's MFC of USB code

Eugene Grosbein eugen at kuzbass.ru
Thu Feb 26 09:55:15 PST 2004


On Tue, Feb 24, 2004 at 03:43:58PM -0800, Julian Elischer wrote:

> I've been running Joe's latest USB MFC patch and it seems to work ok for
> me... (both ohci and uhci)
> I have a limited set of devices to test with however..
> Anyone else care to test?
> Getting this in -Stable is a prerequisite to MFCing the EHCI USB 2.0 
> driver so if yu'd like to see USB-2 in 4.x please give this a run
> and net us know..
> The patch is at:
> http://www.josef-k.net/freebsd/
> It applied without hitch to yesterday's RELENG_4

Hi!

I've tested this patch on RELENG_4 (26 Feb 2004) because of the next
problem with HP ScanJet 2200C. Please read details:

1. Boot the system (uhci) and command 'startx'. XFree86-4 starts.
2. Run gimp.
3. Walk through menus: File/Aquire/xscanimage/Device dialog
4. Choose Scan mode: Color42/48, hit Scan button.
   It will complain: 'Gimp doesn't support images with 16bits/channel'
   Things seem to be time dependent - wait aboute 60 seconds then press Ok.
5. Change Scan mode to Color, it will complain:
   'Failed to set value of option mode: Device busy'.
6. Choose 'File/Exit' menu in this xscanimage window.

Several seconds later system will lock up. There is nothing to be done
if you are in X, only power down/up cycle will help.

There is several seconds long time window, one can switch to a vty quickly
and look at 'top' output. One will see xscanimage in state 'usbdly' just
before top will be frozen.

Seldom there will be no lockup, system will be alive and xscanimage
will be in state 'uscnrb'. Just send SIGKILL to xscanimage and lockup will
occur.

Sympthoms of lockup: system does not respond to pings, consoles do not switch.
Ctril-Alt-ESC will work for a few moments after lockup
but if you wait a little, it won't work and lockup will become 'total'.

Versions: sane-backends-1.0.13_2, sane-frontends-1.0.11_1, gimp-1.2.3_2,1

Now what do we have with a patch proposed? Well, instead of lockup
we obtain good old kernel panic (the patch is really usefull).
And crashdump, of course. The panic is 100% repeatable. Here comes gdb
backtrace (kernel compiled with INVARIANTS and debug info):

Script started on Fri Feb 27 00:38:08 2004
GNU gdb 4.18 (FreeBSD)
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"...Deprecated bfd_read called at /usr/local/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 2627 in elfstab_build_psymtabs
Deprecated bfd_read called at /usr/local/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf

IdlePTD at physical address 0x003ed000
initial pcb at physical address 0x0033df80
panicstr: page fault
panic messages:
---
Fatal trap 12: page fault while in kernel mode
fault virtual address	= 0x884
fault code		= supervisor read, page not present
instruction pointer	= 0x8:0xc02263a2
stack pointer	        = 0x10:0xdb2efcf8
frame pointer	        = 0x10:0xdb2efcfc
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		= 493 (xscanimage)
interrupt mask		= bio 
trap number		= 12
panic: page fault

syncing disks... 12 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 8 
0xcc5d18e0 1: dev:#ad/0x20017, flags:21021024, blkno:1112924, lblkno:0
0xcc5d1794 2: dev:#ad/0x20017, flags:01000064, blkno:12394560, lblkno:12394560
0xcc5d1648 3: dev:#ad/0x20017, flags:01000064, blkno:1093696, lblkno:1093696
0xcc53b1e0 4: dev:#ad/0x20017, flags:21021024, blkno:1094144, lblkno:1094144
0xcc52d2d0 5: dev:#ad/0x20014, flags:21021024, blkno:517888, lblkno:2
0xcc5276bc 6: dev:#ad/0x20017, flags:21021024, blkno:12394816, lblkno:12394816
0xcc511748 7: dev:#ad/0x20017, flags:21000024, blkno:16, lblkno:16
0xcc5115fc 8: dev:#ad/0x20017, flags:21000024, blkno:5728, lblkno:5728
giving up on 8 buffers
Uptime: 9m32s
/dev/vmmon: Module vmmon: unloaded

dumping to dev #ad/0x20011, offset 1048704
dump ata1: resetting devices .. done
511 510 509 508 507 506 505 504 503 502 501 500 499 498 497 496 495 494 493 492 491 490 489 488 487 486 485 484 483 482 481 480 479 478 477 476 475 474 473 472 471 470 469 468 467 466 465 464 463 462 461 460 459 458 457 456 455 454 453 452 451 450 449 448 447 446 445 444 443 442 441 440 439 438 437 436 435 434 433 432 431 430 429 428 427 426 425 424 423 422 421 420 419 418 417 416 415 414 413 412 411 410 409 408 407 406 405 404 403 402 401 400 399 398 397 396 395 394 393 392 391 390 389 388 387 386 385 384 383 382 381 380 379 378 377 376 375 374 373 372 371 370 369 368 367 366 365 364 363 362 361 360 359 358 357 356 355 354 353 352 351 350 349 348 347 346 345 344 343 342 341 340 339 338 337 336 335 334 333 332 331 330 329 328 327 326 325 324 323 322 321 320 319 318 317 316 315 314 313 312 311 310 309 308 307 306 305 304 303 302 301 300 299 298 297 296 295 294 293 292 291 290 289 288 287 286 285 284 283 282 281 280 279 278 277 276 275 274 273 272 271 270 269 268 267 266 265 264 263 262 261 260 259 258 257 256 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 /usr/local/src/sys/kern/kern_shutdown.c:487
487		if (dumping++) {
(kgdb) bt full
#0  dumpsys () at /usr/local/src/sys/kern/kern_shutdown.c:487
	error = 0
#1  0xc0167744 in boot (howto=256)
    at /usr/local/src/sys/kern/kern_shutdown.c:316
	howto = 256
#2  0xc0167b91 in panic (fmt=0xc02eab2c "%s")
    at /usr/local/src/sys/kern/kern_shutdown.c:595
	fmt = 0xc02eab2c "%s"
	bootopt = 256
	buf = "page fault", '\000' <repeats 245 times>
#3  0xc028bb5c in trap_fatal (frame=0xdb2efcb8, eva=2180)
    at /usr/local/src/sys/i386/i386/trap.c:974
	frame = (struct trapframe *) 0xdb2efcb8
	eva = 0
	code = 16
	type = 12
	ss = 16
	esp = 0
	softseg = {ssd_base = 0, ssd_limit = 1048575, ssd_type = 27, 
  ssd_dpl = 0, ssd_p = 1, ssd_xx = 7, ssd_xx1 = 3, ssd_def32 = 1, ssd_gran = 1}
#4  0xc028b7f1 in trap_pfault (frame=0xdb2efcb8, usermode=0, eva=2180)
    at /usr/local/src/sys/i386/i386/trap.c:867
	va = 0
	vm = (struct vmspace *) 0x0
---Type <return> to continue, or q <return> to quit---
	map = 0xdb18dbc0
	rv = 0
	ftype = 1 '\001'
	p = (struct proc *) 0xdb1191e0
#5  0xc028b383 in trap (frame={tf_fs = 16, tf_es = 16, tf_ds = 16, 
      tf_edi = -1034933120, tf_esi = -1035637248, tf_ebp = -617677572, 
      tf_isp = -617677596, tf_ebx = 6867008, tf_edx = 2176, tf_ecx = 514, 
      tf_eax = -1070540448, tf_trapno = 12, tf_err = 0, tf_eip = -1071488094, 
      tf_cs = 8, tf_eflags = 66050, tf_esp = -1070540448, tf_ss = -617677528})
    at /usr/local/src/sys/i386/i386/trap.c:466
	p = (struct proc *) 0xdb1191e0
	sticks = 8813544470764060672
	i = 0
	ucode = 0
	type = 12
	code = 0
	eva = 2180
#6  0xc02263a2 in usb_schedsoftintr (bus=0xc030d960)
    at /usr/local/src/sys/dev/usb/usb.c:839
	bus = 0x0
#7  0xc0222df9 in uhci_abort_xfer (xfer=0xc2456e00, status=USBD_CANCELLED)
    at /usr/local/src/sys/dev/usb/uhci.c:1961
	xfer = 0xc2456e00
	ii = (uhci_intr_info_t *) 0xc2456e6c
---Type <return> to continue, or q <return> to quit---
	upipe = (struct uhci_pipe *) 0xc2502c80
	sc = (uhci_softc_t *) 0xc030d960
	std = (uhci_soft_td_t *) 0x0
	s = 6867008
#8  0xc0222d2e in uhci_device_bulk_abort (xfer=0xc2456e00)
    at /usr/local/src/sys/dev/usb/uhci.c:1903
	xfer = 0x0
#9  0xc0226cd9 in usbd_ar_pipe (pipe=0xc2502c00)
    at /usr/local/src/sys/dev/usb/usbdi.c:753
	pipe = 0xc2502c00
	xfer = 0x0
#10 0xc02269f5 in usbd_abort_pipe (pipe=0xc2502c00)
    at /usr/local/src/sys/dev/usb/usbdi.c:553
	pipe = 0xc2502c00
	err = 3260034048
	s = 0
#11 0xc022d410 in uscanner_do_close (sc=0xc1e10d80)
    at /usr/local/src/sys/dev/usb/uscanner.c:482
	sc = (struct uscanner_softc *) 0xc1e10d80
#12 0xc022d39a in uscannerclose (dev=0xc1e10d00, flag=3, mode=8192, 
    p=0xdb1191e0) at /usr/local/src/sys/dev/usb/uscanner.c:458
	dev = 0x0
	sc = (struct uscanner_softc *) 0x0
#13 0xc01a35db in spec_close (ap=0xdb2efddc)
---Type <return> to continue, or q <return> to quit---
    at /usr/local/src/sys/miscfs/specfs/spec_vnops.c:591
	vp = (struct vnode *) 0xdb067540
	p = (struct proc *) 0xdb1191e0
	dev = 0xc1e10d00
#14 0xc020f61a in ufsspec_close (ap=0xdb2efddc)
    at /usr/local/src/sys/ufs/ufs/ufs_vnops.c:1854
	ap = (struct vop_close_args *) 0xdb2efddc
	vp = (struct vnode *) 0x0
#15 0xc020fbfd in ufs_vnoperatespec (ap=0xdb2efddc)
    at /usr/local/src/sys/ufs/ufs/ufs_vnops.c:2394
	ap = (struct vop_generic_args *) 0x0
#16 0xc019ee50 in vn_close (vp=0xdb067540, flags=3, cred=0xc2502e80, 
    p=0xdb1191e0) at vnode_if.h:218
	rc = -1034772160
	a = {a_desc = 0xc02f5be0, a_vp = 0xdb067540, a_fflag = 3, 
  a_cred = 0xc2502e80, a_p = 0xdb1191e0}
	vp = (struct vnode *) 0xdb067540
	fflag = 0
	cred = (struct ucred *) 0x0
	p = (struct proc *) 0x0
	vp = (struct vnode *) 0xdb067540
	flags = 0
	cred = (struct ucred *) 0x0
	p = (struct proc *) 0x0
---Type <return> to continue, or q <return> to quit---
#17 0xc019f802 in vn_closefile (fp=0xc252a140, p=0xdb1191e0)
    at /usr/local/src/sys/kern/vfs_vnops.c:693
	fp = (struct file *) 0x0
	p = (struct proc *) 0x0
#18 0xc015cc98 in fdrop (fp=0xc252a140, p=0xdb1191e0)
    at /usr/local/src/sys/sys/file.h:218
	fp = (struct file *) 0xc252a140
	p = (struct proc *) 0x0
	fp = (struct file *) 0xc252a140
	p = (struct proc *) 0x0
	lf = {l_start = -2659133498272792576, l_len = -2652903339125112832, 
  l_pid = 32, l_type = 7614, l_whence = 0}
	vp = (struct vnode *) 0x0
	error = -619605536
#19 0xc015cbdc in closef (fp=0xc252a140, p=0xdb1191e0)
    at /usr/local/src/sys/kern/kern_descrip.c:1441
	fp = (struct file *) 0xc252a140
	p = (struct proc *) 0xdb1191e0
	vp = (struct vnode *) 0x0
	lf = {l_start = 7614, l_len = 3675361760, l_pid = -617677056, 
  l_type = 30186, l_whence = -16361}
	fdtol = (struct filedesc_to_leader *) 0x0
#20 0xc015c711 in fdfree (p=0xdb1191e0)
    at /usr/local/src/sys/kern/kern_descrip.c:1189
---Type <return> to continue, or q <return> to quit---
	fdp = (struct filedesc *) 0xc245fa00
	fpp = (struct file **) 0xc23ef170
	i = 1
	fdtol = (struct filedesc_to_leader *) 0x0
	vp = (struct vnode *) 0x0
	lf = {l_start = 0, l_len = 30064771072, l_pid = -1070343908, 
  l_type = -220, l_whence = -9426}
#21 0xc015f616 in exit1 (p=0xdb1191e0, rv=0)
    at /usr/local/src/sys/kern/kern_exit.c:188
	rv = 0
	q = (struct proc *) 0x0
	nq = (struct proc *) 0x1
	vm = (struct vmspace *) 0x0
	vtmp = (struct vnode *) 0x0
	ep = (struct exitlist *) 0x0
#22 0xc015f489 in sys_exit (p=0xdb1191e0, uap=0xdb2eff80)
    at /usr/local/src/sys/kern/kern_exit.c:104
	p = (struct proc *) 0x0
	uap = (struct sys_exit_args *) 0x0
#23 0xc028bdcd in syscall2 (frame={tf_fs = -1078001617, tf_es = 47, 
      tf_ds = -1078001617, tf_edi = 134905856, tf_esi = 677365224, 
      tf_ebp = -1077943888, tf_isp = -617676844, tf_ebx = 677628768, 
      tf_edx = 677404864, tf_ecx = 7, tf_eax = 1, tf_trapno = 12, tf_err = 2, 
      tf_eip = 674953404, tf_cs = 31, tf_eflags = 643, tf_esp = -1077943948, 
---Type <return> to continue, or q <return> to quit---
      tf_ss = 47}) at /usr/local/src/sys/i386/i386/trap.c:1175
	params = 0xbfbfe178 ""
	i = 0
	callp = (struct sysent *) 0xc02fbec8
	p = (struct proc *) 0xdb1191e0
	orig_tf_eflags = 643
	sticks = 997
	error = 0
	narg = 1
	args = {0, 152808874, 7614, 0, 0, 0, 0, 0}
	code = 1
#24 0xc027edd5 in Xint0x80_syscall ()
No symbol table info available.
#25 0x285ff15a in ?? ()
No symbol table info available.
#26 0x2834093e in ?? ()
No symbol table info available.
#27 0x28340bca in ?? ()
No symbol table info available.
#28 0x804de51 in ?? ()
No symbol table info available.
#29 0x804e3cb in ?? ()
No symbol table info available.
#30 0x2814e562 in ?? ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#31 0x281805ac in ?? ()
No symbol table info available.
#32 0x2817f9c1 in ?? ()
No symbol table info available.
#33 0x2817d91d in ?? ()
No symbol table info available.
#34 0x280e882c in ?? ()
No symbol table info available.
#35 0x280e9ef5 in ?? ()
No symbol table info available.
#36 0x2814e562 in ?? ()
No symbol table info available.
#37 0x2817f841 in ?? ()
No symbol table info available.
#38 0x2817d91d in ?? ()
No symbol table info available.
#39 0x280e875c in ?? ()
No symbol table info available.
#40 0x280e9844 in ?? ()
No symbol table info available.
#41 0x2814e11a in ?? ()
No symbol table info available.
#42 0x2817f9fa in ?? ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#43 0x2817d91d in ?? ()
No symbol table info available.
#44 0x281b7284 in ?? ()
No symbol table info available.
#45 0x2814e05d in ?? ()
No symbol table info available.
#46 0x2814d0ea in ?? ()
No symbol table info available.
#47 0x28202185 in ?? ()
No symbol table info available.
#48 0x28232d07 in ?? ()
No symbol table info available.
#49 0x28233330 in ?? ()
No symbol table info available.
#50 0x282334c8 in ?? ()
No symbol table info available.
#51 0x2814c97e in ?? ()
No symbol table info available.
#52 0x80501d6 in ?? ()
No symbol table info available.
#53 0x804cf8b in ?? ()
No symbol table info available.
#54 0x280a6acd in ?? ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#55 0x280a68dc in ?? ()
No symbol table info available.
#56 0x280a5b02 in ?? ()
No symbol table info available.
#57 0x8050293 in ?? ()
No symbol table info available.
#58 0x804cb16 in ?? ()
No symbol table info available.
(kgdb) frame 6
#6  0xc02263a2 in usb_schedsoftintr (bus=0xc030d960)
    at /usr/local/src/sys/dev/usb/usb.c:839
839	       bus->methods->soft_intr(bus);
(kgdb) quit

Script done on Fri Feb 27 00:38:54 2004

I will be happy to supply additional details.
512Mb of crashdump are available on request (66Mb compressed)

Here comes /var/run/dmesg.boot:

Copyright (c) 1992-2003 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.9-STABLE #0: Fri Feb 27 00:01:20 KRAT 2004
    eu at grosbein.pp.ru:/tmp/obj/usr/local/src/sys/DADV
Timecounter "i8254"  frequency 1193165 Hz
CPU: Intel Celeron (902.03-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE>
real memory  = 536805376 (524224K bytes)
config> flags atkbd 0x0
config> quit
avail memory = 518279168 (506132K bytes)
Preloaded elf kernel "kernel" at 0xc03ce000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc03ce09c.
VESA: v2.0, 65536k memory, flags:0x1, mode table:0xc0356562 (1000022)
VESA: ATI RADEON 9200
Pentium Pro MTRR support enabled
Using $PIR table, 8 entries at 0xc00fdef0
apm0: <APM BIOS> on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443BX (440 BX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
agp0: <Intel 82443BX (440 BX) host to PCI bridge> mem 0xe8000000-0xebffffff at device 0.0 on pci0
pcib1: <Intel 82443BX (440 BX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI model 5961 graphics accelerator> at 0.0
pci1: <ATI model 5941 graphics accelerator> at 0.1
isab0: <Intel 82371AB PCI to ISA bridge> at device 7.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0xf000-0xf00f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0xe000-0xe01f irq 11 at device 7.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uscanner0: Hewlett-Packard HP ScanJet 2200C, rev 1.10/1.00, addr 2
uhid0: American Power Conversion Back-UPS 500 FW: 6.5.I USB FW: c1, rev 1.10/1.00, addr 3, iclass 3/0
intpm0: <Intel 82371AB Power management controller> port 0x5000-0x500f irq 9 at device 7.3 on pci0
intpm0: I/O mapped 5000
intpm0: intr IRQ 9 enabled revision 0
smbus0: <System Management Bus> on intsmb0
smb0: <SMBus general purpose I/O> on smbus0
intpm0: PM I/O mapped 4000 
fxp0: <Intel 82557 Pro/100 Ethernet> port 0xe400-0xe41f mem 0xef000000-0xef0fffff,0xef100000-0xef100fff irq 10 at device 16.0 on pci0
fxp0: Ethernet address 00:a0:c9:89:95:1f
inphy0: <i82555 10/100 media interface> on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
orm0: <Option ROM> at iomem 0xc0000-0xccfff on isa0
pmtimer0 on isa0
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
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 NetMouse/NetScroll Optical, device ID 0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> on isa0
sc0: VGA <24 virtual consoles, flags=0x200>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
pcm0: <Yamaha OPL-SAx> at port 0x220-0x22f,0x530-0x537,0x388-0x38f,0x330-0x331,0x370-0x371 irq 5 drq 0,1 on isa0
DUMMYNET initialized (011031)
ipfw2 initialized, divert enabled, rule-based forwarding enabled, default to deny, logging unlimited
IPsec: Initialized Security Association Processing.
ad0: 6149MB <WDC AC26400B> [13328/15/63] at ata0-master UDMA33
ad2: 39266MB <IC35L040AVER07-0> [79780/16/63] at ata1-master UDMA33
acd0: CD-RW <SONY CD-RW CRX140E> at ata0-slave UDMA33
Mounting root from ufs:/dev/ad2s1a
WARNING: / was not properly dismounted

Now kernel config:

#for strings -n 3 /kernel | grep ^___ | sed -e 's/^___//' > MYKERNEL
options		INCLUDE_CONFIG_FILE

machine		i386
#cpu		I386_CPU
#cpu		I486_CPU
#cpu		I586_CPU
cpu		I686_CPU
options		CPU_ENABLE_SSE 		#enables SSE/MMX2 instructions support.
ident		DADV
maxusers	0

makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols

#options 	MATH_EMULATE		#Support for x87 emulation
#options		CLK_CALIBRATION_LOOP
options		"CLK_USE_I8254_CALIBRATION"
options		CLK_USE_TSC_CALIBRATION

options 	INET			#InterNETworking
#options 	INET6			#IPv6 communications protocols
options 	FFS			#Berkeley Fast Filesystem
options 	FFS_ROOT		#FFS usable as root device [keep this!]
#options 	MFS			#Memory Filesystem
#options 	MD_ROOT			#MD is a potential root device
#options 	NFS			#Network Filesystem
#options 	NFS_ROOT		#NFS usable as root device, NFS required
options 	MSDOSFS			#MSDOS Filesystem
#options 	CD9660			#ISO 9660 Filesystem
#options 	CD9660_ROOT		#CD-ROM usable as root, CD9660 required
options 	PROCFS			#Process filesystem
#options		EXT2FS			#Linux ext2 filesystem
options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
options 	SCSI_DELAY=15000	#Delay (in ms) before probing SCSI
options 	UCONSOLE		#Allow users to grab the console
options 	USERCONFIG		#boot -c editor
options 	VISUAL_USERCONFIG	#visual boot -c editor
options 	KTRACE			#ktrace(1) support
options		CPU_SUSP_HLT
#options		"NO_F00F_HACK"
options		USER_LDT
options		PPP_BSDCOMP
options		PPP_DEFLATE
options		PPP_FILTER

options 	SYSVSHM			#SYSV-style shared memory
options 	SYSVMSG			#SYSV-style message queues
options 	SYSVSEM			#SYSV-style semaphores

options         SHMALL=4097
options         SHMMAXPGS=4097
options         SHMMAX=(SHMMAXPGS*PAGE_SIZE+1)
options         SEMMAP=255
options         SEMMNI=235
options         SEMMNS=255
options         SEMMNU=235
options         SEMMSL=255
options         SEMOPM=201
options         SEMUME=201
		    
options 	P1003_1B		#Posix P1003_1B real-time extensions
options 	_KPOSIX_PRIORITY_SCHEDULING
options		_KPOSIX_VERSION=199309L
options		ICMP_BANDLIM		#Rate limit bad replies

#options		FDESC
options		NSWAPDEV=4

device		isa
device		eisa
device		pci
options		AUTO_EOI_1

# Floppy drives
device		fdc0	at isa? port IO_FD1 irq 6 drq 2
device		fd0	at fdc0 drive 0
#device		fd1	at fdc0 drive 1

# ATA and ATAPI devices
#device		ata0	at isa? port IO_WD1 irq 14 flags 0xb0ffb0ff
#device		ata1	at isa? port IO_WD2 irq 15 flags 0xb0ffb0ff
device		ata
device		atadisk			# ATA disk drives
device		atapicd			# ATAPI CDROM drives
#device		atapifd			# ATAPI floppy drives
#device		atapist			# ATAPI tape drives
options 	ATA_STATIC_ID		#Static device numbering

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1

# Options for atkbd:
options 	ATKBD_DFLT_KEYMAP	# specify the built-in keymap
makeoptions	ATKBD_DFLT_KEYMAP="ru.koi8-r.pdwn"

device		psm0	at atkbdc? irq 12

device		vga0	at isa?
options		VESA
options		VGA_WIDTH90

# splash screen/screen saver
pseudo-device	splash

# syscons is the default console driver, resembling an SCO console
device		sc0	at isa?
options 	SC_DFLT_FONT		# compile font in
makeoptions	SC_DFLT_FONT=cp866

options		MAXCONS=24
options		SC_HISTORY_SIZE=1000
options		SC_MOUSE_CHAR=0x03
#options		SC_TWOBUTTON_MOUSE
options		SC_PIXEL_MODE

# Floating point support - do not disable.
device		npx0	at nexus? port IO_NPX irq 13

# Power management support (see LINT for more options)
#device		apm0    at nexus? flags 0x31 # Advanced Power Management
device		apm0    at nexus?	     # Advanced Power Management

# Serial (COM) ports
device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 irq 3

device		miibus
device		fxp
device		rl
device		ep

# Parallel port
device		ppc0	at isa? irq 7
device		ppbus		# Parallel port bus (required)
device		lpt		# Printer
#device		plip		# TCP/IP over parallel
device		ppi		# Parallel port interface device

#device		joy0	at isa? port IO_GAME

# Pseudo devices - the number indicates how many units to allocated.
pseudo-device	loop		# Network loopback
pseudo-device	ether		# Ethernet support
pseudo-device	sl	2	# Kernel SLIP
pseudo-device	ppp	2	# Kernel PPP
pseudo-device	tun		# Packet tunnel.
pseudo-device	pty	16	# Pseudo-ttys (telnet etc)
#pseudo-device	md		# Memory "disks"
pseudo-device	gif	4	# IPv6 and IPv4 tunneling
pseudo-device	faith	1	# IPv6-to-IPv4 relaying (translation)
pseudo-device	snp
#pseudo-device	vn
pseudo-device	gzip		# Exec gzipped a.out's
pseudo-device	speaker

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
pseudo-device	bpf		#Berkeley packet filter
options		MSGBUF_SIZE=40960

device pcm

#options		QUOTA
options		IPFIREWALL
options		IPFIREWALL_VERBOSE
options		IPFW2
options		IPDIVERT

options		DUMMYNET
options		SOFTUPDATES

#device		smbus0
#device		iicbus0
#device		iicbb0
#device		intpm0
#device		smb0	at smbus?

device		smbus
#device		iicbus
#device		iicbb
device		intpm
#device		alpm
#device		ichsmb
device		smb

#device		ic
#device		iic
#device		iicsmb

options		DDB
options		DDB_UNATTENDED

#options		LIBMCHAIN
#options		LIBICONV
#options		NETSMB
#options		NETSMBCRYPTO

options		RANDOM_IP_ID
#options		SMBFS

options		UFS_DIRHASH
options		PQ_CACHESIZE=128	# color for 128k/16k cache
options		SHOW_BUSYBUFS

device		uhci
#device		ohci
device		usb
device		uscanner
device		ugen
device		uhid
device		ucom
device		tap

#options		SHUTDOWN_BEEP

options         IPSEC                   #IP security
options         IPSEC_ESP               #IP security (crypto; define w/ IPSEC)

options         INVARIANTS
options		INVARIANT_SUPPORT

device		agp
device		radeondrm


Eugene Grosbein


More information about the freebsd-stable mailing list