Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Apr 2022 13:06:43 +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:  <317b839e-d209-945e-6dab-76a67a0c9b3d@selasky.org>
In-Reply-To: <PH0PR05MB778216933842254570126840D5F29@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> <e00f5e9f-c34c-3500-e62a-6b7f80765fc5@selasky.org> <PH0PR05MB778216933842254570126840D5F29@PH0PR05MB7782.namprd05.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4/19/22 11:30, Mahesh Vardhamanaiah wrote:
> Hi HPS,
> 
> The error seems to be NO_PIPE and end points are 2 & 3 but the
> usbconfig dump_all_desc lists epaddress 1, 81 any idea why ?
> 

Hi,

The XHCI endpoint context order is different from the endpoint numbers, 
so this is expected.

> ugen0.3: <Virtium VTDU31XC008G-A901> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (100mA)
> 
>    bLength = 0x0012
>    bDescriptorType = 0x0001
>    bcdUSB = 0x0200
>    bDeviceClass = 0x0000  <Probed by interface class>
>    bDeviceSubClass = 0x0000
>    bDeviceProtocol = 0x0000
>    bMaxPacketSize0 = 0x0040
>    idVendor = 0x2aaa
>    idProduct = 0x0100
>    bcdDevice = 0x0100
>    iManufacturer = 0x0001  <Virtium>
>    iProduct = 0x0003  <VTDU31XC008G-A901>
>    iSerialNumber = 0x0002  <P1T66005607903260063>
>    bNumConfigurations = 0x0001
> 
>   Configuration index 0
> 
>      bLength = 0x0009
>      bDescriptorType = 0x0002
>      wTotalLength = 0x0020
>      bNumInterfaces = 0x0001
>      bConfigurationValue = 0x0001
>      iConfiguration = 0x0000  <no string>
>      bmAttributes = 0x0080
>      bMaxPower = 0x0032
> 
>      Interface 0
>        bLength = 0x0009
>        bDescriptorType = 0x0004
>        bInterfaceNumber = 0x0000
>        bAlternateSetting = 0x0000
>        bNumEndpoints = 0x0002
>        bInterfaceClass = 0x0008  <Mass storage>
>        bInterfaceSubClass = 0x0006
>        bInterfaceProtocol = 0x0050
>        iInterface = 0x0000  <no string>
> 
>       Endpoint 0
>          bLength = 0x0007
>          bDescriptorType = 0x0005
>          bEndpointAddress = 0x0081  <IN>
>          bmAttributes = 0x0002  <BULK>
>          wMaxPacketSize = 0x0200
>          bInterval = 0x0000
>          bRefresh = 0x0000
>          bSynchAddress = 0x0000
> 
>       Endpoint 1
>          bLength = 0x0007
>          bDescriptorType = 0x0005
>          bEndpointAddress = 0x0001  <OUT>
>          bmAttributes = 0x0002  <BULK>
>          wMaxPacketSize = 0x0200
>          bInterval = 0x0000
>          bRefresh = 0x0000
>          bSynchAddress = 0x0000
> 
> 
> 
> root@:RE:0%
> 

xhci_do_command() does not return USB_ERR_NO_PIPE !

http://fxr.watson.org/fxr/source/dev/usb/controller/xhci.c#L1154

Do you have local patches perhaps?

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?317b839e-d209-945e-6dab-76a67a0c9b3d>