Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Apr 2022 11:50:39 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Mahesh Vardhamanaiah <maheshmv@juniper.net>, "freebsd-usb@freebsd.org" <freebsd-usb@freebsd.org>
Cc:        Steve Kiernan <stevek@juniper.net>, Justin Hibbits <jhibbits@juniper.net>, Kumara N Babu <bkumara@juniper.net>, Kamal Prasad <krprasad@juniper.net>, Kristof Provost <kp@FreeBSD.org>, "Bjoern A. Zeeb" <bz@FreeBSD.org>
Subject:   Re: xhci data toggle out of sync
Message-ID:  <6ace38e0-160f-e4ab-12d4-3af5c0113d1e@selasky.org>
In-Reply-To: <PH0PR05MB7782636A101DD636745EC02ED5F29@PH0PR05MB7782.namprd05.prod.outlook.com>
References:  <PH0PR05MB778212B54B636F87C246F62AD5F39@PH0PR05MB7782.namprd05.prod.outlook.com> <61bc4594-f2d3-17c4-42b5-0297ffd78fa3@selasky.org> <PH0PR05MB7782707B34F020611B7FA6C3D5F39@PH0PR05MB7782.namprd05.prod.outlook.com> <8f51424d-7d1a-9f0a-a0ba-27b02cab0942@selasky.org> <PH0PR05MB7782C512E3F29F34A546300BD5F29@PH0PR05MB7782.namprd05.prod.outlook.com> <459317b1-a87d-5f1d-3a52-83ceee48056d@selasky.org> <PH0PR05MB77828A618B7BAD70DB98C534D5F29@PH0PR05MB7782.namprd05.prod.outlook.com> <b6d72337-720c-2907-a3df-70fcb0c192d8@selasky.org> <PH0PR05MB7782636A101DD636745EC02ED5F29@PH0PR05MB7782.namprd05.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4/19/22 11:20, Mahesh Vardhamanaiah wrote:
> Hi HPS,
> 
> Please find the requested logs.
> 
> xhci0: MMV endpoint 3 state 2
> xhci0: MMV Could not stop endpoint 3 err 12
> xhci0: MMV endpoint 3 state 3
> xhci0: MMV Could not stop endpoint 3 err 12
> xhci0: MMV Could not reset endpoint 3 err 12
> xhci0: MMV endpoint 3 state 2
> xhci0: MMV Could not stop endpoint 3 err 12
> xhci0: MMV endpoint 3 state 3
> xhci0: MMV Could not stop endpoint 3 err 12
> xhci0: MMV Could not reset endpoint 3 err 12
> 
> FreeBSD/arm (Amnesiac) (ttyu0)
> 
> login:
> WARNING: User disconnection from this port.
>           Current number of users: 2
> xhci0: MMV endpoint 3 state 2
> xhci0: MMV Could not stop endpoint 3 err 12
> xhci0: MMV endpoint 3 state 3
> xhci0: MMV Could not stop endpoint 3 err 12
> xhci0: MMV Could not reset endpoint 3 err 12
> 
> Thanks,
> Mahesh
> 

Hi Mahesh,

According to section 6.2.3 in the XHCI specification:

state 2 : Halted (SW shall issue a reset endpoint)
state 3 : stopped (The endpoint is not running)

err 12 : means USB_ERR_NO_PIPE,		/* 12 */

Which is not a valid return code from xhci_do_command(). Can you check 
where this value comes from?

BTW: I see a small bug in xhci_do_command(), that it doesn't wait if the 
command ring is full when entering the function.

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6ace38e0-160f-e4ab-12d4-3af5c0113d1e>