From owner-freebsd-current Wed Mar 5 17:26: 0 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D95AC37B401 for ; Wed, 5 Mar 2003 17:25:55 -0800 (PST) Received: from edgemaster.zombie.org (edgemaster.creighton.edu [147.134.112.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D49743FDD for ; Wed, 5 Mar 2003 17:25:55 -0800 (PST) (envelope-from smkelly@zombie.org) Received: by edgemaster.zombie.org (Postfix, from userid 1001) id 43CA43983B; Wed, 5 Mar 2003 19:25:44 -0600 (CST) Date: Wed, 5 Mar 2003 19:25:44 -0600 From: Sean Kelly To: current@freebsd.org Subject: USB makes system totally FUBAR Message-ID: <20030306012544.GA790@edgemaster.zombie.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline User-Agent: Mutt/1.5.3i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable First off, please note that I had to use a serial console to get all the information in this message. Whenever the kernel panic'd, it locked my system hard. This isn't normally the case, but it was with this issue. I have a SanDisk Corporation(0x0781) ImageMate CompactFlash USB CF reader(0x0002). Lately, I've been having horrid problems with it under FreeBSD 5.0-CURRENT. I can only boot with it attached if it is empty (no CF card loaded). Otherwise, my boot process hangs. If I pull the CF reader =66rom the USB port during the probe loop, my system panics. FreeBSD edgemaster.zombie.org 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Tue Mar 4 20:30:35 CST 2003 smkelly@edgemaster.zombie.org:/usr/obj/usr/src/sys/ EDGEMASTER i386 Here's what I got from the serial console: When connecting the CF reader without a CF card in it: uhub0: port error, restarting port 2 uhub0: port error, restarting port 2 umass0: SanDisk Corporation ImageMate CompactFlash USB, rev 1.10/0.09, addr= 2 umass0: Get Max Lun not supported (STALLED) da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device=20 da0: 1.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0=20 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Unretryable error Opened disk da0 -> 6 (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0=20 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Unretryable error Opened disk da0 -> 6 (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0=20 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Unretryable error Opened disk da0 -> 6 Disconnecting the CF reader: umass0: at uhub0 port 2 (addr 2) disconnected (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry umass0: detached Connecting the CF reader WITH a CF card in it: uhub0: port error, restarting port 1 umass0: SanDisk Corporation ImageMate CompactFlash USB, rev 1.10/0.09, addr= 2 umass0: Get Max Lun not supported (STALLED) umass0: BBB reset failed, STALLED can't re-use a leaf (minimum_cmd_size)! umass0: BBB reset failed, STALLED umass0: BBB reset failed, STALLED umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT (da0:umass-sim0:0:0:0): got CAM status 0x4 (da0:umass-sim0:0:0:0): fatal error, failed to attach to device (da0:umass-sim0:0:0:0): lost device umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, TIMEOUT umass0: BBB bulk-out clear stall failed, TIMEOUT umass0: BBB reset failed, TIMEOUT *** LOOP *** Pulling the CF reader from the USB port, hoping to stop it: umass0: at uhub0 port 1 (addr 2) disconnected umass0: detached (null): BBB bulk-out clear stall failed, CANCELLED umass-sim:4:0:0:func_code 0x0901: Invalid target (target needed) panic: (null): Unknown state 1 Stack backtrace: backtrace(c0351b6d,c03be120,c04ec2c3,df9a3bbc,1) at backtrace+0x17 panic(c04ec2c3,0,1,c675a000,c04de1f9) at panic+0x96 umass_bbb_state(c72db900,c6d9c600,6,0,c72db93c) at umass_bbb_state+0x60c usb_transfer_complete(c72db900,2,c72db964,8,c70f9000) at usb_transfer_compl= ete+0x12a uhci_abort_xfer(c72db900,6,df9a3c44,c04d1819,c72db900) at uhci_abort_xfer+0= xb9 uhci_device_ctrl_abort(c72db900,c70f9000,df9a3c50,c04d1491,c70f9000) at uhc= i_device_ctrl_abort+0x19 usbd_ar_pipe(c70f9000,df9a3c64,c04d0164,c70f9000,c6e3da00) at usbd_ar_pipe+= 0x29 usbd_abort_pipe(c70f9000,c6e3da00,c6da8100,df9a3c80,c04d0bbd) at usbd_abort= _pipe+0x11 usbd_kill_pipe(c70f9000,c01e12aa,c6da8100,1,c677dd30) at usbd_kill_pipe+0x14 usb_free_device(c6da8100,c6e3da00,c6723980,c6723980,3) at usb_free_device+0= x1d usb_disconnect_port(c677dd30,c677da80,11,2,0) at usb_disconnect_port+0xda uhub_explore(c677db80,c6769660,df9a3d0c,c04ce7c8,c6769660) at uhub_explore+= 0x18e usb_discover(c6769660,0,5c,c04de214,1770) at usb_discover+0x35 usb_event_thread(c6769660,df9a3d48,c034fac6,35f,0) at usb_event_thread+0x68 fork_exit(c04ce760,c6769660,df9a3d48) at fork_exit+0xb2 fork_trampoline() at fork_trampoline+0x1a --- trap 0x1, eip =3D 0, esp =3D 0xdf9a3d7c, ebp =3D 0 --- syncing disks, buffers remaining... panic: bdwrite: buffer is not busy Uptime: 7m57s umass-sim:4:0:0:func_code 0x0901: Invalid target (target needed) (da0:umass-sim0:0:0:0): Synchronize cache failed, status =3D=3D 0x39, scsi = status =3D=3D 0x0 Dumping 1279 MB ata1: resetting devices .. done --=20 Sean Kelly | PGP KeyID: D2E5E296 smkelly@zombie.org | http://www.zombie.org --bg08WKrSYDhXBjb5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+ZqOYPm7A9NLl4pYRAsU2AJ9tciSzViin22ssx9mjW4Vb6UT0UgCdFr6T WyZj28ghRYPiqN7qhNo88pM= =kRvl -----END PGP SIGNATURE----- --bg08WKrSYDhXBjb5-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message