From nobody Tue Apr 19 11:32:58 2022 X-Original-To: freebsd-usb@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 77C6211D9F35 for ; Tue, 19 Apr 2022 11:33:02 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4KjM9n0q6fz3Qrx; Tue, 19 Apr 2022 11:33:01 +0000 (UTC) (envelope-from hps@selasky.org) Received: from [10.36.2.165] (unknown [176.74.213.87]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id F0680260154; Tue, 19 Apr 2022 13:32:57 +0200 (CEST) Message-ID: <20e0397e-927e-c258-c26f-228cab9ece22@selasky.org> Date: Tue, 19 Apr 2022 13:32:58 +0200 List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: xhci data toggle out of sync Content-Language: en-US To: Kamal Prasad , Mahesh Vardhamanaiah , "freebsd-usb@freebsd.org" Cc: Steve Kiernan , Justin Hibbits , Kumara N Babu , Kristof Provost , "Bjoern A. Zeeb" References: <61bc4594-f2d3-17c4-42b5-0297ffd78fa3@selasky.org> <8f51424d-7d1a-9f0a-a0ba-27b02cab0942@selasky.org> <459317b1-a87d-5f1d-3a52-83ceee48056d@selasky.org> <6ace38e0-160f-e4ab-12d4-3af5c0113d1e@selasky.org> <33D78B28-EEFC-4A24-8E27-329CCA3782EF@juniper.net> From: Hans Petter Selasky In-Reply-To: <33D78B28-EEFC-4A24-8E27-329CCA3782EF@juniper.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4KjM9n0q6fz3Qrx X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-3.28 / 15.00]; ARC_NA(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.991]; RCPT_COUNT_SEVEN(0.00)[8]; NEURAL_HAM_MEDIUM(-0.99)[-0.988]; MLMMJ_DEST(0.00)[freebsd-usb]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/32, country:DE]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 4/19/22 12:59, Kamal Prasad wrote: > Hi Peter, > >>> Which is not a valid return code from xhci_do_command(). Can you check > where this value comes from? > > This is coming from this location in xhci_configure_endpoint() which in turn is called by xhci_configure_endpoint_by_xfer():- > --- > epno = XHCI_EPNO2EPID(epno); > > if (epno == 0) > return (USB_ERR_NO_PIPE); /* invalid */ > --- Hi Kamal, I'm asking about the value after "err" in these prints: > > xhci0: MMV Could not stop endpoint 3 err 12 > > xhci0: MMV Could not reset endpoint 3 err 12 3875 3876 err = xhci_cmd_stop_ep(sc, 0, epno, index); 3877 3878 if (err != 0) 3879 DPRINTF("Could not stop endpoint %u\n", epno); 3880 3881 err = xhci_cmd_reset_ep(sc, 0, epno, index); 3882 3883 if (err != 0) 3884 DPRINTF("Could not reset endpoint %u\n", epno); 3885 --HPS