USB code breaks in 4.9-RC1?

Alexandre Kardanev Alexandre.Kardanev at ihep.su
Tue Oct 7 09:21:04 PDT 2003


On Tue, 7 Oct 2003, Thomas Quinot wrote:

> Le 2003-10-07, Alexandre Kardanev Иcrivait :
> 
> > After 4.8 prerelease inserting it will immediately crash my Compaq
> > Descpro-P400
> 
> The patch below, which I just posted to scsi@, should at least prevent
> the panic. Please try it and let me know if it indeed helps.
> 
> Thomas.
> 
> Index: scsi_da.c
> ===================================================================
> RCS file: /home/ncvs/src/sys/cam/scsi/scsi_da.c,v
> retrieving revision 1.159
> diff -u -r1.159 scsi_da.c
> --- scsi_da.c	4 Sep 2003 01:01:20 -0000	1.159
> +++ scsi_da.c	7 Oct 2003 14:48:26 -0000
[...]
> @@ -925,6 +927,7 @@
>  
>  	mtx_lock(&Giant);
>  	sysctl_ctx_init(&softc->sysctl_ctx);
> +	softc->flags |= DA_FLAG_SCTX_INIT;
>  	softc->sysctl_tree = SYSCTL_ADD_NODE(&softc->sysctl_ctx,
>  		SYSCTL_STATIC_CHILDREN(_kern_cam_da), OID_AUTO, tmpstr2,
>  		CTLFLAG_RD, 0, tmpstr);
> 
> -- 
>     Thomas.Quinot at Cuivre.FR.EU.ORG
> 

Yes, my system didn't crash now....
Except 2 points:
1) in my scsi_da.c no string:
	mtx_lock(&Giant);
2) my stick dosn't work:
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR
(da6:umass-sim0:0:0:0): got CAM status 0x4
(da6:umass-sim0:0:0:0): fatal error, failed to attach to device
(da6:umass-sim0:0:0:0): lost device
(da6:umass-sim0:0:0:0): removing device entry

In any case it strange: If I boot with that flash card - it works, if I
insert it after booting - dosn't...

ABK2-RIPE
-------------------
    "It's always easier to destroy than to create"
                                      -Any general, any army, any age




More information about the freebsd-stable mailing list