Subject: Re: USB Mass storage failure
To: Florian Stoehr <firstname.lastname@example.org>
From: Jason Thorpe <email@example.com>
Date: 10/04/2004 09:11:42
Content-Type: text/plain; charset=US-ASCII; format=flowed
On Oct 4, 2004, at 8:59 AM, Jason Thorpe wrote:
> I seem to recall that there are some patches floating around that fix
> this problem. It's not that contiguous memory is actually required,
> it is simply that our umass driver is (incorrectly) written that way.
The usb_allocmem() function tries to allocate a single block of memory
(rounded to USB_MEM_BLOCK ) if the requested size is >
USB_MEM_SMALL . In the case of umass, it's requesing
UMASS_MAX_TRANSFER_SIZE [MAXPHYS, 64K].
What needs to happen here is that usb_allocmem(), or
usb_block_allocmem(), needs to learn to chunk up the memory if it is
unable to allocate it contiguously.
-- Jason R. Thorpe <firstname.lastname@example.org>
content-type: application/pgp-signature; x-mac-type=70674453;
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)
-----END PGP SIGNATURE-----