From owner-freebsd-usb@FreeBSD.ORG Fri Oct 19 18:07:48 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0B1653DC for ; Fri, 19 Oct 2012 18:07:48 +0000 (UTC) (envelope-from peerst@gmail.com) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by mx1.freebsd.org (Postfix) with ESMTP id C1F7A8FC0A for ; Fri, 19 Oct 2012 18:07:47 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id k10so1441192iea.13 for ; Fri, 19 Oct 2012 11:07:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=R8YFc35n3ILchdh1RKqWCIxkndiW6UuPo+mdUb6/2nc=; b=kU2TwZmVB9F0HqVmSgxMuTG00EAZ9QIY6HfKPJWhIuVA6egkoPdpZRRApaJg5YBL75 WE0q20DTPnxycf/5jhvYum1kUtrzTGBF4HXihepQ2MULW70DeQ5zbTgeOClhUxpGbBK7 N3FwQTQLGym/95JbhbfIdDOUAmMuE+M/2sDleY5+z03TZ4PA8IIG0VKIIHY48lD/aXuM kaZ7bNcxBV/2ASKNf/flMqPWg7teI4F64ECyKyQAtWfvGacHauchUS08moRLt/adQWHs xdF3g3HjXmFg2vgsR8erJdVS1Kong8oFccBRMsQUpzXql+aZGH5+CYzzW+SVwdi7lvag mJ6g== MIME-Version: 1.0 Received: by 10.50.40.225 with SMTP id a1mr3182542igl.7.1350670066850; Fri, 19 Oct 2012 11:07:46 -0700 (PDT) Received: by 10.64.167.137 with HTTP; Fri, 19 Oct 2012 11:07:45 -0700 (PDT) In-Reply-To: References: Date: Fri, 19 Oct 2012 20:07:45 +0200 Message-ID: Subject: Re: USB transfers stuck in kernel/libusb not sent out until next transfer is submitted From: Peer Stritzinger To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-usb X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Oct 2012 18:07:48 -0000 Hi, further data: If I wait 2ms between each transfer they never get stuck. As you mentioned in your other post, no usbdump yet in 8.0 But I can positively say that: 1. the transfer got submitted and the submit returned 0 2. no device NAK's on the USB bus (I'm looking at it with a sniffer) So its definitely getting held in libusb/kernel -- Peer On Fri, Oct 19, 2012 at 11:44 AM, Hans Petter Selasky wrote: > Hi, > > > > You should check using usbdump if the USB transfer is actually submitted. If > it is submitted, then it is most likely a problem with the USB device, that > it is NAK'ing on the endpoint. Are you short terminating properly for FULL > speed? Else it is a problem in libusb and/or the application. > > > > usbdump -i usbusX -f Y -vvv -s 65536 > > > > --HPS > >