Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Nov 2002 20:58:50 -0500
From:      "Kutulu" <kutulu@kutulu.org>
To:        "Nate Lawson" <nate@root.org>
Cc:        <freebsd-current@freebsd.org>
Subject:   Re: panic when removing umass device (USB Camera)
Message-ID:  <000f01c28c4a$8b6dc290$6d673244@KutuluWare>
References:  <00f901c28c43$852a8910$29330f0a@lcapps.educate.com>

next in thread | previous in thread | raw e-mail | index | archive | help
 From: "Nate Lawson" <nate@root.org>
 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000f01c28c4a$8b6dc290$6d673244>