From nobody Wed Sep 28 11:54:12 2022 X-Original-To: freebsd-current@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 4Mcvzb3Mjvz4V1n9; Wed, 28 Sep 2022 11:54:19 +0000 (UTC) (envelope-from tezeka@hotmail.com) Received: from BRA01-ROA-obe.outbound.protection.outlook.com (mail-roabra01olkn2102.outbound.protection.outlook.com [40.92.96.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4McvzY6Zgfz3Rhv; Wed, 28 Sep 2022 11:54:17 +0000 (UTC) (envelope-from tezeka@hotmail.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cu+tpCq6do7iw9+ETha4IQeERR3BAI9Rmx32TQa4Txrx107qwvjCWcia/ODoQumTApecEw6aFCmCW2DBmvnyF4EhqF1TxonvhFVHcvuZRUkLdFmFWL7zoalvo3q0MmNxe7zY38Isx3emGOZ6O4B5aa5TpfVc0IljNFcl6DTL/8Ekq0U3r19SuMRdYBFLPpqJ5vZVdW3SiRTeTLpw2DeCnKobhVqlVYRNTugSdSt3Wn4lI1S2V65LAO11byYQp7RIkMUMMtqMFhW4+7k+28lFex8LzW4mXLYRj3fjia2xMOKX/bmeawQ3hEhitWFOyiqEFXqRENtsrcLhCe5y/AVQag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MC98ZBavT565CPs4DHmFCtT9bmBxFi1DKInR/4/+92A=; b=J5+DTu8E8wqlPf3es0/pXoJRD9qFld6IfvsnHvhNAOkedg0wN8/DFxeuyJwds4xCDOHB226Gtzq1N/MuX6x3azmdfPhfGdP0I/tV1qnx/u5UWtXlX5+HNU7kh/kHgQmKYRL5J1OuUByW0KKUEf7NhnT6WGOSQ/968X5zU3otN7fAvZrkJDRYhJEC7R8HR1vRKHrinEnQOPp2EaW9JHGf3Lee2wwxA2FegjVZosiCv1iPEF+RPwvsxYC8v4VJiI4pZyXQIYj+Qgt56gAZd1rVmxW59KtwiyUP3VVlaGeP9dfqBv1lARQnwGvaAvFc6toQSBrlG6SzJboWuZnyrjgH6A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MC98ZBavT565CPs4DHmFCtT9bmBxFi1DKInR/4/+92A=; b=srZkpNnvOR+XJY/eBCzIUaxALXCIkU0VsaNqUv30CafwEYDF8SlqiifoHLbl0Daatm1l3w0AAIufjfZuVG1Gp3/OsPViuy1TnfgFhOV7CtFlT5CK2cls9OzjidPHzbjVFflkufJfIQl4x3UBEjk5ptISc9s835Me12LmWn96oFgk6Vv7bIzo4Bm6xgzLBTOvF3TlPV+f0j4GXDh7kUzOibPxi58C+UA+rzAfXSAtfY4/AhaaCNqhkR/QSWf5knlEhWqVOfgPqnN+jzeSc/QuEMMfUwa+FD9Y1OhMGkwPHyZ4gXWK+BoS16XpJPys1EIroNFt8NVTH+5DA1HEgpeYOw== Received: from CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:118::12) by CP4P284MB1859.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:dc::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.17; Wed, 28 Sep 2022 11:54:13 +0000 Received: from CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM ([fe80::97ca:1c5:b250:8f79]) by CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM ([fe80::97ca:1c5:b250:8f79%7]) with mapi id 15.20.5654.025; Wed, 28 Sep 2022 11:54:13 +0000 Date: Wed, 28 Sep 2022 08:54:12 -0300 (-03) From: Ivan Quitschal To: Hans Petter Selasky cc: Ivan Quitschal , Alexander Motin , "freebsd-current@freebsd.org" , "freebsd-usb@FreeBSD.org" Subject: Re: RES: TP-LINK USB no carrier after speed test In-Reply-To: Message-ID: References: <5bf98c30-c00f-7e7a-3a3d-c0bd5862fb97@selasky.org> <1f11b131-7031-60db-4331-d95159c5b373@selasky.org> <4f8778a0-0c47-ff47-f954-ba4e8d9fc5e1@selasky.org> <93745237-5a3c-b81b-36d3-3c883bc4f2d3@selasky.org> <37d15b0a-0cc1-0830-98a9-c7e19b7a7ef5@selasky.org> Content-Type: multipart/mixed; boundary="3432851520-1700655352-1664366053=:1776" X-TMN: [s192eJ7ajOOxcgHqwxVlLmvZG6Ftazxq] X-ClientProxiedBy: CP4P284CA0021.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:126::20) To CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM (2603:10d6:103:118::12) X-Microsoft-Original-Message-ID: <54ef5c22-f9a9-c2f4-5e78-272c4fdd446b@hotmail.com> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CP6P284MB1900:EE_|CP4P284MB1859:EE_ X-MS-Office365-Filtering-Correlation-Id: 7d16dcb2-3067-445b-8e0e-08daa1482965 X-MS-Exchange-SLBlob-MailProps: CLk2x5OX5VbLoOWJP0LVdFOjpBUuKUL9gEuofgmu8Lx+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TFk1OEhmbHhIMmRqdkRraTR4akxaWS9UZjZEMzZFTVRP?= =?utf-8?B?aDhUcHVyRi9RdTVyS2JSVm9tcGx4a04wZm42dWpOSHZWbUlSaGtjN0dDZlUz?= =?utf-8?B?TUF6ajFBQXpkLzdjVlNobDlGRzhwbVlRamFrWVlualdyMWFVMnVUZHM0N0tu?= =?utf-8?B?L0VRZ2hWbTdmRDluakMwYnE2enFjRGZrQWZLd1FXWDlGMGFmMFNuam9Tc2FM?= =?utf-8?B?YTBaS2JJbkl6Tnd3dkhMQVRxMEdUS2tEU3RSS1YwWnUrS1ovYkFvWExnPT0=?= X-OriginatorOrg: sct-15-20-4755-11-msonline-outlook-7dc52.templateTenant X-MS-Exchange-CrossTenant-Network-Message-Id: 7d16dcb2-3067-445b-8e0e-08daa1482965 X-MS-Exchange-CrossTenant-AuthSource: CP6P284MB1900.BRAP284.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2022 11:54:13.6990 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CP4P284MB1859 X-Rspamd-Queue-Id: 4McvzY6Zgfz3Rhv X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hotmail.com header.s=selector1 header.b=srZkpNnv; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=hotmail.com; spf=pass (mx1.freebsd.org: domain of tezeka@hotmail.com designates 40.92.96.102 as permitted sender) smtp.mailfrom=tezeka@hotmail.com X-Spamd-Result: default: False [-3.97 / 15.00]; CTYPE_MIXED_BOGUS(1.00)[]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.986]; NEURAL_HAM_LONG(-0.98)[-0.984]; DMARC_POLICY_ALLOW(-0.50)[hotmail.com,none]; R_SPF_ALLOW(-0.20)[+ip4:40.92.0.0/15]; R_DKIM_ALLOW(-0.20)[hotmail.com:s=selector1]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; FROM_HAS_DN(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[hotmail.com:dkim]; RCVD_IN_DNSWL_NONE(0.00)[40.92.96.102:from]; ASN(0.00)[asn:8075, ipnet:40.80.0.0/12, country:US]; MIME_TRACE(0.00)[0:+,1:+]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org,freebsd-usb@FreeBSD.org]; RCPT_COUNT_FIVE(0.00)[5]; FREEMAIL_FROM(0.00)[hotmail.com]; TO_DN_SOME(0.00)[]; FREEMAIL_ENVFROM(0.00)[hotmail.com]; RCVD_COUNT_THREE(0.00)[3]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[hotmail.com:+]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_CC(0.00)[hotmail.com,FreeBSD.org,freebsd.org] X-ThisMailContainsUnwantedMimeParts: N --3432851520-1700655352-1664366053=:1776 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Wed, 28 Sep 2022, Hans Petter Selasky wrote: > On 9/28/22 11:07, Ivan Quitschal wrote: >> >> >> On Tue, 27 Sep 2022, Hans Petter Selasky wrote: >> >>> On 9/27/22 15:22, Hans Petter Selasky wrote: >>>> On 9/27/22 14:17, Ivan Quitschal wrote: >>>>> >>>>> >>>>> On Tue, 27 Sep 2022, Hans Petter Selasky wrote: >>>>> >>>>>> On 9/27/22 02:24, Alexander Motin wrote: >>>>>>> On 26.09.2022 17:29, Hans Petter Selasky wrote: >>>>>>>> I've got a supposedly "broken" if_ure dongle from Alexander, but I'm >>>>>>>> unable to reproduce the if_ure hang on two different pieces of XHCI >>>>>>>> hardware, Intel based and AMD based, which I've got. >>>>>>>> >>>>>>>> This leads me to believe there is a bug in the XHCI driver or >>>>>>>> hardware on your system. >>>>>>>> >>>>>>>> Can you share the pciconfig -lv output for your XHCI controllers? >>>>>>> >>>>>>> I have two laptops of different generations reproducing this problem, >>>>>>> but both are having Thunderbolt on the USB-C ports: >>>>>>> >>>>>>> This is one (7th Gen Core i7): >>>>>>> >>>>>>> xhci1@pci0:56:0:0:      class=0x0c0330 rev=0x02 hdr=0x00 vendor=0x8086 >>>>>>> device=0x15d4 subvendor=0x2222 subdevice=0x1111 >>>>>>>      vendor     = 'Intel Corporation' >>>>>>>      device     = 'JHL6540 Thunderbolt 3 USB Controller (C step) >>>>>>> [Alpine Ridge 4C 2016]' >>>>>>>      class      = serial bus >>>>>>>      subclass   = USB >>>>>>>      bar   [10] = type Memory, range 32, base 0xc3f00000, size 65536, >>>>>>> enabled >>>>>>>      cap 01[80] = powerspec 3  supports D0 D1 D2 D3  current D0 >>>>>>>      cap 05[88] = MSI supports 8 messages, 64 bit enabled with 1 >>>>>>> message >>>>>>>      cap 10[c0] = PCI-Express 2 endpoint max data 128(128) RO NS >>>>>>>                   max read 512 >>>>>>>                   link x4(x4) speed 2.5(2.5) ASPM disabled(L0s/L1) >>>>>>> ClockPM disabled >>>>>>>      ecap 0003[100] = Serial 1 20ff910876f10c00 >>>>>>>      ecap 0001[200] = AER 1 0 fatal 0 non-fatal 1 corrected >>>>>>>      ecap 0002[300] = VC 1 max VC0 >>>>>>>      ecap 0004[400] = Power Budgeting 1 >>>>>>>      ecap 000b[500] = Vendor [1] ID 1234 Rev 1 Length 216 >>>>>>>      ecap 0018[600] = LTR 1 >>>>>>>      ecap 0019[700] = PCIe Sec 1 lane errors 0 >>>>>>> >>>>>>> This is another (11th Gen Core i7); >>>>>>> >>>>>>> xhci0@pci0:0:13:0:      class=0x0c0330 rev=0x01 hdr=0x00 vendor=0x8086 >>>>>>> device=0x9a13 subvendor=0x1028 subdevice=0x0991 >>>>>>>      vendor     = 'Intel Corporation' >>>>>>>      device     = 'Tiger Lake-LP Thunderbolt 4 USB Controller' >>>>>>>      class      = serial bus >>>>>>>      subclass   = USB >>>>>>>      bar   [10] = type Memory, range 64, base 0x60552c0000, size >>>>>>> 65536, enabled >>>>>>>      cap 01[70] = powerspec 2  supports D0 D3  current D0 >>>>>>>      cap 05[80] = MSI supports 8 messages, 64 bit enabled with 1 >>>>>>> message >>>>>>>      cap 09[90] = vendor (length 20) Intel cap 15 version 0 >>>>>>>      cap 09[b0] = vendor (length 0) Intel cap 0 version 1 >>>>>>> >>>>>>> Does the system you also has Thunderbolt chip, or you use native Intel >>>>>>> chipet's XHCI? >>>>>>> >>>>>>>> Also, when running the stress test and you see the traffic stops, >>>>>>>> what happens if you run this command as root on the ugen which the >>>>>>>> if_ure belongs to: >>>>>>>> >>>>>>>> usbconfig -d ugenX.Y dump_string 0 >>>>>>>> >>>>>>>> Does the traffic resume? >>>>>>> >>>>>>> Nope. Out of 4 times when traffic stopped 2 times it reported >>>>>> error> and 2 times it completed successfully, but it neither case it >>>>>>> recovered traffic.  Only reset recovered it. >>>>>>> >>>>>> >>>>>> Hi Alexander, >>>>>> >>>>>> Could you run "usbdump -d X.Y" at the same time to capture all the >>>>>> errors? >>>>>> >>>>>> Looking especially for USB_ERR_TIMEOUT . >>>>>> >>>>>> I have this: >>>>>> >>>>>> xhci0@pci0:3:0:3:    class=0x0c0330 rev=0x00 hdr=0x00 vendor=0x1022 >>>>>> device=0x15e0 subvendor=0x1849 subdevice=0xffff >>>>>>    vendor     = 'Advanced Micro Devices, Inc. [AMD]' >>>>>>    device     = 'Raven USB 3.1' >>>>>>    class      = serial bus >>>>>>    subclass   = USB >>>>>> >>>>>> xhci0@pci0:0:20:0:    class=0x0c0330 rev=0x21 hdr=0x00 vendor=0x8086 >>>>>> device=0x9d2f subvendor=0x8086 subdevice=0x9d2f >>>>>>    vendor     = 'Intel Corporation' >>>>>>    device     = 'Sunrise Point-LP USB 3.0 xHCI Controller' >>>>>>    class      = serial bus >>>>>>    subclass   = USB >>>>>> >>>>>> --HPS >>>>>> >>>>> >>>>> >>>>> hi Hans >>>>> >>>>> i think i got some good logs for you >>>>> >>>>> before the problem i ran this: >>>>> >>>>> ugen0.10: at usbus0, cfg=0 md=HOST >>>>> spd=SUPER (5.0Gbps) pwr=ON (72mA) >>>>> >>>>> # usbconfig -d ugen0.10 >> before >>>>> # usbconfig -d ugen0.10 dump_all_desc >> before >>>>> # usbconfig -d ugen0.10 dump_stats >> before_status >>>>> >>>>> the after the problem happened i ran >>>>> >>>>> # usbconfig -d ugen0.10 >> after >>>>> # usbconfig -d ugen0.10 dump_all_desc >> after >>>>> # usbconfig -d ugen0.10 dump_stats >> after_status >>>>> >>>>> >>>>> just by looking i already see some problems comparing both >>>>> >>>>> for example >>>>> >>>>> before the problem we have: >>>>> >>>>> ---------------------- >>>>> ugen0.10: at usbus0, cfg=0 md=HOST >>>>> spd=SUPER (5.0Gbps) pwr=ON (72mA) >>>>> ugen0.10: at usbus0, cfg=0 md=HOST >>>>> spd=SUPER (5.0Gbps) pwr=ON (72mA) >>>>> >>>>>    bLength = 0x0012 >>>>>    bDescriptorType = 0x0001 >>>>>    bcdUSB = 0x0300 >>>>>    bDeviceClass = 0x0000  >>>>>    bDeviceSubClass = 0x0000 >>>>>    bDeviceProtocol = 0x0000 >>>>>    bMaxPacketSize0 = 0x0009 >>>>>    idVendor = 0x2357 >>>>>    idProduct = 0x0601 >>>>>    bcdDevice = 0x3000 >>>>> **** >>>>>    iManufacturer = 0x0001  >>>>>    iProduct = 0x0002  >>>>>    iSerialNumber = 0x0006  <000001> >>>>>    bNumConfigurations = 0x0002 >>>>> >>>>> ------------------------ >>>>> >>>>> after the problem >>>>> >>>>> -------------------------- >>>>> ugen0.10: at usbus0, cfg=0 md=HOST >>>>> spd=SUPER (5.0Gbps) pwr=ON (72mA) >>>>> ugen0.10: at usbus0, cfg=0 md=HOST >>>>> spd=SUPER (5.0Gbps) pwr=ON (72mA) >>>>> >>>>>    bLength = 0x0012 >>>>>    bDescriptorType = 0x0001 >>>>>    bcdUSB = 0x0300 >>>>>    bDeviceClass = 0x0000  >>>>>    bDeviceSubClass = 0x0000 >>>>>    bDeviceProtocol = 0x0000 >>>>>    bMaxPacketSize0 = 0x0009 >>>>>    idVendor = 0x2357 >>>>>    idProduct = 0x0601 >>>>>    bcdDevice = 0x3000 >>>>> **** >>>>> iManufacturer = 0x0001  >>>>>    iProduct = 0x0002  >>>>>    iSerialNumber = 0x0006  >>>>>    bNumConfigurations = 0x0002 >>>>> >>>>>   Configuration index 0 -------------------------- >>>>> >>>>> >>>>> the log in ttyv0 was this: >>>>> >>>>> ure0: at uhub0, port 14, addr 9 (disconnected) >>>>> Sep 27 08:55:58 tzk-inspiron dhclient[1201]: receive_packet failed on >>>>> ue0: Device not configured >>>>> Sep 27 08:55:58 tzk-inspiron dhclient[1201]: ioctl(SIOCGIFFLAGS) on ue0: >>>>> Operation not permitted >>>>> Sep 27 08:55:58 tzk-inspiron dhclient[1201]: Interface ue0 no longer >>>>> appears valid. >>>>> Sep 27 08:55:58 tzk-inspiron dhclient[1201]: No live interfaces to poll >>>>> on - exiting. >>>>> Sep 27 08:55:58 tzk-inspiron dhclient[1201]: exiting. >>>>> Sep 27 08:55:58 tzk-inspiron dhclient[1201]: connection closed >>>>> Sep 27 08:55:58 tzk-inspiron dhclient[1201]: exiting. >>>>> rgephy0: detached >>>>> miibus0: detached >>>>> ure0: detached >>>>> >>>>> >>>>> difference between before_status and after_status >>>>> >>>>> before_status: >>>>> >>>>> ugen0.10: at usbus0, cfg=0 md=HOST >>>>> spd=SUPER (5.0Gbps) pwr=ON (72mA) >>>>> >>>>> { >>>>>      UE_CONTROL_OK       : 2389 >>>>>      UE_ISOCHRONOUS_OK   : 0 >>>>>      UE_BULK_OK          : 803 >>>>>      UE_INTERRUPT_OK     : 0 >>>>>      UE_CONTROL_FAIL     : 0 >>>>>      UE_ISOCHRONOUS_FAIL : 0 >>>>>      UE_BULK_FAIL        : 0 >>>>>      UE_INTERRUPT_FAIL   : 0 >>>>> } >>>>> >>>>> >>>>> after_status: >>>>> >>>>> ugen0.10: at usbus0, cfg=0 md=HOST >>>>> spd=SUPER (5.0Gbps) pwr=ON (72mA) >>>>> >>>>> { >>>>>      UE_CONTROL_OK       : 4275 >>>>>      UE_ISOCHRONOUS_OK   : 0 >>>>>      UE_BULK_OK          : 1126702 >>>>>      UE_INTERRUPT_OK     : 0 >>>>>      UE_CONTROL_FAIL     : 326 >>>>>      UE_ISOCHRONOUS_FAIL : 0 >>>>>      UE_BULK_FAIL        : 42 >>>>>      UE_INTERRUPT_FAIL   : 0 >>>>> } >>>>> >>>>> >>>>> >>>>> i hope that helps >>>>> >>>>> >>>>> all log files are attached >>>>> >>>>> thanks >>>>> >>>>> --tzk >>>> >>>> >>>> One more test request: >>>> >>>> Make sure you have a kernel with "options USB_DEBUG". >>>> >>>> Then after "iperf" says 0bits/s, then you run: >>>> >>>> sysctl hw.usb.xhci.debug=29 >>>> >>>> Then run those usbconfig commands. >>>> >>>> Then then: >>>> >>>> sysctl hw.usb.xhci.debug=0 >>>> >>>> And collect the logs from /var/log/messages . >>>> >>>> Like said earlier, I wonder if the fault is in the XHCI controller itself >>>> or something that has to do with thunderbolt, because on my machine there >>>> is no indication of a if_ure device failure. The only way to know for >>>> sure is to buy a USB 3.0 wire analyzer, like the beagle one, but I'm >>>> unsure if they support USB-C . >>>> >>>> Thank you! >>>> >>>> --HPS >>>> >>> >>> FYI: There is some experimental thunderbolt support at: >>> >>> https://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fhselasky%2Fusb4&data=05%7C01%7C%7Cc2f534f631fd47afec9908daa135d60b%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637999549868812246%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=uL5DwbPcldediZmBiufQXnkF7%2F2WQTizqVLAYBHZjqA%3D&reserved=0 >>> >>> But I'm not sure if it supports the hardware you've got. >>> >>> --HPS >>> >> >> >> Hi Hans >> >> i got two log versions for you, one with the constant set to 2048 (the >> working version) , and the other with no patches whatsoever (the bad >> version) >> >> since the entire logs reached more than 150M of size, i had to cut to the >> last 1000 lines , hope toats enough >> >> pleaes find attached the two files >> >> the xhci_NOT_working i stoped recording right after the problem ocurred >> >> please let me know if you need something else >> >> thank you >> >> --tzk > > I need the full log. > > The XHCI driver is very verbose you see. > > Maybe you can do some filtering, like figuring out all the status codes you > see: > > status=1 > status=13 > > and so on. > > --HPS > hi Hans i will try to do some logs filtered like you said , and will also try to compress as much as i want the full ones. ( i may be able to transform 150M into no more than 10M, its all plain text) i will send you here and the list as soon as i do this .. dont know if ill be able to do this today, but tomorrow you'll get the full logs even if i have to open the ftp for you myself :- ) thanks --tzk --3432851520-1700655352-1664366053=:1776--