From owner-freebsd-stable@FreeBSD.ORG Thu Feb 26 09:55:15 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2011016A4CF; Thu, 26 Feb 2004 09:55:15 -0800 (PST) Received: from grosbein.pp.ru (grgw.svzserv.kemerovo.su [213.184.64.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id E37E043D1D; Thu, 26 Feb 2004 09:55:12 -0800 (PST) (envelope-from eugen@grosbein.pp.ru) Received: from grosbein.pp.ru (eugen@localhost [127.0.0.1]) by grosbein.pp.ru (8.12.11/8.12.11) with ESMTP id i1QHsTi9000517; Fri, 27 Feb 2004 00:54:29 +0700 (KRAT) (envelope-from eugen@grosbein.pp.ru) Received: (from eugen@localhost) by grosbein.pp.ru (8.12.11/8.12.11/Submit) id i1QHsNdJ000516; Fri, 27 Feb 2004 00:54:23 +0700 (KRAT) (envelope-from eugen) Date: Fri, 27 Feb 2004 00:54:23 +0700 From: Eugene Grosbein To: Julian Elischer Message-ID: <20040226175423.GA413@grosbein.pp.ru> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: User-Agent: Mutt/1.4.1i cc: stable@freebsd.org cc: hackers@freebsd.org Subject: Re: Testers needed: Joe's MFC of USB code X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Feb 2004 17:55:15 -0000 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=20 > 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 swit= ch. 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 condition= s. 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 cal= led 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 =3D 0x884 fault code =3D supervisor read, page not present instruction pointer =3D 0x8:0xc02263a2 stack pointer =3D 0x10:0xdb2efcf8 frame pointer =3D 0x10:0xdb2efcfc code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 493 (xscanimage) interrupt mask =3D bio=20 trap number =3D 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=20 0xcc5d18e0 1: dev:#ad/0x20017, flags:21021024, blkno:1112924, lblkno:0 0xcc5d1794 2: dev:#ad/0x20017, flags:01000064, blkno:12394560, lblkno:12394= 560 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:12394= 816 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 47= 4 473 472 471 470 469 468 467 466 465 464 463 462 461 460 459 458 457 456 4= 55 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 39= 9 398 397 396 395 394 393 392 391 390 389 388 387 386 385 384 383 382 381 3= 80 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 32= 4 323 322 321 320 319 318 317 316 315 314 313 312 311 310 309 308 307 306 3= 05 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 24= 9 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 233 232 231 2= 30 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 17= 4 173 172 171 170 169 168 167 166 165 164 163 162 161 160 159 158 157 156 1= 55 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=20 --- #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 =3D 0 #1 0xc0167744 in boot (howto=3D256) at /usr/local/src/sys/kern/kern_shutdown.c:316 howto =3D 256 #2 0xc0167b91 in panic (fmt=3D0xc02eab2c "%s") at /usr/local/src/sys/kern/kern_shutdown.c:595 fmt =3D 0xc02eab2c "%s" bootopt =3D 256 buf =3D "page fault", '\000' #3 0xc028bb5c in trap_fatal (frame=3D0xdb2efcb8, eva=3D2180) at /usr/local/src/sys/i386/i386/trap.c:974 frame =3D (struct trapframe *) 0xdb2efcb8 eva =3D 0 code =3D 16 type =3D 12 ss =3D 16 esp =3D 0 softseg =3D {ssd_base =3D 0, ssd_limit =3D 1048575, ssd_type =3D 27,=20 ssd_dpl =3D 0, ssd_p =3D 1, ssd_xx =3D 7, ssd_xx1 =3D 3, ssd_def32 =3D 1,= ssd_gran =3D 1} #4 0xc028b7f1 in trap_pfault (frame=3D0xdb2efcb8, usermode=3D0, eva=3D2180) at /usr/local/src/sys/i386/i386/trap.c:867 va =3D 0 vm =3D (struct vmspace *) 0x0 ---Type to continue, or q to quit--- map =3D 0xdb18dbc0 rv =3D 0 ftype =3D 1 '\001' p =3D (struct proc *) 0xdb1191e0 #5 0xc028b383 in trap (frame=3D{tf_fs =3D 16, tf_es =3D 16, tf_ds =3D 16,= =20 tf_edi =3D -1034933120, tf_esi =3D -1035637248, tf_ebp =3D -617677572= ,=20 tf_isp =3D -617677596, tf_ebx =3D 6867008, tf_edx =3D 2176, tf_ecx = =3D 514,=20 tf_eax =3D -1070540448, tf_trapno =3D 12, tf_err =3D 0, tf_eip =3D -1= 071488094,=20 tf_cs =3D 8, tf_eflags =3D 66050, tf_esp =3D -1070540448, tf_ss =3D -= 617677528}) at /usr/local/src/sys/i386/i386/trap.c:466 p =3D (struct proc *) 0xdb1191e0 sticks =3D 8813544470764060672 i =3D 0 ucode =3D 0 type =3D 12 code =3D 0 eva =3D 2180 #6 0xc02263a2 in usb_schedsoftintr (bus=3D0xc030d960) at /usr/local/src/sys/dev/usb/usb.c:839 bus =3D 0x0 #7 0xc0222df9 in uhci_abort_xfer (xfer=3D0xc2456e00, status=3DUSBD_CANCELL= ED) at /usr/local/src/sys/dev/usb/uhci.c:1961 xfer =3D 0xc2456e00 ii =3D (uhci_intr_info_t *) 0xc2456e6c ---Type to continue, or q to quit--- upipe =3D (struct uhci_pipe *) 0xc2502c80 sc =3D (uhci_softc_t *) 0xc030d960 std =3D (uhci_soft_td_t *) 0x0 s =3D 6867008 #8 0xc0222d2e in uhci_device_bulk_abort (xfer=3D0xc2456e00) at /usr/local/src/sys/dev/usb/uhci.c:1903 xfer =3D 0x0 #9 0xc0226cd9 in usbd_ar_pipe (pipe=3D0xc2502c00) at /usr/local/src/sys/dev/usb/usbdi.c:753 pipe =3D 0xc2502c00 xfer =3D 0x0 #10 0xc02269f5 in usbd_abort_pipe (pipe=3D0xc2502c00) at /usr/local/src/sys/dev/usb/usbdi.c:553 pipe =3D 0xc2502c00 err =3D 3260034048 s =3D 0 #11 0xc022d410 in uscanner_do_close (sc=3D0xc1e10d80) at /usr/local/src/sys/dev/usb/uscanner.c:482 sc =3D (struct uscanner_softc *) 0xc1e10d80 #12 0xc022d39a in uscannerclose (dev=3D0xc1e10d00, flag=3D3, mode=3D8192,= =20 p=3D0xdb1191e0) at /usr/local/src/sys/dev/usb/uscanner.c:458 dev =3D 0x0 sc =3D (struct uscanner_softc *) 0x0 #13 0xc01a35db in spec_close (ap=3D0xdb2efddc) ---Type to continue, or q to quit--- at /usr/local/src/sys/miscfs/specfs/spec_vnops.c:591 vp =3D (struct vnode *) 0xdb067540 p =3D (struct proc *) 0xdb1191e0 dev =3D 0xc1e10d00 #14 0xc020f61a in ufsspec_close (ap=3D0xdb2efddc) at /usr/local/src/sys/ufs/ufs/ufs_vnops.c:1854 ap =3D (struct vop_close_args *) 0xdb2efddc vp =3D (struct vnode *) 0x0 #15 0xc020fbfd in ufs_vnoperatespec (ap=3D0xdb2efddc) at /usr/local/src/sys/ufs/ufs/ufs_vnops.c:2394 ap =3D (struct vop_generic_args *) 0x0 #16 0xc019ee50 in vn_close (vp=3D0xdb067540, flags=3D3, cred=3D0xc2502e80,= =20 p=3D0xdb1191e0) at vnode_if.h:218 rc =3D -1034772160 a =3D {a_desc =3D 0xc02f5be0, a_vp =3D 0xdb067540, a_fflag =3D 3,=20 a_cred =3D 0xc2502e80, a_p =3D 0xdb1191e0} vp =3D (struct vnode *) 0xdb067540 fflag =3D 0 cred =3D (struct ucred *) 0x0 p =3D (struct proc *) 0x0 vp =3D (struct vnode *) 0xdb067540 flags =3D 0 cred =3D (struct ucred *) 0x0 p =3D (struct proc *) 0x0 ---Type to continue, or q to quit--- #17 0xc019f802 in vn_closefile (fp=3D0xc252a140, p=3D0xdb1191e0) at /usr/local/src/sys/kern/vfs_vnops.c:693 fp =3D (struct file *) 0x0 p =3D (struct proc *) 0x0 #18 0xc015cc98 in fdrop (fp=3D0xc252a140, p=3D0xdb1191e0) at /usr/local/src/sys/sys/file.h:218 fp =3D (struct file *) 0xc252a140 p =3D (struct proc *) 0x0 fp =3D (struct file *) 0xc252a140 p =3D (struct proc *) 0x0 lf =3D {l_start =3D -2659133498272792576, l_len =3D -2652903339125112832,= =20 l_pid =3D 32, l_type =3D 7614, l_whence =3D 0} vp =3D (struct vnode *) 0x0 error =3D -619605536 #19 0xc015cbdc in closef (fp=3D0xc252a140, p=3D0xdb1191e0) at /usr/local/src/sys/kern/kern_descrip.c:1441 fp =3D (struct file *) 0xc252a140 p =3D (struct proc *) 0xdb1191e0 vp =3D (struct vnode *) 0x0 lf =3D {l_start =3D 7614, l_len =3D 3675361760, l_pid =3D -617677056,=20 l_type =3D 30186, l_whence =3D -16361} fdtol =3D (struct filedesc_to_leader *) 0x0 #20 0xc015c711 in fdfree (p=3D0xdb1191e0) at /usr/local/src/sys/kern/kern_descrip.c:1189 ---Type to continue, or q to quit--- fdp =3D (struct filedesc *) 0xc245fa00 fpp =3D (struct file **) 0xc23ef170 i =3D 1 fdtol =3D (struct filedesc_to_leader *) 0x0 vp =3D (struct vnode *) 0x0 lf =3D {l_start =3D 0, l_len =3D 30064771072, l_pid =3D -1070343908,=20 l_type =3D -220, l_whence =3D -9426} #21 0xc015f616 in exit1 (p=3D0xdb1191e0, rv=3D0) at /usr/local/src/sys/kern/kern_exit.c:188 rv =3D 0 q =3D (struct proc *) 0x0 nq =3D (struct proc *) 0x1 vm =3D (struct vmspace *) 0x0 vtmp =3D (struct vnode *) 0x0 ep =3D (struct exitlist *) 0x0 #22 0xc015f489 in sys_exit (p=3D0xdb1191e0, uap=3D0xdb2eff80) at /usr/local/src/sys/kern/kern_exit.c:104 p =3D (struct proc *) 0x0 uap =3D (struct sys_exit_args *) 0x0 #23 0xc028bdcd in syscall2 (frame=3D{tf_fs =3D -1078001617, tf_es =3D 47,= =20 tf_ds =3D -1078001617, tf_edi =3D 134905856, tf_esi =3D 677365224,=20 tf_ebp =3D -1077943888, tf_isp =3D -617676844, tf_ebx =3D 677628768,= =20 tf_edx =3D 677404864, tf_ecx =3D 7, tf_eax =3D 1, tf_trapno =3D 12, t= f_err =3D 2,=20 tf_eip =3D 674953404, tf_cs =3D 31, tf_eflags =3D 643, tf_esp =3D -10= 77943948,=20 ---Type to continue, or q to quit--- tf_ss =3D 47}) at /usr/local/src/sys/i386/i386/trap.c:1175 params =3D 0xbfbfe178 "" i =3D 0 callp =3D (struct sysent *) 0xc02fbec8 p =3D (struct proc *) 0xdb1191e0 orig_tf_eflags =3D 643 sticks =3D 997 error =3D 0 narg =3D 1 args =3D {0, 152808874, 7614, 0, 0, 0, 0, 0} code =3D 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 to continue, or q 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 to continue, or q 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 to continue, or q 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=3D0xc030d960) 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@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 =3D "GenuineIntel" Id =3D 0x68a Stepping =3D 10 Features=3D0x383f9ff real memory =3D 536805376 (524224K bytes) config> flags atkbd 0x0 config> quit avail memory =3D 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: on motherboard apm0: found APM BIOS v1.2, connected at v1.2 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 agp0: mem 0xe8000000-0xebffffff= at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 pci1: at 0.1 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xf000-0xf00f at device 7.1 on= pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xe000-0xe01f irq 11 = at device 7.2 on pci0 usb0: 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.1= 0/1.00, addr 3, iclass 3/0 intpm0: port 0x5000-0x500f irq = 9 at device 7.3 on pci0 intpm0: I/O mapped 5000 intpm0: intr IRQ 9 enabled revision 0 smbus0: on intsmb0 smb0: on smbus0 intpm0: PM I/O mapped 4000=20 fxp0: port 0xe400-0xe41f mem 0xef000000-0xef= 0fffff,0xef100000-0xef100fff irq 10 at device 16.0 on pci0 fxp0: Ethernet address 00:a0:c9:89:95:1f inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto orm0: