WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] pvusb performance

To: james.harper@xxxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] pvusb performance
From: Noboru Iwamatsu <n_iwamatsu@xxxxxxxxxxxxxx>
Date: Mon, 14 Sep 2009 09:55:12 +0900
Cc:
Delivery-date: Sun, 13 Sep 2009 17:56:33 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D0177D241@trantor>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <AEC6C66638C05B468B556EA548C1A77D0177D241@trantor>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)
James,

My pvUSB windows driver is now working at a very basic level (flash
memory stick), and I'm conscious of the fact that I only send one
request on the ring at a time and have to wait for it to complete before
I can put the next one on. Can this be improved?

Possible.
RING accepts two or more requests, and queued requests are sent to
backend at a time.

I think maybe it can't with your current usbback driver - there would
need to be some mechanism to flush the ring of all subsequent requests
in the case of an error, eg when I get a 'Read 65536 bytes' request from
Windows, I do this:

. Put read request command on ring
. Wait for response
. Put data request on ring for first 512 bytes
. Wait for response
. Put data request on ring for next 512 bytes
. etc
. etc

If there is a buffer underrun, I can see no way for Linux to do
something with the subsequent data requests... it would need to do
something like put the ring into a error/underrun condition and 'eat'
all the requests until a clear error request came down the ring.

Or maybe this is already part of the design?

Current pvusb doesn't care it.

You mean, when error occurred, HCD has to be responsible for flushing
the subsequent requests?

Should urb transferring errors be handled with USB device drivers
(the upper layer of HCD)?

If urb unlinking work properly, would it be solved?


Noboru.




_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>