All of lore.kernel.org
 help / color / mirror / Atom feed
* pvusb performance
@ 2009-09-12  3:57 James Harper
  2009-09-14  0:55 ` Noboru Iwamatsu
  0 siblings, 1 reply; 7+ messages in thread
From: James Harper @ 2009-09-12  3:57 UTC (permalink / raw)
  To: xen-devel, Noboru Iwamatsu

Noboru,

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?

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?

Thanks

James

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-09-14  5:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-12  3:57 pvusb performance James Harper
2009-09-14  0:55 ` Noboru Iwamatsu
2009-09-14  1:19   ` James Harper
2009-09-14  2:36     ` Noboru Iwamatsu
2009-09-14  5:19       ` James Harper
2009-09-14  5:45         ` Noboru Iwamatsu
2009-09-14  5:49           ` James Harper

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.