All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pete Zaitcev <zaitcev@redhat.com>
To: paul.thacker@st.com, linux-kernel@vger.kernel.org
Subject: Re: usb_bulk_msg timeout w/ rvmalloc
Date: Wed, 10 Oct 2001 00:51:12 -0400	[thread overview]
Message-ID: <200110100451.f9A4pCW10769@devserv.devel.redhat.com> (raw)
In-Reply-To: <mailman.1002674521.5223.linux-kernel2news@redhat.com>
In-Reply-To: <mailman.1002674521.5223.linux-kernel2news@redhat.com>

>      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

       reply	other threads:[~2001-10-10  4:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1002674521.5223.linux-kernel2news@redhat.com>
2001-10-10  4:51 ` Pete Zaitcev [this message]
2001-10-10  0:39 usb_bulk_msg timeout w/ rvmalloc paul.thacker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200110100451.f9A4pCW10769@devserv.devel.redhat.com \
    --to=zaitcev@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paul.thacker@st.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.