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 >