All of lore.kernel.org
 help / color / mirror / Atom feed
* USB: 2 bug-fixes, for master *and* for stable-1.1
@ 2012-07-06 10:09 ` Hans de Goede
  0 siblings, 0 replies; 8+ messages in thread
From: Hans de Goede @ 2012-07-06 10:09 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel, kvm

Here are USB 2 bug-fixes, please also cherry-pick these into the
stable-1.1 branch, esp. the second one as that fixes an easily triggerable
assert.

Note these patches are against 1.1.0, not against master, but they are relevant
for, and should apply to, master too.

Regards,

Hans

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

* [Qemu-devel] USB: 2 bug-fixes, for master *and* for stable-1.1
@ 2012-07-06 10:09 ` Hans de Goede
  0 siblings, 0 replies; 8+ messages in thread
From: Hans de Goede @ 2012-07-06 10:09 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel, kvm

Here are USB 2 bug-fixes, please also cherry-pick these into the
stable-1.1 branch, esp. the second one as that fixes an easily triggerable
assert.

Note these patches are against 1.1.0, not against master, but they are relevant
for, and should apply to, master too.

Regards,

Hans

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

* [PATCH 1/2] usb-redir: Correctly handle the usb_redir_babble usbredir status
  2012-07-06 10:09 ` [Qemu-devel] " Hans de Goede
@ 2012-07-06 10:09   ` Hans de Goede
  -1 siblings, 0 replies; 8+ messages in thread
