Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Sep 2005 00:46:21 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org, molnarcs@gmail.com
Subject:   Re: New USB driver & API (updated)
Message-ID:  <200509220046.21921.hselasky@c2i.net>
In-Reply-To: <200509211911.02664.molnarcs@gmail.com>
References:  <200509211911.02664.molnarcs@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 21 September 2005 19:11, Moln=E1r Csaba wrote:
> I have tried your patches - and for the first time, device nodes were
> created for my USB Ipod-Mini. Previously, it worked only when atapicam was
> not built into the kernel. It was recognized, but no device nodes were
> created. (fireware ipods worked fine).
>
> On the other hand, my usb stick froze my computer, during file operations
> (copy, delete). This was the console message I got:

I think that the freeze has something to do with how "umass" is designed. I=
=20
have also seen this on my computer. Umass does not pre-allocate memory, but=
=20
allocates this from the "callbacks", which are called from interrupt contex=
t.=20
When the interrupt handler sleeps, and this interrupt is shared, then those=
=20
devices that use that interrupt handler will not respond.

It is not so difficult to change umass a little, so that it pre-allocates t=
his=20
memory, but I don't know what the maximum transfer size is, hence the data=
=20
packets come from the CAM layer. So if there is a 512K to transfer, maybe=20
that can be split into 8 transfers of 64K ?

>
> umass0: SCSI over Bulk-Only; quirks =3D 0x0000
> umass0:4:0:-1: Attached to scbus4
> da0 at umass-sim0 bus 0 target 0 lun 0
> da0: <S Talent Flash Drive 2.0 1000> Removable Direct Access SCSI-0 device
> da0: 40.000MB/s transfers
> da0: 123MB (252928 512 byte sectors: 64H 32S/T 123C)
> umass0: Invalid CSW: tag 1463 should be 1464
> umass0: Invalid CSW: tag 538976288 should be 1468
> umass0: Invalid CSW: tag 538976288 should be 1469
> umass0: Invalid CSW: tag 538976288 should be 1470
> umass0: Invalid CSW: tag 538976288 should be 1471
> umass0: Invalid CSW: tag 538976288 should be 1472
>

How much ram have you got?

Are you running KDE?

=2D-HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200509220046.21921.hselasky>