* usb_bulk_msg timeout w/ rvmalloc
@ 2001-10-10 0:39 paul.thacker
0 siblings, 0 replies; 2+ messages in thread
From: paul.thacker @ 2001-10-10 0:39 UTC (permalink / raw)
To: linux-kernel
I have written a driver which, in part, facilitates the usb bulk
transfer of raw image data. It works fine for small (CIF, QCIF)
images, but for larger images, kmalloc will not allocate enough
memory.
I copied the rvmalloc code from the cpia2 driver and used it in place
of kmalloc. The memory allocates fine, but usb_bulk_msg now times out
when using the pointer to the rvmalloc'd memory. I have been unable to
find an instance of an existing driver using rvmalloc in conjunction
with usb_bulk_msg.
Thanks in advance for any advice. Please reply via email - I am not
subscribed to the mailing list.
Paul Thacker
Staff Engineer II
ST Microelectronics
paul.thacker@st.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: usb_bulk_msg timeout w/ rvmalloc
[not found] <mailman.1002674521.5223.linux-kernel2news@redhat.com>
@ 2001-10-10 4:51 ` Pete Zaitcev
0 siblings, 0 replies; 2+ messages in thread
From: Pete Zaitcev @ 2001-10-10 4:51 UTC (permalink / raw)
To: paul.thacker, linux-kernel
> I have written a driver which, in part, facilitates the usb bulk
> transfer of raw image data. It works fine for small (CIF, QCIF)
> images, but for larger images, kmalloc will not allocate enough
> memory.
How much do you need?
> I copied the rvmalloc code from the cpia2 driver and used it in place
> of kmalloc. The memory allocates fine, but usb_bulk_msg now times out
> when using the pointer to the rvmalloc'd memory. I have been unable to
> find an instance of an existing driver using rvmalloc in conjunction
> with usb_bulk_msg.
The best thing would be to use pipelined transfer with
several URBs, I think. If that is too difficult for you,
try to use __get_free_pages(), but mind that even if free
RAM is available, kernel may not be able to fulfill your
request. Check response codes carefuly.
-- Pete
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-10-10 4:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1002674521.5223.linux-kernel2news@redhat.com>
2001-10-10 4:51 ` usb_bulk_msg timeout w/ rvmalloc Pete Zaitcev
2001-10-10 0:39 paul.thacker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox