From owner-freebsd-current@freebsd.org Sun Oct 2 17:15:51 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ECC9CAF15BE; Sun, 2 Oct 2016 17:15:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x22a.google.com (mail-io0-x22a.google.com [IPv6:2607:f8b0:4001:c06::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C42F56D7; Sun, 2 Oct 2016 17:15:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-io0-x22a.google.com with SMTP id e66so101352936iod.1; Sun, 02 Oct 2016 10:15:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=CjQ8pUtRofyoGPvL+myDP+JcExP/txPUYlk7M/MU3P4=; b=pXfPwwLccxocC+8dilQkyXn22CqOabQv1GCWSGHVMS2ovu5yD5rARxMpXd/B9yQUwv RbipcABYOmiOZLben/636h8gFsApRiE76r3L2ltISuXkcXuMMR0owDii3ichh5bvsIJB cIuAg/YgmDyZq+NQuyGcMJ4BGo530nSu72Rn4zCBhJheyF7qK/TKc9Er1LoVjEKrgGhr ImcMvQPnrLluXET/ENEZZB5q+JRPQLYwXgGx3zLccsu4RU+by0UASmg+GZdS4ElHsT7C gyaWLFDmBPiFcCyD9ynAxS+O3Je+EW0i2zKjj490KGLxobhWis5wVx+zWGUNKLjdMyBG JNnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=CjQ8pUtRofyoGPvL+myDP+JcExP/txPUYlk7M/MU3P4=; b=nNLecA8GyQX4nH/ne+YzM64e7XcIEnBPqsnRwXwsVoHJREJULNPReQMdPGXVzDQ279 PJ51ORtis0ipm6HV+AtKs3Y96Pn+Gn9yxKBIaGP9M27Mkui0hZ7BKtbJ4ZoNgL8bRLBX WzlXkFLqK6La2S4kXAtLuqY9UlvKMDm7vwSF8Md4SMQeZGInkW+hQpXzZ0sh/2Mfk1TX kLEdNMtSuIJXH59jSVXvTObLtVrjNpKHKC33fd8J0fJdaHmfVevfy7jLP7YbK/WQinKu 8+S3TdB0+R6MHCaMfyVRSc6jKMGusDufRgidNUbsblO15/LkxALoLSkzAjL8WeKgldVt CUXQ== X-Gm-Message-State: AA6/9Rk5HFJOu00iNdMvTUCaGxG4r2GSXw+fyL5dxEovvZG9gcDY9f3TZ0XLc8T2r5p18zFHdpkTWLk5XImVdQ== X-Received: by 10.107.6.166 with SMTP id f38mr1005131ioi.129.1475428550578; Sun, 02 Oct 2016 10:15:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.36.141.129 with HTTP; Sun, 2 Oct 2016 10:15:49 -0700 (PDT) In-Reply-To: <20161001150924.GA48641@ns.kevlo.org> References: <20160922092442.GA72044@ns.kevlo.org> <20160923015840.GA77979@ns.kevlo.org> <20160923071830.GA79146@ns.kevlo.org> <20161001150924.GA48641@ns.kevlo.org> From: Adrian Chadd Date: Sun, 2 Oct 2016 10:15:49 -0700 Message-ID: Subject: Re: urtwn(4) / rtwn(4) drivers are merged - call for review / testing To: Kevin Lo Cc: Andriy Voskoboinyk , "freebsd-wireless@freebsd.org" , "freebsd-current@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Oct 2016 17:15:52 -0000 hi, can you turn on debugging? Do you see RX frames? -a On 1 October 2016 at 08:09, Kevin Lo wrote: > Strange, rtwn(4) stops working. I tried to scan for the available networ= k, > but it just returns empty results. > > On Fri, Sep 23, 2016 at 02:44:13PM +0300, Andriy Voskoboinyk wrote: >> >> Fri, 23 Sep 2016 10:18:30 +0300 =D0=B1=D1=83=D0=BB=D0=BE =D0=BD=D0=B0=D0= =BF=D0=B8=D1=81=D0=B0=D0=BD=D0=BE Kevin Lo : >> >> Few more questions: >> 1) does it work with h/w encryption support? (enabled by default) >> (if 'yes' - I will remove 'hardware crypto enabled' warning). >> 2) is there rate control support? (wlandebug -i wlan0 rate ; then transm= it >> something - if it works then AMRR will print it's current status >> periodically) >> 3) can you test some disabled capabilities? (ad-hoc/AP modes, 11n) >> (see r92ce_adj_devcaps() in sys/dev/rtwn/rtl8192c/pci/r92ce_attach.c). >> >> > It works for me, thanks :) >> > >> > Kevin >> > >> > On Fri, Sep 23, 2016 at 09:08:15AM +0300, Andriy Voskoboinyk wrote: >> >> >> >> Fri, 23 Sep 2016 04:58:40 +0300 =D0=B1=D1=83=D0=BB=D0=BE =D0=BD=D0=B0= =D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=BE Kevin Lo >> >> : >> >> >> >> Thanks for the log file, >> >> >> >> Tx 'device timeouts' should be fixed in >> >> https://github.com/s3erios/rtwn/commit/f78d51b6ed8590e3aeb65fbf616aa7= 67034a89f5 >> >> (currently I'm reviewing PCI-specific code to see if there are any >> >> additional >> >> issues - e.g., there are no Rx events in the log file). >> >> >> >> > On Thu, Sep 22, 2016 at 01:54:21PM +0300, Andriy Voskoboinyk wrote: >> >> >> >> >> >> Thu, 22 Sep 2016 12:24:42 +0300 =D0=B1=D1=83=D0=BB=D0=BE =D0=BD=D0= =B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=BE Kevin Lo >> >> >> : >> >> >> >> >> >> Hi, >> >> >> >> >> >> So, the driver was fully tested. Thanks! >> >> >> Can you set dev.rtwn.0.debug=3D0x829f for RTL8188CE to see how big >> >> >> the problem is? >> >> > >> >> > Sure. Here you go >> >> https://people.freebsd.org/~kevlo/rtl8188ce-debug.txt >> >> > >> >> > Thanks, >> >> > Kevin >> >> > >> >> >> > Hi Andriy, >> >> >> > >> >> >> > First of all, THANK YOU! You're doing amazing work! >> >> >> > Second, I've done some testing on the following devices, >> >> downloading >> >> >> > FreeBSD-12.0-CURRENT-amd64-20160809-r303880-disc1.iso from >> >> >> > ftp.freebsd.org: >> >> >> > >> >> >> > - ASUS USB-N10 NANO (RTL8188CUS): >> >> >> > rtwn0: > >> addr >> >> >> > 3> on usbus0 >> >> >> > rtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R >> >> >> > >> >> >> > - TP-Link TL-WN725N v2 (RTL8188EU): >> >> >> > rtwn0: = on >> >> >> > usbus0 >> >> >> > rtwn0: MAC/BB RTL8188EU, RF 6052 1T1R >> >> >> > >> >> >> > - D-Link DWA-131 (RTL8192CU): >> >> >> > rtwn0: > >> addr >> >> >> > 3> on usbus0 >> >> >> > rtwn0: MAC/BB RTL8192CU, RF 6052 2T2R >> >> >> > >> >> >> > - TP-Link Archer T4U (RTL8812AU): >> >> >> > rtwn0: = on >> >> >> > usbus0 >> >> >> > rtwn0: MAC/BB RTL8812AU, RF 6052 2T2R >> >> >> > >> >> >> > - D-Link DWA-171 rev A1 (RTL8821AU): >> >> >> > rtwn0: <802.11n WLAN Adapter> on usbus0 >> >> >> > rtwn0: MAC/BB RTL8821AU, RF 6052 1T1R >> >> >> > >> >> >> > - RTL8188CE mini pcie: >> >> >> > rtwn0: port 0xd000-0xd0ff mem >> >> >> > 0x90800000-0x90803fff irq 17 at device 0.0 on pci1 >> >> >> > rtwn0: r92ce_attach: warning: hardware crypto enabled >> >> >> > rtwn0: MAC/BB RTL8188CE, RF 6052 1T1R >> >> >> > >> >> >> > All seems to be ok, except RTL8188CE PCIe adapter doesn't work: >> >> >> > >> >> >> > rtwn0: r92ce_post_init: warning: net80211 ratectl is used >> >> >> > rtwn0: device timeout >> >> >> > >> >> >> > Kevin >> >> >> > >> >> >> > On Mon, Sep 19, 2016 at 04:26:38PM +0300, Andriy Voskoboinyk wro= te: >> >> >> >> >> >> >> >> Thu, 01 Sep 2016 19:29:03 +0300 =D0=B1=D1=83=D0=BB=D0=BE =D0=BD= =D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BD=D0=BE Andriy Voskoboinyk >> >> >> >> : >> >> >> >> >> >> >> >> Now it resides on https://github.com/s3erios/freebsd-rtwn >> >> (integrated >> >> >> >> into src tree, so it can be built with 'make buildkernel' / 'ma= ke >> >> >> >> buildworld'). >> >> >> >> >> >> >> >> This the last stage; once all reported issues will be resolved, >> >> I'm >> >> >> >> going to merge it into HEAD. >> >> >> >> >> >> >> >> > Hi everyone, >> >> >> >> > >> >> >> >> > rtwn(4), urtwn(4) and urtwm (from previous emails) drivers we= re >> >> >> merged >> >> >> >> > into a >> >> >> >> > single rtwn driver (plus rtwn_usb / rtwn_pci device glue); th= e >> >> >> code is >> >> >> >> > available on https://github.com/s3erios/rtwn repository. Amon= g >> >> >> >> bugfixes / >> >> >> >> > code deduplication, there some new features too: >> >> >> >> > >> >> >> >> > 1) multi-vap support (one any wireless interface + one STA >> >> >> interface + >> >> >> >> > any number of monitor mode interfaces). >> >> >> >> > 2) few new sysctls: >> >> >> >> > * dev.rtwn.#.crypto - controls how to use hardware crypto >> >> >> >> acceleration >> >> >> >> > * dev.rtwn.#.ratectl_selected >> >> >> >> > * dev.rtwn.#.ratectl - selects current 'rate control' >> >> algorithm >> >> >> >> > (currently only 'none' and 'net80211' are supported; RTL8192C= E >> >> >> needs >> >> >> >> > testing >> >> >> >> > with the last). >> >> >> >> > 3) (incomplete) power management support for RTL8188EU (requi= res >> >> >> >> > firmware). >> >> >> >> > 4) Short Guard Interval support. >> >> >> >> > >> >> >> >> > It's known to work with RTL8188CUS, RTL8188EU and RTL8821AU; >> >> >> however, >> >> >> >> > it was never tested with RTL8192CE or RTL8812AU. >> >> >> >> > >> >> >> >> > How-to-build: >> >> >> >> > 1) download / checkout the repository. >> >> >> >> > 2) apply 'patch-usbdevs.diff' against '/usr/src' >> >> >> >> > 3) build and install rtwn module: >> >> >> >> > cd $repository/sys/modules/rtwn && make && make install >> >> >> >> > 4) build and install rtwn_usb/rtwn_pci: >> >> >> >> > cd ../rtwn_usb && make && make install >> >> >> >> > cd ../rtwn_pci && make && make install >> >> >> >> > 5) unload previous && load current drivers: >> >> >> >> > kldunload if_urtwn if_rtwn >> >> >> >> > kldload /boot/modules/if_rtwn.ko >> >> /boot/modules/if_rtwn_usb.ko >> >> >> >> > /boot/modules/if_rtwn_pci.ko >> >> >> >> > 6) Use. >> >> >> >> _______________________________________________ >> >> >> >> freebsd-wireless@freebsd.org mailing list >> >> >> >> https://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> >> >> >> To unsubscribe, send any mail to >> >> >> >> "freebsd-wireless-unsubscribe@freebsd.org" >> >> >> >> >> >> >> >> >> _______________________________________________ >> >> freebsd-current@freebsd.org mailing list >> >> https://lists.freebsd.org/mailman/listinfo/freebsd-current >> >> To unsubscribe, send any mail to >> >> "freebsd-current-unsubscribe@freebsd.org" >> >> >> >> >> > _______________________________________________ >> > freebsd-wireless@freebsd.org mailing list >> > https://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> > To unsubscribe, send any mail to >> > "freebsd-wireless-unsubscribe@freebsd.org" >> >> > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= "