From: Christopher Li <chrisl@vmware.com>
To: linux-usb-devel@lists.sourceforge.net
Cc: linux kernel mail list <linux-kernel@vger.kernel.org>
Subject: [PATCH] incrase usbdevfs bulk buffer size
Date: Sat, 1 Oct 2005 16:20:59 -0400 [thread overview]
Message-ID: <20051001202059.GE3453@64m.dyndns.org> (raw)
Increase the usbdevfs buffer size limit.
I hit this limit with running ehci in the VM. The a single ehci
qTD transfer buffer can be 5 pages long, that is 20K. The current devio bulk
transfer limit is 16K. I am not sure why the bulk transfer limit
is 16K. I can complicate the user space part to work around that,
but it seems much simpler just allow usbdevfs to accept bigger buffers.
I did some limited usage test with ehci controller. It seems works for me,
it did use a bigger buffer and nothing blow up.
Signed-Off-By: Christopher Li <chrisl@vmware.com>
Index: linux-2.6.13.2/drivers/usb/core/devio.c
===================================================================
--- linux-2.6.13.2.orig/drivers/usb/core/devio.c 2005-09-28 13:08:10.000000000 -0700
+++ linux-2.6.13.2/drivers/usb/core/devio.c 2005-10-01 04:58:47.000000000 -0700
@@ -72,7 +72,7 @@ MODULE_PARM_DESC (usbfs_snoop, "true to
} while (0)
-#define MAX_USBFS_BUFFER_SIZE 16384
+#define MAX_USBFS_BUFFER_SIZE (32*1024)
static inline int connected (struct usb_device *dev)
{
next reply other threads:[~2005-10-01 23:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-01 20:20 Christopher Li [this message]
2005-10-02 22:08 ` PATCH] " Pete Zaitcev
2005-10-02 19:34 ` Christopher Li
2005-10-03 4:10 ` Pete Zaitcev
2005-10-03 3:05 ` Christopher Li
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=20051001202059.GE3453@64m.dyndns.org \
--to=chrisl@vmware.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome