From owner-freebsd-current Thu Nov 14 18: 8:40 2002 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 B3EA937B401 for ; Thu, 14 Nov 2002 18:08:38 -0800 (PST) Received: from c001.snv.cp.net (h001.c001.snv.cp.net [209.228.32.115]) by mx1.FreeBSD.org (Postfix) with SMTP id 0987F43E7B for ; Thu, 14 Nov 2002 18:08:33 -0800 (PST) (envelope-from kutulu@kutulu.org) Received: (cpmta 12209 invoked from network); 14 Nov 2002 18:08:28 -0800 Received: from 68.50.103.109 (HELO KutuluWare) by smtp.register-admin.com (209.228.32.115) with SMTP; 14 Nov 2002 18:08:28 -0800 X-Sent: 15 Nov 2002 02:08:28 GMT Message-ID: <000f01c28c4a$8b6dc290$6d673244@KutuluWare> From: "Kutulu" To: "Nate Lawson" Cc: References: <00f901c28c43$852a8910$29330f0a@lcapps.educate.com> Subject: Re: panic when removing umass device (USB Camera) Date: Thu, 14 Nov 2002 20:58:50 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 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 From: "Nate Lawson" Sent: Thursday, November 14, 2002 2:13 PM > > Try this patch for the BBB stall: > > Index: /sys/cam/scsi/scsi_da.c > =================================================================== > RCS file: /home/ncvs/src/sys/cam/scsi/scsi_da.c,v > retrieving revision 1.113 > diff -u -r1.113 scsi_da.c > --- /sys/cam/scsi/scsi_da.c 17 Oct 2002 18:04:41 -0000 1.113 > +++ /sys/cam/scsi/scsi_da.c 14 Nov 2002 19:04:40 -0000 > @@ -416,7 +416,7 @@ > * HP 315 Digital Camera > * PR: kern/41010 > */ > - {T_DIRECT, SIP_MEDIA_REMOVABLE, "HP", "USB Camera*", "*"}, > + {T_DIRECT, SIP_MEDIA_REMOVABLE, "HP", "USB CAMERA*", "*"}, > /*quirks*/ DA_Q_NO_6_BYTE > } > }; I applied this patch and rebuilt my kernel w/ debugging symbols, so next time it panic's I can get a core file. The really good news is that this patch appears to have solved BOTH the BBB stall errors *and* the panic: umass0: at uhub1 port 4 (addr 4) disconnected (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry umass0: detached Whatever the bug was appears to have been removing the da0 device entry, as when the page fault did happen that message didn't appear on the console nor did da0 go away. Now I get da0 (and da0s1, which also didn't happen before) when the camera's on, and neither device when the camera's off. Thanks *a lot* for this quick turnaround time. If you want me to back the patch out and get a trace anyway (in case I'm now just covering up a bug that still exists) I'd be more than happy to. Lemme know. I'm now going to try actually mounting the device and moving files to/from it :) --Mike Edenfield To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message