qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, patches@linaro.org
Subject: Re: [Qemu-devel] [PATCH 1/2] hw/usb-ohci: Honour endpoint maximum packet size
Date: Thu, 15 Sep 2011 12:49:53 +0200	[thread overview]
Message-ID: <4E71D851.80501@redhat.com> (raw)
In-Reply-To: <CAFEAcA8DM+dsMEQjEJND+BsxcSiG0o_iKZbvOj5SZ3t_bN5h7Q@mail.gmail.com>

   Hi,

>> No.  What I think is that USBPacket shouldn't be required to be an actual
>> USB packet, but a transfer, i.e. do the splitting of larger transfers into
>> smaller packets in the usb driver emulation (if needed), not the host
>> adapter emulation.
>
> The OHCI spec still requires us to only process one max-packet-size
> worth of data from this TransferDescriptor before we move on to
> the next one, though, doesn't it? (cf the flowchart in fig 6-7).

[ didn't look at specs ]

Yes, EHCI has a simliar rule, on real hardware it is needed to ensure 
the available USB bandwidth is fairly splitted across all devices by 
serving them in a robin-round fashion.

I don't think this makes much sense for emulation as it behaves very 
different compared to real hardware.  There simply is no bus with 
limited bandwidth we have to care about.

> It seems to me that at least some of that is likely to be
> guest-visible, especially in the case where an endpoint returns an
> error partway through. So it's not clear to me that you could
> validly batch up everything in the TD and do it all at once.

I think the only guest-visible effect is that the guest will never ever 
see an partially filled transfer block, it is either empty or completely 
filled (except on short transfers).

cheers,
   Gerd

  reply	other threads:[~2011-09-15 10:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-14 17:48 [Qemu-devel] [PATCH 0/2] usb-ohci: fixes to allow usb-net to work Peter Maydell
2011-09-14 17:48 ` [Qemu-devel] [PATCH 1/2] hw/usb-ohci: Honour endpoint maximum packet size Peter Maydell
2011-09-15  7:33   ` Gerd Hoffmann
2011-09-15  8:36     ` Peter Maydell
2011-09-15  9:13       ` Gerd Hoffmann
2011-09-15 10:08         ` Peter Maydell
2011-09-15 10:49           ` Gerd Hoffmann [this message]
2011-09-15 11:24             ` Peter Maydell
2011-09-15 11:45               ` Gerd Hoffmann
2011-09-14 17:49 ` [Qemu-devel] [PATCH 2/2] hw/usb-ohci: Fix OHCI_TD_T1 bit position definition Peter Maydell
2011-09-15  7:34   ` Gerd Hoffmann
2011-10-10 16:44 ` [Qemu-devel] [PATCH 0/2] usb-ohci: fixes to allow usb-net to work Peter Maydell
2011-10-11  7:10   ` Gerd Hoffmann

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=4E71D851.80501@redhat.com \
    --to=kraxel@redhat.com \
    --cc=patches@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /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;
as well as URLs for NNTP newsgroup(s).