From: Hans de Goede @ 2012-07-06 10:09 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel, kvm, Hans de Goede

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 hw/usb/redirect.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c
index 5f55d78..c6358c0 100644
--- a/hw/usb/redirect.c
+++ b/hw/usb/redirect.c
@@ -1058,6 +1058,8 @@ static int usbredir_handle_status(USBRedirDevice *dev,
     case usb_redir_inval:
         WARNING("got invalid param error from usb-host?\n");
         return USB_RET_NAK;
+    case usb_redir_babble:
+        return USB_RET_BABBLE;
     case usb_redir_ioerror:
     case usb_redir_timeout:
     default:
-- 
1.7.10.4


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

* [Qemu-devel] [PATCH 1/2] usb-redir: Correctly handle the usb_redir_babble usbredir status
@ 2012-07-06 10:09   ` Hans de Goede
  0 siblings, 0 replies; 8+ messages in thread
From: Hans de Goede @ 2012-07-06 10:09 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: Hans de Goede, qemu-devel, kvm

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 hw/usb/redirect.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c
index 5f55d78..c6358c0 100644
--- a/hw/usb/redirect.c
+++ b/hw/usb/redirect.c
@@ -1058,6 +1058,8 @@ static int usbredir_handle_status(USBRedirDevice *dev,
     case usb_redir_inval:
         WARNING("got invalid param error from usb-host?\n");
         return USB_RET_NAK;
+    case usb_redir_babble:
+        return USB_RET_BABBLE;
     case usb_redir_ioerror:
     case usb_redir_timeout:
     default:
-- 
1.7.10.4

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

* [PATCH 2/2] usb-ehci: Fix an assert whenever isoc transfers are used
  2012-07-06 10:09 ` [Qemu-devel] " Hans de Goede
@ 2012-07-06 10:09   ` Hans de Goede
  -1 siblings, 0 replies; 8+ messages in thread
From: Hans de Goede @ 2012-07-06 10:09 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: qemu-devel, kvm, Hans de Goede

hcd-ehci.c is missing an usb_packet_init() call for the ipacket UsbPacket
it uses for isoc transfers, triggering an assert (taking the entire vm down)
in usb_packet_setup as soon as any isoc transfers are done by a high speed
USB device.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 hw/usb/hcd-ehci.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
index e759c99..eaa3ddd 100644
--- a/hw/usb/hcd-ehci.c
+++ b/hw/usb/hcd-ehci.c
@@ -2300,6 +2300,7 @@ static int usb_ehci_initfn(PCIDevice *dev)
     s->frame_timer = qemu_new_timer_ns(vm_clock, ehci_frame_timer, s);
     QTAILQ_INIT(&s->aqueues);
     QTAILQ_INIT(&s->pqueues);
+    usb_packet_init(&s->ipacket);
 
     qemu_register_reset(ehci_reset, s);
 
-- 
1.7.10.4


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

* [Qemu-devel] [PATCH 2/2] usb-ehci: Fix an assert whenever isoc transfers are used
@ 2012-07-06 10:09   ` Hans de Goede
  0 siblings, 0 replies; 8+ messages in thread
From: Hans de Goede @ 2012-07-06 10:09 UTC (permalink / raw)
  To: Gerd Hoffmann; +Cc: Hans de Goede, qemu-devel, kvm

hcd-ehci.c is missing an usb_packet_init() call for the ipacket UsbPacket
it uses for isoc transfers, triggering an assert (taking the entire vm down)
in usb_packet_setup as soon as any isoc transfers are done by a high speed
USB device.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 hw/usb/hcd-ehci.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c
index e759c99..eaa3ddd 100644
--- a/hw/usb/hcd-ehci.c
+++ b/hw/usb/hcd-ehci.c
@@ -2300,6 +2300,7 @@ static int usb_ehci_initfn(PCIDevice *dev)
     s->frame_timer = qemu_new_timer_ns(vm_clock, ehci_frame_timer, s);
     QTAILQ_INIT(&s->aqueues);
     QTAILQ_INIT(&s->pqueues);
+    usb_packet_init(&s->ipacket);
 
     qemu_register_reset(ehci_reset, s);
 
-- 
1.7.10.4

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

* Re: USB: 2 bug-fixes, for master *and* for stable-1.1
  2012-07-06 10:09 ` [Qemu-devel] " Hans de Goede
@ 2012-07-06 12:30   ` Gerd Hoffmann
  -1 siblings, 0 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2012-07-06 12:30 UTC (permalink / raw)
  To: Hans de Goede; +Cc: qemu-devel, kvm

On 07/06/12 12:09, Hans de Goede wrote:
> Here are USB 2 bug-fixes, please also cherry-pick these into the
> stable-1.1 branch, esp. the second one as that fixes an easily triggerable
> assert.
> 
> Note these patches are against 1.1.0, not against master, but they are relevant
> for, and should apply to, master too.

Looks good, queued up for master.

cheers,
  Gerd


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

* Re: [Qemu-devel] USB: 2 bug-fixes, for master *and* for stable-1.1
@ 2012-07-06 12:30   ` Gerd Hoffmann
  0 siblings, 0 replies; 8+ messages in thread
From: Gerd Hoffmann @ 2012-07-06 12:30 UTC (permalink / raw)
  To: Hans de Goede; +Cc: qemu-devel, kvm

On 07/06/12 12:09, Hans de Goede wrote:
> Here are USB 2 bug-fixes, please also cherry-pick these into the
> stable-1.1 branch, esp. the second one as that fixes an easily triggerable
> assert.
> 
> Note these patches are against 1.1.0, not against master, but they are relevant
> for, and should apply to, master too.

Looks good, queued up for master.

cheers,
  Gerd

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

end of thread, other threads:[~2012-07-06 12:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-06 10:09 USB: 2 bug-fixes, for master *and* for stable-1.1 Hans de Goede
2012-07-06 10:09 ` [Qemu-devel] " Hans de Goede
2012-07-06 10:09 ` [PATCH 1/2] usb-redir: Correctly handle the usb_redir_babble usbredir status Hans de Goede
2012-07-06 10:09   ` [Qemu-devel] " Hans de Goede
2012-07-06 10:09 ` [PATCH 2/2] usb-ehci: Fix an assert whenever isoc transfers are used Hans de Goede
2012-07-06 10:09   ` [Qemu-devel] " Hans de Goede
2012-07-06 12:30 ` USB: 2 bug-fixes, for master *and* for stable-1.1 Gerd Hoffmann
2012-07-06 12:30   ` [Qemu-devel] " Gerd Hoffmann

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.