From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:40785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sliqo-0000re-Gr for qemu-devel@nongnu.org; Mon, 02 Jul 2012 11:47:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sliqi-0008Cc-BX for qemu-devel@nongnu.org; Mon, 02 Jul 2012 11:47:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:61150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sliqi-0008CM-3o for qemu-devel@nongnu.org; Mon, 02 Jul 2012 11:47:40 -0400 Message-ID: <4FF1C297.4030102@redhat.com> Date: Mon, 02 Jul 2012 17:47:35 +0200 From: Gerd Hoffmann MIME-Version: 1.0 References: <4FE4953F.50404@siemens.com> <4FE58C97.5050606@rdsoftware.de> <4FE58F2D.1010307@web.de> <4FEB65E5.1060908@rdsoftware.de> <4FEC5D1B.6040307@siemens.com> <4FEC7060.2010304@siemens.com> <4FF18080.7010305@redhat.com> <4FF1AF8C.5030400@siemens.com> In-Reply-To: <4FF1AF8C.5030400@siemens.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] usb_packet_complete: Assertion ... failed List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Erik Rull , qemu-devel > diff --git a/hw/usb/core.c b/hw/usb/core.c > index 0e02da7..eacda74 100644 > --- a/hw/usb/core.c > +++ b/hw/usb/core.c > @@ -407,7 +407,9 @@ void usb_packet_complete(USBDevice *dev, USBPacket *p) > int ret; > > usb_packet_check_state(p, USB_PACKET_ASYNC); > - assert(QTAILQ_FIRST(&ep->queue) == p); > + if (QTAILQ_FIRST(&ep->queue) != p) { > + trace_usb_assert(usb_bus_from_device(dev)->busnr, dev->port->path, p->ep->nr, p); > + } Can you also log QTAILQ_FIRST(&ep->queue) there? usb_host_* & usb_packet_state_* tracepoints are good to have, usb_uhci_* is not needed. >>From the trace it looks like the packets are completing in the same order they have been submitted as they should, I'm puzzled why the assert triggers ... Can I also get a "lsusb -v" for the usb device in question? cheers, Gerd