From owner-freebsd-usb@freebsd.org Sun Feb 16 19:14:42 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DC01923F103 for ; Sun, 16 Feb 2020 19:14:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 48LGyT6KNWz3FZt for ; Sun, 16 Feb 2020 19:14:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id D8C1723F102; Sun, 16 Feb 2020 19:14:41 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D889723F101 for ; Sun, 16 Feb 2020 19:14:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48LGyT5VZqz3FZg for ; Sun, 16 Feb 2020 19:14:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B4BE12A969 for ; Sun, 16 Feb 2020 19:14:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 01GJEf4M058369 for ; Sun, 16 Feb 2020 19:14:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 01GJEfG7058368 for usb@FreeBSD.org; Sun, 16 Feb 2020 19:14:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 237666] repeated messages of "uhub_reattach_port: giving up port reset - device vanished" Date: Sun, 16 Feb 2020 19:14:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: needs-qa, regression X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: gerard_seibert@outlook.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: mfc-stable12? mfc-stable11? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Feb 2020 19:14:42 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D237666 --- Comment #105 from Gerard Seibert --- (In reply to Hans Petter Selasky from comment #104) I wish I had a spare machine to ship off to you; however, I don't. I still = find it hard to believe that this bug was not caught during the initial beta tes= ting of version 12.x. I did contact Dell again, and they insisted the problem is with FreeBSD. They have not had a single report of a failure like this with another OS. That is probably true. Even FreeBSD 11.x works fine. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sun Feb 16 21:01:10 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2EF05242B87 for ; Sun, 16 Feb 2020 21:01:10 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48LKKL0BJlz43nR for ; Sun, 16 Feb 2020 21:01:10 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id E6A98242B7B; Sun, 16 Feb 2020 21:01:09 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E5BA4242B7A for ; Sun, 16 Feb 2020 21:01:09 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48LKKK58Pvz43n9 for ; Sun, 16 Feb 2020 21:01:09 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id A479B2BD3A for ; Sun, 16 Feb 2020 21:01:09 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 01GL19tN064574 for ; Sun, 16 Feb 2020 21:01:09 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 01GL19fP064565 for usb@FreeBSD.org; Sun, 16 Feb 2020 21:01:09 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202002162101.01GL19fP064565@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: usb@FreeBSD.org Subject: Problem reports for usb@FreeBSD.org that need special attention Date: Sun, 16 Feb 2020 21:01:09 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Feb 2020 21:01:10 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 213877 | xhci reset causes panic on SuperMicro A1SRi-2758F Open | 234578 | Support for Sierra Wireless EM7455 modem 2 problems total for which you should take action. From owner-freebsd-usb@freebsd.org Thu Feb 20 02:08:53 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0471A24E2FF for ; Thu, 20 Feb 2020 02:08:53 +0000 (UTC) (envelope-from netsick@gmail.com) Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48NJ0z4DFsz3KZ1; Thu, 20 Feb 2020 02:08:51 +0000 (UTC) (envelope-from netsick@gmail.com) Received: by mail-ot1-x32a.google.com with SMTP id h9so2193379otj.11; Wed, 19 Feb 2020 18:08:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=rAMkAn8eJsv9Lzg3aYwp6e4wONl+D1xUdwSr59EzBAY=; b=CXaliu0oHcB9AIXz05x11ye1GrjqCxcTVnnyTUvbag/2j9FkubiPnY353pD+IJjkC9 pGyPQNGOfDR86orFFUZ/Zgx9RfYWu8y0nAk1HunvomQ+n2YeUqPWDrNzZpdJabMYVuXB 8jmD8GiL2PmMJJgZOceGJ0BSLmz6ixGpnHYZ3gvszMckQnuqgGNF8evb9d14Ox6flQW3 e+yaCRQP8URVPAXLhQXZHT1pjx0o8YXxAZ2IUn+1ecS+NxEeAzVT5UTIjKhbQbYHdauU n/C7m05S4XTsfDFJ42dByNaXVSu+n2c6XnOmuX+SrawoxLzbaCS/2+fR8TrXPPKkvWlF koOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=rAMkAn8eJsv9Lzg3aYwp6e4wONl+D1xUdwSr59EzBAY=; b=HeYph4fEVuj9C19FvB1962SnXPsxHGzQeR9iNbzz2+TZ6HWgXQaQDASBFf5g8zs/eg 5FDM8Fzw/363nPOEFwSH+sMWTb/efvPwVkI8Hw5CREs6eNtG1wapqVx+JG3vsm9+6oLG xg6ta2l2ydO7CSotdZCIXBgP1dPrNA9pCIERQ+aIWlnbpoycvn/oF9b5rHISKuxlOYVO 2QrGEsHtj/dwMxjq/NYCRhZ+UER9F1Z8mzc9iuOzGDGPqiCpJsVJoGlLgNtzox3omaCh NEfItsO03y7vkDOAX7YCT/T8CgNSwlUIk2FKCyoAfpGlpttZeCSuDpp3rtc14SrRx2VJ /QIg== X-Gm-Message-State: APjAAAVTMD99prJBZxEsIin3G0baD2tdp4RRw/vyHXpvF55PN0ytihxE +QtScjPqCKDp/8u51I2qPWl8Tx7O7OS28LaqeB6w7g== X-Google-Smtp-Source: APXvYqxosskkTQrt7dVdQ8CCeDfd0y+xbVUN0XB1kjmn8xnRVeQVcJMOVQVWyOwKVF24/suhuJPQcC47s3fuZTYpHSA= X-Received: by 2002:a9d:65cb:: with SMTP id z11mr20541916oth.348.1582164529507; Wed, 19 Feb 2020 18:08:49 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Kris G Date: Thu, 20 Feb 2020 12:08:34 +1000 Message-ID: Subject: Re: RTL8192EU USB Wifi error: rtwn0: r92e_power_off: failed to block Tx queues To: freebsd-usb@freebsd.org, Kevin Lo X-Rspamd-Queue-Id: 48NJ0z4DFsz3KZ1 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=CXaliu0o; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of netsick@gmail.com designates 2607:f8b0:4864:20::32a as permitted sender) smtp.mailfrom=netsick@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; IP_SCORE(0.00)[ip: (-8.12), ipnet: 2607:f8b0::/32(-1.89), asn: 15169(-1.67), country: US(-0.05)]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[a.2.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Feb 2020 02:08:53 -0000 Does this help any? # wpa_supplicant -d -d -i wlan0 -c /etc/wpa_supplicant.conf wpa_supplicant v2.9 Successfully initialized wpa_supplicant Initializing interface 'wlan0' conf '/etc/wpa_supplicant.conf' driver 'default' ctrl_interface 'N/A' bridge 'N/A' Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf' Reading configuration file '/etc/wpa_supplicant.conf' Line: 2 - start of a new network block ssid - hexdump_ascii(len=11): 69 69 4e 65 74 42 33 43 38 30 33 iiNetB3C803 key_mgmt: 0x2 PSK (ASCII passphrase) - hexdump_ascii(len=10): [REMOVED] PSK (from passphrase) - hexdump(len=32): [REMOVED] Priority group 0 id=0 ssid='iiNetB3C803' wpa_driver_bsd_capa: drivercaps=0x0591c541,cryptocaps=0x0000000b Add interface wlan0 to a new radio N/A wlan0: Failed to attach pkt_type filter wlan0: Own MAC address: a0:f4:59:7f:4b:8c bsd_set_key: alg=0 addr=0x0 key_idx=0 set_tx=0 seq_len=0 key_len=0 bsd_del_key: key_idx=0 bsd_set_key: alg=0 addr=0x0 key_idx=1 set_tx=0 seq_len=0 key_len=0 bsd_del_key: key_idx=1 bsd_set_key: alg=0 addr=0x0 key_idx=2 set_tx=0 seq_len=0 key_len=0 bsd_del_key: key_idx=2 bsd_set_key: alg=0 addr=0x0 key_idx=3 set_tx=0 seq_len=0 key_len=0 bsd_del_key: key_idx=3 wpa_driver_bsd_set_countermeasures: enabled=0 wlan0: RSN: flushing PMKID list in the driver wlan0: Setting scan request: 0.100000 sec wlan0: WPS: UUID based on MAC address: 3c7cd09d-b3cb-5865-b533-e33869532769 ENGINE: Loading builtin engines ENGINE: Loading builtin engines EAPOL: SUPP_PAE entering state DISCONNECTED EAPOL: Supplicant port status: Unauthorized EAPOL: KEY_RX entering state NO_KEY_RECEIVE EAPOL: SUPP_BE entering state INITIALIZE EAP: EAP entering state DISABLED wlan0: Added interface wlan0 wlan0: State: DISCONNECTED -> DISCONNECTED wlan0: Event SCAN_RESULTS (3) received Received 0 bytes of scan results (0 BSSes) wlan0: BSS: Start scan result update 1 BSS: last_scan_res_used=0/0 wlan0: New scan results available (own=0 ext=0) wlan0: No suitable network found wlan0: Ignore new scan request for 5.000000 sec since an earlier request is scheduled to trigger sooner wlan0: State: DISCONNECTED -> SCANNING wlan0: Starting AP scan for wildcard SSID wlan0: Add radio work 'scan'@0x20c2a480 wlan0: First radio work item in the queue - schedule start immediately wlan0: Starting radio work 'scan'@0x20c2a480 after 0.000010 second wait wpa_driver_bsd_set_wpa: enabled=1 wpa_driver_bsd_set_wpa_internal: wpa=3 privacy=1 ioctl[SIOCS80211, op=103, val=0, arg_len=128]: Network is down wlan0: State: SCANNING -> DISCONNECTED wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1 wlan0: Radio work 'scan'@0x20c2a480 done in 6.478101 seconds wlan0: radio_work_free('scan'@0x20c2a480): num_active_works --> 0 wlan0: Setting scan request: 1.000000 sec EAPOL: disable timer tick RTM_IFINFO: Interface 'wlan0' DOWN wlan0: Event INTERFACE_DISABLED (26) received wlan0: Interface was disabled wlan0: State: DISCONNECTED -> DISCONNECTED EAPOL: External notification - portEnabled=0 EAPOL: External notification - portValid=0 wlan0: State: DISCONNECTED -> INTERFACE_DISABLED RTM_IFANNOUNCE: Interface 'wlan0' removed wlan0: Event INTERFACE_STATUS (5) received wlan0: Configured interface was removed wlan0: State: INTERFACE_DISABLED -> INTERFACE_DISABLED wlan0: Removing interface wlan0 wlan0: Request to deauthenticate - bssid=00:00:00:00:00:00 pending_bssid=00:00:00:00:00:00 reason=3 (DEAUTH_LEAVING) state=INTERFACE_DISABLED wpa_driver_bsd_set_countermeasures: enabled=0 wlan0: WPA: Clear old PMK and PTK wlan0: Cancelling scan request wlan0: Cancelling authentication timeout HS20: Delete all stored icons Remove interface wlan0 from radio Remove radio wlan0: CTRL-EVENT-TERMINATING On Thu, Feb 13, 2020 at 10:41 AM Kris G wrote: > Hi, > > I can't seem to get my USB wifi working. Here is what I see.. > > Logs when I insert the device. > > kernel: rtwn0 on uhub0 > kernel: rtwn0: <802.11n NIC> on usbus0 > kernel: rtwn0: MAC/BB RTL8192EU, RF 6052 2T2R > kernel: wlan0: Ethernet address: a0:f4:59:7f:4b:8c > kernel: wlan0: ieee80211_new_state_locked: pending INIT -> SCAN transition > lost > > > # wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf > Successfully initialized wpa_supplicant > ioctl[SIOCS80211, op=103, val=0, arg_len=128]: Network is down > wlan0: CTRL-EVENT-SCAN-FAILED ret=-1 retry=1 > wlan0: CTRL-EVENT-TERMINATING > > Logs below returned when running wpa_supplicant command above. > > kernel: ugen0.4: at usbus0 (disconnected) > kernel: rtwn0: at uhub0, port 4, addr 6 (disconnected) > kernel: rtwn0: r92e_power_off: failed to block Tx queues > kernel: rtwn0: detached > root[70569]: /etc/rc.d/netif: WARNING: wlan0 does not exist. Skipped. > kernel: usb_alloc_device: set address 4 failed (USB_ERR_IOERROR, ignored) > kernel: usbd_setup_device_desc: getting device descriptor at addr 4 > failed, USB_ERR_IOERROR > kernel: usbd_req_re_enumerate: addr=4, set address failed! > (USB_ERR_IOERROR, ignored) > kernel: usbd_setup_device_desc: getting device descriptor at addr 4 > failed, USB_ERR_IOERROR > kernel: usbd_req_re_enumerate: addr=4, set address failed! > (USB_ERR_IOERROR, ignored) > kernel: usbd_setup_device_desc: getting device descriptor at addr 4 > failed, USB_ERR_IOERROR > kernel: usbd_req_re_enumerate: addr=4, set address failed! > (USB_ERR_IOERROR, ignored) > kernel: usbd_setup_device_desc: getting device descriptor at addr 4 > failed, USB_ERR_IOERROR > kernel: usbd_req_re_enumerate: addr=4, set address failed! > (USB_ERR_IOERROR, ignored) > kernel: usbd_setup_device_desc: getting device descriptor at addr 4 > failed, USB_ERR_IOERROR > kernel: ugen0.4: at usbus0 (disconnected) > kernel: uhub_reattach_port: could not allocate new device > > I now have to reinsert the device to have it attached again. How can I fix > error " kernel: rtwn0: r92e_power_off: failed to block Tx queues" > > # usbconfig -d 0.4 dump_all_desc > ugen0.4: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) > pwr=ON (500mA) > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0210 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x0bda > idProduct = 0x818b > bcdDevice = 0x0200 > iManufacturer = 0x0001 > iProduct = 0x0002 <802.11n NIC> > iSerialNumber = 0x0003 <00e04c000001> > bNumConfigurations = 0x0001 > > Configuration index 0 > > bLength = 0x0009 > bDescriptorType = 0x0002 > wTotalLength = 0x0035 > bNumInterfaces = 0x0001 > bConfigurationValue = 0x0001 > iConfiguration = 0x0000 > bmAttributes = 0x00e0 > bMaxPower = 0x00fa > > Interface 0 > bLength = 0x0009 > bDescriptorType = 0x0004 > bInterfaceNumber = 0x0000 > bAlternateSetting = 0x0000 > bNumEndpoints = 0x0005 > bInterfaceClass = 0x00ff > bInterfaceSubClass = 0x00ff > bInterfaceProtocol = 0x00ff > iInterface = 0x0002 <802.11n NIC> > > Endpoint 0 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0084 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 1 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0005 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 2 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0006 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 3 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0087 > bmAttributes = 0x0003 > wMaxPacketSize = 0x0040 > bInterval = 0x0003 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Endpoint 4 > bLength = 0x0007 > bDescriptorType = 0x0005 > bEndpointAddress = 0x0008 > bmAttributes = 0x0002 > wMaxPacketSize = 0x0200 > bInterval = 0x0000 > bRefresh = 0x0000 > bSynchAddress = 0x0000 > > Cheers > Kris > > From owner-freebsd-usb@freebsd.org Thu Feb 20 08:39:51 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0537B2584E8 for ; Thu, 20 Feb 2020 08:39:51 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48NSh553HDz3DW9; Thu, 20 Feb 2020 08:39:49 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 11453260164; Thu, 20 Feb 2020 09:39:41 +0100 (CET) Subject: Re: RTL8192EU USB Wifi error: rtwn0: r92e_power_off: failed to block Tx queues To: Kris G , freebsd-usb@freebsd.org, Kevin Lo References: From: Hans Petter Selasky Message-ID: <7797a517-7881-ed8c-5f29-ad0f4241e631@selasky.org> Date: Thu, 20 Feb 2020 09:39:34 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48NSh553HDz3DW9 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-5.42 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-3.12)[ip: (-9.32), ipnet: 88.99.0.0/16(-4.71), asn: 24940(-1.55), country: DE(-0.02)]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Feb 2020 08:39:51 -0000 On 2020-02-20 03:08, Kris G wrote: > RTM_IFANNOUNCE: Interface 'wlan0' removed What is printed in dmesg? --HPS From owner-freebsd-usb@freebsd.org Thu Feb 20 23:48:55 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C949324A702 for ; Thu, 20 Feb 2020 23:48:55 +0000 (UTC) (envelope-from denverh@comcast.net) Received: from resqmta-ch2-03v.sys.comcast.net (resqmta-ch2-03v.sys.comcast.net [IPv6:2001:558:fe21:29:69:252:207:35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48Nrs21YQTz4B6P for ; Thu, 20 Feb 2020 23:48:53 +0000 (UTC) (envelope-from denverh@comcast.net) Received: from resomta-ch2-11v.sys.comcast.net ([69.252.207.107]) by resqmta-ch2-03v.sys.comcast.net with ESMTP id 4vXujZNv38K6O4vYpjtRLh; Thu, 20 Feb 2020 23:48:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1582242531; bh=4TfptzJzkiBj4quVLmv6tbUnSuJapF/f0GxcyY52hAE=; h=Received:Received:Reply-To:Subject:To:From:Message-ID:Date: MIME-Version:Content-Type; b=EDKZ5tG+Vuyaub2O0fYpNBA7WweSk5mfgT//mkWjtIQJd0/K6GnY1772x2QVW5lgb VwIztnAolMIr4grfQXvYOrWHWNCVhDT/FoRyDAz3kRnl6HMUMgDnuRW1iKNeyxvY/V MezmUJCaSUzX83g0rBYxzDMFKZ8hZdsqx6LPsAvv54iuKGb3ULUqT3Em/x6Ts16+Ta 2zGD/0RKMhz9EcSpPfDYM0OpaMZ6H5Y+18p8yypo25T/mEXIkBSmkTk8S3aydhDMmL UYV0RBx3xkQG02nwXbC+a4saeI8X40W+ROTMeK4pDMrcjWwe5J/qnhw5teAByVafkl 1jQ4YJqyD1KIA== Received: from dhbsd.dhull.home ([68.235.43.125]) by resomta-ch2-11v.sys.comcast.net with ESMTPA id 4vYajeYftByhM4vYbjaXtf; Thu, 20 Feb 2020 23:48:49 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedugedrkeefgdduhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucevohhmtggrshhtqdftvghsihdpqfgfvfdppffquffrtefokffrnecuuegrihhlohhuthemuceftddtnecunecujfgurheprhfuvfhfhffkffgfgggjtgesrgdtreertdefjeenucfhrhhomhepffgvnhhvvghrucfjuhhllhcuoeguvghnvhgvrhhhsegtohhmtggrshhtrdhnvghtqeenucffohhmrghinhepfhhrvggvsghsugdrohhrghenucfkphepieekrddvfeehrdegfedruddvheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopeguhhgsshgurdguhhhulhhlrdhhohhmvgdpihhnvghtpeeikedrvdefhedrgeefrdduvdehpdhmrghilhhfrhhomhepuggvnhhvvghrhhestghomhgtrghsthdrnhgvthdprhgtphhtthhopehfrhgvvggsshguqdhushgssehfrhgvvggsshgurdhorhhgpdhrtghpthhtohephhhpshesshgvlhgrshhkhidrohhrghdprhgtphhtthhopehimhhpsegsshguihhmphdrtghomh X-Xfinity-VMeta: sc=0.00;st=legit Reply-To: denverh@comcast.net Subject: Re: Timeouts during initial Mode Sense commands To: Warner Losh Cc: Hans Petter Selasky , "freebsd-usb@FreeBSD.org" References: <98b6599e-5027-48c9-4230-47bc0f087180@comcast.net> <079c989a-5d45-df1f-ed48-15cdd8c8f194@comcast.net> From: Denver Hull Message-ID: Date: Thu, 20 Feb 2020 17:48:41 -0600 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.4 MIME-Version: 1.0 In-Reply-To: X-Rspamd-Queue-Id: 48Nrs21YQTz4B6P X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=pass header.d=comcast.net header.s=20190202a header.b=EDKZ5tG+; dmarc=pass (policy=none) header.from=comcast.net; spf=pass (mx1.freebsd.org: domain of denverh@comcast.net designates 2001:558:fe21:29:69:252:207:35 as permitted sender) smtp.mailfrom=denverh@comcast.net X-Spamd-Result: default: False [1.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[denverh@comcast.net]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:558:fe21:29:69:252:207:0/112]; FREEMAIL_FROM(0.00)[comcast.net]; REPLYTO_ADDR_EQ_FROM(0.00)[]; URI_COUNT_ODD(1.00)[3]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[comcast.net:+]; DMARC_POLICY_ALLOW(-0.50)[comcast.net,none]; HFILTER_HELO_5(3.00)[resqmta-ch2-03v.sys.comcast.net]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[comcast.net]; ASN(0.00)[asn:7922, ipnet:2001:558::/29, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[comcast.net.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996,0]; R_DKIM_ALLOW(-0.20)[comcast.net:s=20190202a]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FREEMAIL_REPLYTO(0.00)[comcast.net]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[5.3.0.0.7.0.2.0.2.5.2.0.9.6.0.0.9.2.0.0.1.2.e.f.8.5.5.0.1.0.0.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ipnet: 2001:558::/29(-0.50), asn: 7922(-0.66), country: US(-0.05)] Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Feb 2020 23:48:55 -0000 Warner Losh wrote: > > > On Sun, Feb 2, 2020 at 12:32 PM Denver Hull > wrote: > > Hans Petter Selasky wrote: > > On 2019-12-20 13:54, Denver Hull wrote: > >> Hans Petter Selasky wrote: > >>> On 2019-12-19 01:11, Denver Hull wrote: > >>>> Hello, > >>>> > >>>> I have several different microcontroller boards that are > supposed > >>>> to appear as storage devices when plugged in.  They work fine on > >>>> Linux systems, but on FreeBSD 11.3 and 12.1 they don't show > up at > >>>> all. Here's what dmesg shows for one of them: > >>>> > >>>> ugen1.3: at usbus1 > >>>> umodem0 on uhub1 > >>>> umodem0: on usbus1 > >>>> umodem0: data interface 1, has no CM over data, has no break > >>>> umass3 on uhub1 > >>>> umass3: on usbus1 > >>>> umass3:  SCSI over Bulk-Only; quirks = 0x0000 > >>>> umass3:5:3: Attached to scbus5 > >>>> uaudio0 on uhub1 > >>>> uaudio0: on usbus1 > >>>> uaudio0: No playback. > >>>> uaudio0: No recording. > >>>> uaudio0: MIDI sequencer. > >>>> uaudio0: No HID volume keys found. > >>>> ums2 on uhub1 > >>>> ums2: on usbus1 > >>>> ums2: 16 buttons and [XYZ] coordinates ID=2 > >>>> (da3:umass-sim3:3:0:0): got CAM status 0x44 > >>>> (da3:umass-sim3:3:0:0): fatal error, failed to attach to device > >>>> g_access(944): provider da3 has error 6 set > >>>> g_access(944): provider da3 has error 6 set > >>>> g_access(944): provider da3 has error 6 set > >>>> g_access(944): provider da3 has error 6 set > >>>> g_access(944): provider da3 has error 6 set > >>>> > >>>> There's a definite delay after the last ums message.  I used > >>>> camcontrol debug in single user mode on a bare 12.1 system to > get a > >>>> little more information about what was happening. It looks > like the > >>>> initial Inquiry and Test Unit Ready commands succeed, but the > next > >>>> Mode Sense command times out, as well as all subsequent > commands. > >>>> There are several seconds of inactivity between retries, and > >>>> there's no sense data, so I'm assuming that indicates timeout. > >>>> > >>>> At this point I'm not sure how best to proceed to get these > devices > >>>> to work, so any help will be appreciated. > >>>> > >>> > >>> Did you try setting one or more quirks for these devices using > >>> usbconfig? > >>> > >>> UQ_MSC_NO_TEST_UNIT_READY > >>> UQ_MSC_NO_RS_CLEAR_UA > >>> UQ_MSC_NO_START_STOP > >>> UQ_MSC_NO_GETMAXLUN > >>> UQ_MSC_NO_INQUIRY > >>> UQ_MSC_NO_INQUIRY_EVPD > >>> UQ_MSC_NO_PREVENT_ALLOW > >>> UQ_MSC_NO_SYNC_CACHE > >>> UQ_MSC_SHUTTLE_INIT > >>> UQ_MSC_ALT_IFACE_1 > >>> UQ_MSC_FLOPPY_SPEED > >>> UQ_MSC_IGNORE_RESIDUE > >>> UQ_MSC_WRONG_CSWSIG > >>> UQ_MSC_RBC_PAD_TO_12 > >>> UQ_MSC_READ_CAP_OFFBY1 > >>> UQ_MSC_FORCE_SHORT_INQ > >>> > >>> If you run "usbdump -i usbusX -f Y -s 65536 -vvv" you might > see the > >>> last failing SCSI command. X.Y are numbers after ugen for your > device. > >>> > >>> Likely your device has a software bug in its USB/SCSI > >>> implementation, which is quite common unfortunately. > >>> > >>> --HPS > >>> > >> After I sent the previous message I did try > >> UQ_MSC_NO_TEST_UNIT_READY. Although the system reports "quirks = > >> 0001", the initial TUR is still being issued during the probe > >> sequence.  I tried the usbdump command you suggested, and I can > >> clearly see where the timeouts are, and frames that begin with > "USBC" > >> seem to contain a SCSI CDB.  But there's a lot of other stuff in > >> between that I haven't been able to figure out, so I've attached a > >> sample.  Hopefully it will help. > >> > > > > Hi, > > > > All the USBC's are raw SCSI commands, which use the following > layout: > > > >> /* Command Block Wrapper */ > >> typedef struct { > >>         uDWord  dCBWSignature; > >> #define CBWSIGNATURE    0x43425355 > >>         uDWord  dCBWTag; > >>         uDWord  dCBWDataTransferLength; > >>         uByte   bCBWFlags; > >> #define CBWFLAGS_OUT    0x00 > >> #define CBWFLAGS_IN     0x80 > >>         uByte   bCBWLUN; > >>         uByte   bCDBLength; > >> #define CBWCDBLENGTH    16 > >>         uByte   CBWCDB[CBWCDBLENGTH]; > >> } __packed umass_bbb_cbw_t; > > > > We had a SoC to add support for the usbdump format to wireshark: > > > > https://wiki.freebsd.org/SummerOfCode2017/usbdump-wireshark > > > > You might find that useful. > > > > My first suspicion is that your device is not fully USB class > > compliant, and that's why it is STALLING and failing to recover. > > > > --HPS > > > > > I checked on a Linux system, and the negotiation follows a slightly > different pattern, but as far as I can see, the biggest difference is > that Linux uses 6 byte Mode Sense commands instead of 10 byte.  I > wonder > if that's all that's making the device choke?  How hard would it > be to > change things to use 0x1a instead of 0x5a temporarily? > Alternatively, I > could see if I can figure out how to issue arbitrary SCSI commands on > Linux.  I used to have something for that purpose that worked on a > variety of platforms, but it's been ages since I needed it. In any > case, I'll attach the Linux wireshark trace.  The negotiation > seems to > begin at frame 2331. > > > There's a DA_Q_NO_6_BYTE quirk, but that does rather the opposite of > what I think is needed here. > > and we use it here: > >          * RBC devices don't have to support READ(6), only READ(10). >          */ >         if (softc->quirks & DA_Q_NO_6_BYTE || SID_TYPE(&cgd->inq_data) > == T_RBC) >                 softc->minimum_cmd_size = 10; >         else >                 softc->minimum_cmd_size = 6; > > but there's a way  to override: > >          * Load the user's default, if any. >          */ >         snprintf(tmpstr, sizeof(tmpstr), > "kern.cam.da.%d.minimum_cmd_size", >                  periph->unit_number); >         TUNABLE_INT_FETCH(tmpstr, &softc->minimum_cmd_size); > > so you could try setting the tunable > kern.cam.da.X.minimum_cmd_size="6" in /boot/loader.conf (where X is > the drive the system assigns) and see if that changes the wireshark > output  to be closer to Linux or not... > > I'm unsure if we have a direct way to ask if it's RBC or not... > > Warner > Sorry about the long delay.  This sounded promising and I had high hopes for it, but it didn't help.  The difficulty begins before the da device is created.  It looks like once the initial 10 byte Mode Sense is issued the device becomes unresponsive and everything goes downhill from there.  That's clearly a problem with the device, but I'm pretty sure that on Linux it recovers if I send it a 10 byte Mode Sense.  When I get a chance I'll see if I can capture what Linux is doing to recover from that. I've started looking at the boot code for these boards, which appears to be derived from Atmel's SAM-BA.  Two of the boards I have work fine, but they have a very old version of the bootloader.  I updated all the other boards with the latest version, but that didn't change anything.  At this point I'm still setting up something to be able to build that code. Thanks, Denver From owner-freebsd-usb@freebsd.org Fri Feb 21 05:47:34 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 916BC253329 for ; Fri, 21 Feb 2020 05:47:34 +0000 (UTC) (envelope-from netsick@gmail.com) Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48P0pr5X0Fz43wB; Fri, 21 Feb 2020 05:47:32 +0000 (UTC) (envelope-from netsick@gmail.com) Received: by mail-oi1-x231.google.com with SMTP id a142so501141oii.7; Thu, 20 Feb 2020 21:47:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qzIlnk3Y/3en9N1ckz9Qlr4Z2LjKcyxFG6ML6iLDeww=; b=ROKOA0GOTcop7i3MTnlEmR5/7gKRd/eaclyI7p1YPlAJ7M4WAQpEWaW2swX3WZ3XUg odTyik4mtDj8LFE1jDAA6MLOyMWa7JmKnrb4We69onUesJih+yPYDAQnmF6xHWcPUvjg iKlI1dUeFBInZmnrWGPoigwROccKdzYFKEMMdJmltfuw3oYhECHxMGb2cLsiLrTA7AV1 HTTvEvbVqg8BMuJljNdvH8PQDHOuCg6UAS2VviFetElJvic1YRcVNzXI9xjCMauN8lKq ZuUypHbxr/D9kvJMsYR1BMZaDX4nDbuZgBtkcOELezDCJflamhQpK1TNIuWLyxqZrfAO ciag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qzIlnk3Y/3en9N1ckz9Qlr4Z2LjKcyxFG6ML6iLDeww=; b=p4o1bBF3ss4DnejWmdYscTirQPOxkBwaMHWPCZqOy+fsvpahkDUq4gzKNSaUbz6E0o l+HxgiX+47XbpN8hjtIoYnGTGlcAgd5woWpqpX7H41LrAJYebsobCnAi7pSRa9RmpwE+ JZUxSbhhpCZSZmuMrE8V3P18U7c13STDEtk98t/b8zlesspilU5dWnk4Bqu7MToyRvVV OAvBLbZemZUlGX21MyvmUUfvtR5SYM4Bm5IgxFdkBpHD5GWb17Ee13pfPuu0t2pNm1eP 29wD9mkq5x/fnVL/6zmV/GcenYKjUzFLUj7p04UajbLHb23b3Q8orCcKhGWirjQdmpFJ H89g== X-Gm-Message-State: APjAAAXiucPt6s9o+Ds3rx33m70wwdqg1QWbFxqsI4UXkx39UgdLTST4 8zSto6ggpubIlKySMsxhgFGQEqNw1rpW6hhHQuyadT+k X-Google-Smtp-Source: APXvYqyFQCe2EvLIp6Av4nYhUsrX+BzpLFQoT9Jj5XNOIU/pny/+ytM6tEWXafNKdwa2jp4gSK2wBq5rxNZv8E7og5E= X-Received: by 2002:aca:5a04:: with SMTP id o4mr635332oib.71.1582264051192; Thu, 20 Feb 2020 21:47:31 -0800 (PST) MIME-Version: 1.0 References: <7797a517-7881-ed8c-5f29-ad0f4241e631@selasky.org> In-Reply-To: <7797a517-7881-ed8c-5f29-ad0f4241e631@selasky.org> From: Kris G Date: Fri, 21 Feb 2020 15:47:30 +1000 Message-ID: Subject: Re: RTL8192EU USB Wifi error: rtwn0: r92e_power_off: failed to block Tx queues To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org, Kevin Lo X-Rspamd-Queue-Id: 48P0pr5X0Fz43wB X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ROKOA0GO; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of netsick@gmail.com designates 2607:f8b0:4864:20::231 as permitted sender) smtp.mailfrom=netsick@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE(0.00)[ip: (-8.98), ipnet: 2607:f8b0::/32(-1.89), asn: 15169(-1.67), country: US(-0.05)]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[1.3.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Feb 2020 05:47:34 -0000 When it's inserted.. ugen0.5: at usbus0 rtwn0 on uhub0 rtwn0: <802.11n NIC> on usbus0 rtwn0: MAC/BB RTL8192EU, RF 6052 2T2R wlan0: Ethernet address: a0:f4:59:7f:4b:8c wlan0: ieee80211_new_state_locked: pending INIT -> SCAN transition lost When running wpa_supplicant.. ugen0.5: at usbus0 (disconnected) rtwn0: at uhub0, port 3, addr 6 (disconnected) rtwn0: r92e_power_off: failed to block Tx queues rtwn0: detached usb_alloc_device: set address 5 failed (USB_ERR_IOERROR, ignored) usbd_setup_device_desc: getting device descriptor at addr 5 failed, USB_ERR_IOERROR usbd_req_re_enumerate: addr=5, set address failed! (USB_ERR_IOERROR, ignored) usbd_setup_device_desc: getting device descriptor at addr 5 failed, USB_ERR_IOERROR usbd_req_re_enumerate: addr=5, set address failed! (USB_ERR_IOERROR, ignored) usbd_setup_device_desc: getting device descriptor at addr 5 failed, USB_ERR_IOERROR usbd_req_re_enumerate: addr=5, set address failed! (USB_ERR_IOERROR, ignored) usbd_setup_device_desc: getting device descriptor at addr 5 failed, USB_ERR_IOERROR usbd_req_re_enumerate: addr=5, set address failed! (USB_ERR_IOERROR, ignored) usbd_setup_device_desc: getting device descriptor at addr 5 failed, USB_ERR_IOERROR ugen0.5: at usbus0 (disconnected) uhub_reattach_port: could not allocate new device On Thu, Feb 20, 2020 at 6:39 PM Hans Petter Selasky wrote: > On 2020-02-20 03:08, Kris G wrote: > > RTM_IFANNOUNCE: Interface 'wlan0' removed > > What is printed in dmesg? > > --HPS > From owner-freebsd-usb@freebsd.org Fri Feb 21 09:00:23 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BC07A2572F9 for ; Fri, 21 Feb 2020 09:00:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48P55M4YpLz4KTV for ; Fri, 21 Feb 2020 09:00:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 9AB192572F8; Fri, 21 Feb 2020 09:00:23 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9A73E2572F7 for ; Fri, 21 Feb 2020 09:00:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48P55M3bPDz4KTT for ; Fri, 21 Feb 2020 09:00:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 76CB284CE for ; Fri, 21 Feb 2020 09:00:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 01L90NMA025308 for ; Fri, 21 Feb 2020 09:00:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 01L90NUe025305 for usb@FreeBSD.org; Fri, 21 Feb 2020 09:00:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 226968] IRQ storm on cpu0 timer when holding down key on USB keyboard Date: Fri, 21 Feb 2020 09:00:22 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Feb 2020 09:00:23 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226968 --- Comment #27 from commit-hook@freebsd.org --- A commit references this bug: Author: hselasky Date: Fri Feb 21 08:59:21 UTC 2020 New revision: 358215 URL: https://svnweb.freebsd.org/changeset/base/358215 Log: MFC r304735 and r331692: Fix key delay and repeat, part 2. Use sbintime_t timeouts with precision control to get very accurate timing. It costs little to always ask for about 1% accuracy, and the not so new event timer implementation usual delivers that, and when it can't it gets much closer than our previous coarse timeouts and buggy simple countdown. The 2 fastest atkbd repeat rates have periods 34 and 38 msec, and ukbd pretended to support rates in between these. This requires sub-microsecond precision and accuracy even to handle the 4 msec difference very well, but ukbd asked the timeout subsystem for timeouts of 25 msec and the buggy simple countdown of this gave a a wide range of precisions and accuracies depending on HZ and other timer configuration (sometimes better than 25 msec but usually more like 50 msec). We now ask for and usually get precision and accuracy of about 1% for each repeat and much better on average. The 1% accuracy is overkill. Rounding of 30 cps to 34 msec instead of 33 already gives an error of +2% instead of -1%, and ut AT keyboards on PS/2 interfaces have similar errors. A timeout is now scheduled for every keypress and release. This allows some simplifications that are not done. It allows removing the timeout scheduling for exiting polled mode where it was unsafe in ddb mode. This is done. Exiting polled mode had some problems with extra repeats. Now exiting polled mode lets an extra timeout fire and the state is fudged so that the timeout handler does very little. The sc->time_ms variable is unsigned to avoid overflow. Differences of it need to be signed. Signed comparisons were emulated by testing an emulated sign bits. This only works easily for '<' comparisonss, but we now need a '<=3D' comparison. Change the difference variable to signed and use a signed comparison. Using unsigned types here didn't prevent overflow bugs but just reduced them. Overflow occurs with n repeats at the silly repeat period of [U]INT_MAX / n. The old countdown had an off by 1 error, and the simplifications would simply count down 1 to 0 and not need to accumulate possibly-large repeat repeats. PR: 226968 Sponsored by: Mellanox Technologies Changes: _U stable/11/ stable/11/sys/dev/usb/input/ukbd.c --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri Feb 21 09:09:48 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A3A062576FD for ; Fri, 21 Feb 2020 09:09:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 48P5JC2ZRhz4Rp4 for ; Fri, 21 Feb 2020 09:09:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 198A82576FC; Fri, 21 Feb 2020 09:09:47 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1102A2576FB for ; Fri, 21 Feb 2020 09:09:47 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48P5JB6BkRz4Rmv for ; Fri, 21 Feb 2020 09:09:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 75AF88696 for ; Fri, 21 Feb 2020 09:09:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 01L99kqK001338 for ; Fri, 21 Feb 2020 09:09:46 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 01L99kak001334 for usb@FreeBSD.org; Fri, 21 Feb 2020 09:09:46 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 241316] usb: Corsair Gaming Strafe Keyboard works at loader, but not install Date: Fri, 21 Feb 2020 09:09:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 12.0-RELEASE X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Feb 2020 09:09:48 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241316 Hans Petter Selasky changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|Open |Closed --- Comment #9 from Hans Petter Selasky --- Please re-open if this issue is not fixed in latest 11- and 12-stable. https://svnweb.freebsd.org/changeset/base/358211 --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri Feb 21 09:13:37 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E067A257B3B for ; Fri, 21 Feb 2020 09:13:37 +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) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48P5Nc4QmLz4WFK; Fri, 21 Feb 2020 09:13:36 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 13ED8260172; Fri, 21 Feb 2020 10:13:32 +0100 (CET) Subject: Re: RTL8192EU USB Wifi error: rtwn0: r92e_power_off: failed to block Tx queues To: Kris G Cc: freebsd-usb@freebsd.org, Kevin Lo References: <7797a517-7881-ed8c-5f29-ad0f4241e631@selasky.org> From: Hans Petter Selasky Message-ID: <2a29469e-005b-d4e3-ce8a-0783a0ca58d6@selasky.org> Date: Fri, 21 Feb 2020 10:13:17 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.4.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48P5Nc4QmLz4WFK 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 [-4.96 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-2.66)[ip: (-9.21), ipnet: 2a01:4f8::/29(-2.53), asn: 24940(-1.55), country: DE(-0.02)]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Feb 2020 09:13:38 -0000 On 2020-02-21 06:47, Kris G wrote: > rtwn0: detached Hi, Likely the device's firmware crashes/restarts and the device detaches. Maybe you can do a usbdump of all traffic, to isolate exactly which command causes this. usbdump -i usbusX -f Y -s 65536 -vvv X and Y are numbers after ugen. Run this before starting wpa supplicant. --HPS4 From owner-freebsd-usb@freebsd.org Sat Feb 22 01:35:07 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7FB9624ACDF for ; Sat, 22 Feb 2020 01:35:07 +0000 (UTC) (envelope-from netsick@gmail.com) Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48PW964PY4z4TQ8; Sat, 22 Feb 2020 01:35:06 +0000 (UTC) (envelope-from netsick@gmail.com) Received: by mail-oi1-x235.google.com with SMTP id v19so3515400oic.12; Fri, 21 Feb 2020 17:35:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Sl/LYSdmjAECQvFvtP5huOX1dOqA6dMr9dGiXcXU69k=; b=rTuvCenOJPqYCDmW5Ym7YYSoGpSRZ7OqQDtacu/LBUfViVakOAXTrvRO1R6q5gelrp fOhXtsHtfF+7bONJMUoFnjvw7Z6jCv4vJSZ1AnsXyOf9gqVjb+S7aWuwcdZL+dV8TaqQ vIyO6hP1q/WvFLn1XVgrEt/7Sie9+4L3RToo/juycI80uPZP+jzw1JkWL47sjma4setk F3/LzDXDLYdKxUAbNYrBu3qSiZ1mvyAiKpJgJohM9wbz52AiBHZPNmafnCSM33N6KUPF uYrzetPhqKd8rRuaIwSEB7o8VgIk41qYY0OicLUaqwkmnM+k7xn5uXl7M1371GBf9JNQ o0Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Sl/LYSdmjAECQvFvtP5huOX1dOqA6dMr9dGiXcXU69k=; b=KD9T2H33fTip6mjUUBSgbm8ICfry0Ky5MWB3bwa9msMuzJem7uxSRhm/3CJnbGeCjq iAEprwm9qOVspS5TiEVHGwTecXIG/wLF1TgTHyIbtthyHlYkUyyUaP+7OIgzZTTODR+P xVL1oJcQPDf+LTWM9/lazBoScmSECYq7d6qLHgVFQcibWnoYnFzgL3VaTzRMf9SiqGbc 2PhYSv0IJQoZl743C59N1kEctPmA8V7XDrKXToJmRlrzLhEQJ0xBh4EGnglfTMzSTvLW Xu7rsBV9AKfCoeK4y3gVULx7hubBVoofnR7q3/fCVO6yAcnrdqVsLd+k9Ca4QSBv+No3 X3lA== X-Gm-Message-State: APjAAAWY7r1xbJnO6CrwfVKAqEHbAydGNrJw47hHzbSqWio00GEBpoc4 UJgDU3bNlf06aTNB8znBqNRRfDWAwtwlN3oyzCT4fghl X-Google-Smtp-Source: APXvYqyE3rKDteZE+pzOyX1e69VEkQPMoUP8TOdMAq/THKJS1MPVnRvygrTUDGtmk+T7j1HYY3pbkFKZGwUVY8d4198= X-Received: by 2002:aca:d954:: with SMTP id q81mr4445172oig.157.1582335305125; Fri, 21 Feb 2020 17:35:05 -0800 (PST) MIME-Version: 1.0 References: <7797a517-7881-ed8c-5f29-ad0f4241e631@selasky.org> <2a29469e-005b-d4e3-ce8a-0783a0ca58d6@selasky.org> In-Reply-To: <2a29469e-005b-d4e3-ce8a-0783a0ca58d6@selasky.org> From: Kris G Date: Sat, 22 Feb 2020 11:35:03 +1000 Message-ID: Subject: Re: RTL8192EU USB Wifi error: rtwn0: r92e_power_off: failed to block Tx queues To: Hans Petter Selasky Cc: freebsd-usb@freebsd.org, Kevin Lo X-Rspamd-Queue-Id: 48PW964PY4z4TQ8 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=rTuvCenO; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of netsick@gmail.com designates 2607:f8b0:4864:20::235 as permitted sender) smtp.mailfrom=netsick@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE(0.00)[ip: (-8.99), ipnet: 2607:f8b0::/32(-1.88), asn: 15169(-1.67), country: US(-0.05)]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[5.3.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Feb 2020 01:35:07 -0000 Part of the usbdump below around the point it detaches and starts logging ERR=IOERROR rather than ERR=0 11:23:21.831625 usbus0.5 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=4,IVAL=0,ERR=0 frame[0] WRITE 8 bytes frame[1] READ 1 bytes 0000 00 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |. | flags 0 <0> status 0xca1a1 11:23:21.831629 usbus0.5 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=2,SLEN=12,IVAL=0 frame[0] WRITE 8 bytes 0000 40 05 28 00 00 00 01 00 -- -- -- -- -- -- -- -- |@.(..... | frame[1] WRITE 1 bytes 0000 00 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |. | flags 0 <0> status 0xea1a3 11:23:21.831751 usbus0.5 DONE-CTRL-EP=00000000,SPD=HIGH,NFR=2,SLEN=0,IVAL=0,ERR=0 frame[0] WRITE 8 bytes frame[1] WRITE 1 bytes flags 0 <0> status 0xea1a1 11:23:21.831755 usbus0.5 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0 frame[0] WRITE 8 bytes 0000 C0 05 78 00 00 00 04 00 -- -- -- -- -- -- -- -- |..x..... | frame[1] READ 4 bytes flags 0 <0> status 0xca1a3 11:23:21.831875 usbus0.5 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=4,IVAL=0,ERR=0 frame[0] WRITE 8 bytes frame[1] READ 4 bytes 0000 2A 00 1E 0A -- -- -- -- -- -- -- -- -- -- -- -- |*... | flags 0 <0> status 0xca1a1 11:23:21.831879 usbus0.5 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=2,SLEN=12,IVAL=0 frame[0] WRITE 8 bytes 0000 40 05 78 00 00 00 04 00 -- -- -- -- -- -- -- -- |@.x..... | frame[1] WRITE 4 bytes 0000 2A 00 1E 0A -- -- -- -- -- -- -- -- -- -- -- -- |*... | flags 0 <0> status 0xea1a3 11:23:21.832000 usbus0.5 DONE-CTRL-EP=00000000,SPD=HIGH,NFR=2,SLEN=0,IVAL=0,ERR=0 frame[0] WRITE 8 bytes frame[1] WRITE 4 bytes flags 0 <0> status 0xea1a1 11:23:21.832004 usbus0.5 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0 frame[0] WRITE 8 bytes 0000 C0 05 05 00 00 00 01 00 -- -- -- -- -- -- -- -- |........ | frame[1] READ 1 bytes flags 0 <0> status 0xca1a3 11:23:21.832126 usbus0.5 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=4,IVAL=0,ERR=0 frame[0] WRITE 8 bytes frame[1] READ 1 bytes 0000 0C -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |. | flags 0 <0> status 0xca1a1 11:23:21.832130 usbus0.5 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=2,SLEN=12,IVAL=0 frame[0] WRITE 8 bytes 0000 40 05 05 00 00 00 01 00 -- -- -- -- -- -- -- -- |@....... | frame[1] WRITE 1 bytes 0000 04 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |. | flags 0 <0> status 0xea1a3 11:23:21.832751 usbus0.5 DONE-CTRL-EP=00000000,SPD=HIGH,NFR=2,SLEN=0,IVAL=0,ERR=IOERROR frame[0] WRITE 8 bytes frame[1] WRITE 1 bytes flags 0 <0> status 0xaa1a5 11:23:21.908976 usbus0.5 SUBM-CTRL-EP=00000000,SPD=HIGH,NFR=2,SLEN=12,IVAL=0 frame[0] WRITE 8 bytes 0000 40 05 05 00 00 00 01 00 -- -- -- -- -- -- -- -- |@....... | frame[1] WRITE 1 bytes 0000 04 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- |. | flags 0 <0> status 0xca1a3 11:23:21.909533 usbus0.5 DONE-CTRL-EP=00000000,SPD=HIGH,NFR=1,SLEN=0,IVAL=0,ERR=IOERROR frame[0] WRITE 0 bytes flags 0 <0> status 0x8a1a5 On Fri, Feb 21, 2020 at 7:13 PM Hans Petter Selasky wrote: > On 2020-02-21 06:47, Kris G wrote: > > rtwn0: detached > > Hi, > > Likely the device's firmware crashes/restarts and the device detaches. > > Maybe you can do a usbdump of all traffic, to isolate exactly which > command causes this. > > usbdump -i usbusX -f Y -s 65536 -vvv > > X and Y are numbers after ugen. > > Run this before starting wpa supplicant. > > --HPS4 >