Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Oct 2003 20:19:29 +0400 (MSK)
From:      Alexandre Kardanev <Alexandre.Kardanev@ihep.su>
To:        Thomas Quinot <thomas@FreeBSD.ORG>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: USB code breaks in 4.9-RC1?
Message-ID:  <Pine.OSF.4.21.0310072016120.231887-100000@Sirius.ihep.su>
In-Reply-To: <20031007153059.GA66201@melusine.cuivre.fr.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.4.21.0310072016120.231887-100000>