From owner-freebsd-wireless@freebsd.org Sat Apr 13 19:35:46 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D07F515816F6 for ; Sat, 13 Apr 2019 19:35:45 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AC40A8FA5E; Sat, 13 Apr 2019 19:35:44 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-wm1-x32d.google.com with SMTP id r186so2947470wmf.1; Sat, 13 Apr 2019 12:35:44 -0700 (PDT) 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=06zGxVgnOgCKJEt6Srnxkb9L01xtDqDTxP5juPJukRU=; b=R+pOY6RX8J91n0SYQu6200jAY7Awok1d1u8rOXx5PUsRmA3qS0qO2gw5k+oWrN4T+l DPD+Nxy7Ixtc424Wi0affOVbOWCZgGvFhHyJbZqNl0juaZ92FSUG2Ql/KN3kRXN/Zv8b 8wvxS76N35KPqqhT2uliwPX3IFWXnsbMB5VB6l5SqTe+UGrYoxcXGBGo/61X7A3NgS9m 5Z32TvlOETZbYuMQeifwkTsokEZ5yfTzywaVALZu4MsbD6yHq8LpUwaaJRjWt2oCbDi/ pxrxB0EItc93++t+qmr5ntCNcP5GK1QCu13Lqlx7am48v/Phwb3uv5kd9kCLl5cqbHlP d7SA== 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=06zGxVgnOgCKJEt6Srnxkb9L01xtDqDTxP5juPJukRU=; b=kMNIDTwXErSji7qgChdScPWB/k1a3C8YyAGi5T5Assxo1QTPBGQ9buljIli3VEtLM9 gs1wgHXcDjxA2Oxm1yUV6sFo3nHhZ7wzLt7qQLGsnvchVNWwgfIqBMuf3rcYdCQw3JV0 ElOHyy7CXz9QI9T2r7KQv8KNeeSjJdDBHpAFoOoqpeeOW3hRma36MzzyOq04Loe68qEw ivzC7VNqndM/LkM7hR1XdbuyF49EgyTIFIhNR+2cu1eqPUWyQuTYFvYJ2ElMTvC9b3UL x9yui1h2TBWpn52qD2xphGSFbWG7wv2pmAuhFAthYDCNfxNj6uVhzmpQTHq6t+vrhiEK 84iA== X-Gm-Message-State: APjAAAVS2R+ogXKYQxZWUCQ9gdFDggGLYi/xwONhUgNBDlPUdfIW+O05 YkuUl5FZ/0J1o6fhFOueDwJDTI6MVUO4h4TgcuVF2g== X-Google-Smtp-Source: APXvYqzK4f3QbUNI4WUIZLC8F5rcLtwb+p8UpWAAORpjd+YKn3jh2be5qPgThgcV2xEEyIq1zybA7zdBkiOWFwx7QsQ= X-Received: by 2002:a1c:99d5:: with SMTP id b204mr15465999wme.95.1555184142829; Sat, 13 Apr 2019 12:35:42 -0700 (PDT) MIME-Version: 1.0 References: <20190411092758.GA6899@FreeBSD.org> <20190411104647.GA3864@c720-r342378> <20190411125242.GA64046@FreeBSD.org> <20190411131328.GA4909@c720-r342378> <20190411131859.GA17806@FreeBSD.org> <20190411142350.GA71446@FreeBSD.org> <20190412171218.GA16463@FreeBSD.org> <20190413142006.GA59512@FreeBSD.org> <20190413191419.GB13742@FreeBSD.org> In-Reply-To: <20190413191419.GB13742@FreeBSD.org> From: Adrian Chadd Date: Sat, 13 Apr 2019 12:35:30 -0700 Message-ID: Subject: Re: Atheros AR5B22 WLAN+Bluetooth support on FreeBSD To: Alexey Dokuchaev Cc: "freebsd-wireless@freebsd.org" , Hans Petter Selasky X-Rspamd-Queue-Id: AC40A8FA5E X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=R+pOY6RX; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2a00:1450:4864:20::32d as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-6.60 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-0.76)[-0.762,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; 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]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE(-2.83)[ip: (-9.50), ipnet: 2a00:1450::/32(-2.39), asn: 15169(-2.19), country: US(-0.06)]; RCVD_IN_DNSWL_NONE(0.00)[d.2.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Apr 2019 19:35:46 -0000 On Sat, 13 Apr 2019 at 12:14, Alexey Dokuchaev wrote: > On Sat, Apr 13, 2019 at 11:44:25AM -0700, Adrian Chadd wrote: > > Hm, is this a problem with our usb3 stack itself? > > > > If you send me a pull request against ath3k I'll merge it into my git > > tree just for completeness. > > If you tell me how to implement Linuxish usleep_range() correctly in our > userland, I can do that. :-) > usleep_range() is just the same as usleep() at either min, max or a value in between. It's just a hint to the scheduler that says "look, don't sleep exactly for this amount of time to wake me up; here are my bounds that are fine so if you schedule something else before then don't forget about me." Just pick a value in between. :-) > > > Maybe we need to loop in hps@ with a bunch of usbdump output to see what > > the transactions look like... > > CC'ed (sorry for the lack of context hps@, but it's hard with Adrian's > top-post replies). Please see the archives for the gory details. > Sorry, life is busy nowdays - I was making breakfast and keeping two kids from eating things they shouldn't. Top posting is quick. :) -a