From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 00:00:55 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D409106566C for ; Sun, 11 Mar 2012 00:00:55 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 3B0388FC08 for ; Sun, 11 Mar 2012 00:00:54 +0000 (UTC) Received: by dald2 with SMTP id d2so3602813dal.13 for ; Sat, 10 Mar 2012 16:00:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Fld0UW750MwC1w871CU+PyhfnrZUo+ICu6M5uXcM0Og=; b=azIO0AFNfwezzm1jPm9DIrkHtogR0lRLGROowrhEHtHkfE71K1lAY5qVknOt7aIOs6 gxZc0+LyGPckpLLOCF3Y9IeAHuJ5WW8ZtAh+NPNOQfVqMRl1r7G2LFeNYb03kymU60di vILE6zKtlcqEF3vFUW0a1EbdiY0K4TV1NY+ioSzvqQOWlGlRW4YNcWz6FCEqM+EmmiW9 s3iYzaVf1Nb4c6yZK94R+IoE6/yIhYboUfLQlEqjPsCJOAiF3uMFWQSCxfVI771VoSPg lXeQtjQgc3qblqJIqKighBpn3+VZIsccyat783DWhJyHa3cSz2MBSGAvqVDcP7oMQ6Ut RXJw== MIME-Version: 1.0 Received: by 10.68.240.135 with SMTP id wa7mr11863542pbc.7.1331424054823; Sat, 10 Mar 2012 16:00:54 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Sat, 10 Mar 2012 16:00:54 -0800 (PST) In-Reply-To: <4F5BDF3C.8070605@unsane.co.uk> References: <4F59DD98.8080905@unsane.co.uk> <4F5AA149.8000904@unsane.co.uk> <4F5BDF3C.8070605@unsane.co.uk> Date: Sat, 10 Mar 2012 16:00:54 -0800 X-Google-Sender-Auth: r7XfDiFCHNtjDlmdZXbi8aTujkY Message-ID: From: Adrian Chadd To: Vincent Hoffman Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: (more) bugs fixed in -HEAD, AP mode is now mostly (again) stable! X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Mar 2012 00:00:55 -0000 On 10 March 2012 15:09, Vincent Hoffman wrote: > Ok now I'm past the panic commit, it ran fine for about 1/2 hour then I got > Mar 10 22:37:30 ostracod kernel: ath0: device timeout > and nothing more, which was unexpected. Right. Well, "device timeout" can occur for a lot of reasons. The reason it occurs is that a TX was scheduled but the TX completion doesn't come in, so the watchdog countdown fires. The cause can sometimes be because of an actual TX stall, but these days it's almost certainly a corner case during background scanning and/or some vap state transition. I know of at least one case where it's due to scan (where it does something odd - it transitions to scan, sends out a frame, then cancels interrupts so it can't receive the TX completion; no subsequent TX completion occurs within 5 seconds. So it's not REALLY a timeout, it's just bad packet handling.) I'll let the list know when I've fixed that. For now, please disable bgscan (ifconfig wlan0 -bgscan.) > I have > options ATH_ENABLE_11N > options AH_DEBUG > options ATH_DEBUG > options ATH_DIAGAPI > > in my kernel config. > > I've reverted to a working 11G version for now as my wife is watching > bbc iplayer on a tv connected via that machine at the moment ;) > If you have anything you would like me to try let me know and i'll try > it once shes's done. Is this in access point mode, or in station mode? > message log from boot till the timeout (then me rebooting) at > http://unsane.co.uk/message-ath-timeout.txt The next time it happens, please do this: sysctl dev.ath.0.txagg=1 and then check dmesg, email the list the output. I'd like to see if the TX queue is stuck. Then, force a scan: ifconfig wlan0 scan Even if it's in hostap mode, it'll cause a full TX queue flush and if 11n TX aggregation is stuck for whatever reason, it'll complain bitterly at you in dmesg. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 00:15:59 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6214106566C; Sun, 11 Mar 2012 00:15:59 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 41D418FC0A; Sun, 11 Mar 2012 00:15:59 +0000 (UTC) Received: from badger.unsane.co.uk (badger.unsane.co.uk [85.233.185.165]) (authenticated bits=0) by unsane.co.uk (8.14.5/8.14.5) with ESMTP id q2B0Fvmc041567 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 11 Mar 2012 00:15:57 GMT (envelope-from vince@unsane.co.uk) Message-ID: <4F5BEEBC.8010600@unsane.co.uk> Date: Sun, 11 Mar 2012 00:15:56 +0000 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Adrian Chadd References: <4F59DD98.8080905@unsane.co.uk> <4F5AA149.8000904@unsane.co.uk> <4F5BDF3C.8070605@unsane.co.uk> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: (more) bugs fixed in -HEAD, AP mode is now mostly (again) stable! X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Mar 2012 00:15:59 -0000 On 11/03/2012 00:00, Adrian Chadd wrote: > On 10 March 2012 15:09, Vincent Hoffman wrote: >> Ok now I'm past the panic commit, it ran fine for about 1/2 hour then I got >> Mar 10 22:37:30 ostracod kernel: ath0: device timeout >> and nothing more, which was unexpected. > Right. Well, "device timeout" can occur for a lot of reasons. > > The reason it occurs is that a TX was scheduled but the TX completion > doesn't come in, so the watchdog countdown fires. > > The cause can sometimes be because of an actual TX stall, but these > days it's almost certainly a corner case during background scanning > and/or some vap state transition. > > I know of at least one case where it's due to scan (where it does > something odd - it transitions to scan, sends out a frame, then > cancels interrupts so it can't receive the TX completion; no > subsequent TX completion occurs within 5 seconds. So it's not REALLY a > timeout, it's just bad packet handling.) I'll let the list know when > I've fixed that. > > For now, please disable bgscan (ifconfig wlan0 -bgscan.) I thought I had but i'll make sure. > >> I have >> options ATH_ENABLE_11N >> options AH_DEBUG >> options ATH_DEBUG >> options ATH_DIAGAPI >> >> in my kernel config. >> >> I've reverted to a working 11G version for now as my wife is watching >> bbc iplayer on a tv connected via that machine at the moment ;) >> If you have anything you would like me to try let me know and i'll try >> it once shes's done. > Is this in access point mode, or in station mode? Station mode. AP is a Netgear DGN3500 > >> message log from boot till the timeout (then me rebooting) at >> http://unsane.co.uk/message-ath-timeout.txt > The next time it happens, please do this: > > sysctl dev.ath.0.txagg=1 > > and then check dmesg, email the list the output. I'd like to see if > the TX queue is stuck. > > Then, force a scan: > > ifconfig wlan0 scan > > Even if it's in hostap mode, it'll cause a full TX queue flush and if > 11n TX aggregation is stuck for whatever reason, it'll complain > bitterly at you in dmesg. Will do. Vince > > Thanks, > > > Adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 01:42:28 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5DBB106566C; Sun, 11 Mar 2012 01:42:28 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 52EC88FC15; Sun, 11 Mar 2012 01:42:28 +0000 (UTC) Received: from badger.unsane.co.uk (badger.unsane.co.uk [85.233.185.165]) (authenticated bits=0) by unsane.co.uk (8.14.5/8.14.5) with ESMTP id q2B1gRVa004835 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 11 Mar 2012 01:42:27 GMT (envelope-from vince@unsane.co.uk) Message-ID: <4F5C0302.8090403@unsane.co.uk> Date: Sun, 11 Mar 2012 01:42:26 +0000 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Adrian Chadd References: <4F59DD98.8080905@unsane.co.uk> <4F5AA149.8000904@unsane.co.uk> <4F5BDF3C.8070605@unsane.co.uk> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: ath0 timeout was "Re: (more) bugs fixed in -HEAD, AP mode is now mostly (again) stable!" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Mar 2012 01:42:29 -0000 On 11/03/2012 00:00, Adrian Chadd wrote: > The next time it happens, please do this: sysctl dev.ath.0.txagg=1 and > then check dmesg, email the list the output. I'd like to see if the TX > queue is stuck. Then, force a scan: ifconfig wlan0 scan Even if it's > in hostap mode, it'll cause a full TX queue flush and if 11n TX > aggregation is stuck for whatever reason, it'll complain bitterly at > you in dmesg. Thanks, Adrian as requested. output of dmesg after a timeout, then me setting the sysctl http://unsane.co.uk/ath-timeout-dmesg.txt output after i then ran ifconfig wlan0 scan http://unsane.co.uk/ath-timeout-dmesg-with-scan.txt Please note that it hung twice in these dmesg, the first time I didnt see it until after it had recovered, I then ran sysctl dev.ath.0.txagg=1 but not the scan as it hung again shortly after (passing much traffic will do it it seems.) On the second hang I set the sysctl before the network connection came back, then ran ifconfig wlan0 scan. Output of the scan is SSID/MESH ID BSSID CHAN RATE S:N INT CAPS Radford_Net... 00:19:e0:a1:2f:f8 6 54M -93:-96 100 EPS RSN WPA ATH BTHomeHub2-... 00:21:04:c2:d6:c2 11 54M -93:-96 100 EPS RSN WPA WME HTCAP O2wireless9... 00:24:17:97:84:31 3 54M -92:-96 100 EP RSN virginmedia... a0:21:b7:e3:5b:89 5 54M -92:-96 100 EP RSN HTCAP WPS WPA WME vhoff e0:91:f5:48:5b:b9 5 54M -77:-96 100 EPS RSN WPA WME HTCAP ATH WPS Seems someone has switched channels to be on the same as me again :( ath and ath_pci complied into the kernel. Any more info needed let me know. Vince From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 01:58:23 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 139541065678 for ; Sun, 11 Mar 2012 01:58:23 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id D539A8FC1B for ; Sun, 11 Mar 2012 01:58:22 +0000 (UTC) Received: by dald2 with SMTP id d2so3689058dal.13 for ; Sat, 10 Mar 2012 17:58:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=y67YDojbNewDdBe3eqp6ue+NqU7nqb0poXDmoOgla+M=; b=D7A8vvAeiJ7nfp6MIrvt8jXirE2Ojw1t/2Y9jfZykVSrX/I9Jg2Ea5M0/JjLAQI18A u512yta3vV9eOLkvJ0ILs8SU4j3ivymWXzN5KACOav3HDQqlZHzeKrCKjvX6RzPNDY5A DYmy0RzLBwCb/OzoiYqgd7nOdWVNK50JABzlaMK8XhjKpHaWK/Dq7KdvO+If3OqDuYfE Vb6/OqS8Czj0BwSnDGkvfjrEWvUi2JHGV9PwuY37as2lozmDtFZYMdTtmTNxGKcby1Ae TviyIEinL89sWCSmyedU81SpwiKJbAcoZhQVffYSmHdPXb8Vky8idJ169MhQsb3to6SL a//Q== MIME-Version: 1.0 Received: by 10.68.234.195 with SMTP id ug3mr2891887pbc.4.1331431102657; Sat, 10 Mar 2012 17:58:22 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Sat, 10 Mar 2012 17:58:22 -0800 (PST) In-Reply-To: <4F5C0302.8090403@unsane.co.uk> References: <4F59DD98.8080905@unsane.co.uk> <4F5AA149.8000904@unsane.co.uk> <4F5BDF3C.8070605@unsane.co.uk> <4F5C0302.8090403@unsane.co.uk> Date: Sat, 10 Mar 2012 17:58:22 -0800 X-Google-Sender-Auth: foROS4f5pCEvfJ2G6XOhp28Mc88 Message-ID: From: Adrian Chadd To: Vincent Hoffman Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ath0 timeout was "Re: (more) bugs fixed in -HEAD, AP mode is now mostly (again) stable!" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Mar 2012 01:58:23 -0000 Hiya, Next time it happens, do the sysctl before the scan. The sysctl will tell me how deep each hardware TX queue is. I should likely add some further debugging to tell me how deep the per-TID software queues are; that'd be helpful here. What you're seeing there is something weird which is causing the TX frames to be queued in software/hardware and not be transmitted, to the point of buffer exhaustion. See "total TX buffers: 0" ? That means the frames can't go out for some reason. There's nothing in the hardware queue, so that also has me slightly concerned. I wonder if this is a problem with aggregation and buffer exhaustion. Hm, can you do "wlandebug +11n" and see if it's trying to exchange ADDBA frames (and failing) ? There's a known bug where Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 01:59:10 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2F1B106566C for ; Sun, 11 Mar 2012 01:59:10 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7E9A98FC0A for ; Sun, 11 Mar 2012 01:59:10 +0000 (UTC) Received: by dald2 with SMTP id d2so3689688dal.13 for ; Sat, 10 Mar 2012 17:59:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=6NArKXi0JTdeN6o/q16iny9Vl49MHH6vx2nmDR0SZHE=; b=k99c7tnCsCjVwek4sutatGUPWAqJqLeNd/jwREpRKSGK4CBeMSEJU63EG04QwFn3C/ nMWGMMoiUm4vLM50Rkx8rdRdeZDsjqzoBknY17MWNJcpkpjk751S6l9DemH3JjrLO5GH lm1WVLr0Ne24YNHrFjr6jLMrbFiMrNLQrYjKihomDmWbpXalYBs+U1GJSJh3OOfWRJES mIDZ7P9SAdKJzBd0iLj7YCn+wOy8lByt3Ydp8cKOQWh0Z+Vny2UemqDW1kgg90hAOKFF S7ybQY82z4pgrOW0na0algZKLTLfRUHh0eDMPYyfa/+F9V5couO7GHpa2hvBLSnLLlSv caWg== MIME-Version: 1.0 Received: by 10.68.232.2 with SMTP id tk2mr12422958pbc.68.1331431150283; Sat, 10 Mar 2012 17:59:10 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Sat, 10 Mar 2012 17:59:10 -0800 (PST) In-Reply-To: References: <4F59DD98.8080905@unsane.co.uk> <4F5AA149.8000904@unsane.co.uk> <4F5BDF3C.8070605@unsane.co.uk> <4F5C0302.8090403@unsane.co.uk> Date: Sat, 10 Mar 2012 17:59:10 -0800 X-Google-Sender-Auth: R3i91TsgC5Ug90BlK9uXIKWkFaU Message-ID: From: Adrian Chadd To: Vincent Hoffman Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ath0 timeout was "Re: (more) bugs fixed in -HEAD, AP mode is now mostly (again) stable!" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Mar 2012 01:59:10 -0000 Actually, that should show up in the ath statistics. sysctl dev.ath.0.stats | grep -v ': 0$' note the single space between ':' and '0'. That will return all of the non-zero statistics. Adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 02:23:06 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EF03F106564A for ; Sun, 11 Mar 2012 02:23:06 +0000 (UTC) (envelope-from venture37@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6CC108FC15 for ; Sun, 11 Mar 2012 02:23:05 +0000 (UTC) Received: by wern13 with SMTP id n13so411063wer.13 for ; Sat, 10 Mar 2012 18:23:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=iags5KlId3NGtombETBR/xwK2bd6Y56JDjY1wCxUfiQ=; b=PqDllHN8VT265k51CYsyNV7ajaNCqAloT/5iACexErKiwFuKK+Mij4jf0h9LQaFCa2 sHSJTeMzbA3MqYx9OtJAPcw3uyBg513nh4r4kg/+lMGqjgX6E1bQsPI/RA92v5bi3V3t 7PaSuClfHbqTjQ7FQMVXHwyrBw4OU225L9Zv+IRWiw0lmqUQTGaGv1c+6ENBOYMe7gOE YOee+QS84i6a+xXzPa//X26K7yLmLAYsk/biMrtkRMtMwMSUcq9fbJ0nJDMYYDjwQjrz wXTJqFUquR3oHsWluHUgZvTDP10oOfqnRokvnJDTqy/Sm2ACzFiBQI5gK1wEsAjRPshH sVfQ== Received: by 10.180.86.105 with SMTP id o9mr16431482wiz.4.1331432585168; Sat, 10 Mar 2012 18:23:05 -0800 (PST) Received: from Sevans-MacBook-Pro.local (cpc2-brig17-2-0-cust527.3-3.cable.virginmedia.com. [81.101.198.16]) by mx.google.com with ESMTPS id ff2sm35014263wib.9.2012.03.10.18.23.03 (version=SSLv3 cipher=OTHER); Sat, 10 Mar 2012 18:23:04 -0800 (PST) Message-ID: <4F5C0C86.7040503@gmail.com> Date: Sun, 11 Mar 2012 02:23:02 +0000 From: Sevan / Venture37 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: freebsd-wireless@freebsd.org References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> In-Reply-To: <4F5AC7CF.3090409@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Mar 2012 02:23:07 -0000 On 10/03/2012 03:17, matt wrote: > Hi Folks! Thanks for the patience :) Hi Matt, > Here's the patch for HEAD: > > https://docs.google.com/open?id=0B6YlMzJxarGbR1lSZ0hnTEFSREt6MU1MbGFKeURhUQ The patch you linked to above had several errors which prevented it from being built, I've cleaned things up & added them to a mercurial repo https://bitbucket.org/sevan/ral/overview (you're welcome to have write access Matt if you don't plan on hosting the files elsewhere) both directories just need to be copied to /usr/src/sys > You will see an invalid eeprom low-noise amplifier gain for low-noise > amplifiers you don't have. If it doesn't attach at all, send me your PCI > ids and we can add them to the attach code and see if they work. > > My expectation is everything from rt2860-rt3090 at least will work. The driver attaches but ifconfig wlan0 scan doesn't show any access points ral0: mem 0xf7f00000-0xf7f0ffff irq 17 at device 0.0 on pci3 ral0: invalid EEPROM LNA gain #2: 0x00 ral0: invalid EEPROM LNA gain #3: 0x00 ral0: invalid EEPROM powersave level ral0: MAC/BBP RT2860 (rev 0x28720200), RF RT3022 2.4G 2T2R ral0: skip channel 10, could not find extension channel ral0: skip channel 11, could not find extension channel ral0: skip channel 12, could not find extension channel ral0: skip channel 13, could not find extension channel ral0: skip channel 14, could not find extension channel ral0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps ral0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps ral0: 2T2R ral0: 11ng MCS 20MHz ral0: MCS 0-7: 6.5Mbps - 65Mbps ral0: MCS 8-15: 13Mbps - 130Mbps ral0: 11ng MCS 20MHz SGI ral0: MCS 0-7: 7Mbps - 72Mbps ral0: MCS 8-15: 14.5Mbps - 144.5Mbps ral0: 11ng MCS 40MHz: ral0: MCS 0-7: 13.5Mbps - 135Mbps ral0: MCS 8-15: 27Mbps - 270Mbps ral0: 11ng MCS 40MHz SGI: ral0: MCS 0-7: 15Mbps - 150Mbps ral0: MCS 8-15: 30Mbps - 300Mbps Sevan / Venture37 From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 04:07:17 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 35D671065670 for ; Sun, 11 Mar 2012 04:07:17 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id F308B8FC0A for ; Sun, 11 Mar 2012 04:07:16 +0000 (UTC) Received: by dald2 with SMTP id d2so3782358dal.13 for ; Sat, 10 Mar 2012 20:07:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=oCg5fq8sq61a2Lwpdz1vSat4LMkSwlnjYHUBasI+HKU=; b=LAcRYxvgQWFXV4Tn5ZpHqhTUnFsvDuP3RinCpJ6hGn9SUHFwsXgGI3E3YMED6pwlOK NvhVNVksrG8+DL6+o545IM72/HLub4b1AWwg0T8Q05UPhajEWlrXehnGVdJrF7Wn0rI0 3HQpk83kGljRQcOVAlk6VAF8SbJEnUV6KofGM1tsVFm+emzcZB4H8EIW8D155nzxu1g8 T+WqHCXbt4EGeVAQzl6wl3Bn1NfvSkRaCGJVR43ivblNdi039Tf6Yai80vVP72mPh4xW YKAs/LMtcZryjqOJ2rHXlLIGpis/3FWVbfLOgu+sVVdct6Iam7e+qGjr7PFC/syg1c01 tDjg== Received: by 10.68.129.100 with SMTP id nv4mr11953629pbb.109.1331438836808; Sat, 10 Mar 2012 20:07:16 -0800 (PST) Received: from flatline.local (70-36-223-154.dsl.dynamic.sonic.net. [70.36.223.154]) by mx.google.com with ESMTPS id w6sm6385350pbf.66.2012.03.10.20.07.14 (version=SSLv3 cipher=OTHER); Sat, 10 Mar 2012 20:07:15 -0800 (PST) Message-ID: <4F5C24ED.3090601@gmail.com> Date: Sat, 10 Mar 2012 20:07:09 -0800 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120218 Thunderbird/10.0.2 MIME-Version: 1.0 To: Sevan / Venture37 References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> In-Reply-To: <4F5C0C86.7040503@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Mar 2012 04:07:17 -0000 On 03/10/12 18:23, Sevan / Venture37 wrote: > On 10/03/2012 03:17, matt wrote: >> Hi Folks! Thanks for the patience :) > > Hi Matt, > >> Here's the patch for HEAD: >> >> https://docs.google.com/open?id=0B6YlMzJxarGbR1lSZ0hnTEFSREt6MU1MbGFKeURhUQ >> > > The patch you linked to above had several errors which prevented it > from being built, I've cleaned things up & added them to a mercurial > repo https://bitbucket.org/sevan/ral/overview (you're welcome to have > write access Matt if you don't plan on hosting the files elsewhere) > > both directories just need to be copied to /usr/src/sys > >> You will see an invalid eeprom low-noise amplifier gain for low-noise >> amplifiers you don't have. If it doesn't attach at all, send me your PCI >> ids and we can add them to the attach code and see if they work. >> >> My expectation is everything from rt2860-rt3090 at least will work. > > The driver attaches but ifconfig wlan0 scan doesn't show any access > points > > ral0: mem 0xf7f00000-0xf7f0ffff irq 17 at > device 0.0 on pci3 > ral0: invalid EEPROM LNA gain #2: 0x00 > ral0: invalid EEPROM LNA gain #3: 0x00 > ral0: invalid EEPROM powersave level > ral0: MAC/BBP RT2860 (rev 0x28720200), RF RT3022 2.4G 2T2R > ral0: skip channel 10, could not find extension channel > ral0: skip channel 11, could not find extension channel > ral0: skip channel 12, could not find extension channel > ral0: skip channel 13, could not find extension channel > ral0: skip channel 14, could not find extension channel > ral0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps > ral0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps > 24Mbps 36Mbps 48Mbps 54Mbps > ral0: 2T2R > ral0: 11ng MCS 20MHz > ral0: MCS 0-7: 6.5Mbps - 65Mbps > ral0: MCS 8-15: 13Mbps - 130Mbps > ral0: 11ng MCS 20MHz SGI > ral0: MCS 0-7: 7Mbps - 72Mbps > ral0: MCS 8-15: 14.5Mbps - 144.5Mbps > ral0: 11ng MCS 40MHz: > ral0: MCS 0-7: 13.5Mbps - 135Mbps > ral0: MCS 8-15: 27Mbps - 270Mbps > ral0: 11ng MCS 40MHz SGI: > ral0: MCS 0-7: 15Mbps - 150Mbps > ral0: MCS 8-15: 30Mbps - 300Mbps > > Sevan / Venture37 > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to > "freebsd-wireless-unsubscribe@freebsd.org" > What several errors? Compiles fine against head...are you compiling against 9? clang? Or is the patch dumping the modules and dev folder out early? Confused...it worked fine here...I admit my patch-fu is weak :). Looks good on attach though...I only have a 1t1r so it's nice to see something else attach. Thanks, Matt From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 04:15:17 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F160E1065673 for ; Sun, 11 Mar 2012 04:15:16 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id BC7338FC15 for ; Sun, 11 Mar 2012 04:15:16 +0000 (UTC) Received: by dald2 with SMTP id d2so3788372dal.13 for ; Sat, 10 Mar 2012 20:15:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=tcy2nugL7R0zAMu1Aua1Msi+nUYDakb+8CSAkuPqNQk=; b=r0OJJM1Q0BpazIOi+yqoti5SJXGa+svFK5dyobq5kIHxILxWdz8YklNvS9FKRs8Pc8 KpYgGKErGsCCSTOEvdaXPPwl9xct6ggyDd48QzQqNKRgROQjDzyk4Z7V3m+9MoLd6+82 ImH+YHjL0V8NT78FQgXtNLPys4YDxy56mLYoFpSMqTVO7kEvnl2rB+7TtYeEI/nPP0oB XikQlC1UcMjgoa36S4VfM+a7xwBhrr8l8TTzMpULRJh+/8FjcBF/Oi1HSl8XiuxBa3i6 n/8GVvHzToV6c7yULxD9uDTeUtvn6AhN5Sbv/cK+tQlMj5wsuFwYIWngJ5ykrbVU7Zkw GcvA== Received: by 10.68.219.164 with SMTP id pp4mr12964246pbc.2.1331439316386; Sat, 10 Mar 2012 20:15:16 -0800 (PST) Received: from flatline.local (70-36-223-154.dsl.dynamic.sonic.net. [70.36.223.154]) by mx.google.com with ESMTPS id y3sm7430540pbr.46.2012.03.10.20.15.14 (version=SSLv3 cipher=OTHER); Sat, 10 Mar 2012 20:15:15 -0800 (PST) Message-ID: <4F5C26CD.70701@gmail.com> Date: Sat, 10 Mar 2012 20:15:09 -0800 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120218 Thunderbird/10.0.2 MIME-Version: 1.0 To: Sevan / Venture37 References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> In-Reply-To: <4F5C0C86.7040503@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Mar 2012 04:15:17 -0000 On 03/10/12 18:23, Sevan / Venture37 wrote: > On 10/03/2012 03:17, matt wrote: >> Hi Folks! Thanks for the patience :) > > Hi Matt, > >> Here's the patch for HEAD: >> >> https://docs.google.com/open?id=0B6YlMzJxarGbR1lSZ0hnTEFSREt6MU1MbGFKeURhUQ >> > > The patch you linked to above had several errors which prevented it > from being built, I've cleaned things up & added them to a mercurial > repo https://bitbucket.org/sevan/ral/overview (you're welcome to have > write access Matt if you don't plan on hosting the files elsewhere) > > both directories just need to be copied to /usr/src/sys > >> You will see an invalid eeprom low-noise amplifier gain for low-noise >> amplifiers you don't have. If it doesn't attach at all, send me your PCI >> ids and we can add them to the attach code and see if they work. >> >> My expectation is everything from rt2860-rt3090 at least will work. > > The driver attaches but ifconfig wlan0 scan doesn't show any access > points > > ral0: mem 0xf7f00000-0xf7f0ffff irq 17 at > device 0.0 on pci3 > ral0: invalid EEPROM LNA gain #2: 0x00 > ral0: invalid EEPROM LNA gain #3: 0x00 > ral0: invalid EEPROM powersave level > ral0: MAC/BBP RT2860 (rev 0x28720200), RF RT3022 2.4G 2T2R > ral0: skip channel 10, could not find extension channel > ral0: skip channel 11, could not find extension channel > ral0: skip channel 12, could not find extension channel > ral0: skip channel 13, could not find extension channel > ral0: skip channel 14, could not find extension channel > ral0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps > ral0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps > 24Mbps 36Mbps 48Mbps 54Mbps > ral0: 2T2R > ral0: 11ng MCS 20MHz > ral0: MCS 0-7: 6.5Mbps - 65Mbps > ral0: MCS 8-15: 13Mbps - 130Mbps > ral0: 11ng MCS 20MHz SGI > ral0: MCS 0-7: 7Mbps - 72Mbps > ral0: MCS 8-15: 14.5Mbps - 144.5Mbps > ral0: 11ng MCS 40MHz: > ral0: MCS 0-7: 13.5Mbps - 135Mbps > ral0: MCS 8-15: 27Mbps - 270Mbps > ral0: 11ng MCS 40MHz SGI: > ral0: MCS 0-7: 15Mbps - 150Mbps > ral0: MCS 8-15: 30Mbps - 300Mbps > > Sevan / Venture37 > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to > "freebsd-wireless-unsubscribe@freebsd.org" > Re access points...try "ifconfig wlan0 create wlandev ral0" ifconfig ral0 up (just in case...) ifconfig wlan0 up sleep 1 ifconfig wlan0 scan I have seen it take a second for results to be available, i.e. "up scan" returns no list. Re: errors: Did you by chance build the module along with kernel or separately? Matt From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 04:18:31 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3026C106564A for ; Sun, 11 Mar 2012 04:18:31 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id F08E28FC08 for ; Sun, 11 Mar 2012 04:18:30 +0000 (UTC) Received: by dald2 with SMTP id d2so3790690dal.13 for ; Sat, 10 Mar 2012 20:18:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=ySV/4pZBVY2maOHBNwRwocRal/WVW0As9ceJluoRyw8=; b=P/1meBiKa4SCjIJal2j8BI4iLVus6h4OrEXwSjXvyUsCxLKbmPYxT5K/ggg6INZa9W Km1Akk/jMRjl6IPUZANyZFCLH2yApD4nJ1rwrCokDf90Bl1SXEDZFIWLv+zO6z1UIhka lK8XzwO1L4p2jl2d1yFf9yuOkZsFtvAxWqnVIX+Z57FLcpChUD/n+DSmk2l3RnfACQFx grqSEkvfSznW88eYKiQbmNcnItklomr3qFUA6xPPiWuRlXMIt9fOQWE60xJ++UU2Hxc4 R2q9CbAbOowgYZXICpdvzcUMmvHwxYh8Rhtvvak3oJ+VbYTfADDNjWtEZC8aPHt2+Jyj b5MQ== MIME-Version: 1.0 Received: by 10.68.240.135 with SMTP id wa7mr12812641pbc.7.1331439510611; Sat, 10 Mar 2012 20:18:30 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Sat, 10 Mar 2012 20:18:30 -0800 (PST) In-Reply-To: <4F5C26CD.70701@gmail.com> References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C26CD.70701@gmail.com> Date: Sat, 10 Mar 2012 20:18:30 -0800 X-Google-Sender-Auth: UJ9ZO49RGPBhV2el7UkrGY6OcxE Message-ID: From: Adrian Chadd To: matt Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Mar 2012 04:18:31 -0000 .. I wonder if "up scan" triggers some ath bugs that I haven't yet seen. Thanks for reminding me, I'll go check. Adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 13:10:55 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AD7C91065674; Sun, 11 Mar 2012 13:10:55 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 1C92C8FC1D; Sun, 11 Mar 2012 13:10:54 +0000 (UTC) Received: from badger.unsane.co.uk (badger.unsane.co.uk [85.233.185.165]) (authenticated bits=0) by unsane.co.uk (8.14.5/8.14.5) with ESMTP id q2BDAra5037688 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 11 Mar 2012 13:10:54 GMT (envelope-from vince@unsane.co.uk) Message-ID: <4F5CA45C.1010603@unsane.co.uk> Date: Sun, 11 Mar 2012 13:10:52 +0000 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Adrian Chadd References: <4F59DD98.8080905@unsane.co.uk> <4F5AA149.8000904@unsane.co.uk> <4F5BDF3C.8070605@unsane.co.uk> <4F5C0302.8090403@unsane.co.uk> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: ath0 timeout was "Re: (more) bugs fixed in -HEAD, AP mode is now mostly (again) stable!" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Mar 2012 13:10:55 -0000 On 11/03/2012 01:58, Adrian Chadd wrote: > Hiya, > > Next time it happens, do the sysctl before the scan. I did. > The sysctl will tell me how deep each hardware TX queue is. > > I should likely add some further debugging to tell me how deep the > per-TID software queues are; that'd be helpful here. > > What you're seeing there is something weird which is causing the TX > frames to be queued in software/hardware and not be transmitted, to > the point of buffer exhaustion. See "total TX buffers: 0" ? That means > the frames can't go out for some reason. There's nothing in the > hardware queue, so that also has me slightly concerned. > > I wonder if this is a problem with aggregation and buffer exhaustion. > Hm, can you do "wlandebug +11n" and see if it's trying to exchange > ADDBA frames (and failing) ? There's a known bug where 5 minutes worth of (working) output using wlandebug +11n Mar 11 13:01:58 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <1782:1845> (0 frames) rxseq 1775 tid 0 (retransmit) Mar 11 13:01:58 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <1782:1845> (0 frames) rxseq 1776 tid 0 (retransmit) Mar 11 13:01:58 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <1782:1845> (0 frames) rxseq 1777 tid 0 (retransmit) Mar 11 13:01:58 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <1782:1845> (0 frames) rxseq 1778 tid 0 (retransmit) Mar 11 13:01:58 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <1782:1845> (0 frames) rxseq 1779 tid 0 (retransmit) Mar 11 13:01:58 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <1782:1845> (0 frames) rxseq 1780 tid 0 (retransmit) Mar 11 13:01:58 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <1782:1845> (0 frames) rxseq 1781 tid 0 (retransmit) Mar 11 13:02:31 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <2578:2641> (0 frames) rxseq 2577 tid 0 (retransmit) Mar 11 13:02:34 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <2771:2834> (0 frames) rxseq 2770 tid 0 (retransmit) Mar 11 13:02:37 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <3287:3350> (0 frames) rxseq 3286 tid 0 (retransmit) Mar 11 13:02:38 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <3309:3372> (0 frames) rxseq 3308 tid 0 (retransmit) Mar 11 13:02:43 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <3622:3685> (0 frames) rxseq 3621 tid 0 (retransmit) Mar 11 13:02:47 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <3827:3890> (0 frames) rxseq 3826 tid 0 (retransmit) Mar 11 13:02:48 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <3875:3938> (0 frames) rxseq 3874 tid 0 (retransmit) Mar 11 13:02:55 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <18:81> (0 frames) rxseq 17 tid 0 (retransmit) Mar 11 13:02:56 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <169:232> (0 frames) rxseq 168 tid 0 (retransmit) Mar 11 13:02:57 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <441:504> (0 frames) rxseq 440 tid 0 (retransmit) Mar 11 13:02:58 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <684:747> (0 frames) rxseq 683 tid 0 (retransmit) Mar 11 13:03:01 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <1464:1527> (0 frames) rxseq 1461 tid 0 (retransmit) Mar 11 13:03:01 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <1464:1527> (0 frames) rxseq 1462 tid 0 (retransmit) Mar 11 13:03:01 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <1464:1527> (0 frames) rxseq 1463 tid 0 (retransmit) Mar 11 13:03:03 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <1847:1910> (0 frames) rxseq 1846 tid 0 (retransmit) Mar 11 13:03:16 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <2567:2630> (0 frames) rxseq 2566 tid 0 (retransmit) Mar 11 13:03:16 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <2684:2747> (0 frames) rxseq 2683 tid 0 (retransmit) Mar 11 13:03:17 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <2794:2857> (0 frames) rxseq 2793 tid 0 (retransmit) Mar 11 13:03:20 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <3917:3980> (0 frames) rxseq 3916 tid 0 (retransmit) Mar 11 13:03:21 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <4087:54> (0 frames) rxseq 4086 tid 0 (retransmit) Mar 11 13:03:22 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <521:584> (0 frames) rxseq 520 tid 0 (retransmit) Mar 11 13:03:23 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <653:716> (0 frames) rxseq 652 tid 0 (retransmit) Mar 11 13:03:23 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <654:717> (0 frames) rxseq 653 tid 0 (retransmit) Mar 11 13:03:23 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <871:934> (0 frames) rxseq 870 tid 0 (retransmit) Mar 11 13:03:24 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <1243:1306> (0 frames) rxseq 1242 tid 0 (retransmit) Mar 11 13:04:46 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <1876:1939> (0 frames) rxseq 1875 tid 0 (retransmit) Mar 11 13:05:02 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <1965:2028> (0 frames) rxseq 1964 tid 0 (retransmit) Mar 11 13:05:30 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <2130:2193> (0 frames) rxseq 2129 tid 0 (retransmit) Mar 11 13:05:33 ostracod kernel: wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <2189:2252> (0 frames) rxseq 2188 tid 0 (retransmit) Mar 11 13:06:10 ostracod wpa_supplicant[559]: WPA: Group rekeying completed with e0:91:f5:48:5b:b9 [GTK=TKIP] I'll try and force a timeout so I can give the same once its hung. Vince > > Thanks, > > > Adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 13:11:57 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F2E47106568C; Sun, 11 Mar 2012 13:11:57 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 62C288FC1B; Sun, 11 Mar 2012 13:11:57 +0000 (UTC) Received: from badger.unsane.co.uk (badger.unsane.co.uk [85.233.185.165]) (authenticated bits=0) by unsane.co.uk (8.14.5/8.14.5) with ESMTP id q2BDBuBq037756 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 11 Mar 2012 13:11:56 GMT (envelope-from vince@unsane.co.uk) Message-ID: <4F5CA49A.80507@unsane.co.uk> Date: Sun, 11 Mar 2012 13:11:54 +0000 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Adrian Chadd References: <4F59DD98.8080905@unsane.co.uk> <4F5AA149.8000904@unsane.co.uk> <4F5BDF3C.8070605@unsane.co.uk> <4F5C0302.8090403@unsane.co.uk> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: ath0 timeout was "Re: (more) bugs fixed in -HEAD, AP mode is now mostly (again) stable!" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Mar 2012 13:11:58 -0000 On 11/03/2012 01:59, Adrian Chadd wrote: > Actually, that should show up in the ath statistics. > > sysctl dev.ath.0.stats | grep -v ': 0$' > > note the single space between ':' and '0'. > > That will return all of the non-zero statistics. > > > Adrian Whilst its working. [root@ostracod ~]# sysctl dev.ath.0.stats | grep -v ': 0$' dev.ath.0.stats.ast_watchdog: 3 dev.ath.0.stats.ast_bmiss: 290 dev.ath.0.stats.ast_bmiss_phantom: 211 dev.ath.0.stats.ast_mib: 80476 dev.ath.0.stats.ast_tx_qstop: 6517 dev.ath.0.stats.ast_tx_xretries: 12 dev.ath.0.stats.ast_tx_longretry: 15995 dev.ath.0.stats.ast_tx_shortpre: 136190 dev.ath.0.stats.ast_tx_altrate: 893 dev.ath.0.stats.ast_rx_crcerr: 28622 dev.ath.0.stats.ast_rx_badcrypt: 1 dev.ath.0.stats.ast_per_cal: 1469 dev.ath.0.stats.ast_tx_raw: 193 dev.ath.0.stats.ast_tx_nobuf: 7 dev.ath.0.stats.ast_tx_raw_fail: 7 dev.ath.0.stats.ast_ani_cal: 440622 dev.ath.0.stats.ast_rx_agg: 75757 dev.ath.0.stats.ast_rx_pre_crc_err: 1497 dev.ath.0.stats.ast_rx_post_crc_err: 25 dev.ath.0.stats.ast_tx_swretries: 1368 dev.ath.0.stats.ast_tx_aggr_ok: 35838 dev.ath.0.stats.ast_tx_aggr_fail: 1356 dev.ath.0.stats.ast_rx_intr: 1052036 dev.ath.0.stats.ast_tx_intr: 187945 I'll try and do the same once its failed. Vince From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 15:55:54 2012 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B26A1065670; Sun, 11 Mar 2012 15:55:54 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 21F938FC12; Sun, 11 Mar 2012 15:55:54 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2BFtsUr068691; Sun, 11 Mar 2012 15:55:54 GMT (envelope-from adrian@freefall.freebsd.org) Received: (from adrian@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2BFtsYH068687; Sun, 11 Mar 2012 15:55:54 GMT (envelope-from adrian) Date: Sun, 11 Mar 2012 15:55:54 GMT Message-Id: <201203111555.q2BFtsYH068687@freefall.freebsd.org> To: adrian@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-wireless@FreeBSD.org From: adrian@FreeBSD.org Cc: Subject: Re: kern/163237: [ath] AR5416 as HostAP. Delays among clients when a client is in Power saving mode X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Mar 2012 15:55:54 -0000 Old Synopsis: AR5416 as HostAP. Delays among clients when New Synopsis: [ath] AR5416 as HostAP. Delays among clients when a client is in Power saving mode Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless Responsible-Changed-By: adrian Responsible-Changed-When: Sun Mar 11 15:55:21 UTC 2012 Responsible-Changed-Why: Reassign/update. http://www.freebsd.org/cgi/query-pr.cgi?pr=163237 From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 16:56:04 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 133851065673 for ; Sun, 11 Mar 2012 16:56:04 +0000 (UTC) (envelope-from venture37@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8C2CC8FC21 for ; Sun, 11 Mar 2012 16:56:03 +0000 (UTC) Received: by wern13 with SMTP id n13so866280wer.13 for ; Sun, 11 Mar 2012 09:56:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=WIE/92BMCPuA/O3qE3kRlGKJagqwDesXm2LO6KPvYDU=; b=CtRuQmIdXuKL7cwa1PvYvQRf0vsFGfFygSudjHN4E/QIf93KO8LVNdl5F9eu/DXF10 6AGu8B3cC65IdkyBqqXZIX0M/p+IB+tR8TsgQ0Y8511n0yxm2NLPQ/Yi3mpuAB0YnsQt r2g5UlVWoowvDCe8zwDhO48/lTwT9ZB02Hg03vCE3TwtBkhNzLNGWQ6MhzOf6WLRi74/ G4+xpl0yxhdLqPzLgf2e0290m9OZ5bP+3d634X/iNnqlyc2HzR4Y9dqeSA+SBDAMbMW/ OpEPsMroSxuZi2ryJITAYriiDuzq0hQwMWMtBviohx6sha3fetwIdj+kzwmhH/UtIjN6 qABw== Received: by 10.180.83.97 with SMTP id p1mr20543031wiy.19.1331484962482; Sun, 11 Mar 2012 09:56:02 -0700 (PDT) Received: from Sevans-MacBook-Pro.local (cpc2-brig17-2-0-cust527.3-3.cable.virginmedia.com. [81.101.198.16]) by mx.google.com with ESMTPS id gp8sm25838943wib.5.2012.03.11.09.56.00 (version=SSLv3 cipher=OTHER); Sun, 11 Mar 2012 09:56:01 -0700 (PDT) Message-ID: <4F5CD920.2000905@gmail.com> Date: Sun, 11 Mar 2012 16:56:00 +0000 From: Sevan / Venture37 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: freebsd-wireless@freebsd.org References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> In-Reply-To: <4F5C24ED.3090601@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Mar 2012 16:56:04 -0000 On 11/03/2012 04:07, matt wrote: > What several errors? Compiles fine against head...are you compiling > against 9? clang? > Or is the patch dumping the modules and dev folder out early? > Confused...it worked fine here...I admit my patch-fu is weak :). Cosmetic: Some files use CR/LF duplicate code in header files (updated a couple of hours ago) Show stoppers: in if_ral_pci.c the RT2860 includes, PCI_* constants & ral_rt2860_opns data structure declarations were truncated onto single lines in rt2860.c contained duplicate code which caused redeclaration errors during compilation > Looks good on attach though...I only have a 1t1r so it's nice to see > something else attach. I now understand why you mentioned APs running on channels above 9 :) On 11/03/2012 04:15, matt wrote: > Re access points...try "ifconfig wlan0 create wlandev ral0" > ifconfig ral0 up (just in case...) > ifconfig wlan0 up > sleep 1 > ifconfig wlan0 scan > > I have seen it take a second for results to be available, i.e. "up scan" returns no list. Didn't make any difference 3 access points, one in 802.11N & G mode with WPA2 personal running on channel 3, mifi running on channel 1 with WPA2 personal (running in B/G mode if I remember right & my macbook pro running on channel 5 with no encryption, unable to find anything. > Re: errors: > Did you by chance build the module along with kernel or separately? module is currently installed via a separate build but the errors happened during buildkernel. Sevan / Venture37 From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 20:10:13 2012 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AB1171065673 for ; Sun, 11 Mar 2012 20:10:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 95EA68FC12 for ; Sun, 11 Mar 2012 20:10:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2BKADlF000565 for ; Sun, 11 Mar 2012 20:10:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2BKADWd000564; Sun, 11 Mar 2012 20:10:13 GMT (envelope-from gnats) Date: Sun, 11 Mar 2012 20:10:13 GMT Message-Id: <201203112010.q2BKADWd000564@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org From: Adrian Chadd Cc: Subject: Re: kern/163318: [ath] ath(4) stops working X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Adrian Chadd 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: Sun, 11 Mar 2012 20:10:13 -0000 The following reply was made to PR kern/163318; it has been noted by GNATS. From: Adrian Chadd To: Joel Dahl Cc: bug-followup@freebsd.org Subject: Re: kern/163318: [ath] ath(4) stops working Date: Sun, 11 Mar 2012 13:07:56 -0700 Hi! On 11 March 2012 13:01, Joel Dahl wrote: > Some news... > > I updated from a Jan 18 CURRENT to a Feb 19 CURRENT some time ago and the > issue was gone. Adrian asked me to try to track down the revision that fixed > the problem, and that's what I've been doing for the last two weeks. Sweet! > Revision 231852 does not survive for very long. It dies as usual. I haven't > been able to make any revision before 231852 survive longer than 8 hours. > > Revision 231854 has survived my 12 hour testing period 3 times and I haven't > been able to crash any revision after 231854. > > Adrian, your commit to the ath driver (231854) seems to fix my ath problems. > Does that make sense to you? Nope. That just started shifting around locks. Can you please try 231852 with the debugging patch I threw you (that patched ieee80211_scan.c) and see if it complains? If that patch fixed anything, it just delayed things enough to hide what's going on... Adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 20:10:15 2012 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6C5B7106564A for ; Sun, 11 Mar 2012 20:10:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 573C98FC14 for ; Sun, 11 Mar 2012 20:10:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2BKAFkO000570 for ; Sun, 11 Mar 2012 20:10:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2BKAF9U000569; Sun, 11 Mar 2012 20:10:15 GMT (envelope-from gnats) Date: Sun, 11 Mar 2012 20:10:15 GMT Message-Id: <201203112010.q2BKAF9U000569@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org From: Joel Dahl Cc: Subject: Re: kern/163318: [ath] ath(4) stops working X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Joel Dahl 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: Sun, 11 Mar 2012 20:10:15 -0000 The following reply was made to PR kern/163318; it has been noted by GNATS. From: Joel Dahl To: Adrian Chadd Cc: bug-followup@freebsd.org Subject: Re: kern/163318: [ath] ath(4) stops working Date: Sun, 11 Mar 2012 21:01:00 +0100 Some news... I updated from a Jan 18 CURRENT to a Feb 19 CURRENT some time ago and the issue was gone. Adrian asked me to try to track down the revision that fixed the problem, and that's what I've been doing for the last two weeks. So I've been doing a binary search in order to nail the specific revision that fixed my issues with ath. The problem usually occur after 6-8 hours of uptime, but sometimes 30 minutes is enough. I've tested each revision twice. If it survived 12 hours of uptime, I rebooted the machine and let it run for another 12 hours just to be sure that each the revision really was OK. Same goes for revisions that dies - each time ath died I rebooted the machine in order to be sure that I could reproduce the problem again. Revision 231852 does not survive for very long. It dies as usual. I haven't been able to make any revision before 231852 survive longer than 8 hours. Revision 231854 has survived my 12 hour testing period 3 times and I haven't been able to crash any revision after 231854. Adrian, your commit to the ath driver (231854) seems to fix my ath problems. Does that make sense to you? -- Joel From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 20:18:02 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 09BC41065670 for ; Sun, 11 Mar 2012 20:18:02 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id C442F8FC08 for ; Sun, 11 Mar 2012 20:18:01 +0000 (UTC) Received: by dald2 with SMTP id d2so4600774dal.13 for ; Sun, 11 Mar 2012 13:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=raSLtKG0gG6rAYbeSMOEpzuM9VUAUXuJ1SiB4t78yaY=; b=hhvVUDFU7kzj8zhuHhn7nO943f1VvBDg4yEcxGYGgwtcpBP/wiqx0LdWD0zwoqvOzz aCaaZpAK3nw+Q9MRGIaJWsu3rBo/DOy5bwzUTDHBwjlTycEPBxtZYZXGFrfw4LofvxRF vXPjeIIajINdFSj0oOFmpkgXGvsvrVxa25d56UDQx9znEYAqbr/jWsfMOIFN5Z3wPWIW 4oIkx5OJ0n94P8LGO5hBbsl9YaZ+It+2yOMW1uOwmKsbjeBe9mz7gmtyq/am4Ocee6tI G2x0zg/cBdNtO+9dZQrp/OhWWG3ClXk64s3DYQl6mtPyB2iy4FFMY11+Ps6Gu+ThVLRu HwqA== Received: by 10.68.236.35 with SMTP id ur3mr527374pbc.43.1331497081406; Sun, 11 Mar 2012 13:18:01 -0700 (PDT) Received: from flatline.local (70-36-223-154.dsl.dynamic.sonic.net. [70.36.223.154]) by mx.google.com with ESMTPS id f8sm8754215pbe.42.2012.03.11.13.17.59 (version=SSLv3 cipher=OTHER); Sun, 11 Mar 2012 13:18:00 -0700 (PDT) Message-ID: <4F5D0876.5040409@gmail.com> Date: Sun, 11 Mar 2012 13:17:58 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120218 Thunderbird/10.0.2 MIME-Version: 1.0 To: Sevan / Venture37 References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> In-Reply-To: <4F5CD920.2000905@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Mar 2012 20:18:02 -0000 On 03/11/12 09:56, Sevan / Venture37 wrote: > On 11/03/2012 04:07, matt wrote: >> What several errors? Compiles fine against head...are you compiling >> against 9? clang? >> Or is the patch dumping the modules and dev folder out early? >> Confused...it worked fine here...I admit my patch-fu is weak :). > > Cosmetic: > Some files use CR/LF > duplicate code in header files (updated a couple of hours ago) > > Show stoppers: > in if_ral_pci.c the RT2860 includes, PCI_* constants & ral_rt2860_opns > data structure declarations were truncated onto single lines > in rt2860.c contained duplicate code which caused redeclaration errors > during compilation > >> Looks good on attach though...I only have a 1t1r so it's nice to see >> something else attach. > > I now understand why you mentioned APs running on channels above 9 :) > > > On 11/03/2012 04:15, matt wrote: > > Re access points...try "ifconfig wlan0 create wlandev ral0" > > ifconfig ral0 up (just in case...) > > ifconfig wlan0 up > > sleep 1 > > ifconfig wlan0 scan > > > > I have seen it take a second for results to be available, i.e. "up > scan" returns no list. > > Didn't make any difference > 3 access points, one in 802.11N & G mode with WPA2 personal running on > channel 3, mifi running on channel 1 with WPA2 personal (running in > B/G mode if I remember right & my macbook pro running on channel 5 > with no encryption, unable to find anything. > > > Re: errors: > > Did you by chance build the module along with kernel or separately? > > module is currently installed via a separate build but the errors > happened during buildkernel. > > > Sevan / Venture37 > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to > "freebsd-wireless-unsubscribe@freebsd.org" I'm going to fix the patch and repost. I'm definitely getting issues with ^M with the gzipped version of the patch, which is causing line truncation. I'll post a new one in a bit. If you want to help, would you be ok with git as opposed to hg? Thanks! Matt From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 20:20:12 2012 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32025106566B for ; Sun, 11 Mar 2012 20:20:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 1DA8B8FC17 for ; Sun, 11 Mar 2012 20:20:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2BKKB3o010769 for ; Sun, 11 Mar 2012 20:20:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2BKKBIF010768; Sun, 11 Mar 2012 20:20:11 GMT (envelope-from gnats) Date: Sun, 11 Mar 2012 20:20:11 GMT Message-Id: <201203112020.q2BKKBIF010768@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org From: Joel Dahl Cc: Subject: Re: kern/163318: [ath] ath(4) stops working X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Joel Dahl 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: Sun, 11 Mar 2012 20:20:12 -0000 The following reply was made to PR kern/163318; it has been noted by GNATS. From: Joel Dahl To: Adrian Chadd Cc: bug-followup@freebsd.org Subject: Re: kern/163318: [ath] ath(4) stops working Date: Sun, 11 Mar 2012 21:13:46 +0100 On 11-03-2012 13:07, Adrian Chadd wrote: > Hi! > > On 11 March 2012 13:01, Joel Dahl wrote: > > Some news... > > > > I updated from a Jan 18 CURRENT to a Feb 19 CURRENT some time ago and the > > issue was gone. Adrian asked me to try to track down the revision that fixed > > the problem, and that's what I've been doing for the last two weeks. > > Sweet! > > > > Revision 231852 does not survive for very long. It dies as usual. I haven't > > been able to make any revision before 231852 survive longer than 8 hours. > > > > Revision 231854 has survived my 12 hour testing period 3 times and I haven't > > been able to crash any revision after 231854. > > > > Adrian, your commit to the ath driver (231854) seems to fix my ath problems. > > Does that make sense to you? > > Nope. That just started shifting around locks. Can you please try > 231852 with the debugging patch I threw you (that patched > ieee80211_scan.c) and see if it complains? Sure, I'll try 231852 + your patch. > If that patch fixed anything, it just delayed things enough to hide > what's going on... I see. Hiding a problem is not equal to fixing it. :-) -- Joel From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 20:41:36 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 014E61065673 for ; Sun, 11 Mar 2012 20:41:36 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id BE5278FC15 for ; Sun, 11 Mar 2012 20:41:35 +0000 (UTC) Received: by dald2 with SMTP id d2so4622198dal.13 for ; Sun, 11 Mar 2012 13:41:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=zXIQb+tJ2p3druQKbVYNrNjxCeUVRDHtQESwW89mnNg=; b=dlCV71giTdBNmO26nv0sfZRdVVPWrFQwAS/aPX8BkU+UgSxBmL4JPnEsWVfN5Eof5F 3QX/HhrCDbGiBLtJk44kwrPo064Vyfgr2US1v5a9duhETCp0Qy7OqjD6wTKcdYWkfUoG Ef+jdZGYGUcvKNaHpWb8/B4GC7GSbbzPwd04lwV+h9Usq8Ld7GwhEyKUzg3LSMRrwylP 3EC2BV2CyBuDzqAGM1DRW4GpCkNTPLVnNT5Ep2F5p8u3o2MdLg1WU6rbTmZWIOQnkUDy cJgZ7K7zGHJOInlynsNCJjvmKUaXD+GmSgA2l6EJFCr2NyRcVj3GGOKvRw2OW1jb6yKn KkHg== MIME-Version: 1.0 Received: by 10.68.240.135 with SMTP id wa7mr15580631pbc.7.1331498495214; Sun, 11 Mar 2012 13:41:35 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Sun, 11 Mar 2012 13:41:35 -0700 (PDT) In-Reply-To: <4F5D0876.5040409@gmail.com> References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> Date: Sun, 11 Mar 2012 13:41:35 -0700 X-Google-Sender-Auth: 8TadHFvzVL_6Fh63eU4yOtmAqXE Message-ID: From: Adrian Chadd To: matt Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Mar 2012 20:41:36 -0000 Is this a standalone git repo, versus the whole tree? Adrian On 11 March 2012 13:17, matt wrote: > On 03/11/12 09:56, Sevan / Venture37 wrote: >> >> On 11/03/2012 04:07, matt wrote: >>> >>> What several errors? Compiles fine against head...are you compiling >>> against 9? clang? >>> Or is the patch dumping the modules and dev folder out early? >>> Confused...it worked fine here...I admit my patch-fu is weak :). >> >> >> Cosmetic: >> Some files use CR/LF >> duplicate code in header files (updated a couple of hours ago) >> >> Show stoppers: >> in if_ral_pci.c the RT2860 includes, PCI_* constants & ral_rt2860_opns >> data structure declarations were truncated onto single lines >> in rt2860.c contained duplicate code which caused redeclaration errors >> during compilation >> >>> Looks good on attach though...I only have a 1t1r so it's nice to see >>> something else attach. >> >> >> I now understand why you mentioned APs running on channels above 9 :) >> >> >> On 11/03/2012 04:15, matt wrote: >> > Re access points...try "ifconfig wlan0 create wlandev ral0" >> > ifconfig ral0 up (just in case...) >> > ifconfig wlan0 up >> > sleep 1 >> > ifconfig wlan0 scan >> > >> > I have seen it take a second for results to be available, i.e. "up scan" >> > returns no list. >> >> Didn't make any difference >> 3 access points, one in 802.11N & G mode with WPA2 personal running on >> channel 3, mifi running on channel 1 with WPA2 personal (running in B/G mode >> if I remember right & my macbook pro running on channel 5 with no >> encryption, unable to find anything. >> >> > Re: errors: >> > Did you by chance build the module along with kernel or separately? >> >> module is currently installed via a separate build but the errors happened >> during buildkernel. >> >> >> Sevan / Venture37 >> _______________________________________________ >> freebsd-wireless@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to >> "freebsd-wireless-unsubscribe@freebsd.org" > > I'm going to fix the patch and repost. I'm definitely getting issues with ^M > with the gzipped version of the patch, which is causing line truncation. > > I'll post a new one in a bit. If you want to help, would you be ok with git > as opposed to hg? > > Thanks! > > Matt > > > > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 20:50:09 2012 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46195106568E for ; Sun, 11 Mar 2012 20:50:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C88358FC12 for ; Sun, 11 Mar 2012 20:50:08 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2BKo8Qg039720 for ; Sun, 11 Mar 2012 20:50:08 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2BKo8vx039719; Sun, 11 Mar 2012 20:50:08 GMT (envelope-from gnats) Date: Sun, 11 Mar 2012 20:50:08 GMT Message-Id: <201203112050.q2BKo8vx039719@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org From: Adrian Chadd Cc: Subject: Re: kern/163318: [ath] ath(4) stops working X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Adrian Chadd 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: Sun, 11 Mar 2012 20:50:09 -0000 The following reply was made to PR kern/163318; it has been noted by GNATS. From: Adrian Chadd To: Joel Dahl Cc: bug-followup@freebsd.org Subject: Re: kern/163318: [ath] ath(4) stops working Date: Sun, 11 Mar 2012 13:45:02 -0700 On 11 March 2012 13:13, Joel Dahl wrote: >> Nope. That just started shifting around locks. Can you please try >> 231852 with the debugging patch I threw you (that patched >> ieee80211_scan.c) and see if it complains? > > Sure, I'll try 231852 + your patch. > >> If that patch fixed anything, it just delayed things enough to hide >> what's going on... > > I see. Hiding a problem is not equal to fixing it. :-) Yup. The main thing that changed is the order of the TX/RX/interrupt taskqueue stop versus grabbing the PCU lock. Since the PCU lock is also grabbed when doing some other things (notably RX and interrupts, briefly in each situation), it's possible that we're just now not hitting whatever the race is, versus having fixed it. I'd really like to know where the race _is_... Adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 21:11:00 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8FCEC1065670 for ; Sun, 11 Mar 2012 21:11:00 +0000 (UTC) (envelope-from venture37@gmail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id 1448A8FC15 for ; Sun, 11 Mar 2012 21:10:59 +0000 (UTC) Received: by wibhq7 with SMTP id hq7so2262295wib.13 for ; Sun, 11 Mar 2012 14:10:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=kLMKNUWhRc2+WmTA5/LtSU4Z5OCSF7lDDd9Tl4Yi++w=; b=JAgzdKnze7YgghU3+gW4Gi6jINsX41YUB7wzL3gqcwRv0g619rEhgY56gC8GmNvFMo vfG9YHf3KyIg5CoSFJmdLRMp1XRGSwMTg7HuMtcrd38/5tF95ulBmeewY3Of7aKkEnQ0 7m8nnuIWjN8kf4sEV7yhCi/6+57k+FYLS87h1zVTAlnZ6jnu0xBBz5qdKjN74K+jXMkO Ysq0nUks0aRGm/rZuAZL+Z0E51DccF5Xw72bI82ECApgZFiqTWZ5bgHY8ECZKTwSZ+9e zWUIch+J/bKNVHoIAcxyyEaeP/qJdcye/VM/rpXGG/mZEXzlTZ786Bcqk+e9F4MM6Vv2 PNvA== Received: by 10.216.131.34 with SMTP id l34mr5672878wei.54.1331500259073; Sun, 11 Mar 2012 14:10:59 -0700 (PDT) Received: from Sevans-MacBook-Pro.local (cpc2-brig17-2-0-cust527.3-3.cable.virginmedia.com. [81.101.198.16]) by mx.google.com with ESMTPS id fb2sm27870099wid.3.2012.03.11.14.10.57 (version=SSLv3 cipher=OTHER); Sun, 11 Mar 2012 14:10:58 -0700 (PDT) Message-ID: <4F5D14E0.3050301@gmail.com> Date: Sun, 11 Mar 2012 21:10:56 +0000 From: Sevan / Venture37 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: freebsd-wireless@freebsd.org References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> In-Reply-To: <4F5D0876.5040409@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Mar 2012 21:11:00 -0000 On 11/03/2012 20:17, matt wrote: > I'm going to fix the patch and repost. I'm definitely getting issues > with ^M with the gzipped version of the patch, which is causing line > truncation. Save yourself the hassle, all the files minus repo data are here https://bitbucket.org/sevan/ral/get/0154bc33c029.tar.gz > I'll post a new one in a bit. If you want to help, would you be ok with > git as opposed to hg? nope not at all but if its because of familiarity then in this scenario it doesn't make much difference which is used, same work flow, change, commit, push, pull, rinse, repeat. :) Sevan From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 21:14:24 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4BD6E106566B for ; Sun, 11 Mar 2012 21:14:24 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 150B08FC12 for ; Sun, 11 Mar 2012 21:14:23 +0000 (UTC) Received: by dald2 with SMTP id d2so4652564dal.13 for ; Sun, 11 Mar 2012 14:14:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=26tC+70t4Ec71F9iEUM27cALAzQysJLlmHP2HcDAJ80=; b=sb+uG/uOv5CxbPjRpMPktS8lULHuwwudzXkzUk/eXVdElC+sRb7Xec4vIscIplyr4r hvcdcxqU+c3/vfZuvFd5PLAsVDbyXVzCbBvJ5ODZdn6CZvwSyF9F3/2ZSgnnsW6gRq8f cqnslBdiECKv0FDgygRstzx4mb2UUbG9wEg4Xu1k9PwQyFrO67+nEWqZplfc7IFvGrXr DZ2hE1fxsgMW42g7sRByEbunff3Q+yzRFnAJOdR6wZ9dX3t9BerKFpRJrzciRKCnAsN7 MHNn6xBg6JMf97wqs8vGqN0GCwmk04BO+DlVcYzVuon1pHLyDOUE0mTF7/EUXhVUOY3t XDcg== MIME-Version: 1.0 Received: by 10.68.232.2 with SMTP id tk2mr15958981pbc.68.1331500463602; Sun, 11 Mar 2012 14:14:23 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Sun, 11 Mar 2012 14:14:23 -0700 (PDT) In-Reply-To: <4F5D14E0.3050301@gmail.com> References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> Date: Sun, 11 Mar 2012 14:14:23 -0700 X-Google-Sender-Auth: A7vNvvNItBb-UNCS9Ic_KYnYx1Y Message-ID: From: Adrian Chadd To: "Sevan / Venture37" Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Mar 2012 21:14:24 -0000 On 11 March 2012 14:10, Sevan / Venture37 wrote: >> I'll post a new one in a bit. If you want to help, would you be ok with >> git as opposed to hg? > > > nope not at all but if its because of familiarity then in this scenario it > doesn't make much difference which is used, same work flow, change, commit, > push, pull, rinse, repeat. :) Hiya, Let's just strip the ^M's from the tree and as long as ray@ and pseudocyclon are a-ok with the work thus far, I'll commit it to -HEAD. We can then tidy things up from there. I just don't want to commit ^M's to the tree, or blatant style(9) violations. But we can always tidy things up incrementally once they're in the tree. Adrian From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 22:17:12 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91F42106566C for ; Sun, 11 Mar 2012 22:17:12 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by mx1.freebsd.org (Postfix) with ESMTP id 0B07F8FC19 for ; Sun, 11 Mar 2012 22:17:11 +0000 (UTC) Received: by wibhj6 with SMTP id hj6so2275607wib.13 for ; Sun, 11 Mar 2012 15:17:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding :x-gm-message-state; bh=8sVSXH+75FROHrBtjphbclRYGQqNrlevO/RSImySGIw=; b=f4CrJ4DCU0FvbOAa0WxyopbnyQyWjj+usNpoF0+8m2Fax7gDacckjJcRTPUQ8RLJml QYh9WoVZe04g2a5lJ2qXXfu9qQNemySxbJoy0MqOynaMORmnDGBG7j9Xv+/Lk49PBY3M 79cH2WzZytvP3T0Da6PxJvuzzc8w6KKFxx3YKi6b1j39sstudtTE7DP+TdzEqP6wpjHj P+MmMGjP6wdvAWGfFFixIXtckrSoI6wlH2Ur+1NHPMVkcHbhC609McMfJqjsTZOp9Kl0 AE3s9q7V3e/ygW4hom6IKbh+HCM+V9LRR7q7WcR36CRw6MoH9bPh56E3uy3EiO18Xlo8 8HVQ== Received: by 10.180.78.6 with SMTP id x6mr21931671wiw.18.1331504231053; Sun, 11 Mar 2012 15:17:11 -0700 (PDT) Received: from rnote.ddteam.net (181-83-133-95.pool.ukrtel.net. [95.133.83.181]) by mx.google.com with ESMTPS id d7sm48589389wiz.6.2012.03.11.15.17.09 (version=SSLv3 cipher=OTHER); Sun, 11 Mar 2012 15:17:10 -0700 (PDT) Date: Mon, 12 Mar 2012 00:16:25 +0200 From: Aleksandr Rybalko To: Adrian Chadd Message-Id: <20120312001625.4d9b3b52.ray@ddteam.net> In-Reply-To: References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> X-Mailer: Sylpheed 3.1.2 (GTK+ 2.24.5; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmZzFSrwGKLd2wcmaK1zh+6Ze2FajzQBlGYZwa6+WbQUeVUxMY0g6jCmdLG9K200653rvYO Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Mar 2012 22:17:12 -0000 On Sun, 11 Mar 2012 14:14:23 -0700 Adrian Chadd wrote: > On 11 March 2012 14:10, Sevan / Venture37 wrote: > > >> I'll post a new one in a bit. If you want to help, would you be ok > >> with git as opposed to hg? > > > > > > nope not at all but if its because of familiarity then in this > > scenario it doesn't make much difference which is used, same work > > flow, change, commit, push, pull, rinse, repeat. :) > > Hiya, > > Let's just strip the ^M's from the tree and as long as ray@ and > pseudocyclon are a-ok with the work thus far, I'll commit it to -HEAD. Hi folks, we already use that driver with RT3090 modification in zrouter.org tree. But IIRC adri, bschmidt, pseudocyclon and me decide to use OpenBSD driver as base for many reasons: 1. A.Egorenkov version based on OpenBSD one (by Damien Bergamini) 2. since this version was branched, OpenBSD add many changes We already have a bunch of different Ralink drivers :) So it seems +1/-1 driver - no difference. But A.Egorenkov driver is very nice example how we can merge PCI(or SoC) and USB version. > > We can then tidy things up from there. > > I just don't want to commit ^M's to the tree, or blatant style(9) > violations. But we can always tidy things up incrementally once > they're in the tree. > > > Adrian > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to > "freebsd-wireless-unsubscribe@freebsd.org" WBW -- Aleksandr Rybalko From owner-freebsd-wireless@FreeBSD.ORG Sun Mar 11 23:24:26 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3383A106567D; Sun, 11 Mar 2012 23:24:26 +0000 (UTC) (envelope-from venture37@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 788A58FC0C; Sun, 11 Mar 2012 23:24:24 +0000 (UTC) Received: by wern13 with SMTP id n13so1104353wer.13 for ; Sun, 11 Mar 2012 16:24:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Y4Pl4uFJl26qxlw1/LUe8ZAjJJruGKetHbOzJtIcet0=; b=bDnbJ+Wq92SpMSgUjNFhc1mmP2h2YB3Ermzp2phV/4AhW17VZLqoul90bOed5UOjnI k+vsVCCYrRGGKG5GwcGaccUXhPu0PSRoss7Bl9mj/KZAmR+jLIIiV0ky5iOv2/XTvoDZ uFZe/xVvF/YdCkwdgG+dY+ukdq9oKg/AXOa02bNpDUkfhGSxHMxlHBlgHu1CQiHRNsIK aZCyitKh5SeWGoamjfgIhFvEtvAnhRe7q6lwNGBvnykDkXVfsZK7ROietLZ/rt5wOAuV wl7uZuzNDoPlk8WrW2L0EsWtYtL18yYJWwpgqb5JnZTzEp9koLTofMh9GUfWFsT0wSDx /2uQ== Received: by 10.180.8.164 with SMTP id s4mr22301957wia.6.1331508258531; Sun, 11 Mar 2012 16:24:18 -0700 (PDT) Received: from Sevans-MacBook-Pro.local (cpc2-brig17-2-0-cust527.3-3.cable.virginmedia.com. [81.101.198.16]) by mx.google.com with ESMTPS id d7sm49316454wiz.6.2012.03.11.16.24.17 (version=SSLv3 cipher=OTHER); Sun, 11 Mar 2012 16:24:17 -0700 (PDT) Message-ID: <4F5D3420.9000209@gmail.com> Date: Sun, 11 Mar 2012 23:24:16 +0000 From: Sevan / Venture37 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Adrian Chadd References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Sun, 11 Mar 2012 23:24:26 -0000 On 11/03/2012 21:14, Adrian Chadd wrote: > Let's just strip the ^M's from the tree and as long as ray@ and > pseudocyclon are a-ok with the work thus far, I'll commit it to -HEAD. If you're referring to the in the hg repo then all those amendments have been made. Sevan From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 12 00:26:05 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 894E91065670 for ; Mon, 12 Mar 2012 00:26:05 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4FE888FC17 for ; Mon, 12 Mar 2012 00:26:05 +0000 (UTC) Received: by dald2 with SMTP id d2so4830241dal.13 for ; Sun, 11 Mar 2012 17:26:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=NhfnD4JRaoUBSuQO+DURKr6pJVbdyFOky7hUiqGWzCM=; b=bpPfnOuJbQ/rF1QTXnIRv47b7kqvUBfuaLgxEVyiYsVUHvEW3sNmOoOTdqiN52uwxV 6sngn7kD4Xf/LF5AiuhBwNA81skY84FKTrET2QMF4MDvpo/FaRMljGT+uZtci7lvsNjb mZwA7B2Q+2vhuPw2Oq2N7cLfBXDSeNKCOmUZHGUjkmWX4V1aidj0lUzbia6ZCMKh9gKs Ro9PZ6oaU5stk6mMTMJgsFxEYp5+klJKqYhBD3QTSSa7zFTozlS++unoHnPrzXDkODjp Qlr48e4htw3MZrhnatBnx2LzjVpl1TLGtDmgl11PybpgkmklgUbT39LN/u3fYMuZrGWO kNMA== MIME-Version: 1.0 Received: by 10.68.130.6 with SMTP id oa6mr16532005pbb.96.1331511965126; Sun, 11 Mar 2012 17:26:05 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Sun, 11 Mar 2012 17:26:05 -0700 (PDT) In-Reply-To: <20120312001625.4d9b3b52.ray@ddteam.net> References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> Date: Sun, 11 Mar 2012 17:26:05 -0700 X-Google-Sender-Auth: G_Yl--8QRigWBxiUUpNPRxvTMxk Message-ID: From: Adrian Chadd To: Aleksandr Rybalko Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 12 Mar 2012 00:26:05 -0000 Hiya, Remember how I said that you should submit things to commit to freebsd? :-) Let's not leave it living in the zrouter tree; let's get it into FreeBSD-HEAD. So please, do up a diff against -HEAD of your ralink driver changes and lets get _something_ ASAP into the tree. Sheesh.. :-) adrian From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 12 01:25:42 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4F709106564A; Mon, 12 Mar 2012 01:25:42 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id EB8CA8FC15; Mon, 12 Mar 2012 01:25:41 +0000 (UTC) Received: by iahk25 with SMTP id k25so7854788iah.13 for ; Sun, 11 Mar 2012 18:25:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=ck346gdyMVYFdVIUNxiGqpsZpLJdTpv/6X/EHXG2USo=; b=QpsyDMtElwXF93pwrLon3U+Uuc6weJJTt8CrayfHTn6fYok5fhQwaSZAwondHVAP+T 7rFdpaTcaMsD4l5NYAR59g4X3ixseh2NXnjTIhMoJZl84o58u2dmVo0+dbFPjKu7BaeA awm7r65jbI9UAIFN7kec1pYz9tb18h0wVxu666KXZ0q3nJNdW77CpSkxa0LQlnwRQ4jd OFuPdfA2FgYGtqVTH/zGSazW6M8MzpsmnpSd/TlPp+YQXhxQxTGl4XMqCx4ixHgsv9lS vk418BoY47v7ePBCe3qA4YCDDsRl7uFIQSKSKgJm8shQ9EiY3Yxdt69wElJNlRrFZEp9 /JPA== Received: by 10.182.232.106 with SMTP id tn10mr6049917obc.6.1331515541195; Sun, 11 Mar 2012 18:25:41 -0700 (PDT) Received: from flatline.local (70-36-223-154.dsl.dynamic.sonic.net. [70.36.223.154]) by mx.google.com with ESMTPS id a18sm17767212obu.15.2012.03.11.18.25.38 (version=SSLv3 cipher=OTHER); Sun, 11 Mar 2012 18:25:40 -0700 (PDT) Message-ID: <4F5D5091.6050807@gmail.com> Date: Sun, 11 Mar 2012 18:25:37 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120218 Thunderbird/10.0.2 MIME-Version: 1.0 To: Adrian Chadd References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 12 Mar 2012 01:25:42 -0000 On 03/11/12 17:26, Adrian Chadd wrote: > Hiya, > > Remember how I said that you should submit things to commit to freebsd? :-) > > Let's not leave it living in the zrouter tree; let's get it into FreeBSD-HEAD. > > So please, do up a diff against -HEAD of your ralink driver changes > and lets get _something_ ASAP into the tree. > > Sheesh.. :-) > > > adrian > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" > If you have a better one Aleksandr let's do it...I unearthed my old diff because there was still no support. Fundamentally, I agree with keeping things similar to OpenBSD. If the work is already done we should do that. In the mean time, if we don't have such a thing, we have something this way...I'm really just learning wireless kernel dev. I don't really have an "attachment" to this particular version, other than it worked for me and if it helped others :) I do feel that perhaps being synchronized with the current OpenBSD makes sense, but that it will be a while before I personally can figure out all the steps in porting their current code. Most is similar, but there are significant differences. Thanks! Matt From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 12 01:35:17 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64FB7106564A for ; Mon, 12 Mar 2012 01:35:17 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 29A908FC0A for ; Mon, 12 Mar 2012 01:35:16 +0000 (UTC) Received: by dald2 with SMTP id d2so4905084dal.13 for ; Sun, 11 Mar 2012 18:35:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=HwCbYdM+T6drNCyyUopnVU7404TaxKyHyrAS6bF7mhg=; b=YeTX7F20gPV0jy3uc/vl6HO9jmpSiqXOQrFl0pAaAgyYf5rb+VOo25OL58fiT5oDqz s5xJJySucgiPKJtDRsjflG45x+vF+Pd5Mg/lUkdbEGpa1ylCoNW7Wk/NyhXf8N4lQsvE OMK6v75qX1PIZjxPBVHt95RC/UU7XNJmXbIxo7QRGhBdJgY7NByS2+xNbnLEUnB5M+ob ZT2iRgt9xWJSylGQ7/QrZOfY5SsT9n5K531tM4J9gWyJGJigE4CWxXN2/Aq5qpWV92Jb uU61ZGVKiwcEsk1GZ0VusWgMIrkuWOUE+8dkr4SVu5nn+8/0bI25DSvh5CYO63idg4fa tLvg== MIME-Version: 1.0 Received: by 10.68.232.2 with SMTP id tk2mr17111804pbc.68.1331516116582; Sun, 11 Mar 2012 18:35:16 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Sun, 11 Mar 2012 18:35:16 -0700 (PDT) In-Reply-To: <4F5D5091.6050807@gmail.com> References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> <4F5D5091.6050807@gmail.com> Date: Sun, 11 Mar 2012 18:35:16 -0700 X-Google-Sender-Auth: kIF7m-cVwViKi9Qcpvzt3UMIN9s Message-ID: From: Adrian Chadd To: matt Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 12 Mar 2012 01:35:17 -0000 Matt, would you mind looking at what's in zrouter? ray, please create a diff? thanks, adrian On 11 March 2012 18:25, matt wrote: > On 03/11/12 17:26, Adrian Chadd wrote: >> >> Hiya, >> >> Remember how I said that you should submit things to commit to freebsd? >> :-) >> >> Let's not leave it living in the zrouter tree; let's get it into >> FreeBSD-HEAD. >> >> So please, do up a diff against -HEAD of your ralink driver changes >> and lets get _something_ ASAP into the tree. >> >> Sheesh.. :-) >> >> >> adrian >> _______________________________________________ >> freebsd-wireless@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to >> "freebsd-wireless-unsubscribe@freebsd.org" >> > If you have a better one Aleksandr let's do it...I unearthed my old diff > because there was still no support. > > Fundamentally, I agree with keeping things similar to OpenBSD. If the work > is already done we should do that. > > In the mean time, if we don't have such a thing, we have something this > way...I'm really just learning wireless kernel dev. > I don't really have an "attachment" to this particular version, other than > it worked for me and if it helped others :) > I do feel that perhaps being synchronized with the current OpenBSD makes > sense, but that it will be a while before I personally can figure out all > the steps in porting their current code. > Most is similar, but there are significant differences. > > Thanks! > > Matt > From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 12 02:04:53 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93DCB106566B; Mon, 12 Mar 2012 02:04:53 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id E365E8FC0C; Mon, 12 Mar 2012 02:04:52 +0000 (UTC) Received: by yenl9 with SMTP id l9so2451001yen.13 for ; Sun, 11 Mar 2012 19:04:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=mbAZoKdMzS9fwOWweY704EoaA0ms4QVMjSLTwwtlu64=; b=YrwNY+M4+vwOBOgHvQ7hMzfRzc9+3UzZ6J6B3l4UP+3TeAyvCfK2xkGlYz3yugi75n OP1+rdHXsday9DkeowMh56DK0r37VDFnoVyytdFhVFrUHK3h2za1tFQylzKWwCdR5bs+ Pw1O0vBFD/StS7lKHLuhdu5O4E7uGnU/ZySHw6xRcus5/lWoMpBYuSdB9NxUs6X+v9zQ Ud+8iQwfZtqa3w8nYsx/VHljbHUojNpqF8jEkDBoqeqol7Tnm7NZUZ7HU15+2SnLUKls 1rGb6zcTkuK5HFwrwPt76equi9capDDEne4wwOgs9Es1ZOZroLkrIvCbELrhJCgKPu2/ Cczw== Received: by 10.60.24.9 with SMTP id q9mr4525951oef.4.1331517886045; Sun, 11 Mar 2012 19:04:46 -0700 (PDT) Received: from flatline.local (70-36-223-154.dsl.dynamic.sonic.net. [70.36.223.154]) by mx.google.com with ESMTPS id gl4sm17922165obb.23.2012.03.11.19.04.43 (version=SSLv3 cipher=OTHER); Sun, 11 Mar 2012 19:04:45 -0700 (PDT) Message-ID: <4F5D59BA.9010907@gmail.com> Date: Sun, 11 Mar 2012 19:04:42 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120218 Thunderbird/10.0.2 MIME-Version: 1.0 To: Adrian Chadd References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> <4F5D5091.6050807@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 12 Mar 2012 02:04:53 -0000 On 03/11/12 18:35, Adrian Chadd wrote: > Matt, would you mind looking at what's in zrouter? > > ray, please create a diff? > > thanks, > > > > > adrian > > On 11 March 2012 18:25, matt wrote: >> On 03/11/12 17:26, Adrian Chadd wrote: >>> Hiya, >>> >>> Remember how I said that you should submit things to commit to freebsd? >>> :-) >>> >>> Let's not leave it living in the zrouter tree; let's get it into >>> FreeBSD-HEAD. >>> >>> So please, do up a diff against -HEAD of your ralink driver changes >>> and lets get _something_ ASAP into the tree. >>> >>> Sheesh.. :-) >>> >>> >>> adrian >>> _______________________________________________ >>> freebsd-wireless@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>> To unsubscribe, send any mail to >>> "freebsd-wireless-unsubscribe@freebsd.org" >>> >> If you have a better one Aleksandr let's do it...I unearthed my old diff >> because there was still no support. >> >> Fundamentally, I agree with keeping things similar to OpenBSD. If the work >> is already done we should do that. >> >> In the mean time, if we don't have such a thing, we have something this >> way...I'm really just learning wireless kernel dev. >> I don't really have an "attachment" to this particular version, other than >> it worked for me and if it helped others :) >> I do feel that perhaps being synchronized with the current OpenBSD makes >> sense, but that it will be a while before I personally can figure out all >> the steps in porting their current code. >> Most is similar, but there are significant differences. >> >> Thanks! >> >> Matt >> I think I misread...Alexsandr, you're saying you're using "rt2860" driver in Zrouter tree, but with 3090 modifications? I think I read that *(somehow) as you had something closer to OpenBSD's ral. So does yours attach as a ral? or as an rt2860?....Originally I just took rt2860 and adapted it's softc and both drivers attach so that it would be one driver. I merged a lot of the code into one file, which in retrospect has the advantage of being more similar to OpenBSD, but the disadvantage of size! My original goal was to be able to do side-by-side comparison with OpenBSD's ral and get them "similar". The rt2860 I used had 3090 adaptations, as that's the only card I have to test with. If you have a more up to date version of rt2860, and it's attaching as rt2860...it would be trivial to use the softc & if_ral_pci.c I have to make them all "ral" instead of rt2860 & ral. If it's already attaching as ral, then you would have the same thing I have, albeit perhaps with a newer code base? Sorry for my confusion...is the zrouter tree the same as the hg repo on zrouter.org? Thanks! Matt From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 12 05:50:13 2012 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C94C106566C for ; Mon, 12 Mar 2012 05:50:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 083D48FC0C for ; Mon, 12 Mar 2012 05:50:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2C5oCgZ043738 for ; Mon, 12 Mar 2012 05:50:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2C5oCnR043737; Mon, 12 Mar 2012 05:50:12 GMT (envelope-from gnats) Date: Mon, 12 Mar 2012 05:50:12 GMT Message-Id: <201203120550.q2C5oCnR043737@freefall.freebsd.org> To: freebsd-wireless@FreeBSD.org From: Joel Dahl Cc: Subject: Re: kern/163318: [ath] ath(4) stops working X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Joel Dahl 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: Mon, 12 Mar 2012 05:50:13 -0000 The following reply was made to PR kern/163318; it has been noted by GNATS. From: Joel Dahl To: Adrian Chadd Cc: bug-followup@freebsd.org Subject: Re: kern/163318: [ath] ath(4) stops working Date: Mon, 12 Mar 2012 06:44:12 +0100 On 11-03-2012 13:45, Adrian Chadd wrote: > On 11 March 2012 13:13, Joel Dahl wrote: > > >> Nope. That just started shifting around locks. Can you please try > >> 231852 with the debugging patch I threw you (that patched > >> ieee80211_scan.c) and see if it complains? > > > > Sure, I'll try 231852 + your patch. > > > >> If that patch fixed anything, it just delayed things enough to hide > >> what's going on... > > > > I see. Hiding a problem is not equal to fixing it. :-) > > Yup. The main thing that changed is the order of the TX/RX/interrupt > taskqueue stop versus grabbing the PCU lock. > > Since the PCU lock is also grabbed when doing some other things > (notably RX and interrupts, briefly in each situation), it's possible > that we're just now not hitting whatever the race is, versus having > fixed it. > > I'd really like to know where the race _is_... 231852 + your patch died after 2 hours, so the problem remains. -- Joel From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 12 07:43:20 2012 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 944FF106564A; Mon, 12 Mar 2012 07:43:20 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6B7CE8FC17; Mon, 12 Mar 2012 07:43:20 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2C7hK8U080935; Mon, 12 Mar 2012 07:43:20 GMT (envelope-from adrian@freefall.freebsd.org) Received: (from adrian@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2C7hK1V080931; Mon, 12 Mar 2012 07:43:20 GMT (envelope-from adrian) Date: Mon, 12 Mar 2012 07:43:20 GMT Message-Id: <201203120743.q2C7hK1V080931@freefall.freebsd.org> To: adrian@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-wireless@FreeBSD.org From: adrian@FreeBSD.org Cc: Subject: Re: kern/165966: [ath] ath0: device timeout on SMP machines due to race conditions X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 12 Mar 2012 07:43:20 -0000 Synopsis: [ath] ath0: device timeout on SMP machines due to race conditions Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless Responsible-Changed-By: adrian Responsible-Changed-When: Mon Mar 12 07:42:32 UTC 2012 Responsible-Changed-Why: Reassign http://www.freebsd.org/cgi/query-pr.cgi?pr=165966 From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 12 07:44:38 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BAF4106566B for ; Mon, 12 Mar 2012 07:44:38 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id E51C18FC0C for ; Mon, 12 Mar 2012 07:44:37 +0000 (UTC) Received: by dald2 with SMTP id d2so5334791dal.13 for ; Mon, 12 Mar 2012 00:44:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=5wVp5+rbq6RPQuISAkxZ2XB8NeiChY/AeuIK6x+JfMA=; b=gAzWaLFgU/j2QKDu+2XPgvLY6fWlYvL2G3X1WfmY4kaTgqTzJveYi7s8jmtCMrstbv nHtJz1mEyXgCccxB5//FJaScevxwTbzVIupQZLoZDQ36S+xkFJk7m6N1EBhbDXTAkOBg Y8MWdZHaGEBKMv6p/gKNjeVUyBm+PaoG3TRbhrn8lV/DurYBiBlnLDn+VhPo0Sc9htf+ i6rO6FRyU56z9StVPAUvrIhFG68huNG64+g+SC/A3TuZR7gE0m9TKhAdQpeUsVWGLB5i 5WnE90PPGA0IyS/cxo3Wwqc+iJNksFD6c6f5daprWgeNrsyM0g8OV3rM8ieTFwq2DRDe kuyw== MIME-Version: 1.0 Received: by 10.68.130.6 with SMTP id oa6mr317106pbb.96.1331538277457; Mon, 12 Mar 2012 00:44:37 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Mon, 12 Mar 2012 00:44:37 -0700 (PDT) In-Reply-To: <201203120743.q2C7hK1V080931@freefall.freebsd.org> References: <201203120743.q2C7hK1V080931@freefall.freebsd.org> Date: Mon, 12 Mar 2012 00:44:37 -0700 X-Google-Sender-Auth: Wwc6IgJvkEaP1-YKkB21_TNZghA Message-ID: From: Adrian Chadd To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: kern/165966: [ath] ath0: device timeout on SMP machines due to race conditions X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 12 Mar 2012 07:44:38 -0000 This bug is pretty annoying btw, I'd really appreciate some thoughts on how to fix it. i'd like to eventually eliminate all the device timeouts and actually _have_ device timeouts be legitimate - ie, that the device couldn't transmit. Grumble, SMP, grumble, preemption, grumble. Adrian On 12 March 2012 00:43, wrote: > Synopsis: [ath] ath0: device timeout on SMP machines due to race conditions > > Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless > Responsible-Changed-By: adrian > Responsible-Changed-When: Mon Mar 12 07:42:32 UTC 2012 > Responsible-Changed-Why: > Reassign > > > http://www.freebsd.org/cgi/query-pr.cgi?pr=165966 From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 12 11:07:25 2012 Return-Path: Delivered-To: freebsd-wireless@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E5CF5106566B for ; Mon, 12 Mar 2012 11:07:25 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D3A988FC20 for ; Mon, 12 Mar 2012 11:07:25 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2CB7PWp072525 for ; Mon, 12 Mar 2012 11:07:25 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2CB7Ox6072523 for freebsd-wireless@FreeBSD.org; Mon, 12 Mar 2012 11:07:24 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 12 Mar 2012 11:07:24 GMT Message-Id: <201203121107.q2CB7Ox6072523@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-wireless@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-wireless@FreeBSD.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 12 Mar 2012 11:07:26 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/165966 wireless [ath] ath0: device timeout on SMP machines due to race o kern/165895 wireless [ath] overly busy cabq can tie up all tx buffers o kern/165870 wireless [bwn] bwn driver does not attach on HP Pavilion dv9420 o kern/165866 wireless [ath] TX hangs, requiring a "scan" to properly reset t o kern/165849 wireless [ath] [hang] network ath driver freeze o kern/165595 wireless [ipw] ipw(4): Can't load firmare for ipw2200bg o kern/165543 wireless [ath] ath0 endless scanning of channels without connec o kern/165517 wireless [net80211] bgscan isn't triggered when invalid beacons o kern/165475 wireless [ath] operational mode change doesn't poke the underly o kern/165382 wireless [kernel] taskqueue_unblock doesn't unblock currently q o kern/165306 wireless [ath] race conditions between scanning and beacon time o kern/165220 wireless [ath] "ath_rx_tasklet: sc_inreset_cnt > 0; skipping" m o kern/165214 wireless [ieee80211] Kernel panic in ieee80211_output.c:2505 o kern/165212 wireless [ath] No WiFi on Acer Aspire One 751h (Atheros AR5BHB6 o kern/165149 wireless [ath] [net80211] Ping with data length more than iv_fr o kern/165146 wireless [net80211] Net802.11 Fragment number is assigned 1 (sh o kern/165060 wireless [ath] vap->iv_bss race conditions causing crashes insi o kern/165021 wireless [ath] ath device timeout during scan/attach, if wlan_c o kern/164721 wireless [ath] ath device timeouts o kern/164499 wireless [wi] [patch] if_wi needs fix for big endian architectu o kern/164382 wireless [ath] crash when down/deleting a vap - inside ieee8021 o kern/164365 wireless [iwi] iwi0: UP/DOWN in o bin/164102 wireless hostapd not configured for 802.11n o kern/163759 wireless [ath] ath(4) "stops working" in hostap mode o kern/163724 wireless [mwl] [patch] NULL check before dereference o kern/163719 wireless [ath] ath interface do not receive multicast o kern/163689 wireless [ath] TX timeouts when sending probe/mgmt frames durin o kern/163574 wireless [net80211] overly-frequent HT occupancy changes o kern/163573 wireless [ath] hostap mode TX buffer hang o kern/163559 wireless [ath] kernel panic AH_DEBUG o kern/163318 wireless [ath] ath(4) stops working p kern/163312 wireless [panic] [ath driver] kernel panic: page fault with ath o kern/163237 wireless [ath] AR5416 as HostAP. Delays among clients when a cl o kern/163082 wireless [ath] ar9285 diversity fixes o kern/162648 wireless [ath] AR9227 ADC DC calibration failure o kern/162647 wireless [ath] 11n TX aggregation session / TX hang o kern/161293 wireless [iwn] hang at startup when starting network o kern/161035 wireless [ieee80211] Incorrect number describing 11ng MCS rate o kern/160391 wireless [ieee80211] [patch] Panic in mesh mode o kern/160296 wireless [zyd] [panic] 802.11 usb device reboots system on 'ifc o misc/160176 wireless [mips] [panic] Kernel panic on AR7161 platform with AR o kern/157449 wireless [ath] MAC address conflict causes system to freeze o kern/157243 wireless [ath] investigate beacon TX (AP) / RX (STA) when under o kern/156904 wireless [ath] AR9285 antenna diversity algorithm is buggy and o kern/156884 wireless [ath] ath instablity o kern/156327 wireless [bwn] bwn driver causes 20%-50% packet loss o kern/156322 wireless [wpi] no ahdemo support for if_wpi o kern/156321 wireless [ath] ahdemo doesn't work with if_ath o kern/155498 wireless [ral] ral(4) needs to be resynced with OpenBSD's to ga o kern/155100 wireless [ath] ath driver on busy channel: "stuck beacon" p kern/154598 wireless [ath] Atheros 5424/2424 can't connect to WPA network o kern/154567 wireless [ath] ath(4) lot of bad series(0) o kern/154327 wireless [ath] AR5416 in station mode hangs when transmitting f o kern/154284 wireless [ath] Modern ath wifi cards (such as AR9285) have miss o kern/154153 wireless [ath] AR5213 + MIPS + WPA group key packet corruption o kern/153448 wireless [ath] ath networking device loses association after a o kern/152750 wireless [ath] ath0 lot of bad series hwrate o kern/151198 wireless [ath] ath/5416 fails bgscan with "ath0: ath_chan_set: o kern/149786 wireless [bwn] bwn on Dell Inspiron 1150: connections stall o kern/149516 wireless [ath] ath(4) hostap with fake MAC/BSSID results in sta o kern/149373 wireless [realtek/atheros]: None of my network card working o kern/148322 wireless [ath] Triggering atheros wifi beacon misses in hostap o kern/148317 wireless [ath] FreeBSD 7.x hostap memory leak in net80211 or At o kern/148078 wireless [ath] wireless networking stops functioning o kern/145826 wireless [panic] [ath] Unable to configure adhoc mode on ath0/w o kern/144987 wireless [wpi] [panic] injecting packets with wlaninject using o bin/144109 wireless hostapd(8) uses the MAC of the wireless interface, but o conf/143079 wireless hostapd(8) startup missing multi wlan functionality p kern/140567 wireless [ath] [patch] ath is not worked on my notebook PC o kern/140245 wireless [ath] [panic] Kernel panic during network activity on o kern/137592 wireless [ath] panic - 7-STABLE (Aug 7, 2009 UTC) crashes on ne p bin/137484 wireless [patch] Integer overflow in wpa_supplicant(8) base64 e o kern/136943 wireless [wpi] [lor] wpi0_com_lock / wpi0 o kern/136836 wireless [ath] atheros card stops functioning after about 12 ho o kern/132722 wireless [ath] Wifi ath0 associates fine with AP, but DHCP or I o bin/131549 wireless ifconfig(8) can't clear 'monitor' mode on the wireless o kern/126475 wireless [ath] [panic] ath pcmcia card inevitably panics under o kern/125721 wireless [ath] Terrible throughput/high ping latency with Ubiqu o kern/125617 wireless [ath] [panic] ath(4) related panic o kern/125501 wireless [ath] atheros cardbus driver hangs o kern/125332 wireless [ath] [panic] crash under any non-tiny networking unde o kern/124767 wireless [iwi] Wireless connection using iwi0 driver (Intel 220 o kern/124753 wireless [ieee80211] net80211 discards power-save queue packets o docs/120456 wireless ath(4) needs to specify requirement on wlan_scan_sta o kern/119513 wireless [ath] [irq] inserting dlink dwl-g630 wireless card res o kern/116747 wireless [ndis] FreeBSD 7.0-CURRENT crash with Dell TrueMobile f kern/105348 wireless [ath] ath device stopps TX 87 problems total. From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 12 11:36:28 2012 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 21F9A106564A; Mon, 12 Mar 2012 11:36:28 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id ED9168FC12; Mon, 12 Mar 2012 11:36:27 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2CBaRXd007601; Mon, 12 Mar 2012 11:36:27 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2CBaRdJ007597; Mon, 12 Mar 2012 11:36:27 GMT (envelope-from linimon) Date: Mon, 12 Mar 2012 11:36:27 GMT Message-Id: <201203121136.q2CBaRdJ007597@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-wireless@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/165969: [ath] Slower performance in adhoc mode vs Client/AP mode, same HW X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 12 Mar 2012 11:36:28 -0000 Old Synopsis: Slower performance in adhoc mode vs Client/AP mode, same HW (atheros adapters) New Synopsis: [ath] Slower performance in adhoc mode vs Client/AP mode, same HW Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless Responsible-Changed-By: linimon Responsible-Changed-When: Mon Mar 12 11:36:12 UTC 2012 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=165969 From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 12 16:27:12 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17CD1106564A; Mon, 12 Mar 2012 16:27:12 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id B68F98FC08; Mon, 12 Mar 2012 16:27:11 +0000 (UTC) Received: by yhgm50 with SMTP id m50so3259566yhg.13 for ; Mon, 12 Mar 2012 09:27:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=LClQQ4BwtXWsaGEmzGr7+BSGgwtvJ5Ozgj3GeMmnCZo=; b=SVQjJjDEov8fmQoKngNTvNMXObmI6IauBrznrEKbpr9rq1RRj7hg9hBZqZpb6NR2ay n6QMvdHHfaL+duIzVKBn9eYxrkOYx/NO+VIONttKWcV4c71A6W7s6PzrxlGtQ9jZWdLU ZYeqUIdAsD8RP0Fc6tSEAK3I8y6lgu4GOLRFQbbSvOrJiKj6ixG9Nu/xdobi2e8/mMCn bmx6l8n6cLfHIDpVQtGVkqy6oWOVMgvHO7SglXi/QDVSidpxbdDGR3rovZMa98peyxMU Z7xaZiWNaR3C0mcYHcrmciElA3bVbSxrmAQZB425xmgbYPAz+7Td9jVMObUS2i6Ql8XL bKmg== MIME-Version: 1.0 Received: by 10.68.240.135 with SMTP id wa7mr1934194pbc.7.1331569630885; Mon, 12 Mar 2012 09:27:10 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Mon, 12 Mar 2012 09:27:10 -0700 (PDT) In-Reply-To: <20120312151358.GA26109@bali> References: <20120312151358.GA26109@bali> Date: Mon, 12 Mar 2012 09:27:10 -0700 X-Google-Sender-Auth: gqK2FK2i0VBOcl_CmwysF5JlzuI Message-ID: From: Adrian Chadd To: Andre Albsmeier Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: [Patch] Reflect state of rfkill switch in a sysctl for ath based card X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 12 Mar 2012 16:27:12 -0000 Hi! Would you please create a PR and let me know what the PR number is? I'll test it out on my local ath(4) NICs and commit it to -HEAD if there aren't any issues with it. Thanks! Adrian On 12 March 2012 08:13, Andre Albsmeier wrote= : > Hello all, > > my laptop (FSC S7020) got this rfkill switch for the normally > used Intel 2200 WLAN card. The state of this switch can be > seen through the dev.iwi.0.radio sysctl. > > With my new Atheros based card (Wistron CM9) this never worked > although the state of the switch was properly honoured by the > card. > > In case anyone is interested: The following patch brings this > functionality to the ath driver of 7.4-STABLE and works at least > on the above mentioned hardware. Comments and suggestions (apart > from style fixes;-)) are welcome... > > =A0 =A0 =A0 =A0-Andre > > --- sys/dev/ath/if_ath.c.ORI =A0 =A02010-11-17 18:30:14.000000000 +0100 > +++ sys/dev/ath/if_ath.c =A0 =A0 =A0 =A02012-03-02 13:47:26.000000000 +01= 00 > @@ -6074,6 +6074,15 @@ > =A0 =A0 =A0 =A0return !ath_hal_settpcts(sc->sc_ah, tpcts) ? EINVAL : 0; > =A0} > > +static int ath_sysctl_radio( SYSCTL_HANDLER_ARGS ) > +{ > + =A0struct ath_softc* sc =3D arg1; > + =A0int val; > + > + =A0val =3D ath_hal_gpioget( sc->sc_ah, sc->sc_rfsilentpin ) ^ sc->sc_rf= silentpol; > + =A0return sysctl_handle_int( oidp, &val, 0, req ); > +} > + > =A0static void > =A0ath_sysctlattach(struct ath_softc *sc) > =A0{ > @@ -6162,6 +6171,7 @@ > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree)= , OID_AUTO, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0"rfkill", CTLTYPE_INT | CT= LFLAG_RW, sc, 0, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0ath_sysctl_rfkill, "I", "e= nable/disable RF kill switch"); > + =A0SYSCTL_ADD_PROC( ctx, SYSCTL_CHILDREN(tree), OID_AUTO, "radio", CTLT= YPE_INT | CTLFLAG_RD, sc, 0, ath_sysctl_radio, "I", "radio transmitter swit= ch state (0=3Doff, 1=3Don)"); > =A0 =A0 =A0 =A0} > =A0 =A0 =A0 =A0sc->sc_monpass =3D HAL_RXERR_DECRYPT | HAL_RXERR_MIC; > =A0 =A0 =A0 =A0SYSCTL_ADD_INT(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, > _______________________________________________ > freebsd-mobile@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mobile > To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@freebsd.org" From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 12 21:06:57 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6F04C106566C; Mon, 12 Mar 2012 21:06:57 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id D25988FC12; Mon, 12 Mar 2012 21:06:56 +0000 (UTC) Received: from badger.unsane.co.uk (badger.unsane.co.uk [85.233.185.165]) (authenticated bits=0) by unsane.co.uk (8.14.5/8.14.5) with ESMTP id q2CL6tAM029817 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Mon, 12 Mar 2012 21:06:55 GMT (envelope-from vince@unsane.co.uk) Message-ID: <4F5E656F.4040004@unsane.co.uk> Date: Mon, 12 Mar 2012 21:06:55 +0000 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Adrian Chadd References: <4F59DD98.8080905@unsane.co.uk> <4F5AA149.8000904@unsane.co.uk> <4F5BDF3C.8070605@unsane.co.uk> <4F5C0302.8090403@unsane.co.uk> <4F5CA45C.1010603@unsane.co.uk> In-Reply-To: <4F5CA45C.1010603@unsane.co.uk> X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: ath0 timeout was "Re: (more) bugs fixed in -HEAD, AP mode is now mostly (again) stable!" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 12 Mar 2012 21:06:57 -0000 On 11/03/2012 13:10, Vincent Hoffman wrote: > On 11/03/2012 01:58, Adrian Chadd wrote: >> Hiya, >> >> Next time it happens, do the sysctl before the scan. I can force a hang by running iperf for a minute or 2. so to be certain, here is it again: ----- ath0: device timeout ar5212StopDmaReceive: dma failed to stop in 10ms AR_CR=0x00000024 AR_DIAG_SW=0x42000020 no tx bufs (empty list): 13422 no tx bufs (was busy): 0 aggr single packet: 40010 aggr single packet w/ BAW closed: 42 aggr non-baw packet: 70 aggr aggregate packet: 57698 aggr single packet low hwq: 507508 aggr sched, no work: 1481 0: 0 1: 0 2: 28283 3: 13179 4: 5948 5: 2900 6: 1846 7: 1354 8: 1238 9: 734 10: 464 11: 371 12: 275 13: 225 14: 205 15: 147 16: 130 17: 70 18: 101 19: 62 20: 27 21: 18 22: 20 23: 14 24: 6 25: 8 26: 9 27: 6 28: 6 29: 6 30: 12 31: 8 32: 26 33: 0 34: 0 35: 0 36: 0 37: 0 38: 0 39: 0 40: 0 41: 0 42: 0 43: 0 44: 0 45: 0 46: 0 47: 0 48: 0 49: 0 50: 0 51: 0 52: 0 53: 0 54: 0 55: 0 56: 0 57: 0 58: 0 59: 0 60: 0 61: 0 62: 0 63: 0 HW TXQ 0: axq_depth=0, axq_aggr_depth=0 HW TXQ 1: axq_depth=0, axq_aggr_depth=0 HW TXQ 2: axq_depth=0, axq_aggr_depth=0 HW TXQ 3: axq_depth=0, axq_aggr_depth=0 HW TXQ 8: axq_depth=0, axq_aggr_depth=0 Total TX buffers: 268; Total TX buffers busy: 0 ----- output of sysctl dev.ath.0.stats | grep -v ': 0$' while hung. [root@ostracod ~/ath-debugging/12-03-2012-43]# sysctl dev.ath.0.stats | grep -v ': 0$' dev.ath.0.stats.ast_watchdog: 46 dev.ath.0.stats.ast_bmiss: 339 dev.ath.0.stats.ast_bmiss_phantom: 257 dev.ath.0.stats.ast_mib: 1235358 dev.ath.0.stats.ast_tx_qstop: 16960 dev.ath.0.stats.ast_tx_xretries: 18 dev.ath.0.stats.ast_tx_longretry: 102841 dev.ath.0.stats.ast_tx_shortpre: 842011 dev.ath.0.stats.ast_tx_altrate: 3385 dev.ath.0.stats.ast_rx_crcerr: 259245 dev.ath.0.stats.ast_rx_badcrypt: 4 dev.ath.0.stats.ast_rx_phyerr: 5 dev.ath.0.stats.ast_per_cal: 5278 dev.ath.0.stats.ast_tx_raw: 446 dev.ath.0.stats.ast_tx_nobuf: 8 dev.ath.0.stats.ast_tx_raw_fail: 8 dev.ath.0.stats.ast_ani_cal: 1583194 dev.ath.0.stats.ast_rx_agg: 876080 dev.ath.0.stats.ast_rx_halfgi: 5 dev.ath.0.stats.ast_rx_2040: 7 dev.ath.0.stats.ast_rx_pre_crc_err: 14996 dev.ath.0.stats.ast_rx_post_crc_err: 951 dev.ath.0.stats.ast_tx_swretries: 2775 dev.ath.0.stats.ast_tx_aggr_ok: 239745 dev.ath.0.stats.ast_tx_aggr_fail: 2757 dev.ath.0.stats.ast_rx_intr: 4500090 dev.ath.0.stats.ast_tx_intr: 1115914 dev.ath.0.stats.rx_phy_err.6: 5 >> The sysctl will tell me how deep each hardware TX queue is. >> >> I should likely add some further debugging to tell me how deep the >> per-TID software queues are; that'd be helpful here. >> >> What you're seeing there is something weird which is causing the TX >> frames to be queued in software/hardware and not be transmitted, to >> the point of buffer exhaustion. See "total TX buffers: 0" ? That means >> the frames can't go out for some reason. There's nothing in the >> hardware queue, so that also has me slightly concerned. >> >> I wonder if this is a problem with aggregation and buffer exhaustion. >> Hm, can you do "wlandebug +11n" and see if it's trying to exchange >> ADDBA frames (and failing) ? There's a known bug where Good guess wlan0: link state changed to DOWN wlan0: [e0:91:f5:48:5b:b9] switch station to HT20 channel 2432/0x10480 wlan0: link state changed to UP wlan0: [e0:91:f5:48:5b:b9] recv ADDBA request: dialogtoken 1 baparamset 0x1002 (tid 0 bufsiz 64) batimeout 0 baseqctl 0:0 wlan0: [e0:91:f5:48:5b:b9] send ADDBA response: dialogtoken 1 status 0 baparamset 0x1002 (tid 0) batimeout 0x0 baseqctl 0x0 wlan0: [e0:91:f5:48:5b:b9] discard MPDU frame, BA win <497:560> (0 frames) rxseq 496 tid 0 (retransmit) Anything else I can give thats useful? cpu is a dual core atom with 4G ram running a pretty much up to date -HEAD amd64 Thanks for looking at this. Vince >> Thanks, >> >> >> Adrian > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" From owner-freebsd-wireless@FreeBSD.ORG Mon Mar 12 22:47:55 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 717CA106564A for ; Mon, 12 Mar 2012 22:47:55 +0000 (UTC) (envelope-from venture37@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id E364C8FC1D for ; Mon, 12 Mar 2012 22:47:54 +0000 (UTC) Received: by wern13 with SMTP id n13so2533331wer.13 for ; Mon, 12 Mar 2012 15:47:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=IONusIKnQCwcnUjiT1FyPI646kEAw7mqRlCCSdcEWaY=; b=wLeJNI0b6edO7cHHhyAQGd08JJSh89UL9CIxinbuKQw0N3zhdxQy64YZPtwpiM/uhv wuKtYzIbaHb++PprkD76A9iK10ngiDKJcAs9HlqQ9F7/RtYh9tiXVkXmag/zZIQaw1XN 7ppRPBpK567viFmj2DpuTxWlcv0S4VMuJ6pXADeMG2LCo35q9zcJTpldMdhDm15d455x 7WdlRJWsayot27o2T/bkNaXcq1lpaSOEs/A4gog5iIxel0cEbpXPMwQ4mPYFQe/9bqtd frUiut5ucWxvjfKeuJqYzijTy9i3pG4tHfD/YE+rjhYsE5kEoIaNKSSC7ps7w14VbOuQ mHog== Received: by 10.180.80.70 with SMTP id p6mr1714385wix.21.1331592474021; Mon, 12 Mar 2012 15:47:54 -0700 (PDT) Received: from Sevans-MacBook-Pro.local (cpc2-brig17-2-0-cust527.3-3.cable.virginmedia.com. [81.101.198.16]) by mx.google.com with ESMTPS id t20sm64227417wiv.0.2012.03.12.15.47.52 (version=SSLv3 cipher=OTHER); Mon, 12 Mar 2012 15:47:52 -0700 (PDT) Message-ID: <4F5E7D17.7000102@gmail.com> Date: Mon, 12 Mar 2012 22:47:51 +0000 From: Sevan / Venture37 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: freebsd-wireless@freebsd.org References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> In-Reply-To: <20120312001625.4d9b3b52.ray@ddteam.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 12 Mar 2012 22:47:55 -0000 Hi Aleksandr, On 11/03/2012 22:16, Aleksandr Rybalko wrote: > we already use that driver with RT3090 modification in zrouter.org tree. where in the tree is this, cloning the repo shows a bunch of wrappers to the the FreeBSD src & config files. Sevn From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 00:43:04 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B8C071065674; Tue, 13 Mar 2012 00:43:04 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 730B38FC18; Tue, 13 Mar 2012 00:43:04 +0000 (UTC) Received: by dald2 with SMTP id d2so6618155dal.13 for ; Mon, 12 Mar 2012 17:43:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=rvCZOXoQfNnfA1J+5oIvAr4a+dbDwANPj9EgSM6vX44=; b=D6Kv0smQ4EL/QdgOo5es3ZTpdLdxdY7MAV+U6KjQwu5WDUKFRFCyQSYk6+/9OYlvJz 9cESnB6sPbZsMIXNcJuAbWcUwxQSB2DcGnOiRUa9qx4y2KDne8kfdolo2hOASjkIwcQi CEixihl6vMfvudmCCUDYV/7hXNaD9efx3yvbWljvJl8GkhNToohSdpviljKVTIqp8S2H 8N0YuQHn4jJj7LJHh72V5gSmh+f58CpjGic6hgjCeDsO5tW3XioOg/02381igPaOzu+0 SgfRctr8QQizNYID8RfS501Slvi2q75E3hZmB+cMK+QhIP3zEKgXTwOb+ZCfXNiqEEgp PT5A== Received: by 10.68.227.38 with SMTP id rx6mr13858998pbc.139.1331599383911; Mon, 12 Mar 2012 17:43:03 -0700 (PDT) Received: from flatline.local (70-36-223-154.dsl.dynamic.sonic.net. [70.36.223.154]) by mx.google.com with ESMTPS id l8sm10799218pbi.0.2012.03.12.17.43.01 (version=SSLv3 cipher=OTHER); Mon, 12 Mar 2012 17:43:02 -0700 (PDT) Message-ID: <4F5E9814.7010803@gmail.com> Date: Mon, 12 Mar 2012 17:43:00 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120218 Thunderbird/10.0.2 MIME-Version: 1.0 To: Sevan / Venture37 References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> <4F5E7D17.7000102@gmail.com> In-Reply-To: <4F5E7D17.7000102@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 00:43:04 -0000 On 03/12/12 15:47, Sevan / Venture37 wrote: > Hi Aleksandr, > > On 11/03/2012 22:16, Aleksandr Rybalko wrote: >> we already use that driver with RT3090 modification in zrouter.org tree. > > where in the tree is this, cloning the repo shows a bunch of wrappers > to the the FreeBSD src & config files. > > Sevn > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to > "freebsd-wireless-unsubscribe@freebsd.org" > http://zrouter.org/hg/FreeBSD/head* *It's on the quick start page...I think Alexandr is merging rt2860 with ral in the zrouter tree as we speak. Matt From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 00:48:59 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08E3E106564A for ; Tue, 13 Mar 2012 00:48:59 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id C2B218FC18 for ; Tue, 13 Mar 2012 00:48:58 +0000 (UTC) Received: by dald2 with SMTP id d2so6624755dal.13 for ; Mon, 12 Mar 2012 17:48:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=Qe9LKmTnsRElHht+rSjDskHj2+/+ERCtrAISRuNS2Js=; b=ilrYoJjp2DuBhntHgHT7ZIcpOFb3qKidb1kOaGuBUvXuhdXSLbQZOZxGS6gVo27LKn TM67ujjUAjzf8oyv1aEXxNrNv7zUqCGCe6eZzzfGGc/DM1vrh6A77l0OsEeJI9rjvPUX Prgkku3OEJaNdt5GgHL8dRrl3CtsO3/+i7uW7XNNstZKR0DtiJmUaB+lrmiCYeYe+3oQ oWTxdagi+X40IyfcRlRwzKXTdt8fmNXWmMfLUVYu2YwbpQRtYXS2Kd2A2kF9PSB++FrF 3A1ek7b3yN4+zszVeGyR6rz1TtLURS2vCSMgt0oVZb/ygsy7xCsazVoxBGcwDAv45LoS gWkQ== MIME-Version: 1.0 Received: by 10.68.191.168 with SMTP id gz8mr3750198pbc.37.1331599738477; Mon, 12 Mar 2012 17:48:58 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Mon, 12 Mar 2012 17:48:58 -0700 (PDT) In-Reply-To: <4F5E9814.7010803@gmail.com> References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> <4F5E7D17.7000102@gmail.com> <4F5E9814.7010803@gmail.com> Date: Mon, 12 Mar 2012 17:48:58 -0700 X-Google-Sender-Auth: ezZRv_C8Op9cHfS5ekGMx4MfrJc Message-ID: From: Adrian Chadd To: matt Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 00:48:59 -0000 .. I'm going to leave this up to you guys/girls/etc to sort out. Let's get this updated ralink NIC driver into -HEAD already! Even if CCMP doesn't yet work let's still get it into the tree and then work on why CCMP is failing. Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 00:53:29 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 20B10106564A for ; Tue, 13 Mar 2012 00:53:29 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by mx1.freebsd.org (Postfix) with ESMTP id 939568FC08 for ; Tue, 13 Mar 2012 00:53:28 +0000 (UTC) Received: by wibhr17 with SMTP id hr17so3981063wib.1 for ; Mon, 12 Mar 2012 17:53:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding :x-gm-message-state; bh=nQUiIdfoFs3zo/h0nRFn26jlA1grVM8uroaLEw1u8qk=; b=ldE5lC03qZnmKrCPxDhgRAbCokX7nwTeduMVVW23AmeHisutU0kMmf6qH6aPpIbpo5 yvZuBnyjcuwOUfIy9j351aOiYtt/rpn+Nf94MMn6F+FpiDPGG3PEY3ANY2i2o7/I0n7J cm/lgXS5mHuumAik4nz7UOhD3ZLTuanuxbXp4p2al+dEpiKgrUd04zeiFhm5fGa/rSkp 6cIz1+JgOtcHqJ4X3GPoomtKyrwOmvgauwaRl1Vx5FCYar8288tqI56yYl5b7gl8+YhB 2gvqL9CuYSncO4AmGS3qo3j49FdyOyWGPQefVUmfz05vMbDFBNry9S2hp8Rb20GyAI0K 201A== Received: by 10.180.88.164 with SMTP id bh4mr2397391wib.22.1331600007616; Mon, 12 Mar 2012 17:53:27 -0700 (PDT) Received: from rnote.ddteam.net (253-19-133-95.pool.ukrtel.net. [95.133.19.253]) by mx.google.com with ESMTPS id o2sm42625370wiv.11.2012.03.12.17.53.25 (version=SSLv3 cipher=OTHER); Mon, 12 Mar 2012 17:53:26 -0700 (PDT) Date: Tue, 13 Mar 2012 02:52:41 +0200 From: Aleksandr Rybalko To: Sevan / Venture37 Message-Id: <20120313025241.c8f2726a.ray@ddteam.net> In-Reply-To: <4F5E7D17.7000102@gmail.com> References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> <4F5E7D17.7000102@gmail.com> X-Mailer: Sylpheed 3.1.2 (GTK+ 2.24.5; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQncZiOdTDZAzjeSetiYm3Wdbd3w1W+OBrFR0ty3as9/rxknHvjkZWne4N82X9nh/71iu8iz Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 00:53:29 -0000 On Mon, 12 Mar 2012 22:47:51 +0000 Sevan / Venture37 wrote: > Hi Aleksandr, Hi Sevan, Matt, Adrian, > > On 11/03/2012 22:16, Aleksandr Rybalko wrote: > > we already use that driver with RT3090 modification in zrouter.org > > tree. > > where in the tree is this, cloning the repo shows a bunch of wrappers > to the the FreeBSD src & config files. Here is the patch: http://my.ddteam.net/files/2012-03-12_rt2860_into_ral.patch style(9) still crying for whole driver :) but work continue. It just tested (but we forgot to enable H/W crypto :) ), attach and works on RT3090 card. Driver also have a lot of modifications to work in SoC like Ralink RT3052F which have embedded RT2872 wireless. Known problem: 1. CCM crypto seems not works. 2. DDONE bit (DMA Done) not always set by H/W, and I was disable check of that bit. But that problem may affect only RT3052F SoC. > > Sevn > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to > "freebsd-wireless-unsubscribe@freebsd.org" P.S. ZRouter Mercurial repository is here: http://zrouter.org/hg/FreeBSD/head/file/default/head/sys/dev/ral WBW -- Aleksandr Rybalko From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 00:58:17 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12159106566B; Tue, 13 Mar 2012 00:58:17 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id C09C18FC19; Tue, 13 Mar 2012 00:58:16 +0000 (UTC) Received: by dald2 with SMTP id d2so7436dal.13 for ; Mon, 12 Mar 2012 17:58:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=pmYN+YhTIq8G5IjS/Hd7JsIEw2ngjpX0eIXyhzuBBtY=; b=0NjHsxkjYaWWpBC2zGiE80CG/SphwTEHLh4QuMLkK2sqwMN9e14A1swRx6uWqyFIxf 7Zo1FcQtmfUvW70ftRRNKRtSHUV9L8vfaf8KNP2szQVn/TPnfCTM61sW/pWT8ujkHowc 0bJp4JtIsJBq/drKWK38gDpPN8wuLAx/BiS0yG48nZ+tLhu+w1wNINuzjktUfwR+6//8 Gm6db1RUOYSW7BrFlbWGIIBivrrINlqVvc0ozUfgpsj7Wf57HypoclPSElW8gMCGaaHh dpGfXdlE9ArG6OZWD4Oyx8hYTnxVYTWqY1mX5YMEqEX5FqrUlanQbA79izmIE7zjbKCD MTIQ== Received: by 10.68.132.102 with SMTP id ot6mr3859207pbb.76.1331600296444; Mon, 12 Mar 2012 17:58:16 -0700 (PDT) Received: from flatline.local (70-36-223-154.dsl.dynamic.sonic.net. [70.36.223.154]) by mx.google.com with ESMTPS id m5sm10788898pbo.69.2012.03.12.17.58.13 (version=SSLv3 cipher=OTHER); Mon, 12 Mar 2012 17:58:15 -0700 (PDT) Message-ID: <4F5E9BA3.2000401@gmail.com> Date: Mon, 12 Mar 2012 17:58:11 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120218 Thunderbird/10.0.2 MIME-Version: 1.0 To: Adrian Chadd References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> <4F5E7D17.7000102@gmail.com> <4F5E9814.7010803@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 00:58:17 -0000 On 03/12/12 17:48, Adrian Chadd wrote: > .. I'm going to leave this up to you guys/girls/etc to sort out. > > Let's get this updated ralink NIC driver into -HEAD already! Even if > CCMP doesn't yet work let's still get it into the tree and then work > on why CCMP is failing. > > > Adrian > It looks like Aleksandr is merging ral together on zrouter. I assume we'll go with that version if that's okay with him. Somehow he's back to one rt2860.c, not sure if he merged them together or what. File structure is more like OpenBSD...so maybe updated? I'm pulling down an hg clone right now and I'll see if I can compile & run it. CCMP was working for me...at least I didn't have any problem downloading/browsing/etc. Matt From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 01:07:54 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3525106566C for ; Tue, 13 Mar 2012 01:07:53 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id B63508FC19 for ; Tue, 13 Mar 2012 01:07:53 +0000 (UTC) Received: by dald2 with SMTP id d2so18531dal.13 for ; Mon, 12 Mar 2012 18:07:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=A1KSw/GyKDvc1eaXIlH0g/9pv5sPvA5INyz9MGFwttc=; b=kZkGUSyGHzc935gyVp42IZ671D6Z7v6mvyk2ZdMBljH5naKgEVqJlczQAVViU2N1Gm 9DgmOrTr3FXJlIX74FevoYCn/8M8+fba+6JFP3y1E4K/3j/YVgZfjAPX6DVrmCQmg/Xk 7ImkO6lKACE+gPC+maPc/Wem+nDUeyoHgdpNPQvkwpeOeUdSizbqKy4hUK8lE4aobREr LZ2rxcoYv7xPg2TM15Z7h71H76B1FmgKYEkr9COzgduJ0akaRYBieoqQ8s2NVa8EwaGr UHhW4SQQtUa1OjucCQv9gAoZIfOi32ou72HOmkHpZuAoUxB6lemGGt8kBa5OX+7Fg4DI z/bQ== Received: by 10.68.227.99 with SMTP id rz3mr3818873pbc.39.1331600873310; Mon, 12 Mar 2012 18:07:53 -0700 (PDT) Received: from flatline.local (70-36-223-154.dsl.dynamic.sonic.net. [70.36.223.154]) by mx.google.com with ESMTPS id d9sm9975358pba.44.2012.03.12.18.07.51 (version=SSLv3 cipher=OTHER); Mon, 12 Mar 2012 18:07:52 -0700 (PDT) Message-ID: <4F5E9DE6.3020905@gmail.com> Date: Mon, 12 Mar 2012 18:07:50 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120218 Thunderbird/10.0.2 MIME-Version: 1.0 To: Aleksandr Rybalko References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> <4F5E7D17.7000102@gmail.com> <20120313025241.c8f2726a.ray@ddteam.net> In-Reply-To: <20120313025241.c8f2726a.ray@ddteam.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 01:07:54 -0000 On 03/12/12 17:52, Aleksandr Rybalko wrote: > On Mon, 12 Mar 2012 22:47:51 +0000 > Sevan / Venture37 wrote: > >> Hi Aleksandr, > Hi Sevan, Matt, Adrian, > >> On 11/03/2012 22:16, Aleksandr Rybalko wrote: >>> we already use that driver with RT3090 modification in zrouter.org >>> tree. >> where in the tree is this, cloning the repo shows a bunch of wrappers >> to the the FreeBSD src& config files. > Here is the patch: > http://my.ddteam.net/files/2012-03-12_rt2860_into_ral.patch > > style(9) still crying for whole driver :) > but work continue. > > It just tested (but we forgot to enable H/W crypto :) ), attach and > works on RT3090 card. > > Driver also have a lot of modifications to work in SoC like Ralink > RT3052F which have embedded RT2872 wireless. > > Known problem: > 1. CCM crypto seems not works. > 2. DDONE bit (DMA Done) not always set by H/W, and I was disable check > of that bit. But that problem may affect only RT3052F SoC. > >> Sevn >> _______________________________________________ >> freebsd-wireless@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to >> "freebsd-wireless-unsubscribe@freebsd.org" > P.S. > ZRouter Mercurial repository is here: > http://zrouter.org/hg/FreeBSD/head/file/default/head/sys/dev/ral > > WBW > I noticed sysctls still called "hw.rt2860" not sure if that's intentional. I am willing to help with anything you want help on, including making style :) I seemed to not have problems with CCMP (WPA2) here on the rt2860 I was using...is the problem with hardware crypto only? Thanks! Matt From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 01:44:52 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A0B4B106564A for ; Tue, 13 Mar 2012 01:44:52 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4A9238FC08 for ; Tue, 13 Mar 2012 01:44:52 +0000 (UTC) Received: by ggnk4 with SMTP id k4so37119ggn.13 for ; Mon, 12 Mar 2012 18:44:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=4j3FaBTHMx8pVFp+W+5zFZfUZZiYr4geSKildN5ed74=; b=Qw7k37KfZH4RkaKSCZ3bkW39V0t2SxkbypegKRHBY5e9BuFHOvI1HrRUvb8URyKQJi 1yfEgSlh6uZH9aq/o75y1yeb67A9tjRkbJXRvcWQU5GtFS9bChZt3teekDGGsHqidoYL 74/hZcZnRNck+gox89Rtd7EAWnN1/oYvQmCgeyGqc0FeHPbqCVGac+To8ydVlHL3N7rE CVhZcNw3oqwFPTLg/GwMpY6UqayJCtiA7E7+CyA3nP5hOgzit42iriAjhZx6t6oMriWn UZm1iE+HxxDyn415uOSOxhdPFxA0rpYPM+G2mqnsO2ao8K8Zfv1+HxCJmLdjz4alYuJn kACQ== Received: by 10.60.27.170 with SMTP id u10mr4037732oeg.50.1331603091545; Mon, 12 Mar 2012 18:44:51 -0700 (PDT) Received: from flatline.local (70-36-223-154.dsl.dynamic.sonic.net. [70.36.223.154]) by mx.google.com with ESMTPS id b2sm23426560obo.22.2012.03.12.18.44.49 (version=SSLv3 cipher=OTHER); Mon, 12 Mar 2012 18:44:50 -0700 (PDT) Message-ID: <4F5EA68E.8040002@gmail.com> Date: Mon, 12 Mar 2012 18:44:46 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120218 Thunderbird/10.0.2 MIME-Version: 1.0 To: Aleksandr Rybalko References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> <4F5E7D17.7000102@gmail.com> <20120313025241.c8f2726a.ray@ddteam.net> In-Reply-To: <20120313025241.c8f2726a.ray@ddteam.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 01:44:52 -0000 On 03/12/12 17:52, Aleksandr Rybalko wrote: > On Mon, 12 Mar 2012 22:47:51 +0000 > Sevan / Venture37 wrote: > >> Hi Aleksandr, > Hi Sevan, Matt, Adrian, > >> On 11/03/2012 22:16, Aleksandr Rybalko wrote: >>> we already use that driver with RT3090 modification in zrouter.org >>> tree. >> where in the tree is this, cloning the repo shows a bunch of wrappers >> to the the FreeBSD src& config files. > Here is the patch: > http://my.ddteam.net/files/2012-03-12_rt2860_into_ral.patch > > style(9) still crying for whole driver :) > but work continue. > > It just tested (but we forgot to enable H/W crypto :) ), attach and > works on RT3090 card. > > Driver also have a lot of modifications to work in SoC like Ralink > RT3052F which have embedded RT2872 wireless. > > Known problem: > 1. CCM crypto seems not works. > 2. DDONE bit (DMA Done) not always set by H/W, and I was disable check > of that bit. But that problem may affect only RT3052F SoC. > >> Sevn >> _______________________________________________ >> freebsd-wireless@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to >> "freebsd-wireless-unsubscribe@freebsd.org" > P.S. > ZRouter Mercurial repository is here: > http://zrouter.org/hg/FreeBSD/head/file/default/head/sys/dev/ral > > WBW Hi Alexandr, The ral in zrouter won't do CCMP, and it caused a hardware lockup after a couple dhcp packets...not sure what's going on. I need to sync this machine to head, although it's only a few days behind, so maybe it was just the module being incompatible. Something is not working in there :). I didn't get a debugger, so no backtrace unfortunately. Card is a 3090, LiteOn branded I'll csup to HEAD and give it another try. Thanks, Matt From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 03:55:08 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3EE81065688 for ; Tue, 13 Mar 2012 03:55:07 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm7-vm0.bullet.mail.sp2.yahoo.com (nm7-vm0.bullet.mail.sp2.yahoo.com [98.139.91.192]) by mx1.freebsd.org (Postfix) with SMTP id AF3B18FC1B for ; Tue, 13 Mar 2012 03:55:07 +0000 (UTC) Received: from [98.139.91.64] by nm7.bullet.mail.sp2.yahoo.com with NNFMP; 13 Mar 2012 03:55:07 -0000 Received: from [208.71.42.198] by tm4.bullet.mail.sp2.yahoo.com with NNFMP; 13 Mar 2012 03:55:07 -0000 Received: from [127.0.0.1] by smtp209.mail.gq1.yahoo.com with NNFMP; 13 Mar 2012 03:55:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1331610907; bh=oyGRkD25rameFYSUb3GoMJCOucmWEh3XabvqlbTOjmg=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Cc:Content-Type:Content-Transfer-Encoding; b=VphGkARi2S7VoUlaZwOGJeVwDhB1JLGkpi/PPIgVUJSms7My20bYBUB7TlOMenNmA/58M0Ojgbwu43/PVYYXrKQC1/0WBHMPYtj29d1L+QpykfF76NCDPGQDMChOsDrKkXDhrEhis826xzalVmSM5PjS1AKUFLVh9XJucwOQWYE= X-Yahoo-Newman-Id: 315895.26730.bm@smtp209.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: _Ipn.yUVM1ktB2m4XQEYp0EdkVIXPPZObryjcO7u9SKz4iP VyqUm8vxaO63r1jWqlOBeYRQKIKeWGjP_mUrskV9IoVmoLGcKFcE48ze8CwB TWPxosKmIYG2nbm4Enyll5QkN5giuwx.IyOdtcU4wZHkdryc6icHK.qKqEQE q8CLi4aIPlC5NS5enj3W8spxz1CQ7Q2YeKLz0fSIf8pwOwdsyQU2UpS8XtXy AkLdLBp5tmhvlOvaLV1Hfzuy9_cHX8A8TsjCyrPELbQDdkl2ThSH0K0_X_D0 JTW5P56GW.zXuoNRxxaOrgexX9YL7gUF3mmrjF5Nhf7ColGBkYHL20ZjA3wP dMHZManYzojdF8JWjCvofqr_5PyMQIm9Hxoep4Ejw11haAnEOUdaiybaLJOd 151VNAPq6N12zAfkDrO2TgksSRYUdKalZhdVmExB03IT3kJcl0ODL8Q-- X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-iy0-f182.google.com (moonlightakkiy@209.85.210.182 with plain) by smtp209.mail.gq1.yahoo.com with SMTP; 12 Mar 2012 20:55:07 -0700 PDT Received: by iahk25 with SMTP id k25so233390iah.13 for ; Mon, 12 Mar 2012 20:55:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.179.98 with SMTP id df2mr2039133igc.32.1331610906586; Mon, 12 Mar 2012 20:55:06 -0700 (PDT) Received: by 10.231.108.133 with HTTP; Mon, 12 Mar 2012 20:55:06 -0700 (PDT) Date: Mon, 12 Mar 2012 21:55:06 -0600 Message-ID: From: PseudoCylon To: Adrian Chadd , matt , "Sevan / Venture37" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 03:55:08 -0000 > ------------------------------ > > Message: 12 > Date: Sun, 11 Mar 2012 14:14:23 -0700 > From: Adrian Chadd > Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 > To: "Sevan / Venture37" > Cc: freebsd-wireless@freebsd.org > Message-ID: > =A0 =A0 =A0 =A0 > Content-Type: text/plain; charset=3DISO-8859-1 > > On 11 March 2012 14:10, Sevan / Venture37 wrote: > >>> I'll post a new one in a bit. If you want to help, would you be ok with >>> git as opposed to hg? >> >> >> nope not at all but if its because of familiarity then in this scenario = it >> doesn't make much difference which is used, same work flow, change, comm= it, >> push, pull, rinse, repeat. :) > > Hiya, > > Let's just strip the ^M's from the tree and as long as ray@ and > pseudocyclon are a-ok with the work thus far, I'll commit it to -HEAD. > > We can then tidy things up from there. > > I just don't want to commit ^M's to the tree, or blatant style(9) > violations. But we can always tidy things up incrementally once > they're in the tree. > I've talked about ieee80211_send_bar() with matt, already. Other than that, * rt2860_raw_xmit() ignores ieee80211_bpf_params, * wouldn't that be better to disable some interrupts that only increment counters. i.e rt2860_gp_timer_intr() Though, we can tidy up all of those later. > The driver attaches but ifconfig wlan0 scan doesn't show any access > points All mgt frames are sent as wme class of 5, but probe_req frames should be sent as WME_AC_BE. This might cause glitch in probing. Hence nothing in scan result. (?) AK From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 06:44:51 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6C9561065672 for ; Tue, 13 Mar 2012 06:44:51 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 20BDF8FC12 for ; Tue, 13 Mar 2012 06:44:50 +0000 (UTC) Received: by yenl9 with SMTP id l9so241957yen.13 for ; Mon, 12 Mar 2012 23:44:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=R8ocgN2J34JTDdApmIlnXApMWUIm4H9aMEr0K19n9EY=; b=Ks9fHYKcrysHP4CQbmOSr6wvBiY4WTmQ9c4KYg1LxQvAQg8nz6BWvlJ/kY2v5O1Zx4 MoX8x/Db23gAs3aq42Z3NhUfV/T46K19qAMm0qeNJi61vasuHr2wg27KVhv48azAVNUL Hz66xOQHVTSgGxm+iVjPv4egRVimUCa/MkrWWQR5e19y+g1EIUD4A2TC8AfeHdplL10w 1TLu7KGYqAAQBn//SHb3clSldI0WzG+P87bdVDsUIU2tExUJwBFGBVu0HEogkFBzJ24L svqM5Q9iYxVLplu9cC/Oharj/djF6SAunS+oOOqU5iQUdCMNoaPpcHr4ftSycBqcG38B nazg== MIME-Version: 1.0 Received: by 10.68.191.168 with SMTP id gz8mr4948427pbc.37.1331621090039; Mon, 12 Mar 2012 23:44:50 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Mon, 12 Mar 2012 23:44:49 -0700 (PDT) In-Reply-To: <4F5E656F.4040004@unsane.co.uk> References: <4F59DD98.8080905@unsane.co.uk> <4F5AA149.8000904@unsane.co.uk> <4F5BDF3C.8070605@unsane.co.uk> <4F5C0302.8090403@unsane.co.uk> <4F5CA45C.1010603@unsane.co.uk> <4F5E656F.4040004@unsane.co.uk> Date: Mon, 12 Mar 2012 23:44:49 -0700 X-Google-Sender-Auth: WSUhXwzemY6-0wETzahPxu6v14E Message-ID: From: Adrian Chadd To: Vincent Hoffman Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ath0 timeout was "Re: (more) bugs fixed in -HEAD, AP mode is now mostly (again) stable!" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 06:44:51 -0000 Can you try with the PC booted with SMP disabled, see what happens? I haven't tried AP mode on any SMP hardware. Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 10:29:42 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 606EF10656B3; Tue, 13 Mar 2012 10:29:42 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 12D138FC22; Tue, 13 Mar 2012 10:29:42 +0000 (UTC) Received: from terran.dlink.ua (unknown [192.168.10.90]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPSA id 20895C493A; Tue, 13 Mar 2012 12:29:41 +0200 (EET) Date: Tue, 13 Mar 2012 12:30:37 +0200 From: Aleksandr Rybalko To: PseudoCylon Message-Id: <20120313123037.0eb29eb9.ray@dlink.ua> In-Reply-To: References: Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 10:29:42 -0000 On Mon, 12 Mar 2012 21:55:06 -0600 PseudoCylon wrote: >> > ------------------------------ >> > >> > Message: 12 >> > Date: Sun, 11 Mar 2012 14:14:23 -0700 >> > From: Adrian Chadd >> > Subject: Re: Please Test: Updated Ral Driver Patch for >> > rt2860/rt3090 To: "Sevan / Venture37" >> > Cc: freebsd-wireless@freebsd.org >> > Message-ID: >> >         >> > Content-Type: text/plain; charset=ISO-8859-1 >> > >> > On 11 March 2012 14:10, Sevan / Venture37 >> > wrote: >> > >> >>> I'll post a new one in a bit. If you want to help, would you be >> >>> ok with git as opposed to hg? >> >> >> >> >> >> nope not at all but if its because of familiarity then in this >> >> scenario it doesn't make much difference which is used, same work >> >> flow, change, commit, push, pull, rinse, repeat. :) >> > >> > Hiya, >> > >> > Let's just strip the ^M's from the tree and as long as ray@ and >> > pseudocyclon are a-ok with the work thus far, I'll commit it to >> > -HEAD. >> > >> > We can then tidy things up from there. >> > >> > I just don't want to commit ^M's to the tree, or blatant style(9) >> > violations. But we can always tidy things up incrementally once >> > they're in the tree. >> > >> >> I've talked about ieee80211_send_bar() with matt, already. Can you please point me to that discussion? >> >> Other than that, >> * rt2860_raw_xmit() ignores ieee80211_bpf_params, added that under notyet, so we will deal with it in near future >> * wouldn't that be better to disable some interrupts that only >> increment counters. i.e rt2860_gp_timer_intr() good point - removed >> >> Though, we can tidy up all of those later. >> >> >> > The driver attaches but ifconfig wlan0 scan doesn't show any access >> > points >> >> All mgt frames are sent as wme class of 5, but probe_req frames >> should be sent as WME_AC_BE. This might cause glitch in probing. >> Hence nothing in scan result. (?) >> IIRC it show scan results w/o problems, but i will look on it later. >> >> AK >> _______________________________________________ >> freebsd-wireless@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to >> "freebsd-wireless-unsubscribe@freebsd.org" Thank you very much! WBW -- Alexandr Rybalko aka Alex RAY From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 10:55:45 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C1191065670 for ; Tue, 13 Mar 2012 10:55:45 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id BC8D28FC08 for ; Tue, 13 Mar 2012 10:55:44 +0000 (UTC) Received: from terran.dlink.ua (unknown [192.168.10.90]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPSA id 7A052C495C; Tue, 13 Mar 2012 12:55:43 +0200 (EET) Date: Tue, 13 Mar 2012 12:56:40 +0200 From: Aleksandr Rybalko To: matt Message-Id: <20120313125640.5924fe69.ray@ddteam.net> In-Reply-To: <4F5EA68E.8040002@gmail.com> References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> <4F5E7D17.7000102@gmail.com> <20120313025241.c8f2726a.ray@ddteam.net> <4F5EA68E.8040002@gmail.com> Organization: DDTeam.net X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 10:55:45 -0000 On Mon, 12 Mar 2012 18:44:46 -0700 matt wrote: >> On 03/12/12 17:52, Aleksandr Rybalko wrote: >> > On Mon, 12 Mar 2012 22:47:51 +0000 >> > Sevan / Venture37 wrote: >> > >> >> Hi Aleksandr, >> > Hi Sevan, Matt, Adrian, >> > >> >> On 11/03/2012 22:16, Aleksandr Rybalko wrote: >> >>> we already use that driver with RT3090 modification in >> >>> zrouter.org tree. >> >> where in the tree is this, cloning the repo shows a bunch of >> >> wrappers to the the FreeBSD src& config files. >> > Here is the patch: >> > http://my.ddteam.net/files/2012-03-12_rt2860_into_ral.patch >> > >> > style(9) still crying for whole driver :) >> > but work continue. >> > >> > It just tested (but we forgot to enable H/W crypto :) ), attach and >> > works on RT3090 card. >> > >> > Driver also have a lot of modifications to work in SoC like Ralink >> > RT3052F which have embedded RT2872 wireless. >> > >> > Known problem: >> > 1. CCM crypto seems not works. >> > 2. DDONE bit (DMA Done) not always set by H/W, and I was disable >> > check of that bit. But that problem may affect only RT3052F SoC. >> > >> >> Sevn >> >> _______________________________________________ >> >> freebsd-wireless@freebsd.org mailing list >> >> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> >> To unsubscribe, send any mail to >> >> "freebsd-wireless-unsubscribe@freebsd.org" >> > P.S. >> > ZRouter Mercurial repository is here: >> > http://zrouter.org/hg/FreeBSD/head/file/default/head/sys/dev/ral >> > >> > WBW >> Hi Alexandr, >> >> The ral in zrouter won't do CCMP, and it caused a hardware lockup >> after a couple dhcp packets...not sure what's going on. >> I need to sync this machine to head, although it's only a few days >> behind, so maybe it was just the module being incompatible. >> Something is not working in there :). I didn't get a debugger, so no >> backtrace unfortunately. >> >> Card is a 3090, LiteOn branded >> >> I'll csup to HEAD and give it another try. >> >> Thanks, >> Matt Hi Matt, when I send patch to Sergey Dyatko, H/W crypto was ifdef-ed, so he test w/ S/W crypto without problems. He have RT3090 based card in laptop. Will dig what else I forget/broke :) WBW -- Aleksandr Rybalko From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 11:03:49 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C42A8106566B for ; Tue, 13 Mar 2012 11:03:49 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 711418FC15 for ; Tue, 13 Mar 2012 11:03:49 +0000 (UTC) Received: from terran.dlink.ua (unknown [192.168.10.90]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPSA id 51A33C493A; Tue, 13 Mar 2012 13:03:48 +0200 (EET) Date: Tue, 13 Mar 2012 13:04:45 +0200 From: Aleksandr Rybalko To: matt Message-Id: <20120313130445.f08fbd83.ray@ddteam.net> In-Reply-To: <4F5E9DE6.3020905@gmail.com> References: <4F41DDE8.6060004@gmail.com> <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> <4F5E7D17.7000102@gmail.com> <20120313025241.c8f2726a.ray@ddteam.net> <4F5E9DE6.3020905@gmail.com> Organization: DDTeam.net X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 11:03:49 -0000 On Mon, 12 Mar 2012 18:07:50 -0700 matt wrote: >> On 03/12/12 17:52, Aleksandr Rybalko wrote: >> > On Mon, 12 Mar 2012 22:47:51 +0000 >> > Sevan / Venture37 wrote: >> > >> >> Hi Aleksandr, >> > Hi Sevan, Matt, Adrian, >> > >> >> On 11/03/2012 22:16, Aleksandr Rybalko wrote: >> >>> we already use that driver with RT3090 modification in >> >>> zrouter.org tree. >> >> where in the tree is this, cloning the repo shows a bunch of >> >> wrappers to the the FreeBSD src& config files. >> > Here is the patch: >> > http://my.ddteam.net/files/2012-03-12_rt2860_into_ral.patch >> > >> > style(9) still crying for whole driver :) >> > but work continue. >> > >> > It just tested (but we forgot to enable H/W crypto :) ), attach and >> > works on RT3090 card. >> > >> > Driver also have a lot of modifications to work in SoC like Ralink >> > RT3052F which have embedded RT2872 wireless. >> > >> > Known problem: >> > 1. CCM crypto seems not works. >> > 2. DDONE bit (DMA Done) not always set by H/W, and I was disable >> > check of that bit. But that problem may affect only RT3052F SoC. >> > >> >> Sevn >> >> _______________________________________________ >> >> freebsd-wireless@freebsd.org mailing list >> >> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> >> To unsubscribe, send any mail to >> >> "freebsd-wireless-unsubscribe@freebsd.org" >> > P.S. >> > ZRouter Mercurial repository is here: >> > http://zrouter.org/hg/FreeBSD/head/file/default/head/sys/dev/ral >> > >> > WBW >> > >> I noticed sysctls still called "hw.rt2860" not sure if that's >> intentional. Fixed :) >> I am willing to help with anything you want help on, >> including making style :) It is cool, there is so many work yet, so any help are welcomed!!! While i'm busy with tidy main module, can you please help me with style(9) cleanup of *.h. >> I seemed to not have problems with CCMP (WPA2) here on the rt2860 I >> was using...is the problem with hardware crypto only? Yeah, it seems i was broke it, so i will find it ASAP and fix. >> >> Thanks! >> >> Matt Thank you Matt! WBW -- Aleksandr Rybalko From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 11:13:20 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 464041065674; Tue, 13 Mar 2012 11:13:20 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id E78C18FC0C; Tue, 13 Mar 2012 11:13:19 +0000 (UTC) Received: from terran.dlink.ua (unknown [192.168.10.90]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPSA id 3ED87C493A; Tue, 13 Mar 2012 13:13:18 +0200 (EET) Date: Tue, 13 Mar 2012 13:14:15 +0200 From: Aleksandr Rybalko To: matt Message-Id: <20120313131415.36ecd761.ray@dlink.ua> In-Reply-To: <4F5E9BA3.2000401@gmail.com> References: <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> <4F5E7D17.7000102@gmail.com> <4F5E9814.7010803@gmail.com> <4F5E9BA3.2000401@gmail.com> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 11:13:20 -0000 On Mon, 12 Mar 2012 17:58:11 -0700 matt wrote: >> On 03/12/12 17:48, Adrian Chadd wrote: >> > .. I'm going to leave this up to you guys/girls/etc to sort out. >> > >> > Let's get this updated ralink NIC driver into -HEAD already! Even >> > if CCMP doesn't yet work let's still get it into the tree and then >> > work on why CCMP is failing. >> > >> > >> > Adrian >> > >> It looks like Aleksandr is merging ral together on zrouter. >> I assume we'll go with that version if that's okay with him. >> Somehow he's back to one rt2860.c, not sure if he merged them >> together or what. I use more that year rt2860 driver, and it is in zrouter tree. But zrouter have the good plan to have everything required in FreeBSD tree :) So everything must be discussed/fixed/cleaned/commited to FreeBSD tree. and ZRouter will free own FreeBSD source repo. So I merge whole rt2860 driver into 4 files (rt2860.c, rt2860reg.h, rt2860ucode.h, rt2860var.h) to attach it to existing ral(4) driver. Since future updates from A.Egorenkov repo are not expected. >> File structure is more like OpenBSD...so maybe updated? Original rt2860 driver is based on OpenBSD one, so we still use OpenBSD driver for updates. That how I add RT3090 support. >> I'm pulling down an hg clone right now and I'll see if I can compile >> & run it. >> >> CCMP was working for me...at least I didn't have any problem >> downloading/browsing/etc. >> >> Matt Thank you! WBW -- Alexandr Rybalko aka Alex RAY From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 11:19:45 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2362106564A; Tue, 13 Mar 2012 11:19:44 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from goliath.siemens.de (goliath.siemens.de [192.35.17.28]) by mx1.freebsd.org (Postfix) with ESMTP id 707BE8FC15; Tue, 13 Mar 2012 11:19:44 +0000 (UTC) Received: from mail2.siemens.de (localhost [127.0.0.1]) by goliath.siemens.de (8.13.6/8.13.6) with ESMTP id q2DBBQWH002268; Tue, 13 Mar 2012 12:11:27 +0100 Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.40.130]) by mail2.siemens.de (8.13.6/8.13.6) with ESMTP id q2DBBQLp031040; Tue, 13 Mar 2012 12:11:26 +0100 Received: (from localhost) by curry.mchp.siemens.de (8.14.5/8.14.5) id q2DBBQuH082981; Date: Tue, 13 Mar 2012 12:11:26 +0100 From: Andre Albsmeier To: Adrian Chadd Message-ID: <20120313111126.GA29538@bali> References: <20120312151358.GA26109@bali> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Echelon: X-Advice: Drop that crappy M$-Outlook, I'm tired of your viruses! User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "freebsd-wireless@freebsd.org" , "Albsmeier, Andre" , "freebsd-mobile@freebsd.org" Subject: Re: [Patch] Reflect state of rfkill switch in a sysctl for ath based card X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 11:19:45 -0000 On Mon, 12-Mar-2012 at 17:27:10 +0100, Adrian Chadd wrote: > Hi! > > Would you please create a PR and let me know what the PR number is? Well, there is a high probability that it might not work on non-5212 cards end even here it might fail (I can just test it with this Wistron CM9 card). Maybe someone with more knowledge about ath(4) (Sam?) might have quick look at it before... -Andre > > I'll test it out on my local ath(4) NICs and commit it to -HEAD if > there aren't any issues with it. > > Thanks! > > > Adrian > > > On 12 March 2012 08:13, Andre Albsmeier wrote: > > Hello all, > > > > my laptop (FSC S7020) got this rfkill switch for the normally > > used Intel 2200 WLAN card. The state of this switch can be > > seen through the dev.iwi.0.radio sysctl. > > > > With my new Atheros based card (Wistron CM9) this never worked > > although the state of the switch was properly honoured by the > > card. > > > > In case anyone is interested: The following patch brings this > > functionality to the ath driver of 7.4-STABLE and works at least > > on the above mentioned hardware. Comments and suggestions (apart > > from style fixes;-)) are welcome... > > > >        -Andre > > > > --- sys/dev/ath/if_ath.c.ORI    2010-11-17 18:30:14.000000000 +0100 > > +++ sys/dev/ath/if_ath.c        2012-03-02 13:47:26.000000000 +0100 > > @@ -6074,6 +6074,15 @@ > >        return !ath_hal_settpcts(sc->sc_ah, tpcts) ? EINVAL : 0; > >  } > > > > +static int ath_sysctl_radio( SYSCTL_HANDLER_ARGS ) > > +{ > > +  struct ath_softc* sc = arg1; > > +  int val; > > + > > +  val = ath_hal_gpioget( sc->sc_ah, sc->sc_rfsilentpin ) ^ sc->sc_rfsilentpol; > > +  return sysctl_handle_int( oidp, &val, 0, req ); > > +} > > + > >  static void > >  ath_sysctlattach(struct ath_softc *sc) > >  { > > @@ -6162,6 +6171,7 @@ > >                SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, > >                        "rfkill", CTLTYPE_INT | CTLFLAG_RW, sc, 0, > >                        ath_sysctl_rfkill, "I", "enable/disable RF kill switch"); > > +  SYSCTL_ADD_PROC( ctx, SYSCTL_CHILDREN(tree), OID_AUTO, "radio", CTLTYPE_INT | CTLFLAG_RD, sc, 0, ath_sysctl_radio, "I", "radio transmitter switch state (0=off, 1=on)"); > >        } > >        sc->sc_monpass = HAL_RXERR_DECRYPT | HAL_RXERR_MIC; > >        SYSCTL_ADD_INT(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, > > _______________________________________________ > > freebsd-mobile@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-mobile > > To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@freebsd.org" -- FreeBSD: We eat penguins for breakfast From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 12:17:43 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D1914106566B for ; Tue, 13 Mar 2012 12:17:43 +0000 (UTC) (envelope-from venture37@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4B56E8FC0C for ; Tue, 13 Mar 2012 12:17:43 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so466590bkc.13 for ; Tue, 13 Mar 2012 05:17:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=4RqdM68v7p45ocExUcu6ZIHwbxq0aBeJ6op2c5XomYc=; b=LVOjrQ7iLhRt3ksVsNaHafSNG6nHowaqSXKyvGAd8ViXcD51xFLBl2PfhC5UdmV8sM LAcgqH4LgDhKQ3PLZvlzyGw6Tu8mdHKWQAeFRcKR0xU/BT/66ZguSWiHCeV+cTH/NG0q /osqIcAjPtMS7nXD7fbya07Fhbpqfin+56PSiI67Br1Ok7iutsnDPrKTVDti4TKPbEZu Q/OWxlZg6R8yjPK7oR4oVV/L7qL8MhMKfj2PHRXBss4yMbGb/WhxJi4o2vEob9k+aeIW eBTvcgKbdnlSNwwlDcrUIlK/bLtj9sjqtjvL5kpvB/+0QVRUTWyGB7v2q+CNDgZX9dFG 8h/g== Received: by 10.205.133.208 with SMTP id hz16mr6049028bkc.56.1331641062300; Tue, 13 Mar 2012 05:17:42 -0700 (PDT) Received: from Sevans-MacBook-Pro.local (cpc2-brig17-2-0-cust527.3-3.cable.virginmedia.com. [81.101.198.16]) by mx.google.com with ESMTPS id bw9sm1026489bkb.8.2012.03.13.05.17.40 (version=SSLv3 cipher=OTHER); Tue, 13 Mar 2012 05:17:41 -0700 (PDT) Message-ID: <4F5F3AE3.4050302@gmail.com> Date: Tue, 13 Mar 2012 12:17:39 +0000 From: Sevan / Venture37 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: freebsd-wireless@freebsd.org References: <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> <4F5E7D17.7000102@gmail.com> <4F5E9814.7010803@gmail.com> <4F5E9BA3.2000401@gmail.com> <20120313131415.36ecd761.ray@dlink.ua> In-Reply-To: <20120313131415.36ecd761.ray@dlink.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 12:17:43 -0000 On 13/03/2012 11:14, Aleksandr Rybalko wrote: > So I merge whole rt2860 driver into 4 files (rt2860.c, > rt2860reg.h, rt2860ucode.h, rt2860var.h) to attach it to existing ral(4) > driver. Since future updates from A.Egorenkov repo are not expected. Wonderful, Is it possible to get this into a temp repo somewhere so everyone is on the same page instead of posting diffs around? Sevan From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 12:30:46 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78904106566C for ; Tue, 13 Mar 2012 12:30:46 +0000 (UTC) (envelope-from saint_bxg@126.com) Received: from m15-16.126.com (m15-16.126.com [220.181.15.16]) by mx1.freebsd.org (Postfix) with ESMTP id E0A1D8FC15 for ; Tue, 13 Mar 2012 12:30:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=Received:Date:From:To:Message-ID:Subject: MIME-Version:Content-Type; bh=jXYDyqjLqw0cyPAV0SPjSXOkoZ8ZzTC+VY tQpjaCKxw=; b=o954enYNIrv9z5rwJ+pJSsHVKCr3Y4h8u5+8nK3c7S5sCdCZG/ X7CTNQ96GJgGw/x0dEko+PzqHS1qjmqSeGhF0surbib0u5PcF7pbT/EDUIKtPi5n ZsYud1xyaHyOaCrJrtpGGbLOVLV1JonI60wyiCtZhR6AJxXjXawZJWbf8= Received: from saint_bxg ( [211.144.202.142] ) by ajax-webmail-wmsvr16 (Coremail) ; Tue, 13 Mar 2012 20:00:25 +0800 (CST) Date: Tue, 13 Mar 2012 20:00:25 +0800 (CST) From: saint To: freebsd-wireless@freebsd.org Message-ID: <4ef315ef.141dd.1360bee4368.Coremail.saint_bxg@126.com> MIME-Version: 1.0 X-Originating-IP: [211.144.202.142] X-CM-HeaderCharset: GBK X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 20120307(17626.4462.4455) Copyright (c) 2002-2012 www.mailtech.cn 126com X-CM-CTRLDATA: l6hTWGZvb3Rlcl9odG09Mjc3MTo4MQ== X-CM-TRANSID: EMqowGC5WUPaNl9PNaFLAA--.1063W X-CM-SenderInfo: hvdl03pbe0wqqrswhudrp/1tbiJxxwuE1rxndf-QABsH X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Freebsd9.0 TDMA: stuck beacon problem X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 12:30:46 -0000 Hi Adrian: This is Michael. I'm trying to implement TDMA connection with two Atheros cards(AR5416 and AR9285) working on freebsd 9.0-release. After reading the handbook, I added the build option IEEE80211_SUPPORT_TDMA, and modified loader.conf as: if_ath_load="YES" if_ath_pci_load="YES" I rebuilt and reinstalled the kernel, reboot ... After that, the ath driver can be loaded and I could configure two cards as adhoc mode and connect each other successfully. :) But, when I configured the card as tdma mode and set it as a master(tdmaslot 0), a few seconds later, the screen was full of: "ath0: stuck beacon; resetting( bmiss count 4)" config commands: ifconfig wlan0 create wlandev ath0 wlanmode tdma ifconfig wlan0 ssid freebsd-tdma tdmaslotlen 2500 tdmaslot 0 ifconfig wlan0 up (after this, "ath0: stuck beacon..." appears) If I set the card as a slave( tdmaslot 1), no these output messages. :( I tried to find the result from the code, it pointed to ath_hal_numtxpending(). (That means there are still frames pending in the QCU(AR5416)). But I didn't know why. I searched it on the internet, many people experienced it, but none of them was the same case as mine. Then I reinstalled the OS with freebsd8.2-release. There was no "ath0: stuck beacon..." :) But under freebsd8.2, I could not connect two cards as tdma mode either(no beacons send out). Oh~~ :(:( Card not support? OS not support? TDMA not support in 9.0 release? Could you give me some advise, thanks a lot! Best Wishes From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 12:54:44 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3AA92106566B for ; Tue, 13 Mar 2012 12:54:44 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id DF1DC8FC0A for ; Tue, 13 Mar 2012 12:54:43 +0000 (UTC) Received: from terran.dlink.ua (unknown [192.168.10.90]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPSA id 4DDBEC492D; Tue, 13 Mar 2012 14:54:41 +0200 (EET) Date: Tue, 13 Mar 2012 14:55:38 +0200 From: Aleksandr Rybalko To: Sevan / Venture37 Message-Id: <20120313145538.567d507c.ray@dlink.ua> In-Reply-To: <4F5F3AE3.4050302@gmail.com> References: <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> <4F5E7D17.7000102@gmail.com> <4F5E9814.7010803@gmail.com> <4F5E9BA3.2000401@gmail.com> <20120313131415.36ecd761.ray@dlink.ua> <4F5F3AE3.4050302@gmail.com> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 12:54:44 -0000 On Tue, 13 Mar 2012 12:17:39 +0000 Sevan / Venture37 wrote: >> On 13/03/2012 11:14, Aleksandr Rybalko wrote: >> > So I merge whole rt2860 driver into 4 files (rt2860.c, >> > rt2860reg.h, rt2860ucode.h, rt2860var.h) to attach it to existing >> > ral(4) driver. Since future updates from A.Egorenkov repo are not >> > expected. >> >> Wonderful, Is it possible to get this into a temp repo somewhere so >> everyone is on the same page instead of posting diffs around? >> >> >> Sevan >> _______________________________________________ >> freebsd-wireless@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >> To unsubscribe, send any mail to >> "freebsd-wireless-unsubscribe@freebsd.org" https://code.google.com/p/rt2860-in-ral/ Already add you and Matt as commiters. WBW -- Alexandr Rybalko aka Alex RAY From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 15:01:13 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7909106564A for ; Tue, 13 Mar 2012 15:01:12 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id BD8918FC0A for ; Tue, 13 Mar 2012 15:01:12 +0000 (UTC) Received: by dadp14 with SMTP id p14so2097133dad.18 for ; Tue, 13 Mar 2012 08:01:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=20MnPOG2Vw7SvHcFpwd/k8SKGEVWQJPP/rxHfoQLx80=; b=MZH1aGrylH/5R5SkFG0caAHr+STa1nyxEtkAjhDOxkPnhYDWx/C4PC1ZCXMq7JMKju tFA40NYct2Hl2azhG+ELoLLqzd9ETFgDKWAmPWE3y5CW5GWKT9kA7tzXEtHsYXjfpWoJ XkT2H0hEZ3/Ff/v0sEgEOq+qsLuFdDS+nNW25xzSP95xtjIgpiwT96BxPXgDmkKfIkyA 4CZ/ALvG7TZFPkCM6qP65TmbYmw4dVTkxBuaW2ti+5vi6ZsTORtzuWnzzoi0OQF2OMQ6 MalgfO3h/UTDdZWgy/aUAWDshtY9cUwh2kKvw0Ll8BzPZoMiQd3oMkilxZ6n8ehtOOUV 7jUQ== MIME-Version: 1.0 Received: by 10.68.240.135 with SMTP id wa7mr6477460pbc.7.1331650872288; Tue, 13 Mar 2012 08:01:12 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Tue, 13 Mar 2012 08:01:12 -0700 (PDT) In-Reply-To: <4ef315ef.141dd.1360bee4368.Coremail.saint_bxg@126.com> References: <4ef315ef.141dd.1360bee4368.Coremail.saint_bxg@126.com> Date: Tue, 13 Mar 2012 08:01:12 -0700 X-Google-Sender-Auth: U1H30ZnEBspwa_qHc3OgskYw7CA Message-ID: From: Adrian Chadd To: saint Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Freebsd9.0 TDMA: stuck beacon problem X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 15:01:13 -0000 Hi! The 11n chipset TDMA support in 8.x was unfortunately very broken (it made the wrong assumptions about timer resolution and configuration which changed between the AR5212-era MAC and the AR5416 11n era MAC.) Figuring out what's wrong with TDMA is on my TODO list but I don't have the time at the present moment, I'm afraid. Someone popped up a few months ago and made TDMA mostly work again with the 11n NICs but I forget whether it made it into -HEAD or not. Maybe try TDMA on -HEAD. Don't enable 11n. That won't work. :) Adrian 2012/3/13 saint : > Hi Adrian: > =A0 =A0This is Michael. > =A0 =A0I'm trying to implement TDMA connection with two Atheros cards(AR5= 416 and AR9285) working on freebsd 9.0-release. > =A0 =A0After reading the handbook, I added the build option IEEE80211_SUP= PORT_TDMA, and modified loader.conf as: > if_ath_load=3D"YES" > if_ath_pci_load=3D"YES" > =A0 =A0I rebuilt and reinstalled the kernel, reboot ... > =A0 =A0After that, the ath driver can be loaded and I could configure two= cards as adhoc mode and connect each other successfully. =A0:) > =A0 =A0But, when I configured the card as tdma mode and set it as a maste= r(tdmaslot 0), a few seconds later, the screen was full of: > "ath0: stuck beacon; resetting( bmiss count 4)" > > > =A0 =A0config commands: > ifconfig wlan0 create wlandev ath0 wlanmode tdma > ifconfig wlan0 ssid freebsd-tdma tdmaslotlen 2500 tdmaslot 0 > ifconfig wlan0 up =A0(after this, "ath0: stuck beacon..." appears) > > > =A0 =A0If I set the card as a slave( tdmaslot 1), no these output message= s. :( > =A0 =A0I tried to find the result from the code, it pointed to ath_hal_nu= mtxpending(). (That means there are still frames pending in the QCU(AR5416)= ). But I didn't know why. > =A0 =A0I searched it on the internet, many people experienced it, but non= e of them was the same case as mine. > > > =A0 =A0Then I reinstalled the OS with freebsd8.2-release. There was no "a= th0: stuck beacon..." =A0:) > =A0 =A0But under freebsd8.2, I could not connect two cards as tdma mode e= ither(no beacons send out). Oh~~ :(:( > =A0 =A0Card not support? OS not support? TDMA not support in 9.0 release? > =A0 =A0Could you give me some advise, thanks a lot! > > > Best Wishes > > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g" From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 15:02:14 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 396861065670 for ; Tue, 13 Mar 2012 15:02:14 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id B09E88FC14 for ; Tue, 13 Mar 2012 15:02:13 +0000 (UTC) Received: by eaaf13 with SMTP id f13so352994eaa.13 for ; Tue, 13 Mar 2012 08:02:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=qSWy+Jh5WJ/VQmP0PSFVlaJumhLSoBSExv9NKSc0FrA=; b=VGJNw3v8RPrA4SQS5GFHEPs2coL5x/C4ro9wIP4T8K/xfA5FqLyt/LUg+emwp/WZr1 NQ+SzVk3S8e1y0riR3PLwCUqLHJpleHaGDW3HPeREI3WRReSFYPpy6yxHInPlXAKUgl9 JUSurfMplE/IuCPCc5HMy0+ZVUEaDbcIyg34Hpb/YPVk2jcP6+0uS9QGviJqFqSW8CxX xMHhffr89qR8J71AGBz6gE7Gw6JdR//LttAnmZqS5rgXpD/Gs59KRCGmLW/eztpln6Oi ozQ/m9UNnDONwKT4YAqsNizcNzsy9QPcsvW+nhnR/bO/a7RLZgS2sBNxctOygvUEbAcI BgBQ== MIME-Version: 1.0 Received: by 10.68.136.231 with SMTP id qd7mr6523127pbb.28.1331650931822; Tue, 13 Mar 2012 08:02:11 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Tue, 13 Mar 2012 08:02:11 -0700 (PDT) In-Reply-To: <20120313145538.567d507c.ray@dlink.ua> References: <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> <4F5E7D17.7000102@gmail.com> <4F5E9814.7010803@gmail.com> <4F5E9BA3.2000401@gmail.com> <20120313131415.36ecd761.ray@dlink.ua> <4F5F3AE3.4050302@gmail.com> <20120313145538.567d507c.ray@dlink.ua> Date: Tue, 13 Mar 2012 08:02:11 -0700 X-Google-Sender-Auth: -bu9825D1IZh6S6Sexd8Fk-hpww Message-ID: From: Adrian Chadd To: Aleksandr Rybalko Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 15:02:14 -0000 Please add me, adrian.chadd@gmail.com. Thanks! Adrian On 13 March 2012 05:55, Aleksandr Rybalko wrote: > On Tue, 13 Mar 2012 12:17:39 +0000 > Sevan / Venture37 wrote: > >>> On 13/03/2012 11:14, Aleksandr Rybalko wrote: >>> > So I merge whole rt2860 driver into 4 files (rt2860.c, >>> > rt2860reg.h, rt2860ucode.h, rt2860var.h) to attach it to existing >>> > ral(4) driver. Since future updates from A.Egorenkov repo are not >>> > expected. >>> >>> Wonderful, Is it possible to get this into a temp repo somewhere so >>> everyone is on the same page instead of posting diffs around? >>> >>> >>> Sevan >>> _______________________________________________ >>> freebsd-wireless@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-wireless >>> To unsubscribe, send any mail to >>> "freebsd-wireless-unsubscribe@freebsd.org" > > https://code.google.com/p/rt2860-in-ral/ > > Already add you and Matt as commiters. > > WBW > -- > Alexandr Rybalko > aka Alex RAY > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 15:03:16 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BF9A106564A for ; Tue, 13 Mar 2012 15:03:16 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3A0048FC15 for ; Tue, 13 Mar 2012 15:03:15 +0000 (UTC) Received: by yenl9 with SMTP id l9so813908yen.13 for ; Tue, 13 Mar 2012 08:03:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=ZTK69XPB6AzO7toOD4agd/goL9rjkNbDST8M8PeynwE=; b=GfB+DIjJLL5oBPlG5jUzX18VeJoyzpWkwR3T8XQFMRBfFO59TlbnuQjGY/rZcbgFXv KzR1AXPfKYizJ8avaJqebJmvNUiobiDaFCf9wKoNscXvyK/LNM6JsqYGvQ738bRHVSyi bASvWvOxdqmxA6JBQQRbjMP/sIOclUrFDkvpg7jQ23JzXfb1GZzZy2qjNXSL2ykkRYcR 6OktzZjTgPBN8Vm0If+n+g6b6JSfvcmy1rqhOj7Jmgobjo5pDxVWaWrtpsxlu0wln+YC TNujb9dQHEa1D5tm3muDNmCAalkudDcwC+qkceLRaf4AvJ534o+HznkEHNrjggepXqt0 ppnA== MIME-Version: 1.0 Received: by 10.68.232.2 with SMTP id tk2mr6612388pbc.68.1331650995235; Tue, 13 Mar 2012 08:03:15 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Tue, 13 Mar 2012 08:03:15 -0700 (PDT) In-Reply-To: <20120313131415.36ecd761.ray@dlink.ua> References: <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> <4F5E7D17.7000102@gmail.com> <4F5E9814.7010803@gmail.com> <4F5E9BA3.2000401@gmail.com> <20120313131415.36ecd761.ray@dlink.ua> Date: Tue, 13 Mar 2012 08:03:15 -0700 X-Google-Sender-Auth: QIrDapmdiCPTx5woEp3dIauwmJ4 Message-ID: From: Adrian Chadd To: Aleksandr Rybalko Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 15:03:16 -0000 Hi, Matt - you said your RT driver worked fine with CCMP, but the zrouter one didn't? Did I get that right? Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 17:30:04 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E7A2C10657A1; Tue, 13 Mar 2012 17:30:04 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id 9E0FB8FC21; Tue, 13 Mar 2012 17:30:04 +0000 (UTC) Received: by dadp14 with SMTP id p14so2676277dad.18 for ; Tue, 13 Mar 2012 10:30:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=exNiL6atR12n3qB5ooDpG5hPb8pNqLrNE7fhrF8Yw3A=; b=NcvV34ezFFcgnORVQuKq3/cQ5/7M9DPeWWwJudF1w4rhKyeqANBudbIs7ZcYFXpxh9 w5TcU9JXrrKCckWlFDcUOdah88zGlzBqmpIuDFrkKU0tFU6XHiXuwFflg3aAHFhSUOrm NHZePzHSSSn3/5WAtUUV1oBBHPwKjGfm6oDnb8YIHX/LUEYOJ2XwdoJ0B7RawlaEyY4G 8TkMwzwZIky0tpmKgmtq5wDP2VswBi9ifkZH3C+2s+cSi0Qhspm1xYCpIDcCvxLI8kes Z3McHDccC3y2WGU+o7AMD0OCaHhrK7ttn6XGSGl7FxMB0NwgvptXptpWVa7jquRDin14 9d+g== MIME-Version: 1.0 Received: by 10.68.232.2 with SMTP id tk2mr7122257pbc.68.1331659804225; Tue, 13 Mar 2012 10:30:04 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Tue, 13 Mar 2012 10:30:04 -0700 (PDT) In-Reply-To: <20120313111126.GA29538@bali> References: <20120312151358.GA26109@bali> <20120313111126.GA29538@bali> Date: Tue, 13 Mar 2012 10:30:04 -0700 X-Google-Sender-Auth: 8lP0HR-cQvgjMog0ykcZH1zDGRg Message-ID: From: Adrian Chadd To: Andre Albsmeier Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-wireless@freebsd.org" , "freebsd-mobile@freebsd.org" Subject: Re: [Patch] Reflect state of rfkill switch in a sysctl for ath based card X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 17:30:05 -0000 On 13 March 2012 04:11, Andre Albsmeier wrote: >> Would you please create a PR and let me know what the PR number is? > > Well, there is a high probability that it might not work on > non-5212 cards end even here it might fail (I can just test > it with this Wistron CM9 card). Maybe someone with more > knowledge about ath(4) (Sam?) might have quick look at it > before... Oh, I'm the ath(4) maintainer now and I'm pretty cluey in this area. The AR5416 and later NICs have a similar looking GPIO rfkill setup but the code isn't yet in the FreeBSD HAL. I have it though, I just haven't ported it from the Atheros reference driver. I'd prefer the rfkill method to be a HAL call, rather than assuming it's a GPIO line. (I mean, it _is_ a GPIO line, but still.) In any case, please create a PR for it now and we'll get it into -HEAD once I've merged in rfkill support for the AR5416 and later NICs. Thanks, Adrian (I work at Atheros now, so..) From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 21:46:13 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4D5C6106566B; Tue, 13 Mar 2012 21:46:13 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id B21DC8FC14; Tue, 13 Mar 2012 21:46:12 +0000 (UTC) Received: from badger.unsane.co.uk (badger.unsane.co.uk [85.233.185.165]) (authenticated bits=0) by unsane.co.uk (8.14.5/8.14.5) with ESMTP id q2DLkApc022125 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 13 Mar 2012 21:46:11 GMT (envelope-from vince@unsane.co.uk) Message-ID: <4F5FC022.3040202@unsane.co.uk> Date: Tue, 13 Mar 2012 21:46:10 +0000 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: Adrian Chadd References: <4F59DD98.8080905@unsane.co.uk> <4F5AA149.8000904@unsane.co.uk> <4F5BDF3C.8070605@unsane.co.uk> <4F5C0302.8090403@unsane.co.uk> <4F5CA45C.1010603@unsane.co.uk> <4F5E656F.4040004@unsane.co.uk> In-Reply-To: X-Enigmail-Version: 1.3.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: ath0 timeout was "Re: (more) bugs fixed in -HEAD, AP mode is now mostly (again) stable!" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 21:46:13 -0000 On 13/03/2012 06:44, Adrian Chadd wrote: > Can you try with the PC booted with SMP disabled, see what happens? > > I haven't tried AP mode on any SMP hardware. > > > Adrian Indeed as yet I havent been able to cause a hang since I disabled SMP, so this may be related to kern/165966 ? I'll be happy to test patches, sorry I cant help more than that. Vince From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 21:58:00 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 61C97106566B for ; Tue, 13 Mar 2012 21:58:00 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id 2FC2F8FC0C for ; Tue, 13 Mar 2012 21:57:59 +0000 (UTC) Received: by dadp14 with SMTP id p14so3702836dad.18 for ; Tue, 13 Mar 2012 14:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=ezmerqUAK9Ea/0I3XHdN7YrAaXWrT+3pQuw4ezs0v50=; b=hrZPX+Jr4U7hz19GllhcB7DPiEnFN66rbCzWruxZpSK75q2uAHLPEikwi14Pjx96qu 24sivgTSb1KqDn3AQyFJhH8xcgKbejOR243dcfoJsC3hIooa23nLmMRhxeAc/6a3fKvm InZXm8XFG5/vYaNbVAc2bnBVvSwstuzJyboFvjxqlfUAJFyTFtUo32PxZIekBswr6ED4 N7j12hCcXrh5Peb4a6HB03gqWzqfZ6owKGNTk5pj/V/vNTQytXTHEPojFmEZVQEMAoaB 77zGye5M0yF5aooi38Atw7JuY5uSmMzlJLFYXRfdBxvq/s/+R570NWDk3v9XoL2Il9t4 DpBw== MIME-Version: 1.0 Received: by 10.68.191.168 with SMTP id gz8mr477491pbc.37.1331675879734; Tue, 13 Mar 2012 14:57:59 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Tue, 13 Mar 2012 14:57:59 -0700 (PDT) In-Reply-To: <4F5FC022.3040202@unsane.co.uk> References: <4F59DD98.8080905@unsane.co.uk> <4F5AA149.8000904@unsane.co.uk> <4F5BDF3C.8070605@unsane.co.uk> <4F5C0302.8090403@unsane.co.uk> <4F5CA45C.1010603@unsane.co.uk> <4F5E656F.4040004@unsane.co.uk> <4F5FC022.3040202@unsane.co.uk> Date: Tue, 13 Mar 2012 14:57:59 -0700 X-Google-Sender-Auth: QjbbE_0VkydL7NSHLlZO1qPGH8o Message-ID: From: Adrian Chadd To: Vincent Hoffman Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ath0 timeout was "Re: (more) bugs fixed in -HEAD, AP mode is now mostly (again) stable!" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 21:58:00 -0000 On 13 March 2012 14:46, Vincent Hoffman wrote: > Indeed as yet I havent been able to cause a hang since I disabled SMP, > so this may be related to kern/165966 ? > > I'll be happy to test patches, sorry I cant help more than that. Nope. That bug is misleading, turns out that particular device timeout also occurs on UP. I've reproduced some TX stalls here with a station doing lots of threaded TCP stuff (ie, "reload all chromium tabs"), I'm just seeing if I can always reproduce it and if so, I'll fire up another PR. Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 23:15:53 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 726DF106564A for ; Tue, 13 Mar 2012 23:15:53 +0000 (UTC) (envelope-from roger@tethr.org) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id EDC1D8FC08 for ; Tue, 13 Mar 2012 23:15:52 +0000 (UTC) Received: by lagv3 with SMTP id v3so1358019lag.13 for ; Tue, 13 Mar 2012 16:15:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=Ut5vB9ihKAlALYDJzGj/rqKIq1qcqB6DrnoBcLx29kU=; b=QZYxGvC1RoAAXEsd7UEw3ClO+4DWGt2rHAZrxYwfEC34QadG6eYLWQkgqG77EvcYxD Q6AyKKw7H04IAPL2N1kvRFAyC9I66O9uAcOkcku7LcpVNQAqxoyiq30eOJDxo9nzaeCq e0BB07K/KjM0TEOrFPixj0MPGdtVMe0YVZ8nCT+lpAqYu2hsHHtP3lC6kSd8Qv4HY+1g ZLLQ6L+DTgQ0VtRfRxsp0URPw9GnCP/xptP7dnTK72Y8AoU8OMw4nPRH7d1E/PG34SQG ssCB5MB1QEhOk+dwMoVE6RyrC5YFqNIwWUG+oaMRegbTyrKbQyOAGHmE5zK0Q+xOzNCc oRIA== MIME-Version: 1.0 Received: by 10.112.42.35 with SMTP id k3mr116343lbl.98.1331680551668; Tue, 13 Mar 2012 16:15:51 -0700 (PDT) Received: by 10.152.13.231 with HTTP; Tue, 13 Mar 2012 16:15:51 -0700 (PDT) X-Originating-IP: [198.95.226.240] Date: Tue, 13 Mar 2012 16:15:51 -0700 Message-ID: From: Roger Weeks To: freebsd-wireless@freebsd.org X-Gm-Message-State: ALoCoQmBiTwpdoK2rnz0wXBLW3VlvC8z3115kvzBsDiuX6yE2sB2w/t1ULPrWikBDvOiyTh5E32Q X-Mailman-Approved-At: Tue, 13 Mar 2012 23:32:03 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Timeline for ath 802.11 support in production X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 23:15:53 -0000 Hi there - We're hoping to use FreeBSD for our project but since 802.11n support is only in HEAD, that's a bit limiting for production use. Any idea when it might be in the production release? -- Roger Weeks From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 23:35:20 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1658106566C for ; Tue, 13 Mar 2012 23:35:20 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id AB0E08FC0C for ; Tue, 13 Mar 2012 23:35:20 +0000 (UTC) Received: by dadp14 with SMTP id p14so4089895dad.18 for ; Tue, 13 Mar 2012 16:35:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=cGVr3kCmMm6t2+hGZJ3B+lmirz4FViIgtxypQVW4aiQ=; b=aHLuRmfLbbiLZzdzFOCaG0mK6RPwQ18dTk+tCO1bc/YShr8yJxQu9uzSuscK9X3z7p jOtFLjLAy1So7AagWmQx+EjWciQES2HmHV9GthRdWKS9wS3az784BN0FWRUasAyt54s4 K6L16uN/M4moRubMVaq/y22s/CzjD9mKi9+lgns1lS8sPLlMAJSa8jnGjnZzm8IU8vHE 1hImiwqrrZdZ94m/wGpuoGLNvRcdV+gan7Hx5PoTCqUJ0g4h4OdgRTtkGbs+5g/F9VIu u28/AVVbJRcXOUMa2eorrQxav5dv1jZgsj/0EF0lXtDpF1oKxQc0tP8WT6VFsn5GBGMk mkrQ== MIME-Version: 1.0 Received: by 10.68.221.97 with SMTP id qd1mr803275pbc.42.1331681720269; Tue, 13 Mar 2012 16:35:20 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Tue, 13 Mar 2012 16:35:20 -0700 (PDT) In-Reply-To: References: Date: Tue, 13 Mar 2012 16:35:20 -0700 X-Google-Sender-Auth: Y6JqS8vgbhjS5Yjn-eoHkzRLzPM Message-ID: From: Adrian Chadd To: Roger Weeks Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Timeline for ath 802.11 support in production X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 23:35:21 -0000 On 13 March 2012 16:15, Roger Weeks wrote: > Hi there - > > We're hoping to use FreeBSD for our project but since 802.11n support is > only in HEAD, that's a bit limiting for production use. Any idea when it > might be in the production release? Hi, The 802.11n stack support is quite mature and works quite well. Which driver are you thinking about? Adrian From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 23:47:04 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C2A2C106566C for ; Tue, 13 Mar 2012 23:47:04 +0000 (UTC) (envelope-from roger@tethr.org) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id 430958FC17 for ; Tue, 13 Mar 2012 23:47:03 +0000 (UTC) Received: by lboi15 with SMTP id i15so720451lbo.13 for ; Tue, 13 Mar 2012 16:46:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=EDVJV6Lr0Y1LFrwamynNrFE3MiGgadVpmerxIZVxgLM=; b=fbeimi6XSPaVVVxfRo1457NPJUu/oaHj1fk43w+0Fchij7Q9ZDuuj84sTbL18hWeCO Os88ONSj95TsCG99xloANTQt9maZMpC1W9ICbfeeGgCB6zBUUc0H1OmU2g9shvTC8o2l YvB0+fEW36DvmWUwR/0pWFBVjYmfLnmsFuMthKM85hzXokePXzTzJV4RGjbH1Z+9iRK4 jQWn9tzMX16tk32SN4qJXcZH4g7G+iTqAHq3ovhCBRywpzWTjpnzY7nsSEYt6jzUyD3J M9vORxDqyFjSWyokEaJ/kbG85P8QIhWwilLjTUGr/EusBLlVTnJkveuEhzJcl6f+r1Fu b1RQ== MIME-Version: 1.0 Received: by 10.112.10.169 with SMTP id j9mr167444lbb.70.1331682416675; Tue, 13 Mar 2012 16:46:56 -0700 (PDT) Received: by 10.152.13.231 with HTTP; Tue, 13 Mar 2012 16:46:56 -0700 (PDT) X-Originating-IP: [107.32.163.51] Received: by 10.152.13.231 with HTTP; Tue, 13 Mar 2012 16:46:56 -0700 (PDT) In-Reply-To: References: Date: Tue, 13 Mar 2012 16:46:56 -0700 Message-ID: From: Roger Weeks To: Adrian Chadd X-Gm-Message-State: ALoCoQmI+BHvKu//9diCdDPmtjIxlIok/SCq5E883RhO/TTydo+jmCMiwsiiJDOFHKr6Fn0pdvvG Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-wireless@freebsd.org Subject: Re: Timeline for ath 802.11 support in production X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 23:47:04 -0000 I had read this which seemed to indicate the support was only in HEAD. http://wiki.freebsd.org/dev/ath(4)/80211n Specifically the ath driver, hostap mode and atheros 802.11n cards are what we are looking at. On Mar 13, 2012 4:35 PM, "Adrian Chadd" wrote: > On 13 March 2012 16:15, Roger Weeks wrote: > > Hi there - > > > > We're hoping to use FreeBSD for our project but since 802.11n support is > > only in HEAD, that's a bit limiting for production use. Any idea when it > > might be in the production release? > > Hi, > > The 802.11n stack support is quite mature and works quite well. > > Which driver are you thinking about? > > > Adrian > From owner-freebsd-wireless@FreeBSD.ORG Tue Mar 13 23:48:25 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 023DD1065670 for ; Tue, 13 Mar 2012 23:48:25 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm39-vm1.bullet.mail.ne1.yahoo.com (nm39-vm1.bullet.mail.ne1.yahoo.com [98.138.229.161]) by mx1.freebsd.org (Postfix) with SMTP id AABA78FC19 for ; Tue, 13 Mar 2012 23:48:24 +0000 (UTC) Received: from [98.138.90.55] by nm39.bullet.mail.ne1.yahoo.com with NNFMP; 13 Mar 2012 23:42:19 -0000 Received: from [98.138.226.58] by tm8.bullet.mail.ne1.yahoo.com with NNFMP; 13 Mar 2012 23:42:19 -0000 Received: from [127.0.0.1] by smtp209.mail.ne1.yahoo.com with NNFMP; 13 Mar 2012 23:42:19 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1331682139; bh=CcEq6XmeeDBuXyIAuaSuUDHNxrmZIqJ9cwL2ZBVpTP8=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc:Content-Type:Content-Transfer-Encoding; b=wTtj5wtWAXNHHN5pkMKh0+qHclgI/QIBtqwSbgfuf2KV3MP9OP8dU6KY7YjiLmSvUL2+3p9ZuFPSCZhPGy8sT9iXKVUwez3rAn1AH2dwSfp1KVAJGyZr5pKBw4w0sA44kKP3EwBXI1Y/puWTuN9gEXeotX/inIeLjAyc5/fGFyk= X-Yahoo-Newman-Id: 367684.2430.bm@smtp209.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: kX_ithIVM1lGEGPmosutbN5__f9nrfp2b0VQltw7UA3NOqH JcoX7ge61.xmT.eW975bp2iQV1gYqvh7hMXLOxIkGuyHaJWPRAO2mZPSshUr Ral_bx.aS1_6zyQbHnlIyQ4742zM0W39r.9KZALevc3FN52Aoohy4qSbjwMf cTm_liAhMcrheJ55mICdcFeZ9cXBrz9kkTylVMsPQ26BmXSXQ68KyyqrXZq8 fkY.eHEXW6KyeLSWmpLgMNTSYO6sUys2vfRf8NZzoe8iUvCGGUeLR4EpIfQ4 HLNky6x9B04OwbjWqzNNQUROpDz097C9gq5DXgc1MK2odcrJuFzcDrm1JQYe k3yXe1z2LhcbDBCcQFzlWc1zPApPObf3OP0l8p9eBEBFoTH6OUGIe6lYBlE8 yOQB3HjsJijcwcuOz78Ypc4BIsytAo3UCWHo- X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-iy0-f182.google.com (moonlightakkiy@209.85.210.182 with plain) by smtp209.mail.ne1.yahoo.com with SMTP; 13 Mar 2012 16:42:19 -0700 PDT Received: by iahk25 with SMTP id k25so1966938iah.13 for ; Tue, 13 Mar 2012 16:42:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.179.98 with SMTP id df2mr725674igc.32.1331682138971; Tue, 13 Mar 2012 16:42:18 -0700 (PDT) Received: by 10.231.108.133 with HTTP; Tue, 13 Mar 2012 16:42:18 -0700 (PDT) In-Reply-To: <20120313123037.0eb29eb9.ray@dlink.ua> References: <20120313123037.0eb29eb9.ray@dlink.ua> Date: Tue, 13 Mar 2012 17:42:18 -0600 Message-ID: From: PseudoCylon To: Aleksandr Rybalko Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Mar 2012 23:48:25 -0000 On Tue, Mar 13, 2012 at 4:30 AM, Aleksandr Rybalko wrote: > On Mon, 12 Mar 2012 21:55:06 -0600 > PseudoCylon wrote: > >>> > ------------------------------ >>> > >>> > Message: 12 >>> > Date: Sun, 11 Mar 2012 14:14:23 -0700 >>> > From: Adrian Chadd >>> > Subject: Re: Please Test: Updated Ral Driver Patch for >>> > rt2860/rt3090 To: "Sevan / Venture37" >>> > Cc: freebsd-wireless@freebsd.org >>> > Message-ID: >>> > =A0 =A0 =A0 =A0 >>> > Content-Type: text/plain; charset=3DISO-8859-1 >>> > >>> > On 11 March 2012 14:10, Sevan / Venture37 >>> > wrote: >>> > >>> >>> I'll post a new one in a bit. If you want to help, would you be >>> >>> ok with git as opposed to hg? >>> >> >>> >> >>> >> nope not at all but if its because of familiarity then in this >>> >> scenario it doesn't make much difference which is used, same work >>> >> flow, change, commit, push, pull, rinse, repeat. :) >>> > >>> > Hiya, >>> > >>> > Let's just strip the ^M's from the tree and as long as ray@ and >>> > pseudocyclon are a-ok with the work thus far, I'll commit it to >>> > -HEAD. >>> > >>> > We can then tidy things up from there. >>> > >>> > I just don't want to commit ^M's to the tree, or blatant style(9) >>> > violations. But we can always tidy things up incrementally once >>> > they're in the tree. >>> > >>> >>> I've talked about ieee80211_send_bar() with matt, already. > > Can you please point me to that discussion? > rt2860_send_bar() is a workaround. Because we patched freebsd ieee80211_send_bar(), we can simply call it instead of calling the workaround function on r225013 and up. AK From owner-freebsd-wireless@FreeBSD.ORG Wed Mar 14 00:12:07 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED4441065674 for ; Wed, 14 Mar 2012 00:12:07 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id C0CF68FC08 for ; Wed, 14 Mar 2012 00:12:07 +0000 (UTC) Received: by dadp14 with SMTP id p14so4235341dad.18 for ; Tue, 13 Mar 2012 17:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=u7CtGWpoJrfH0sVvh3TFjobRDRVLiBuLSEEIE1iYBhI=; b=o++RiYG2iO6LVgcCNF1/yjJVM8+lHywx0YZ0SAtPqHsvihKcMAmb18tmUicwr0PRDs D1cZ4Hlu0Qys+i4CTuF9YLrjzR8UXLiF0wzKH8Oh+N2n4RFK/Bw+FZGSR2gqbUrXIbfD ZSD5+pQIN650+yq/q4267MqjnhtjN8OMLfFsbDs+cxcI4u2v4ChGKNqWKriCa9O1L7xg MKw0SdK4Y6WSGsT1KAbS6w8hd3eRa0JyZxdtcmIHTUMgALuh3F/s3cXLljsPuovDgsHj A4FgktDov0qFpPa9jyX1p0VV6tjeWyrF9mq6lEPO0oCq4W1WErZbCrDKFQ2Gt82izvvQ gOCA== MIME-Version: 1.0 Received: by 10.68.225.104 with SMTP id rj8mr803653pbc.135.1331683927347; Tue, 13 Mar 2012 17:12:07 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Tue, 13 Mar 2012 17:12:07 -0700 (PDT) In-Reply-To: References: Date: Tue, 13 Mar 2012 17:12:07 -0700 X-Google-Sender-Auth: N7y-dmakEJeiesWatWqpbI6PF9Q Message-ID: From: Adrian Chadd To: Roger Weeks Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: Timeline for ath 802.11 support in production X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 14 Mar 2012 00:12:08 -0000 Hiya, The ath(4) stuff is my doing and it will only be production ready when I get enough spare weekends to make it production ready. :-) I'm doing this (now) on the side, as my day job at Atheros doesn't have me developing for FreeBSD at all. The best thing to do if you'd like that to change is to make some noise and get your request heard. If you would like it made ready earlier, please either help poke my employer and get some interest, and/or find some other developers to help me iron out the bugs. Thanks, Adrian From owner-freebsd-wireless@FreeBSD.ORG Wed Mar 14 00:16:35 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C0B33106566B; Wed, 14 Mar 2012 00:16:35 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 7BFD48FC12; Wed, 14 Mar 2012 00:16:35 +0000 (UTC) Received: from rnote.ddteam.net (131-206-133-95.pool.ukrtel.net [95.133.206.131]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPSA id 50C2DC493C; Wed, 14 Mar 2012 02:16:34 +0200 (EET) Date: Wed, 14 Mar 2012 02:15:49 +0200 From: Aleksandr Rybalko To: PseudoCylon Message-Id: <20120314021549.4ca9a3af.ray@dlink.ua> In-Reply-To: References: <20120313123037.0eb29eb9.ray@dlink.ua> Organization: D-Link X-Mailer: Sylpheed 3.1.2 (GTK+ 2.24.5; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 14 Mar 2012 00:16:35 -0000 On Tue, 13 Mar 2012 17:42:18 -0600 PseudoCylon wrote: > On Tue, Mar 13, 2012 at 4:30 AM, Aleksandr Rybalko > wrote: > > On Mon, 12 Mar 2012 21:55:06 -0600 > > PseudoCylon wrote: > > > >>> > ------------------------------ > >>> > > >>> > Message: 12 > >>> > Date: Sun, 11 Mar 2012 14:14:23 -0700 > >>> > From: Adrian Chadd > >>> > Subject: Re: Please Test: Updated Ral Driver Patch for > >>> > rt2860/rt3090 To: "Sevan / Venture37" > >>> > Cc: freebsd-wireless@freebsd.org > >>> > Message-ID: > >>> >         > >>> > Content-Type: text/plain; charset=ISO-8859-1 > >>> > > >>> > On 11 March 2012 14:10, Sevan / Venture37 > >>> > wrote: > >>> > > >>> >>> I'll post a new one in a bit. If you want to help, would you > >>> >>> be ok with git as opposed to hg? > >>> >> > >>> >> > >>> >> nope not at all but if its because of familiarity then in this > >>> >> scenario it doesn't make much difference which is used, same > >>> >> work flow, change, commit, push, pull, rinse, repeat. :) > >>> > > >>> > Hiya, > >>> > > >>> > Let's just strip the ^M's from the tree and as long as ray@ and > >>> > pseudocyclon are a-ok with the work thus far, I'll commit it to > >>> > -HEAD. > >>> > > >>> > We can then tidy things up from there. > >>> > > >>> > I just don't want to commit ^M's to the tree, or blatant style > >>> > (9) violations. But we can always tidy things up incrementally > >>> > once they're in the tree. > >>> > > >>> > >>> I've talked about ieee80211_send_bar() with matt, already. > > > > Can you please point me to that discussion? > > > > rt2860_send_bar() is a workaround. Because we patched freebsd > ieee80211_send_bar(), we can simply call it instead of calling the > workaround function on r225013 and up. Thank you! I put it under RT2860_SEND_BAR_WORKAROUND for now. > > > AK -- Aleksandr Rybalko From owner-freebsd-wireless@FreeBSD.ORG Wed Mar 14 00:18:17 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6AEB6106564A for ; Wed, 14 Mar 2012 00:18:17 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id 3D7348FC0A for ; Wed, 14 Mar 2012 00:18:17 +0000 (UTC) Received: by dadp14 with SMTP id p14so4259876dad.18 for ; Tue, 13 Mar 2012 17:18:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=5Le8VMrb2LB6JJXPJIufEdZfbiSDsUllsSePqvcwebE=; b=FE8XxysOZ8toaaWgVKr9w7TO/8hG+/W14Z0VWIlv12eLCJfdfoSUAq6ymrllmKK+VI FPSKqfsnC/ALHRCV8NhVs4SbmSFjb8XlTbO7RbqpbhvBS/a8a2wt+QcjNUGRRrdqZxRu WBFrGXonTo7JGxdr5/uljfS5Xili/PvVb61HmlFCVQ8U+ilPWtpAkuf3XVRkJxMVptMd CMUfDG5E2G5P0wuiZHYPkz1USqlfgwQM3oV8xPBvdtFB3d7OSeFa8LyrXERA1k/gq3v3 OoOfeH//P9ch/KtymNMY+rY6CMJsiFTt6RYTNEQHLSwPyI7/8WLy6lkLktGOdSPTFJoC DwYQ== MIME-Version: 1.0 Received: by 10.68.136.231 with SMTP id qd7mr936344pbb.28.1331684296673; Tue, 13 Mar 2012 17:18:16 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Tue, 13 Mar 2012 17:18:16 -0700 (PDT) In-Reply-To: References: <20120313123037.0eb29eb9.ray@dlink.ua> Date: Tue, 13 Mar 2012 17:18:16 -0700 X-Google-Sender-Auth: pwdxglwP0DjXYzI3A1Dykawr8SU Message-ID: From: Adrian Chadd To: PseudoCylon Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Aleksandr Rybalko , freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 14 Mar 2012 00:18:17 -0000 Did we ever port that bar fix to 8, 7? I'm pretty sure I giot it in before -9 made it.. adrian On 13 March 2012 16:42, PseudoCylon wrote: > On Tue, Mar 13, 2012 at 4:30 AM, Aleksandr Rybalko wrote: >> On Mon, 12 Mar 2012 21:55:06 -0600 >> PseudoCylon wrote: >> >>>> > ------------------------------ >>>> > >>>> > Message: 12 >>>> > Date: Sun, 11 Mar 2012 14:14:23 -0700 >>>> > From: Adrian Chadd >>>> > Subject: Re: Please Test: Updated Ral Driver Patch for >>>> > rt2860/rt3090 To: "Sevan / Venture37" >>>> > Cc: freebsd-wireless@freebsd.org >>>> > Message-ID: >>>> > =A0 =A0 =A0 =A0 >>>> > Content-Type: text/plain; charset=3DISO-8859-1 >>>> > >>>> > On 11 March 2012 14:10, Sevan / Venture37 >>>> > wrote: >>>> > >>>> >>> I'll post a new one in a bit. If you want to help, would you be >>>> >>> ok with git as opposed to hg? >>>> >> >>>> >> >>>> >> nope not at all but if its because of familiarity then in this >>>> >> scenario it doesn't make much difference which is used, same work >>>> >> flow, change, commit, push, pull, rinse, repeat. :) >>>> > >>>> > Hiya, >>>> > >>>> > Let's just strip the ^M's from the tree and as long as ray@ and >>>> > pseudocyclon are a-ok with the work thus far, I'll commit it to >>>> > -HEAD. >>>> > >>>> > We can then tidy things up from there. >>>> > >>>> > I just don't want to commit ^M's to the tree, or blatant style(9) >>>> > violations. But we can always tidy things up incrementally once >>>> > they're in the tree. >>>> > >>>> >>>> I've talked about ieee80211_send_bar() with matt, already. >> >> Can you please point me to that discussion? >> > > rt2860_send_bar() is a workaround. Because we patched freebsd > ieee80211_send_bar(), we can simply call it instead of calling the > workaround function on r225013 and up. > > > AK From owner-freebsd-wireless@FreeBSD.ORG Wed Mar 14 00:38:46 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E63F1065670; Wed, 14 Mar 2012 00:38:46 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id A90ED8FC08; Wed, 14 Mar 2012 00:38:45 +0000 (UTC) Received: by ghrr20 with SMTP id r20so1501497ghr.13 for ; Tue, 13 Mar 2012 17:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=MxVytcwAfLWhnU3soIV1E7Z6xCznJwfWOalz99PjfnU=; b=t+GL9NNQYTs2pklp8XDhVOaHn6rmDMPKeMGs3FkdqV64ioZ/9t0Vk5gmcnIy3XpxA0 9Foka32ygxXQUHkKs6xBgdaHisAHGhfsxCKxiFxrnWnk/FvwdxZ1NSasjMBnnh8h4Fa7 THXpQEIetUkYLg+c84PEQrv9eSUMF6/ms0QHymnHoDHbKb0kgovQb0UE1dxLlQBCDz5I pyrwiuX3gni9RmaHy48CKQpHGy+rCRg8WC+VV1Jj9XMjquWcC1yDlxEsB6vTvf09ytXW UcQ0k9IE/jg3HjiSNV5ZbOZBxOX5TJLr6Zv+3VxeSkZMMAC/z0KYirkQQ8ZQRJNvOuOc Lg/w== Received: by 10.182.231.41 with SMTP id td9mr747031obc.22.1331685524931; Tue, 13 Mar 2012 17:38:44 -0700 (PDT) Received: from flatline.local (70-36-223-154.dsl.dynamic.sonic.net. [70.36.223.154]) by mx.google.com with ESMTPS id v10sm3246470obb.4.2012.03.13.17.38.42 (version=SSLv3 cipher=OTHER); Tue, 13 Mar 2012 17:38:43 -0700 (PDT) Message-ID: <4F5FE891.7050306@gmail.com> Date: Tue, 13 Mar 2012 17:38:41 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120218 Thunderbird/10.0.2 MIME-Version: 1.0 To: Adrian Chadd References: <4F48166A.5040301@gmail.com> <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> <4F5E7D17.7000102@gmail.com> <4F5E9814.7010803@gmail.com> <4F5E9BA3.2000401@gmail.com> <20120313131415.36ecd761.ray@dlink.ua> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Aleksandr Rybalko , freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 14 Mar 2012 00:38:46 -0000 On 03/13/12 08:03, Adrian Chadd wrote: > Hi, > > Matt - you said your RT driver worked fine with CCMP, but the zrouter > one didn't? Did I get that right? > > > Adrian > . > Yes, but it sounded like Alexandr knew why? Regarding crash, I'm just now in sync on this machine with the src tree it has, so I can rule out future kernel vs old-time userland issues. Not sure whether that was the hw/sw ifdef, or something he said he broke and was looking at. Alexandr-- Thanks for posting a repo & adding commit bits. We'll have a working ral soon for the folks that have those only, which is the important part! No wifi is no FreeBSD for a lot of prospective users, I'm sure. Thanks! Matt From owner-freebsd-wireless@FreeBSD.ORG Wed Mar 14 00:47:05 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB156106566C; Wed, 14 Mar 2012 00:47:05 +0000 (UTC) (envelope-from iwasaki@jp.FreeBSD.org) Received: from locore.org (ns01.locore.org [218.45.21.227]) by mx1.freebsd.org (Postfix) with ESMTP id 482F88FC12; Wed, 14 Mar 2012 00:47:04 +0000 (UTC) Received: from localhost (celeron.v4.locore.org [192.168.0.10]) by locore.org (8.14.5/8.14.5/iwasaki) with ESMTP/inet id q2E0kwZl057270; Wed, 14 Mar 2012 09:46:58 +0900 (JST) (envelope-from iwasaki@jp.FreeBSD.org) Date: Wed, 14 Mar 2012 09:46:56 +0900 (JST) Message-Id: <20120314.094656.92589124.iwasaki@jp.FreeBSD.org> To: freebsd-wireless@freebsd.org, freebsd-current@freebsd.org From: Mitsuru IWASAKI X-Mailer: Mew version 3.3 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: [patch] iwi(4) suspend/resume broken X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 14 Mar 2012 00:47:05 -0000 Hi, I've noticed that iwi(4) doesn't have ieee80211_new_state(IEEE80211_S_INIT) in iwi_stop_locked() since 8.0-RELEASE (comparing with RELENG_7's). It seems that this prevent if_iwi from working properly after resuming, no data frames were sent. The patches is available at: http://people.freebsd.org/~iwasaki/iwi/iwi-20120314.diff Now that iwi(4) is working well for me :) I'll commit this coming weekend if there are no objections. Thanks! From owner-freebsd-wireless@FreeBSD.ORG Wed Mar 14 03:10:34 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D262F106566B for ; Wed, 14 Mar 2012 03:10:34 +0000 (UTC) (envelope-from moonlightakkiy@yahoo.ca) Received: from nm2.bullet.mail.ne1.yahoo.com (nm2.bullet.mail.ne1.yahoo.com [98.138.90.65]) by mx1.freebsd.org (Postfix) with SMTP id 73CE48FC15 for ; Wed, 14 Mar 2012 03:10:34 +0000 (UTC) Received: from [98.138.90.54] by nm2.bullet.mail.ne1.yahoo.com with NNFMP; 14 Mar 2012 03:03:38 -0000 Received: from [98.138.226.57] by tm7.bullet.mail.ne1.yahoo.com with NNFMP; 14 Mar 2012 03:03:38 -0000 Received: from [127.0.0.1] by smtp208.mail.ne1.yahoo.com with NNFMP; 14 Mar 2012 03:03:38 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1331694218; bh=wgq5hdupcnxhEHQKC73Cisl2dWEHLGhfhyyIUQC9b5I=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:MIME-Version:Received:Received:In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc:Content-Type:Content-Transfer-Encoding; b=eL9CA+P7d6lnTXlpxQYWeQb8v2GQDZJ8zR14YzgmdwEhMQEDViMcSDSLaZuNevUMDIKLSW+ftdnwaXbhTTJZNd/dra0BUHrvHwLGky42SQxqU61t7RSmgN+PI6lUIvS8sG29aGCBYmUL3U7mADTHjrd2oJAllHgW2KRkh2djYzk= X-Yahoo-Newman-Id: 319685.3366.bm@smtp208.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: RP4oJxAVM1m7Dmc5O71wvZUEQx.Rd5U9AHQ9.a09QK2o5U9 AW7F9entCaqRCuoasm9fgSnkJe_p5OFP6yMXA70_pkk1xcf.XSbvHA3lL1wB 8vJcnT6YVSo3gyG6Maa6Q2v09vEiN.fkTi3r8Qj2Ct1cWgCWFhY0yX_GyF5Q SrMX6jfWNl5B_sautVI37Hdf18nOjxJ00uqW05_ufO_aiiLQ0.R834gu08JC B_rBd7enLo8Sx8VcsiuXjSgb1QkNLTraq0rON6oOCscj8K.3XSr7TtZXw9DB skJhyB.0NNJj7hSM0YVzeFuk86NYbJPZO1FMI_GFrRxcEgpVRH_qbNgXUl.I XW.KMqZjEMp7YmI59vfBlw7Crkt3KbU3FnTHmJyemJrtiqKbAMpCcmgq7tTo k8HuGOKilqvw9ZRXNycfbVaf3bXZtiJXMXN8- X-Yahoo-SMTP: Xr6qjFWswBAEmd20sAvB4Q3keqXvXsIH9TjJ Received: from mail-iy0-f182.google.com (moonlightakkiy@209.85.210.182 with plain) by smtp208.mail.ne1.yahoo.com with SMTP; 13 Mar 2012 20:03:38 -0700 PDT Received: by iahk25 with SMTP id k25so2221395iah.13 for ; Tue, 13 Mar 2012 20:03:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.188.199 with SMTP id gc7mr1440636igc.40.1331694217896; Tue, 13 Mar 2012 20:03:37 -0700 (PDT) Received: by 10.231.108.133 with HTTP; Tue, 13 Mar 2012 20:03:37 -0700 (PDT) In-Reply-To: References: <20120313123037.0eb29eb9.ray@dlink.ua> Date: Tue, 13 Mar 2012 21:03:37 -0600 Message-ID: From: PseudoCylon To: Adrian Chadd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Aleksandr Rybalko , freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 14 Mar 2012 03:10:34 -0000 On Tue, Mar 13, 2012 at 6:18 PM, Adrian Chadd wrote: > Did we ever port that bar fix to 8, 7? No. One time I manually patched 8.2-RELEASE with all 80211 stack updates, but ifconfig didn't work with patched kernel. So, I updated ifconfig. Then it wanted a newer library (don't remember exactly which). That was when I gave up. > > I'm pretty sure I giot it in before -9 made it.. Yes, it is in 9.0-RELEASE AK > > > > adrian > > On 13 March 2012 16:42, PseudoCylon wrote: >> On Tue, Mar 13, 2012 at 4:30 AM, Aleksandr Rybalko wrote: >>> On Mon, 12 Mar 2012 21:55:06 -0600 >>> PseudoCylon wrote: >>> >>>>> > ------------------------------ >>>>> > >>>>> > Message: 12 >>>>> > Date: Sun, 11 Mar 2012 14:14:23 -0700 >>>>> > From: Adrian Chadd >>>>> > Subject: Re: Please Test: Updated Ral Driver Patch for >>>>> > rt2860/rt3090 To: "Sevan / Venture37" >>>>> > Cc: freebsd-wireless@freebsd.org >>>>> > Message-ID: >>>>> > =A0 =A0 =A0 =A0 >>>>> > Content-Type: text/plain; charset=3DISO-8859-1 >>>>> > >>>>> > On 11 March 2012 14:10, Sevan / Venture37 >>>>> > wrote: >>>>> > >>>>> >>> I'll post a new one in a bit. If you want to help, would you be >>>>> >>> ok with git as opposed to hg? >>>>> >> >>>>> >> >>>>> >> nope not at all but if its because of familiarity then in this >>>>> >> scenario it doesn't make much difference which is used, same work >>>>> >> flow, change, commit, push, pull, rinse, repeat. :) >>>>> > >>>>> > Hiya, >>>>> > >>>>> > Let's just strip the ^M's from the tree and as long as ray@ and >>>>> > pseudocyclon are a-ok with the work thus far, I'll commit it to >>>>> > -HEAD. >>>>> > >>>>> > We can then tidy things up from there. >>>>> > >>>>> > I just don't want to commit ^M's to the tree, or blatant style(9) >>>>> > violations. But we can always tidy things up incrementally once >>>>> > they're in the tree. >>>>> > >>>>> >>>>> I've talked about ieee80211_send_bar() with matt, already. >>> >>> Can you please point me to that discussion? >>> >> >> rt2860_send_bar() is a workaround. Because we patched freebsd >> ieee80211_send_bar(), we can simply call it instead of calling the >> workaround function on r225013 and up. >> >> >> AK From owner-freebsd-wireless@FreeBSD.ORG Wed Mar 14 13:44:38 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 837D9106564A; Wed, 14 Mar 2012 13:44:38 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from thoth.sbs.de (thoth.sbs.de [192.35.17.2]) by mx1.freebsd.org (Postfix) with ESMTP id 08AD78FC12; Wed, 14 Mar 2012 13:44:37 +0000 (UTC) Received: from mail3.siemens.de (localhost [127.0.0.1]) by thoth.sbs.de (8.13.6/8.13.6) with ESMTP id q2EDiUxl013130; Wed, 14 Mar 2012 14:44:30 +0100 Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.40.130]) by mail3.siemens.de (8.13.6/8.13.6) with ESMTP id q2EDiUxN025561; Wed, 14 Mar 2012 14:44:30 +0100 Received: (from localhost) by curry.mchp.siemens.de (8.14.5/8.14.5) id q2EDiU01086714; Date: Wed, 14 Mar 2012 14:44:30 +0100 From: Andre Albsmeier To: Adrian Chadd Message-ID: <20120314134430.GA36213@bali> References: <20120312151358.GA26109@bali> <20120313111126.GA29538@bali> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Echelon: X-Advice: Drop that crappy M$-Outlook, I'm tired of your viruses! User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "freebsd-wireless@freebsd.org" , "Albsmeier, Andre" , "freebsd-mobile@freebsd.org" Subject: Re: [Patch] Reflect state of rfkill switch in a sysctl for ath based card X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 14 Mar 2012 13:44:38 -0000 On Tue, 13-Mar-2012 at 18:30:04 +0100, Adrian Chadd wrote: > On 13 March 2012 04:11, Andre Albsmeier wrote: > > >> Would you please create a PR and let me know what the PR number is? > > > > Well, there is a high probability that it might not work on > > non-5212 cards end even here it might fail (I can just test > > it with this Wistron CM9 card). Maybe someone with more > > knowledge about ath(4) (Sam?) might have quick look at it > > before... > > Oh, I'm the ath(4) maintainer now and I'm pretty cluey in this area. Ah, I didn't know that. I hope you didn't refer my statement about "someone with more knowledge about ath" to you -- it was just meant to express my poor overall knowledge of this driver ;-) > > The AR5416 and later NICs have a similar looking GPIO rfkill setup but > the code isn't yet in the FreeBSD HAL. > I have it though, I just haven't ported it from the Atheros reference driver. > > I'd prefer the rfkill method to be a HAL call, rather than assuming > it's a GPIO line. (I mean, it _is_ a GPIO line, but still.) In any I although thought about making it a HALL call but I first wanted to make sure it works at all. And so it stayed like this ;-) > case, please create a PR for it now and we'll get it into -HEAD once OK: kern/166086 > I've merged in rfkill support for the AR5416 and later NICs. > > Thanks, > > Adrian > (I work at Atheros now, so..) That's good news! -Andre From owner-freebsd-wireless@FreeBSD.ORG Wed Mar 14 17:18:42 2012 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4ABDD1065674; Wed, 14 Mar 2012 17:18:42 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 21E1A8FC18; Wed, 14 Mar 2012 17:18:42 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2EHIg94017235; Wed, 14 Mar 2012 17:18:42 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2EHIfjO017231; Wed, 14 Mar 2012 17:18:41 GMT (envelope-from linimon) Date: Wed, 14 Mar 2012 17:18:41 GMT Message-Id: <201203141718.q2EHIfjO017231@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-wireless@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/166086: [Patch][ath] Reflect state of rfkill switch in a sysctl for ath based card X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 14 Mar 2012 17:18:42 -0000 Synopsis: [Patch][ath] Reflect state of rfkill switch in a sysctl for ath based card Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless Responsible-Changed-By: linimon Responsible-Changed-When: Wed Mar 14 17:18:32 UTC 2012 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=166086 From owner-freebsd-wireless@FreeBSD.ORG Wed Mar 14 18:08:08 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D08CE1065678 for ; Wed, 14 Mar 2012 18:08:08 +0000 (UTC) (envelope-from ray@ddteam.net) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4591F8FC14 for ; Wed, 14 Mar 2012 18:08:07 +0000 (UTC) Received: by bkcjc3 with SMTP id jc3so2077186bkc.13 for ; Wed, 14 Mar 2012 11:08:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding :x-gm-message-state; bh=3oF2P7dFBZYhvtdiknmvWq1ndNKolhd3Fg7euv/9PKk=; b=A12MNKjcH7b7AWF8Wb1WCbIoFxdXrSSIAMWCSk/HaKw878i3oXVb8Ko5mtjtEyrdZ9 v4FqiF5Fglylba75Eq/759BmU20IfE7MMnNSW3g21PWfAYJk/svH1mIzf21FYg5wfqqV mrmWZ7XYskfSfM9gGeg/zzJHV3F9KNgXk087S7dz04zHB/ggv6oTzN9WqrVHtqsGYQpS B7L/HCjgqOvqpyNoYtc72PKPfjOPULTjvWqKPwcn+VtqmcQKiswWmt6Zhsi2ZzWMvHYs 9sg6gsXKtpcEdRRE7GDPcRS9NdHdIqnN9v8RnFHEn1107enO1yLrQlI0B13g2BqToUlB gWBw== Received: by 10.204.151.86 with SMTP id b22mr1359124bkw.81.1331748487008; Wed, 14 Mar 2012 11:08:07 -0700 (PDT) Received: from rnote.ddteam.net (35-244-133-95.pool.ukrtel.net. [95.133.244.35]) by mx.google.com with ESMTPS id t17sm9534319bke.6.2012.03.14.11.08.04 (version=SSLv3 cipher=OTHER); Wed, 14 Mar 2012 11:08:05 -0700 (PDT) Date: Wed, 14 Mar 2012 20:07:18 +0200 From: Aleksandr Rybalko To: matt Message-Id: <20120314200718.b6b51452.ray@ddteam.net> In-Reply-To: <4F5FE891.7050306@gmail.com> References: <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> <4F5E7D17.7000102@gmail.com> <4F5E9814.7010803@gmail.com> <4F5E9BA3.2000401@gmail.com> <20120313131415.36ecd761.ray@dlink.ua> <4F5FE891.7050306@gmail.com> X-Mailer: Sylpheed 3.1.2 (GTK+ 2.24.5; amd64-portbld-freebsd9.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmx2RrdXRek95EthxhoBC92zF6Prz+bVUB9LJbBRxHiKb9pwgTTBdmQQzQA8KDSgRV3Rcut Cc: Aleksandr Rybalko , freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 14 Mar 2012 18:08:09 -0000 On Tue, 13 Mar 2012 17:38:41 -0700 matt wrote: > On 03/13/12 08:03, Adrian Chadd wrote: > > Hi, > > > > Matt - you said your RT driver worked fine with CCMP, but the > > zrouter one didn't? Did I get that right? > > > > > > Adrian > > . > > > > Yes, but it sounded like Alexandr knew why? Not found yet :) Matt, can you please check it in different combination? Two possible cases: 1. Something different in net80211 crypto between HEAD and 8.X-RELEASE. 2. It is possible that driver works with crypto only in STA mode. Hope, it will help to find problem source. > > Regarding crash, > I'm just now in sync on this machine with the src tree it has, so I > can rule out future kernel vs old-time userland issues. > > Not sure whether that was the hw/sw ifdef, or something he said he > broke and was looking at. I add a couple of #ifndef RT2860_NO_HW_CRYPTO, so if RT2860_NO_HW_CRYPTO is defined, then used net80211 software crypto. > > Alexandr-- Thanks for posting a repo & adding commit bits. Welcome :) > > We'll have a working ral soon for the folks that have those only, > which is the important part! > No wifi is no FreeBSD for a lot of prospective users, I'm sure. Yeah, agree with you. > > Thanks! > Matt WBW -- Aleksandr Rybalko From owner-freebsd-wireless@FreeBSD.ORG Wed Mar 14 18:20:24 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6CBC91065686; Wed, 14 Mar 2012 18:20:24 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id 29A678FC12; Wed, 14 Mar 2012 18:20:24 +0000 (UTC) Received: by dadp14 with SMTP id p14so8784717dad.18 for ; Wed, 14 Mar 2012 11:20:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=YYNfRzeIaMrqkLLvoC8KomleHEN1FKedaHSMJF3I2FY=; b=JDwRynYOePb1mxczQYia3dvVf/nD/prN3YcAW4/AEffTBmnYZEq8SZPIENmm4xfIqo Uu5W6P6ftdfREoSoXiOhH5lpOYpXWRFxkt6TSRWjhUP+OGAAwZ+tk6E4WUvkE1l8ncJm vEgpgD8y5QdyqeC2y/1oa7v9M7SdEQ1MExq2bpPS9EDNOimRX4BS5h+Xl5JsZAQtkkbt ktQpOpPuliPKlPoSHZghKsKWnwO2b44xyQnaI89viYzzy+CEB6oSclG215yhUTvAtATh 06GRUJgYE4Oq5eZUm1gqeOhRf2nyd1skrFni5EiUXxgXNBCZskt1ZuRgGax98C5Y2ihv ouqw== Received: by 10.68.242.169 with SMTP id wr9mr4229074pbc.36.1331749223846; Wed, 14 Mar 2012 11:20:23 -0700 (PDT) Received: from flatline.local (70-36-223-154.dsl.dynamic.sonic.net. [70.36.223.154]) by mx.google.com with ESMTPS id z5sm2796485pbn.35.2012.03.14.11.20.21 (version=SSLv3 cipher=OTHER); Wed, 14 Mar 2012 11:20:22 -0700 (PDT) Message-ID: <4F60E163.8020304@gmail.com> Date: Wed, 14 Mar 2012 11:20:19 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.2) Gecko/20120218 Thunderbird/10.0.2 MIME-Version: 1.0 To: Aleksandr Rybalko References: <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> <4F5E7D17.7000102@gmail.com> <4F5E9814.7010803@gmail.com> <4F5E9BA3.2000401@gmail.com> <20120313131415.36ecd761.ray@dlink.ua> <4F5FE891.7050306@gmail.com> <20120314200718.b6b51452.ray@ddteam.net> In-Reply-To: <20120314200718.b6b51452.ray@ddteam.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Aleksandr Rybalko , freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 14 Mar 2012 18:20:24 -0000 On 03/14/12 11:07, Aleksandr Rybalko wrote: > On Tue, 13 Mar 2012 17:38:41 -0700 > matt wrote: > >> On 03/13/12 08:03, Adrian Chadd wrote: >>> Hi, >>> >>> Matt - you said your RT driver worked fine with CCMP, but the >>> zrouter one didn't? Did I get that right? >>> >>> >>> Adrian >>> . >>> >> Yes, but it sounded like Alexandr knew why? > Not found yet :) > Matt, can you please check it in different combination? > Two possible cases: > 1. Something different in net80211 crypto between HEAD and 8.X-RELEASE. > 2. It is possible that driver works with crypto only in STA mode. > > Hope, it will help to find problem source. > >> Regarding crash, >> I'm just now in sync on this machine with the src tree it has, so I >> can rule out future kernel vs old-time userland issues. >> >> Not sure whether that was the hw/sw ifdef, or something he said he >> broke and was looking at. > I add a couple of #ifndef RT2860_NO_HW_CRYPTO, so if > RT2860_NO_HW_CRYPTO is defined, then used net80211 software crypto. > >> Alexandr-- Thanks for posting a repo& adding commit bits. > Welcome :) > >> We'll have a working ral soon for the folks that have those only, >> which is the important part! >> No wifi is no FreeBSD for a lot of prospective users, I'm sure. > Yeah, agree with you. > >> Thanks! >> Matt > WBW I won't get to look at this until tomorrow, but I do remember having to make a few changes after the "panics on kldload" phase before it passed ccmp traffic in STA mode. I never tested hostap (or adhoc, or ahdemo, etc). I feel like some of the callbacks weren't there and were issuing complaints, but I'm not sure I saw that in the recent edition. Have you tested CCMP in STA mode? I can do that tomorrow as well...like I said source was out of sync with world & kernel until yesterday. If sta works for you then all bets are off, because I didn't test hostap. Matt From owner-freebsd-wireless@FreeBSD.ORG Wed Mar 14 18:31:51 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BAD7F1065670 for ; Wed, 14 Mar 2012 18:31:51 +0000 (UTC) (envelope-from jhugo@meraka.csir.co.za) Received: from marge.meraka.csir.co.za (marge.meraka.csir.co.za [IPv6:2001:4200:7000:3::1]) by mx1.freebsd.org (Postfix) with ESMTP id CC57A8FC0C for ; Wed, 14 Mar 2012 18:31:49 +0000 (UTC) Received: from jeep.localnet (unknown [IPv6:2001:4200:7000:3:223:aeff:fea7:a3c2]) by marge.meraka.csir.co.za (Postfix) with ESMTP id 33030D0CC43; Wed, 14 Mar 2012 20:31:42 +0200 (SAST) From: Johann Hugo To: freebsd-wireless@freebsd.org Date: Wed, 14 Mar 2012 20:31:39 +0200 User-Agent: KMail/1.13.7 (FreeBSD/9.0-RELEASE; KDE/4.7.3; amd64; ; ) References: <20120314.094656.92589124.iwasaki@jp.FreeBSD.org> In-Reply-To: <20120314.094656.92589124.iwasaki@jp.FreeBSD.org> X-KMail-Markup: true MIME-Version: 1.0 Message-Id: <201203142031.41181.jhugo@meraka.csir.co.za> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Mitsuru IWASAKI Subject: Re: [patch] iwi(4) suspend/resume broken X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 14 Mar 2012 18:31:51 -0000 Hi The wpi driver in 9.0 also suffers from a suspend/resume problem. Do you think that you patch will fix the wpi driver as well ? Johann On Wednesday 14 March 2012 02:46:56 Mitsuru IWASAKI wrote: > Hi, > > I've noticed that iwi(4) doesn't have ieee80211_new_state(IEEE80211_S_INIT) > in iwi_stop_locked() since 8.0-RELEASE (comparing with RELENG_7's). > > It seems that this prevent if_iwi from working properly after resuming, > no data frames were sent. > > The patches is available at: > http://people.freebsd.org/~iwasaki/iwi/iwi-20120314.diff > > Now that iwi(4) is working well for me :) > > I'll commit this coming weekend if there are no objections. > > Thanks! > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.org" From owner-freebsd-wireless@FreeBSD.ORG Wed Mar 14 21:04:03 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1B3A7106566B for ; Wed, 14 Mar 2012 21:04:03 +0000 (UTC) (envelope-from iwasaki@jp.FreeBSD.org) Received: from locore.org (ns01.locore.org [218.45.21.227]) by mx1.freebsd.org (Postfix) with ESMTP id B104E8FC16 for ; Wed, 14 Mar 2012 21:04:02 +0000 (UTC) Received: from localhost (celeron.v4.locore.org [192.168.0.10]) by locore.org (8.14.5/8.14.5/iwasaki) with ESMTP/inet id q2EL3xMQ062133; Thu, 15 Mar 2012 06:03:59 +0900 (JST) (envelope-from iwasaki@jp.FreeBSD.org) Date: Thu, 15 Mar 2012 06:03:58 +0900 (JST) Message-Id: <20120315.060358.41628027.iwasaki@jp.FreeBSD.org> To: jhugo@meraka.csir.co.za From: Mitsuru IWASAKI In-Reply-To: <201203142031.41181.jhugo@meraka.csir.co.za> References: <20120314.094656.92589124.iwasaki@jp.FreeBSD.org> <201203142031.41181.jhugo@meraka.csir.co.za> X-Mailer: Mew version 3.3 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: [patch] iwi(4) suspend/resume broken X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 14 Mar 2012 21:04:03 -0000 Hi, > Hi > > The wpi driver in 9.0 also suffers from a suspend/resume problem. Do you think > that you patch will fix the wpi driver as well ? Yes, I think so. Please try the patch at: http://people.freebsd.org/~iwasaki/wlan/wpi-20120315.diff The patch for ipw(4) also available, anyone try this? http://people.freebsd.org/~iwasaki/wlan/ipw-20120315.diff Thanks! From owner-freebsd-wireless@FreeBSD.ORG Wed Mar 14 21:07:20 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7B8AC106566C for ; Wed, 14 Mar 2012 21:07:20 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com [209.85.210.45]) by mx1.freebsd.org (Postfix) with ESMTP id 502198FC1A for ; Wed, 14 Mar 2012 21:07:20 +0000 (UTC) Received: by dadp14 with SMTP id p14so9452065dad.18 for ; Wed, 14 Mar 2012 14:07:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=4vvuv+3Yftn9RuyNISfz3mlV2qU3GBQoHofsKYWG30w=; b=lSItoiOjOKWE3CgUOcBwnk7FgRqekOLmZg4PzQ3TfWwfGt2y/QOVsKTFk/QLfrYK3j +1aK9npk5yRxqgc0Z3MXFvvItKPed+4u5iNUAEB7PhP6e74RnAvHIRE2oavrIRIO76OH C0FTxES2upUBkjq3WpP9UbKpolEgMeMXTVGrG74fJs4KjW4tjMg4nkkqGHEgCE3KJlD0 ra+J1nyXdWfeFMyjusjcLgR9HXCqDhqBJTU3dsDrl7AsAGrU/svImzp/dvT2yX/hPcox 9UotgCvgPtCZyyQgpcKFFH2lk2XdXRaPMCYWM7E68BfaWKLFMJ6FgzP6HTwY+bza+x+x 7Juw== MIME-Version: 1.0 Received: by 10.68.234.195 with SMTP id ug3mr4967292pbc.4.1331759239882; Wed, 14 Mar 2012 14:07:19 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Wed, 14 Mar 2012 14:07:19 -0700 (PDT) In-Reply-To: <20120315.060358.41628027.iwasaki@jp.FreeBSD.org> References: <20120314.094656.92589124.iwasaki@jp.FreeBSD.org> <201203142031.41181.jhugo@meraka.csir.co.za> <20120315.060358.41628027.iwasaki@jp.FreeBSD.org> Date: Wed, 14 Mar 2012 14:07:19 -0700 X-Google-Sender-Auth: J3TQLtrNeHK_jsqa56RM-Ny-T8A Message-ID: From: Adrian Chadd To: Mitsuru IWASAKI Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: [patch] iwi(4) suspend/resume broken X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 14 Mar 2012 21:07:20 -0000 Please commit these whenever you're able to. Reviewed by: adrian Adrian On 14 March 2012 14:03, Mitsuru IWASAKI wrote: > Hi, > >> Hi >> >> The wpi driver in 9.0 also suffers from a suspend/resume problem. Do you= think >> that you patch will fix the wpi driver as well ? > > Yes, I think so. =A0Please try the patch at: > http://people.freebsd.org/~iwasaki/wlan/wpi-20120315.diff > > The patch for ipw(4) also available, anyone try this? > http://people.freebsd.org/~iwasaki/wlan/ipw-20120315.diff > > Thanks! > _______________________________________________ > freebsd-wireless@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@freebsd.or= g" From owner-freebsd-wireless@FreeBSD.ORG Thu Mar 15 02:39:15 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 803BA106566B; Thu, 15 Mar 2012 02:39:15 +0000 (UTC) (envelope-from iwasaki@jp.FreeBSD.org) Received: from locore.org (ns01.locore.org [218.45.21.227]) by mx1.freebsd.org (Postfix) with ESMTP id 38E1B8FC0A; Thu, 15 Mar 2012 02:39:14 +0000 (UTC) Received: from localhost (celeron.v4.locore.org [192.168.0.10]) by locore.org (8.14.5/8.14.5/iwasaki) with ESMTP/inet id q2F2d7RX063248; Thu, 15 Mar 2012 11:39:07 +0900 (JST) (envelope-from iwasaki@jp.FreeBSD.org) Date: Thu, 15 Mar 2012 11:39:06 +0900 (JST) Message-Id: <20120315.113906.108737943.iwasaki@jp.FreeBSD.org> To: adrian@freebsd.org From: Mitsuru IWASAKI In-Reply-To: References: <201203142031.41181.jhugo@meraka.csir.co.za> <20120315.060358.41628027.iwasaki@jp.FreeBSD.org> X-Mailer: Mew version 3.3 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-wireless@freebsd.org Subject: Re: [patch] iwi(4) suspend/resume broken X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 15 Mar 2012 02:39:15 -0000 Hi, > Please commit these whenever you're able to. > = > Reviewed by: adrian OK, I will :) Thanks! > = > = > Adrian > = > On 14 March 2012 14:03, Mitsuru IWASAKI wrot= e: > > Hi, > > > >> Hi > >> > >> The wpi driver in 9.0 also suffers from a suspend/resume problem. = Do you think > >> that you patch will fix the wpi driver as well ? > > > > Yes, I think so. =A0Please try the patch at: > > http://people.freebsd.org/~iwasaki/wlan/wpi-20120315.diff > > > > The patch for ipw(4) also available, anyone try this? > > http://people.freebsd.org/~iwasaki/wlan/ipw-20120315.diff > > > > Thanks! > > _______________________________________________ > > freebsd-wireless@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-wireless > > To unsubscribe, send any mail to "freebsd-wireless-unsubscribe@free= bsd.org" > = > = From owner-freebsd-wireless@FreeBSD.ORG Thu Mar 15 08:05:35 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AA1E106566B for ; Thu, 15 Mar 2012 08:05:35 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-lb0-f182.google.com (mail-lb0-f182.google.com [209.85.217.182]) by mx1.freebsd.org (Postfix) with ESMTP id C7ECC8FC18 for ; Thu, 15 Mar 2012 08:05:34 +0000 (UTC) Received: by lboi15 with SMTP id i15so1710934lbo.13 for ; Thu, 15 Mar 2012 01:05:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:x-originating-ip:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=OaJnQ3X6szSCmnMyfcjhDXU3JH0Z0nXOfLAHthdTFCQ=; b=ibQmrGU9OJ0szOHxEJtMO8/YVW0QJ3Yxe8udr5BTnZVdN+vww9gv72RR1HgMfo3j7/ tjfyT7KY3fNfKTDwzb7+GipDOSThh+WENsbjnGxHaT1fP7S3wuXXdPFZ4J/KcDeAlF13 fhr1mPkCPHRqLN5Gfck3bWBVZNC5jvP11pe3AypRMkaVNlF4AlYMrFUTWmg444Shwg7g 62hljO6OJqJ7QSncJ5E6v4M6IHUmtOuBsGfWJsI6Dnm/yTDcPy5UBX0FKR3l25acr9LV dXze4I5ImN13ZclRv8gakRGtwkkk2BCnFXk2J9SzEPQDu283bd2wlOGtddv+skG5DF3q bthA== MIME-Version: 1.0 Received: by 10.152.103.12 with SMTP id fs12mr4060517lab.47.1331798733617; Thu, 15 Mar 2012 01:05:33 -0700 (PDT) Sender: bschmidt@techwires.net Received: by 10.152.112.234 with HTTP; Thu, 15 Mar 2012 01:05:33 -0700 (PDT) X-Originating-IP: [79.140.39.245] In-Reply-To: <20120315.060358.41628027.iwasaki@jp.FreeBSD.org> References: <20120314.094656.92589124.iwasaki@jp.FreeBSD.org> <201203142031.41181.jhugo@meraka.csir.co.za> <20120315.060358.41628027.iwasaki@jp.FreeBSD.org> Date: Thu, 15 Mar 2012 09:05:33 +0100 X-Google-Sender-Auth: ArSJuAzR2XL2zMw5hiG2x3Dn_-s Message-ID: From: Bernhard Schmidt To: Mitsuru IWASAKI Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQmpgPoHaK4BXEu0ChhAJXihj9dqRSyfZ9mesRO891IeQfXBpYck5nVjRVG5DfD4Q4+zBi1L Cc: freebsd-wireless@freebsd.org Subject: Re: [patch] iwi(4) suspend/resume broken X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 15 Mar 2012 08:05:35 -0000 On Wed, Mar 14, 2012 at 22:03, Mitsuru IWASAKI wro= te: > Hi, > >> Hi >> >> The wpi driver in 9.0 also suffers from a suspend/resume problem. Do you= think >> that you patch will fix the wpi driver as well ? > > Yes, I think so. =A0Please try the patch at: > http://people.freebsd.org/~iwasaki/wlan/wpi-20120315.diff > > The patch for ipw(4) also available, anyone try this? > http://people.freebsd.org/~iwasaki/wlan/ipw-20120315.diff > > Thanks! Hmm, I'm not sure I like this direct, unconditional fiddling with a VAP's state in the stop function, have you made sure that there are no side effects? eg. in case no VAP exists? I remember running into issue while doing that on iwn(4) and it helped to not have any knowledge about ic or vap in either init() or stop(). Well, I've settled for ieee80211_stop() and ieee80211_start() in suspend/resume, which seems to work. -- Bernhard From owner-freebsd-wireless@FreeBSD.ORG Thu Mar 15 08:47:00 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 046E0106566B; Thu, 15 Mar 2012 08:47:00 +0000 (UTC) (envelope-from slw@zxy.spb.ru) Received: from zxy.spb.ru (zxy.spb.ru [195.70.199.98]) by mx1.freebsd.org (Postfix) with ESMTP id AE4958FC1C; Thu, 15 Mar 2012 08:46:59 +0000 (UTC) Received: from slw by zxy.spb.ru with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1S86LB-000M9I-RR; Thu, 15 Mar 2012 12:47:21 +0400 Date: Thu, 15 Mar 2012 12:47:21 +0400 From: Slawa Olhovchenkov To: Mitsuru IWASAKI Message-ID: <20120315084721.GK97848@zxy.spb.ru> References: <20120314.094656.92589124.iwasaki@jp.FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120314.094656.92589124.iwasaki@jp.FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: slw@zxy.spb.ru X-SA-Exim-Scanned: No (on zxy.spb.ru); SAEximRunCond expanded to false Cc: freebsd-wireless@freebsd.org, freebsd-current@freebsd.org Subject: Re: [patch] iwi(4) suspend/resume broken X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 15 Mar 2012 08:47:00 -0000 On Wed, Mar 14, 2012 at 09:46:56AM +0900, Mitsuru IWASAKI wrote: > Hi, > > I've noticed that iwi(4) doesn't have ieee80211_new_state(IEEE80211_S_INIT) > in iwi_stop_locked() since 8.0-RELEASE (comparing with RELENG_7's). > > It seems that this prevent if_iwi from working properly after resuming, > no data frames were sent. > > The patches is available at: > http://people.freebsd.org/~iwasaki/iwi/iwi-20120314.diff > > Now that iwi(4) is working well for me :) > > I'll commit this coming weekend if there are no objections. ath(4) also don't work witch suspend/resume. and ath(4) dpn't work after resume even if kldunload before suspend (kldload don't work). From owner-freebsd-wireless@FreeBSD.ORG Fri Mar 16 14:05:57 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2874E106564A; Fri, 16 Mar 2012 14:05:57 +0000 (UTC) (envelope-from iwasaki@jp.FreeBSD.org) Received: from locore.org (ns01.locore.org [218.45.21.227]) by mx1.freebsd.org (Postfix) with ESMTP id DF4858FC0A; Fri, 16 Mar 2012 14:05:56 +0000 (UTC) Received: from localhost (celeron.v4.locore.org [192.168.0.10]) by locore.org (8.14.5/8.14.5/iwasaki) with ESMTP/inet id q2GE5mKM071180; Fri, 16 Mar 2012 23:05:48 +0900 (JST) (envelope-from iwasaki@jp.FreeBSD.org) Date: Fri, 16 Mar 2012 23:05:47 +0900 (JST) Message-Id: <20120316.230547.41627417.iwasaki@jp.FreeBSD.org> To: bschmidt@freebsd.org From: Mitsuru IWASAKI In-Reply-To: References: <201203142031.41181.jhugo@meraka.csir.co.za> <20120315.060358.41628027.iwasaki@jp.FreeBSD.org> X-Mailer: Mew version 3.3 on Emacs 20.7 / Mule 4.0 (HANANOEN) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-wireless@freebsd.org Subject: Re: [patch] iwi(4) suspend/resume broken X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 16 Mar 2012 14:05:57 -0000 Hi, thanks for comments. > Hmm, I'm not sure I like this direct, unconditional fiddling with a > VAP's state in the stop function, have you made sure that there are no > side effects? eg. in case no VAP exists? I remember running into issue > while doing that on iwn(4) and it helped to not have any knowledge > about ic or vap in either init() or stop(). Well, I've settled for I don't warry about sc_ifp->if_l2com, because it is allocated at attach(), but there is not guarantee that sc_ifp->if_l2com->ic_vaps is allocated, as you pointed out. Updated patches at: http://people.freebsd.org/~iwasaki/wlan/ipw-20120316.diff http://people.freebsd.org/~iwasaki/wlan/iww-20120316.diff http://people.freebsd.org/~iwasaki/wlan/wpi-20120316.diff > about ic or vap in either init() or stop(). Well, I've settled for > ieee80211_stop() and ieee80211_start() in suspend/resume, which seems > to work. I was thinking so too, but ieee80211_stop()/ieee80211_init() are never called from suspend/resume. Also wpa_supplicant(8) seems to set roaming mode to manual, so ieee80211 state doesn't change in this case. That's why iwi(4) suspend/resume is broken, I think. ieee80211_proto.c:ieee80211_start_locked() ---- /* * If the parent is up and running, then kick the * 802.11 state machine as appropriate. */ if ((parent->if_drv_flags & IFF_DRV_RUNNING) && vap->iv_roaming != IEEE80211_ROAMING_MANUAL) { if (vap->iv_opmode == IEEE80211_M_STA) { #if 0 /* XXX bypasses scan too easily; disable for now */ /* * Try to be intelligent about clocking the state * machine. If we're currently in RUN state then * we should be able to apply any new state/parameters * simply by re-associating. Otherwise we need to * re-scan to select an appropriate ap. */ if (vap->iv_state >= IEEE80211_S_RUN) ieee80211_new_state_locked(vap, IEEE80211_S_ASSOC, 1); else #endif ieee80211_new_state_locked(vap, IEEE80211_S_SCAN, 0); } else { /* * For monitor+wds mode there's nothing to do but * start running. Otherwise if this is the first * vap to be brought up, start a scan which may be * preempted if the station is locked to a particular * channel. */ vap->iv_flags_ext |= IEEE80211_FEXT_REINIT; if (vap->iv_opmode == IEEE80211_M_MONITOR || vap->iv_opmode == IEEE80211_M_WDS) ieee80211_new_state_locked(vap, IEEE80211_S_RUN, -1); else ieee80211_new_state_locked(vap, IEEE80211_S_SCAN, 0); } } } ---- Should we call ieee80211_stop()/ieee80211_init() from suspend/resume and fix above code? I prefer calling ieee80211_new_state(IEEE80211_S_INIT) in iwi_stop_locked() because it's equivalent to RELENG_7's behavior and fix iwi_restart() too. Thanks! From owner-freebsd-wireless@FreeBSD.ORG Fri Mar 16 23:24:00 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76225106566B for ; Fri, 16 Mar 2012 23:24:00 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 42B598FC0C for ; Fri, 16 Mar 2012 23:23:59 +0000 (UTC) Received: by dald2 with SMTP id d2so7188274dal.13 for ; Fri, 16 Mar 2012 16:23:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=d6guPJkGzkkto9OCGLBheJ3KhKjIeLe3Y6P29911trw=; b=K8fSz8rbx52KbvKqULDVMIqiV8M/YNTGDSp9jJczQQho7y9Cq+u2tosOvv+mAuQe3L RpEImRJ5gQ+HCbLehS/nP24rQ5fxruCUkarN9WDbQEEtX0rUf3OcyndxzjPbYUuq//7r KM+dENX8JObihbO83/jLoClTrGYdT5EK1+EzJQwRdE5LZekH2zCshtF4FHAr3LMwT01W 3dREH+LXA9AmW4cruBUhn7lgGT6YPp4o4Zd5Qz32HYYyRPGoGqp9VeNSGghSXsJ7OXGF i7WkUElD+Br1Wz1/iH1Qk8u2sSWAPzpzggt2+eDFoFWZKfR3PrBPw7G80LA3k5O7KDmg /Ilg== MIME-Version: 1.0 Received: by 10.68.232.2 with SMTP id tk2mr19059471pbc.68.1331940239821; Fri, 16 Mar 2012 16:23:59 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Fri, 16 Mar 2012 16:23:59 -0700 (PDT) In-Reply-To: References: <4F59DD98.8080905@unsane.co.uk> <4F5AA149.8000904@unsane.co.uk> <4F5BDF3C.8070605@unsane.co.uk> <4F5C0302.8090403@unsane.co.uk> <4F5CA45C.1010603@unsane.co.uk> <4F5E656F.4040004@unsane.co.uk> <4F5FC022.3040202@unsane.co.uk> Date: Fri, 16 Mar 2012 16:23:59 -0700 X-Google-Sender-Auth: WNS70IRWyjESXOJeVtnByWKAVOs Message-ID: From: Adrian Chadd To: Vincent Hoffman Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ath0 timeout was "Re: (more) bugs fixed in -HEAD, AP mode is now mostly (again) stable!" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 16 Mar 2012 23:24:00 -0000 Hi, Yup, this seems like a concurrency issue with the driver. I'm trying to debug exactly what's going on, but it seems that multiple concurrent threads are doing TX and they're overlapping. I was under the impression that all TX'ing via ath_start() would be serialised via ifnet but apparently not. It's also possible some frames that are legitimately going into the aggregation session (ie, they get a sequence number and want to be ACKed) are being sent via the ath_tx_raw() method, which bypasses the ifnet serialisation entirely. I was reproducing it at home and in the office within 30 seconds: * have chrome running with say, 15 tabs; * kill -9 it so it dies very quickly; * fire up the interface; * fire up debug logging, which is REALLY VERBOSE btw; * fire up chrome again; * reload all the tabs at once; * watch LOTS of concurrent IO go on from lots of multiple sending threads/processes; * then, see some buffers get "stuck" in the software queue, just like you found. Now, why the heck is that happening.. :) Adrian From owner-freebsd-wireless@FreeBSD.ORG Fri Mar 16 23:46:17 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27AEC106564A for ; Fri, 16 Mar 2012 23:46:17 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id E6E128FC16 for ; Fri, 16 Mar 2012 23:46:16 +0000 (UTC) Received: by dald2 with SMTP id d2so7211398dal.13 for ; Fri, 16 Mar 2012 16:46:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=c/EY/JSmugHfclFV61/Al6NK1h7QcWT5x/fkF4Ya4E8=; b=bybAGy9JZy4xpUDmQSKAWPakg95EI1kPMDZIl00SPlJkZN9XW4uGyKbPH1t5EpNSDG yPmifgiu1vo+fEdWvLMoUBSLYintca8wsdoCbW6CqXDTrq7ofj6CenRdS5IYFrpFAeRg hNh7ShOx1muWP634bM2QKcBJDC9cAqWQ0CF/nyvfbw+QA2be7kMSNofo0DDakaDZKU4c PiVoxLsyIQwWI2c728Uq6Hwrp7hP585cGtZvr0Mlt8zDlso63EokpPq4D7/4qcWP4D74 RQdp9zzePsjEPORZ8eblk0z4CCGauWAgIncSQvEt9M3CCQUkjoI9K+YqsaoaFZ3t517O vvbg== MIME-Version: 1.0 Received: by 10.68.136.231 with SMTP id qd7mr18301556pbb.28.1331941576477; Fri, 16 Mar 2012 16:46:16 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.143.33.5 with HTTP; Fri, 16 Mar 2012 16:46:16 -0700 (PDT) In-Reply-To: References: <4F59DD98.8080905@unsane.co.uk> <4F5AA149.8000904@unsane.co.uk> <4F5BDF3C.8070605@unsane.co.uk> <4F5C0302.8090403@unsane.co.uk> <4F5CA45C.1010603@unsane.co.uk> <4F5E656F.4040004@unsane.co.uk> <4F5FC022.3040202@unsane.co.uk> Date: Fri, 16 Mar 2012 16:46:16 -0700 X-Google-Sender-Auth: LygmxNn2gASGGswFumVghHg6Xr8 Message-ID: From: Adrian Chadd To: Vincent Hoffman Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-wireless@freebsd.org Subject: Re: ath0 timeout was "Re: (more) bugs fixed in -HEAD, AP mode is now mostly (again) stable!" X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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: Fri, 16 Mar 2012 23:46:17 -0000 http://www.freebsd.org/cgi/query-pr.cgi?pr=166190 adrian On 16 March 2012 16:23, Adrian Chadd wrote: > Hi, > > Yup, this seems like a concurrency issue with the driver. I'm trying > to debug exactly what's going on, but it seems that multiple > concurrent threads are doing TX and they're overlapping. I was under > the impression that all TX'ing via ath_start() would be serialised via > ifnet but apparently not. It's also possible some frames that are > legitimately going into the aggregation session (ie, they get a > sequence number and want to be ACKed) are being sent via the > ath_tx_raw() method, which bypasses the ifnet serialisation entirely. > > I was reproducing it at home and in the office within 30 seconds: > > * have chrome running with say, 15 tabs; > * kill -9 it so it dies very quickly; > * fire up the interface; > * fire up debug logging, which is REALLY VERBOSE btw; > * fire up chrome again; > * reload all the tabs at once; > * watch LOTS of concurrent IO go on from lots of multiple sending > threads/processes; > * then, see some buffers get "stuck" in the software queue, just like you found. > > Now, why the heck is that happening.. :) > > > Adrian From owner-freebsd-wireless@FreeBSD.ORG Sat Mar 17 04:40:54 2012 Return-Path: Delivered-To: freebsd-wireless@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B15871065679; Sat, 17 Mar 2012 04:40:54 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 88F418FC08; Sat, 17 Mar 2012 04:40:54 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2H4esKH099810; Sat, 17 Mar 2012 04:40:54 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2H4esnb099802; Sat, 17 Mar 2012 04:40:54 GMT (envelope-from linimon) Date: Sat, 17 Mar 2012 04:40:54 GMT Message-Id: <201203170440.q2H4esnb099802@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-wireless@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/166190: [ath] TX hangs and frames stuck in TX queue X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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, 17 Mar 2012 04:40:54 -0000 Synopsis: [ath] TX hangs and frames stuck in TX queue Responsible-Changed-From-To: freebsd-bugs->freebsd-wireless Responsible-Changed-By: linimon Responsible-Changed-When: Sat Mar 17 04:40:45 UTC 2012 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=166190 From owner-freebsd-wireless@FreeBSD.ORG Sat Mar 17 11:32:29 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E792D106566B for ; Sat, 17 Mar 2012 11:32:29 +0000 (UTC) (envelope-from bschmidt@techwires.net) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id 725CF8FC0C for ; Sat, 17 Mar 2012 11:32:28 +0000 (UTC) Received: by wibhq7 with SMTP id hq7so1539439wib.13 for ; Sat, 17 Mar 2012 04:32:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id :x-gm-message-state; bh=BTrA7j9wQZI3oofL8H4dGHBcIDQK8iSSOCcIrbAzFYY=; b=LI3srP39at3/3snAk/aemVYlA4HDd8Rr4hA58B8md1sPCTPnBKeSWKvly7JwvxpHOJ EBn4sRhAQRV2vJ6TTa3cxuc7AlUF10xds/IARQKbZ7IO0F7hm0oTtyX1Vtf4jbdo3Z34 lENfZLoaxjkJMXFkoXVpPsoUFNgm5utr+YXZD+O8ijy1dMDAmv/Vc7UI4oH6PY5cKjDx K3xLJtzFBzOceOfUQ58/XZzvilPlWLy8TXiEHem8157EKZP8yNywxA8iH6pnrkKJRVbV OEIcvGFS1aYte8PeqU2ii/sj7qyB4so9BIh8d03gyOn7Y38rjDrkis2MWVVP8tKog8ks SueA== Received: by 10.180.101.230 with SMTP id fj6mr5785481wib.13.1331983948225; Sat, 17 Mar 2012 04:32:28 -0700 (PDT) Received: from amy.lab.techwires.net (dslb-088-065-048-156.pools.arcor-ip.net. [88.65.48.156]) by mx.google.com with ESMTPS id gg2sm11255868wib.7.2012.03.17.04.32.26 (version=SSLv3 cipher=OTHER); Sat, 17 Mar 2012 04:32:27 -0700 (PDT) Sender: Bernhard Schmidt From: Bernhard Schmidt To: Mitsuru IWASAKI Date: Sat, 17 Mar 2012 12:32:42 +0100 User-Agent: KMail/1.13.7 (FreeBSD/9.0-STABLE; KDE/4.7.4; amd64; ; ) References: <201203142031.41181.jhugo@meraka.csir.co.za> <20120316.230547.41627417.iwasaki@jp.FreeBSD.org> In-Reply-To: <20120316.230547.41627417.iwasaki@jp.FreeBSD.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201203171232.42515.bschmidt@freebsd.org> X-Gm-Message-State: ALoCoQntz/NCPTH3goyFK2GqbjCS48IKZ1ZGHz5kHP3rLSUYOrA1Xk0bLF6bj9Gy6V7+gXO9PLfF Cc: freebsd-wireless@freebsd.org Subject: Re: [patch] iwi(4) suspend/resume broken X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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, 17 Mar 2012 11:32:30 -0000 On Friday, March 16, 2012 03:05:47 PM Mitsuru IWASAKI wrote: > Hi, thanks for comments. > > > Hmm, I'm not sure I like this direct, unconditional fiddling with a > > VAP's state in the stop function, have you made sure that there are no > > side effects? eg. in case no VAP exists? I remember running into issue > > while doing that on iwn(4) and it helped to not have any knowledge > > about ic or vap in either init() or stop(). Well, I've settled for > > I don't warry about sc_ifp->if_l2com, because it is allocated at > attach(), but there is not guarantee that sc_ifp->if_l2com->ic_vaps is > allocated, as you pointed out. > > Updated patches at: > http://people.freebsd.org/~iwasaki/wlan/ipw-20120316.diff > http://people.freebsd.org/~iwasaki/wlan/iww-20120316.diff > http://people.freebsd.org/~iwasaki/wlan/wpi-20120316.diff > > > about ic or vap in either init() or stop(). Well, I've settled for > > ieee80211_stop() and ieee80211_start() in suspend/resume, which seems > > to work. > > I was thinking so too, but ieee80211_stop()/ieee80211_init() are never > called from suspend/resume. > Also wpa_supplicant(8) seems to set roaming mode to manual, so > ieee80211 state doesn't change in this case. > That's why iwi(4) suspend/resume is broken, I think. > > ieee80211_proto.c:ieee80211_start_locked() > ---- > /* > * If the parent is up and running, then kick the > * 802.11 state machine as appropriate. > */ > if ((parent->if_drv_flags & IFF_DRV_RUNNING) && > vap->iv_roaming != IEEE80211_ROAMING_MANUAL) { > if (vap->iv_opmode == IEEE80211_M_STA) { > #if 0 > /* XXX bypasses scan too easily; disable for now */ > /* > * Try to be intelligent about clocking the state > * machine. If we're currently in RUN state then > * we should be able to apply any new state/parameters > * simply by re-associating. Otherwise we need to > * re-scan to select an appropriate ap. > */ > if (vap->iv_state >= IEEE80211_S_RUN) > ieee80211_new_state_locked(vap, > IEEE80211_S_ASSOC, 1); > else > #endif > ieee80211_new_state_locked(vap, > IEEE80211_S_SCAN, 0); > } else { > /* > * For monitor+wds mode there's nothing to do but > * start running. Otherwise if this is the first > * vap to be brought up, start a scan which may be > * preempted if the station is locked to a particular > * channel. > */ > vap->iv_flags_ext |= IEEE80211_FEXT_REINIT; > if (vap->iv_opmode == IEEE80211_M_MONITOR || > vap->iv_opmode == IEEE80211_M_WDS) > ieee80211_new_state_locked(vap, > IEEE80211_S_RUN, -1); > else > ieee80211_new_state_locked(vap, > IEEE80211_S_SCAN, 0); > } > } > } > ---- > > Should we call ieee80211_stop()/ieee80211_init() from suspend/resume > and fix above code? > I prefer calling ieee80211_new_state(IEEE80211_S_INIT) in > iwi_stop_locked() because it's equivalent to RELENG_7's > behavior and fix iwi_restart() too. Sorry, for the delay. I'd really prefer calling ieee80211_stop/init() in the suspend/resume functions, while the driver is not holding the lock (net80211 might call into the driver again). I roughly checked a few things and I even think that calling ieee80211_stop_all() might be enough. Still playing around though. -- Bernhard From owner-freebsd-wireless@FreeBSD.ORG Sat Mar 17 23:03:53 2012 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E37AE106566B; Sat, 17 Mar 2012 23:03:52 +0000 (UTC) (envelope-from sendtomatt@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 9D4B98FC14; Sat, 17 Mar 2012 23:03:52 +0000 (UTC) Received: by dald2 with SMTP id d2so8529062dal.13 for ; Sat, 17 Mar 2012 16:03:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=h8y7FHy7gpIU60SjN8cRQIAXixUG2xk7zTZZptxs7vM=; b=vBn015dmwkAT+wQjy6V9WuPuV33Dy5W6+Wd22prnvkKVJ9kl3AryKdrwPOD9qS5zDt UCUKy2QSkv8NWeCJOx8kmAjqef5qWevbOcuatHex2zQQfJ/+enespt864MpP7RHEr2e7 wXEf1scyo3NQu8CxcCpJPI/iMU2JkzuM9+BIFhEEK8eoWP1x6yx+bjZHotApCRVkTVNz UVrXEQ8jg3zuulZKJfNEHMaFKPCKJl1U7qZ1jcnSmDCf6GYSxJUtmMDRnmuingJSoD6J z1H/60ZSWjv2nsEPJr85xKN90JcMeHV4+dMTs3ksh5xC1/iMmysJouBuNLTXy2AfTrhb NE2w== Received: by 10.68.204.10 with SMTP id ku10mr6479053pbc.101.1332025432124; Sat, 17 Mar 2012 16:03:52 -0700 (PDT) Received: from flatline.local (70-36-223-154.dsl.dynamic.sonic.net. [70.36.223.154]) by mx.google.com with ESMTPS id 3sm4624591pbf.47.2012.03.17.16.03.49 (version=SSLv3 cipher=OTHER); Sat, 17 Mar 2012 16:03:50 -0700 (PDT) Message-ID: <4F651853.2050409@gmail.com> Date: Sat, 17 Mar 2012 16:03:47 -0700 From: matt User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:10.0.3) Gecko/20120314 Thunderbird/10.0.3 MIME-Version: 1.0 To: Aleksandr Rybalko References: <4F4828C0.6020705@gmail.com> <4F5A8023.1090705@gmail.com> <4F5AC7CF.3090409@gmail.com> <4F5C0C86.7040503@gmail.com> <4F5C24ED.3090601@gmail.com> <4F5CD920.2000905@gmail.com> <4F5D0876.5040409@gmail.com> <4F5D14E0.3050301@gmail.com> <20120312001625.4d9b3b52.ray@ddteam.net> <4F5E7D17.7000102@gmail.com> <4F5E9814.7010803@gmail.com> <4F5E9BA3.2000401@gmail.com> <20120313131415.36ecd761.ray@dlink.ua> <4F5FE891.7050306@gmail.com> <20120314200718.b6b51452.ray@ddteam.net> In-Reply-To: <20120314200718.b6b51452.ray@ddteam.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Aleksandr Rybalko , freebsd-wireless@freebsd.org Subject: Re: Please Test: Updated Ral Driver Patch for rt2860/rt3090 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.5 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, 17 Mar 2012 23:03:53 -0000 On 03/14/12 11:07, Aleksandr Rybalko wrote: > On Tue, 13 Mar 2012 17:38:41 -0700 > matt wrote: > >> On 03/13/12 08:03, Adrian Chadd wrote: >>> Hi, >>> >>> Matt - you said your RT driver worked fine with CCMP, but the >>> zrouter one didn't? Did I get that right? >>> >>> >>> Adrian >>> . >>> >> Yes, but it sounded like Alexandr knew why? > Not found yet :) > Matt, can you please check it in different combination? > Two possible cases: > 1. Something different in net80211 crypto between HEAD and 8.X-RELEASE. > 2. It is possible that driver works with crypto only in STA mode. > > Hope, it will help to find problem source. > >> Regarding crash, >> I'm just now in sync on this machine with the src tree it has, so I >> can rule out future kernel vs old-time userland issues. >> >> Not sure whether that was the hw/sw ifdef, or something he said he >> broke and was looking at. > I add a couple of #ifndef RT2860_NO_HW_CRYPTO, so if > RT2860_NO_HW_CRYPTO is defined, then used net80211 software crypto. > >> Alexandr-- Thanks for posting a repo& adding commit bits. > Welcome :) > >> We'll have a working ral soon for the folks that have those only, >> which is the important part! >> No wifi is no FreeBSD for a lot of prospective users, I'm sure. > Yeah, agree with you. > >> Thanks! >> Matt > WBW Haven't got to comparing what my rt2860.c was doing vs. the one in the google code, but the google code source is definitely getting a panic in rt2860_rx_queue_done (sorry from memory, maybe fewer underscores) trying to run CCMP. It scans and goes up just fine, and wpa_supplicant exits without error...I suppose I should have run wpa_cli and gotten a little more than "exits without error" :). I ruled out panics specific to a DHCP packet by running the interface static. This time at least I saw a backtrace. I'll keep looking at it. If anyone hasn't seen it before, I found "meld" in ports which is pretty nice for doing line by line comparisons where things are mostly similar, reminds me of the visual patch tool in Xcode. Matt