All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] QEMU XHCI support (FreeBSD)
       [not found] <90075d89-5c04-d419-9f98-7d9bc70555d3@selasky.org>
@ 2016-08-22 18:15 ` Hans Petter Selasky
  2016-08-22 22:03   ` Thomas Huth
  0 siblings, 1 reply; 2+ messages in thread
From: Hans Petter Selasky @ 2016-08-22 18:15 UTC (permalink / raw)
  To: qemu-devel

Hi,

I'm currently testing QEMUs XHCI support with FreeBSD and found some 
bugs in FreeBSDs XHCI aswell as QEMUs XHCI.

1) QEMU falsely reports a remainder of 8 bytes on TR_SETUP. This patch 
fixes it. Can it be upstreamed?

--- ./work/qemu-2.3.0/hw/usb/hcd-xhci.c.orig	2016-08-22 
16:07:30.877585000 +0200
+++ ./work/qemu-2.3.0/hw/usb/hcd-xhci.c	2016-08-22 16:08:19.240109000 +0200
@@ -1748,6 +1748,11 @@ static void xhci_xfer_report(XHCITransfe
           unsigned int chunk = 0;

           switch (TRB_TYPE(*trb)) {
+        case TR_SETUP:
+            chunk = trb->status & 0x1ffff;
+            if (chunk > 8)
+                chunk = 8;
+            break;
           case TR_DATA:
           case TR_NORMAL:
           case TR_ISOCH:

Please CC me. I'm not subscribed.

--HPS

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

* Re: [Qemu-devel] QEMU XHCI support (FreeBSD)
  2016-08-22 18:15 ` [Qemu-devel] QEMU XHCI support (FreeBSD) Hans Petter Selasky
@ 2016-08-22 22:03   ` Thomas Huth
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Huth @ 2016-08-22 22:03 UTC (permalink / raw)
  To: Hans Petter Selasky, qemu-devel

On 22.08.2016 20:15, Hans Petter Selasky wrote:
> Hi,
> 
> I'm currently testing QEMUs XHCI support with FreeBSD and found some
> bugs in FreeBSDs XHCI aswell as QEMUs XHCI.
> 
> 1) QEMU falsely reports a remainder of 8 bytes on TR_SETUP. This patch
> fixes it. Can it be upstreamed?

 Hi Hans,

please make sure to send patches with a proper "Signed-off-by" line,
otherwise they can't be accepted. See the following URL for details:

http://wiki.qemu.org/Contribute/SubmitAPatch#Patch_emails_must_include_a_Signed-off-by:_line

 Regards,
  Thomas

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

end of thread, other threads:[~2016-08-22 22:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <90075d89-5c04-d419-9f98-7d9bc70555d3@selasky.org>
2016-08-22 18:15 ` [Qemu-devel] QEMU XHCI support (FreeBSD) Hans Petter Selasky
2016-08-22 22:03   ` Thomas Huth

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.