svn commit: r221163 - in head/sys: conf dev/ath dev/ath/ath_hal dev/ath/ath_hal/ar5416 dev/ath/ath_hal/ar9001 modules/ath

2011-04-28 Thread Adrian Chadd
Author: adrian Date: Thu Apr 28 12:47:40 2011 New Revision: 221163 URL: http://svn.freebsd.org/changeset/base/221163 Log: Introduce AR9130 (HOWL) WMAC support to the FreeBSD HAL. The AR9130 is an AR9160/AR5416 family WMAC which is glued directly to the AR913x SoC peripheral bus (APB) rath

svn commit: r221164 - head/sys/mips/conf

2011-04-28 Thread Adrian Chadd
Author: adrian Date: Thu Apr 28 12:52:01 2011 New Revision: 221164 URL: http://svn.freebsd.org/changeset/base/221164 Log: Re-enable the wireless build parameters for the AR9130 WMAC. * enable 11n * add ath_ahb so the AHB<->ath glue is linked in * disable descriptor order swapping, it is

svn commit: r221198 - head/sys/mips/atheros

2011-04-28 Thread Adrian Chadd
Author: adrian Date: Fri Apr 29 06:25:11 2011 New Revision: 221198 URL: http://svn.freebsd.org/changeset/base/221198 Log: Tidy up the naming of the ip2 DDR flush routine, and add an inline accessor method (which is currently unused) in there. Modified: head/sys/mips/atheros/ar71xx_cpudef.h

svn commit: r221206 - head/sys/dev/ath/ath_hal/ar5416

2011-04-29 Thread Adrian Chadd
Author: adrian Date: Fri Apr 29 12:52:18 2011 New Revision: 221206 URL: http://svn.freebsd.org/changeset/base/221206 Log: Remove some holdovers from the AR5212 origin of this code. These aren't relevant here. Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c Modified: head/sys/dev/a

svn commit: r221210 - head/sys/dev/ath

2011-04-29 Thread Adrian Chadd
Author: adrian Date: Fri Apr 29 16:43:30 2011 New Revision: 221210 URL: http://svn.freebsd.org/changeset/base/221210 Log: Cosmetic changes to fit 80 character screen width. Modified: head/sys/dev/ath/if_ath.c Modified: head/sys/dev/ath/if_ath.c ===

svn commit: r221240 - head/sys/mips/atheros

2011-04-29 Thread Adrian Chadd
Author: adrian Date: Sat Apr 30 02:31:56 2011 New Revision: 221240 URL: http://svn.freebsd.org/changeset/base/221240 Log: Add a missing DDR FIFO method for the ar71xx. Modified: head/sys/mips/atheros/ar71xx_chip.c Modified: head/sys/mips/atheros/ar71xx_chip.c

svn commit: r221252 - in head/sys/mips: atheros conf

2011-04-30 Thread Adrian Chadd
Author: adrian Date: Sat Apr 30 11:28:21 2011 New Revision: 221252 URL: http://svn.freebsd.org/changeset/base/221252 Log: In preparation for the AR724x PCIe bus code, make the AR71xx PCI bus glue require 'device ar71xx_pci' . Users of the AR71xx board configs will now require this for fun

svn commit: r221253 - head

2011-04-30 Thread Adrian Chadd
Author: adrian Date: Sat Apr 30 11:30:42 2011 New Revision: 221253 URL: http://svn.freebsd.org/changeset/base/221253 Log: Add UPDATING entry for the AR71xx config changes Modified: head/UPDATING Modified: head/UPDATING =

svn commit: r221254 - head/sys/mips/atheros

2011-04-30 Thread Adrian Chadd
Author: adrian Date: Sat Apr 30 11:36:16 2011 New Revision: 221254 URL: http://svn.freebsd.org/changeset/base/221254 Log: Add some initial PCIe bridge support for the AR724x chipsets. This is reported to work on the AR7240 based Ubiquiti Rocket M5 but I haven't tested it on that hardware.

svn commit: r221255 - head/sys/mips/atheros

2011-04-30 Thread Adrian Chadd
Author: adrian Date: Sat Apr 30 11:40:31 2011 New Revision: 221255 URL: http://svn.freebsd.org/changeset/base/221255 Log: Flip off debugging for now. Modified: head/sys/mips/atheros/ar724x_pci.c Modified: head/sys/mips/atheros/ar724x_pci.c

svn commit: r221256 - head/sys/mips/atheros

2011-04-30 Thread Adrian Chadd
Author: adrian Date: Sat Apr 30 11:56:04 2011 New Revision: 221256 URL: http://svn.freebsd.org/changeset/base/221256 Log: Call the DDR FIFO flush method when IP2 interrupts occur. Modified: head/sys/mips/atheros/ar71xx_pci.c Modified: head/sys/mips/atheros/ar71xx_pci.c ==

svn commit: r221257 - head/sys/mips/atheros

2011-04-30 Thread Adrian Chadd
Author: adrian Date: Sat Apr 30 12:07:15 2011 New Revision: 221257 URL: http://svn.freebsd.org/changeset/base/221257 Log: The AR724x SoC's require the irq status line to be acked/cleared. This allows console IO to occur correctly once the kernel is in multi-user mode. Submitted by: L

svn commit: r221259 - head/sys/mips/conf

2011-04-30 Thread Adrian Chadd
Author: adrian Date: Sat Apr 30 12:25:09 2011 New Revision: 221259 URL: http://svn.freebsd.org/changeset/base/221259 Log: An example configuration file for the Atheros PB92. TODO: * pcie doesn't yet work properly, I'm working on it. * if_arge doesn't work - it's likely the phy mask i

svn commit: r221307 - head/sys/mips/atheros

2011-05-01 Thread Adrian Chadd
Author: adrian Date: Sun May 1 23:32:37 2011 New Revision: 221307 URL: http://svn.freebsd.org/changeset/base/221307 Log: Some AR724x PCIe fixes, which should wrap up the first round of endian-ness issues with the AR724x. From Luiz: * Fix the bus space tag used so endian-ness is corr

svn commit: r221312 - head/sys/conf

2011-05-01 Thread Adrian Chadd
Author: adrian Date: Mon May 2 05:39:43 2011 New Revision: 221312 URL: http://svn.freebsd.org/changeset/base/221312 Log: Add documentation to sys/conf/options pointing out that AH_SUPPORT_AR9130 shouldn't be enabled by default unless you're truely building for the AR913x platform. Modified

Re: svn commit: r221301 - head/sys/conf

2011-05-01 Thread Adrian Chadd
On 2 May 2011 03:54, Bernhard Schmidt wrote: >> I'm not sure that's intrinsically true. Even if they mostly only ship >> with Intel motherboards, many of these are Mini-PCI parts which could be >> put into non-x86 systems. > > Yes, indeed. Those might of course be used on other platforms too > (w

svn commit: r221321 - head/sys/mips/conf

2011-05-02 Thread Adrian Chadd
Author: adrian Date: Mon May 2 10:42:19 2011 New Revision: 221321 URL: http://svn.freebsd.org/changeset/base/221321 Log: Add in the work-around for the AR8316 gige switch PHY. This allows the ethernet to function on the PB92 board. Submitted by: Luiz Otavio O Souza Modified: head/s

svn commit: r221418 - head/sys/net80211

2011-05-03 Thread Adrian Chadd
Author: adrian Date: Wed May 4 02:23:59 2011 New Revision: 221418 URL: http://svn.freebsd.org/changeset/base/221418 Log: Fix some corner cases in the net80211 sequence number retransmission handling. The current sequence number code does a few things incorrectly: * It didn't try eli

svn commit: r221427 - head/sys/dev/ath/ath_hal/ar5416

2011-05-04 Thread Adrian Chadd
Author: adrian Date: Wed May 4 09:26:33 2011 New Revision: 221427 URL: http://svn.freebsd.org/changeset/base/221427 Log: Remove this useless bit of code for Kite. The RIFS register value is overriden by the initvals, so disabling RIFS before calling writeIni() effectively does nothing. Mod

svn commit: r221479 - head/sys/dev/ath/ath_hal/ar5416

2011-05-04 Thread Adrian Chadd
Author: adrian Date: Thu May 5 02:59:31 2011 New Revision: 221479 URL: http://svn.freebsd.org/changeset/base/221479 Log: Import some HOWL (AR9130) related fixes from Atheros. Obtained from:Atheros Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_reset.c head/sys/dev/ath/ath_ha

svn commit: r221480 - head/sys/dev/ath/ath_hal/ar5416

2011-05-04 Thread Adrian Chadd
Author: adrian Date: Thu May 5 03:42:04 2011 New Revision: 221480 URL: http://svn.freebsd.org/changeset/base/221480 Log: Fix up the chipset checks for the AR5416 and later silicon. The checks should function as follows: * AR_SREV_ : check macVersion matches that version id * AR_SREV

svn commit: r221483 - head/sys/dev/ath/ath_hal/ar5416

2011-05-04 Thread Adrian Chadd
Author: adrian Date: Thu May 5 04:43:05 2011 New Revision: 221483 URL: http://svn.freebsd.org/changeset/base/221483 Log: Another Howl (AR9130) fix. I haven't seen a 5ghz AR9130 based board yet though! Obtained from:Atheros Modified: head/sys/dev/ath/ath_hal/ar5416/ar2133.c

svn commit: r221488 - head/sys/dev/ath/ath_hal/ar5416

2011-05-05 Thread Adrian Chadd
Author: adrian Date: Thu May 5 08:11:22 2011 New Revision: 221488 URL: http://svn.freebsd.org/changeset/base/221488 Log: Don't perform NF calibration for radio chains which aren't in use: Quoting the ath9k commit message: At present the noise floor calibration is processed in supporte

svn commit: r221489 - head/sys/mips/conf

2011-05-05 Thread Adrian Chadd
Author: adrian Date: Thu May 5 09:04:49 2011 New Revision: 221489 URL: http://svn.freebsd.org/changeset/base/221489 Log: Add nvram2env (untested) and geom_map (tested) to PB92. Modified: head/sys/mips/conf/PB92 head/sys/mips/conf/PB92.hints Modified: head/sys/mips/conf/PB92 ==

svn commit: r221500 - head/sys/geom

2011-05-05 Thread Adrian Chadd
Author: adrian Date: Thu May 5 14:43:09 2011 New Revision: 221500 URL: http://svn.freebsd.org/changeset/base/221500 Log: Updates to geom_map from the author. The major update here is to support 64 bit size/offsets. There's also style related changes. Submitted by: r...@dlink

svn commit: r221501 - head/share/man/man4

2011-05-05 Thread Adrian Chadd
Author: adrian Date: Thu May 5 14:43:35 2011 New Revision: 221501 URL: http://svn.freebsd.org/changeset/base/221501 Log: Add a manpage for geom_map(4). Submitted by: r...@dlink.ua Added: head/share/man/man4/geom_map.4 (contents, props changed) Modified: head/share/man/man4/Makefile

svn commit: r221518 - head/sys/mips/atheros

2011-05-05 Thread Adrian Chadd
Author: adrian Date: Fri May 6 02:45:02 2011 New Revision: 221518 URL: http://svn.freebsd.org/changeset/base/221518 Log: Fix GPIO_MAXPINS calculation for the AR71xx, AR724x, AR913x SoC. Submitted by: Luiz Otavio O Souza Modified: head/sys/mips/atheros/ar71xx_gpio.c head/sys/mips/athe

svn commit: r221535 - head/sys/dev/ath/ath_hal/ar5416

2011-05-06 Thread Adrian Chadd
Author: adrian Date: Fri May 6 15:33:56 2011 New Revision: 221535 URL: http://svn.freebsd.org/changeset/base/221535 Log: Add a function which enables or disables RX RIFS searching, and migrate the code which does this into it. Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416.h head/sys/d

svn commit: r221573 - head/sys/dev/ath/ath_hal/ar5416

2011-05-06 Thread Adrian Chadd
Author: adrian Date: Sat May 7 02:54:52 2011 New Revision: 221573 URL: http://svn.freebsd.org/changeset/base/221573 Log: Fix the OWL revision checks. A quick story, which is partially documented in the commit. The silicon revision in Linux ath9k and the Atheros HAL use an AR_SREV_RE

svn commit: r221574 - in head/sys/dev/ath/ath_hal: ar5416 ar9002

2011-05-06 Thread Adrian Chadd
Author: adrian Date: Sat May 7 02:59:24 2011 New Revision: 221574 URL: http://svn.freebsd.org/changeset/base/221574 Log: Change AR_SREV_OWL_{X}_OR_LATER to AR_SREV_5416_{X}_OR_LATER. For now, these are equivalent macros. AR_SREV_OWL{X}_OR_LATER will later change to exclude Howl (AR9130)

svn commit: r221580 - in head/sys/dev/ath/ath_hal: . ar5416

2011-05-06 Thread Adrian Chadd
Author: adrian Date: Sat May 7 06:45:35 2011 New Revision: 221580 URL: http://svn.freebsd.org/changeset/base/221580 Log: Some BB hang changes: * Add Howl (ar9130) to the list of chips that have DFS/BB/MAC hangs * Don't treat unknown BB hangs as fatal; ath9k/Atheros HAL don't treat it

svn commit: r221581 - head/sys/dev/ath/ath_hal

2011-05-06 Thread Adrian Chadd
Author: adrian Date: Sat May 7 06:47:09 2011 New Revision: 221581 URL: http://svn.freebsd.org/changeset/base/221581 Log: Add some comments about which HAL capabilities are currently FreeBSD specific. The Atheros HAL and FreeBSD HAL share the same capabilities up until HAL_CAP_11D, wher

svn commit: r221582 - head/sys/dev/ath/ath_hal/ar5416

2011-05-06 Thread Adrian Chadd
Author: adrian Date: Sat May 7 06:52:04 2011 New Revision: 221582 URL: http://svn.freebsd.org/changeset/base/221582 Log: Instead of returning an unknown mac/bb signature, just return 0. Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_misc.c Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_

svn commit: r221596 - in head/sys/dev/ath/ath_hal: . ar5416 ar9001 ar9002

2011-05-07 Thread Adrian Chadd
Author: adrian Date: Sat May 7 11:05:16 2011 New Revision: 221596 URL: http://svn.freebsd.org/changeset/base/221596 Log: Read in the extended regulatory domain flags so future code can use them. These describe FCC/Japan channel and DFS behaviour. The AR9285 and later chips don't set t

svn commit: r221600 - head/sys/dev/ath/ath_hal/ar5416

2011-05-07 Thread Adrian Chadd
Author: adrian Date: Sat May 7 13:08:48 2011 New Revision: 221600 URL: http://svn.freebsd.org/changeset/base/221600 Log: Update the ext channel cycpwr threshold 1 register for the extension channel when the channel is HT/40. The new ANI code (primarily for the AR9300/AR9400) in ath9k set

svn commit: r209338 - head/sys/mips/atheros

2010-06-19 Thread Adrian Chadd
Author: adrian Date: Sat Jun 19 12:12:39 2010 New Revision: 209338 URL: http://svn.freebsd.org/changeset/base/209338 Log: Extend the AR71XX watchdog debugging and data. * Add some per-device sysctl entries which record the watchdog state - whether it is armed; whether the last reboot wa

svn commit: r209454 - head/sys/mips/atheros

2010-06-22 Thread Adrian Chadd
Author: adrian Date: Wed Jun 23 03:59:26 2010 New Revision: 209454 URL: http://svn.freebsd.org/changeset/base/209454 Log: AR71XX GPIO register definitions. Reviewed by: gonzo@ Modified: head/sys/mips/atheros/ar71xxreg.h Modified: head/sys/mips/atheros/ar71xxreg.h ==

svn commit: r209494 - head/sys/mips/atheros

2010-06-23 Thread Adrian Chadd
Author: adrian Date: Thu Jun 24 05:17:21 2010 New Revision: 209494 URL: http://svn.freebsd.org/changeset/base/209494 Log: Comment about the shared pins I know about. Modified: head/sys/mips/atheros/ar71xxreg.h Modified: head/sys/mips/atheros/ar71xxreg.h ==

svn commit: r227868 - head/sys/dev/ath

2011-11-22 Thread Adrian Chadd
Author: adrian Date: Wed Nov 23 05:00:25 2011 New Revision: 227868 URL: http://svn.freebsd.org/changeset/base/227868 Log: Flesh out the TX aggregation completion statistics. * Failall is now named just that. * Add TX ok and TX fail, for aggregate frame sub-frames. This will break ath

svn commit: r227869 - head/tools/tools/ath/athstats

2011-11-22 Thread Adrian Chadd
Author: adrian Date: Wed Nov 23 05:01:23 2011 New Revision: 227869 URL: http://svn.freebsd.org/changeset/base/227869 Log: Add the new statistics introduced in r227868. Sponsored by: Hobnob, Inc. Modified: head/tools/tools/ath/athstats/athstats.c Modified: head/tools/tools/ath/athstats/a

svn commit: r227870 - head/tools/tools/ath/athstats

2011-11-22 Thread Adrian Chadd
Author: adrian Date: Wed Nov 23 05:03:27 2011 New Revision: 227870 URL: http://svn.freebsd.org/changeset/base/227870 Log: Tidy up the statistic documentation. Sponsored by: Hobnob, Inc. Modified: head/tools/tools/ath/athstats/athstats.c Modified: head/tools/tools/ath/athstats/athstats.c

svn commit: r227872 - head/sys/dev/ath

2011-11-22 Thread Adrian Chadd
Author: adrian Date: Wed Nov 23 07:12:26 2011 New Revision: 227872 URL: http://svn.freebsd.org/changeset/base/227872 Log: Re-lock the ath lock after ath_reset() has been called. The calibrate callout is done with the sc lock held. This only showed up when using an older NIC (AR5212) whose

svn commit: r227917 - head/sys/mips/conf

2011-11-23 Thread Adrian Chadd
Author: adrian Date: Thu Nov 24 04:19:02 2011 New Revision: 227917 URL: http://svn.freebsd.org/changeset/base/227917 Log: Slim the default build down a little: * Disable the NFS client, it's not needed for booting off of flash. * Don't compile in softdep, snapshots, ufs acls and directory

svn commit: r227918 - head/sys/mips/conf

2011-11-23 Thread Adrian Chadd
Author: adrian Date: Thu Nov 24 04:21:19 2011 New Revision: 227918 URL: http://svn.freebsd.org/changeset/base/227918 Log: Flip on these debugging options by default. This is -HEAD after all. Modified: head/sys/mips/conf/PB92 Modified: head/sys/mips/conf/PB92 =

svn commit: r227919 - head/sys/mips/conf

2011-11-23 Thread Adrian Chadd
Author: adrian Date: Thu Nov 24 04:23:42 2011 New Revision: 227919 URL: http://svn.freebsd.org/changeset/base/227919 Log: Add a comment documenting where the WMAC hangs off of. At some point it would be nice to correctly update the bus glue to make this "correct", including having the DDR

svn commit: r227920 - head/sys/mips/conf

2011-11-23 Thread Adrian Chadd
Author: adrian Date: Thu Nov 24 04:34:04 2011 New Revision: 227920 URL: http://svn.freebsd.org/changeset/base/227920 Log: Compile in the right bits so the AR9130 WMAC support functions correctly. A previous commit disabled compiling the AR9130 support in the default HAL build in the kerne

svn commit: r227921 - head/sys/mips/conf

2011-11-23 Thread Adrian Chadd
Author: adrian Date: Thu Nov 24 04:39:01 2011 New Revision: 227921 URL: http://svn.freebsd.org/changeset/base/227921 Log: Flesh out a geom_map setup, so the kernel can be squeezed _onto_ the device. The default flash layout gives only 1 megabyte for the kernel, gzipped. The uboot firmware

svn commit: r227922 - head/sys/conf

2011-11-23 Thread Adrian Chadd
Author: adrian Date: Thu Nov 24 06:27:47 2011 New Revision: 227922 URL: http://svn.freebsd.org/changeset/base/227922 Log: Don't compile in the AR9130 embedded WMAC code into the HAL by default. This won't work unless AH_SUPPORT_AR9130 which can't be enabled - it breaks the other 11n chips

svn commit: r227924 - in head/sys: conf mips/atheros

2011-11-23 Thread Adrian Chadd
Author: adrian Date: Thu Nov 24 07:32:52 2011 New Revision: 227924 URL: http://svn.freebsd.org/changeset/base/227924 Log: Introduce a new (global, sorry!) option which controls whether the ar71xx platform code should assume a uboot or redboot environment. The current code gets very confus

svn commit: r227925 - head/sys/mips/conf

2011-11-23 Thread Adrian Chadd
Author: adrian Date: Thu Nov 24 07:33:41 2011 New Revision: 227925 URL: http://svn.freebsd.org/changeset/base/227925 Log: Flip on AR71XX_ENV_UBOOT so the environment variables are properly processed. (Which is to say they're currently ignored.) Modified: head/sys/mips/conf/TP-WN1043ND Modi

svn commit: r227926 - head/sys/mips/conf

2011-11-23 Thread Adrian Chadd
Author: adrian Date: Thu Nov 24 07:37:19 2011 New Revision: 227926 URL: http://svn.freebsd.org/changeset/base/227926 Log: Now that I've brought up FreeBSD via flash, I've discovered that the second-last 64k seems to be the default firmware board configuration area. Since I have no idea

svn commit: r227938 - head/sys/mips/conf

2011-11-24 Thread Adrian Chadd
Author: adrian Date: Thu Nov 24 15:12:57 2011 New Revision: 227938 URL: http://svn.freebsd.org/changeset/base/227938 Log: I've had verification that the second-last 64k is actually used by the tplink firmware to store configuration data. It's safe to overwrite it. Modified: head/sys/mi

Re: svn commit: r228050 - head/sys/mips/atheros

2011-11-28 Thread Adrian Chadd
On 28 November 2011 16:10, Gleb Smirnoff wrote: > Author: glebius > Date: Mon Nov 28 08:10:12 2011 > New Revision: 228050 > URL: http://svn.freebsd.org/changeset/base/228050 > > Log: >  Fix build, fininshing r228018. Thanks, Adrian ___ svn-src-head@fr

svn commit: r228257 - head/sys/dev/iicbus

2011-12-04 Thread Adrian Chadd
Author: adrian Date: Sun Dec 4 11:55:33 2011 New Revision: 228257 URL: http://svn.freebsd.org/changeset/base/228257 Log: Allow the i2c node requirements to be slightly relaxed. These realtek switch PHYs speak a variant of i2c with some slightly modified handling. From the submitter,

svn commit: r228258 - head/sys/dev/gpio

2011-12-04 Thread Adrian Chadd
Author: adrian Date: Sun Dec 4 12:10:24 2011 New Revision: 228258 URL: http://svn.freebsd.org/changeset/base/228258 Log: Modify the GPIO i2c bus code to allow for arbitrary data/clock pins, rather than defaulting to 0 and 1. This way the pin order can be reversed. It is reversed with th

svn commit: r228450 - head/sys/mips/atheros

2011-12-12 Thread Adrian Chadd
Author: adrian Date: Tue Dec 13 05:13:51 2011 New Revision: 228450 URL: http://svn.freebsd.org/changeset/base/228450 Log: Style(9) changes. Modified: head/sys/mips/atheros/ar71xx_chip.c head/sys/mips/atheros/ar724x_chip.c head/sys/mips/atheros/ar91xx_chip.c Modified: head/sys/mips/athero

svn commit: r228514 - head/sys/net80211

2011-12-14 Thread Adrian Chadd
Author: adrian Date: Thu Dec 15 00:52:30 2011 New Revision: 228514 URL: http://svn.freebsd.org/changeset/base/228514 Log: Modify the ACL code slightly to support a few nifty things: * Call it before sending probe responses, so the ACL code has the chance to reject sending them. * P

svn commit: r228515 - head/sys/dev/ath/ath_hal/ar5416

2011-12-14 Thread Adrian Chadd
Author: adrian Date: Thu Dec 15 00:54:11 2011 New Revision: 228515 URL: http://svn.freebsd.org/changeset/base/228515 Log: Use the correct RF version probe routine. Obtained from:Atheros Sponsored by: Hobnob, Inc. Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c Modifi

svn commit: r228516 - head/sys/dev/ath

2011-12-14 Thread Adrian Chadd
Author: adrian Date: Thu Dec 15 00:55:27 2011 New Revision: 228516 URL: http://svn.freebsd.org/changeset/base/228516 Log: Print out the radio RF version at startup, so I can better see which RF frontend versions people have when they submit problem reports. Sponsored by: Hobnob, Inc. Mod

svn commit: r228517 - in head/sys/dev/ath/ath_hal: ar5416 ar9002

2011-12-14 Thread Adrian Chadd
Author: adrian Date: Thu Dec 15 00:59:11 2011 New Revision: 228517 URL: http://svn.freebsd.org/changeset/base/228517 Log: Add the 11n chipset RF frontends to the linker set, even though they're not attached this way. The AR5212 based NICs have a variety of RF frontends, so there's a linke

svn commit: r228518 - head/sys/mips/atheros

2011-12-14 Thread Adrian Chadd
Author: adrian Date: Thu Dec 15 01:03:49 2011 New Revision: 228518 URL: http://svn.freebsd.org/changeset/base/228518 Log: Re-jiggle the GPIO code a little to remove the hard-coded AR71xx GPIO config and function mask setup. * "gpiomask" now specifies which GPIO pins to enable, for devices

svn commit: r228519 - head/sys/mips/conf

2011-12-14 Thread Adrian Chadd
Author: adrian Date: Thu Dec 15 01:05:38 2011 New Revision: 228519 URL: http://svn.freebsd.org/changeset/base/228519 Log: * Add in the gpio/gpioled drivers into AR91XX_BASE. * Add in a default GPIO section for AR91XX_BASE.hints, which doesn't define the GPIO function masks or any GPIO pine

Re: svn commit: r228514 - head/sys/net80211

2011-12-15 Thread Adrian Chadd
On 15 December 2011 00:02, Bernhard Schmidt wrote: > Why didn't you remove the mac argument? It is assign from wh->i_addr2 > anyways, seems rather too redundant to me. Because the semantics for that right now are "check that MAC", so it's the callers responsibility to determine which MAC in the

Re: svn commit: r228514 - head/sys/net80211

2011-12-15 Thread Adrian Chadd
On 15 December 2011 02:15, Bernhard Schmidt wrote: >> So in short: if you're happy removing it, remove it. :) > > I agree on passing the frame as an argument to iac_check() and obtain > the mac from there, that definitely is required for more advanced > ACLs. Passing both tough, is imho not requi

svn commit: r228725 - in head/sys: dev/gpio mips/atheros

2011-12-19 Thread Adrian Chadd
Author: adrian Date: Tue Dec 20 00:33:56 2011 New Revision: 228725 URL: http://svn.freebsd.org/changeset/base/228725 Log: Remove these locks - they aren't strictly needed and cause measurable performance issues. * Access to the GPIO bus is already locked by requesting and releasing th

svn commit: r228728 - head/sys/dev/iicbus

2011-12-19 Thread Adrian Chadd
Author: adrian Date: Tue Dec 20 02:49:01 2011 New Revision: 228728 URL: http://svn.freebsd.org/changeset/base/228728 Log: IIC bitbang changes - prepare to make the bit delay configurable; debug print changes. * Right now the delay is hard coded at 10uS. This is a bit long when doing lots

svn commit: r228729 - head/sys/dev/gpio

2011-12-19 Thread Adrian Chadd
Author: adrian Date: Tue Dec 20 03:25:11 2011 New Revision: 228729 URL: http://svn.freebsd.org/changeset/base/228729 Log: Fix broken locking that I introduced in the previous commit. Modified: head/sys/dev/gpio/gpioiic.c Modified: head/sys/dev/gpio/gpioiic.c =

Re: svn commit: r228785 - in head/sys/dev/ath/ath_hal: ar5210 ar5211

2011-12-21 Thread Adrian Chadd
Erm, why did you do this without first getting clearance from someone who has the hardware to test it? Just because it looks obviously wrong to you, doesn't at all mean that it's "wrong". It's quite possible that the driver _requires_ those bits to be written to the hardware as 0. I'd appreciate

Re: svn commit: r228785 - in head/sys/dev/ath/ath_hal: ar5210 ar5211

2011-12-21 Thread Adrian Chadd
On 21 December 2011 14:00, John Baldwin wrote: > I agree it should be reviewed, but if you are seriously depending on > the fact that the shifted values are beyond the edge of the word boundary > and so the result "wraps" to zero, then I'd question the sanity of your code. I agree, but this is a

Re: svn commit: r228785 - in head/sys/dev/ath/ath_hal: ar5210 ar5211

2011-12-21 Thread Adrian Chadd
On 21 December 2011 15:27, Alexander Best wrote: >> I agree it should be reviewed, but if you are seriously depending on >> the fact that the shifted values are beyond the edge of the word boundary >> and so the result "wraps" to zero, then I'd question the sanity of your code. > > i disagree. >

Re: svn commit: r228783 - head/sys/conf

2011-12-22 Thread Adrian Chadd
.. and once this LLVM regression has been fixed, do you plan on reverting this change to conf? Adrian On 21 December 2011 09:01, Dimitry Andric wrote: > Author: dim > Date: Wed Dec 21 17:01:13 2011 > New Revision: 228783 > URL: http://svn.freebsd.org/changeset/base/228783 > > Log: >  When build

Re: svn commit: r228800 - in head/sys/dev/ath/ath_hal: ar5212 ar5416

2011-12-22 Thread Adrian Chadd
Just to be silly :) I reviewed this patchset early this morning and it's fine. Nothing in the FreeBSD HAL uses the compression code, so unless someone out there has proprietary extensions which does, this patch is fine. I promise to get the AR5210 and AR5211 stuff tested tonight. The AR5210 at le

Re: svn commit: r228785 - in head/sys/dev/ath/ath_hal: ar5210 ar5211

2011-12-22 Thread Adrian Chadd
On 22 December 2011 10:08, Alexander Best wrote: >> You don't think changes should be reviewed (that's what I said above, I did >> not necessarily say it should be reverted)?  That's way out in left field if >> that is what you really think. > > no of course not. let's handle it this way: > > kee

svn commit: r228817 - in head/sys/dev/ath/ath_hal: ar5212 ar5416

2011-12-22 Thread Adrian Chadd
Author: adrian Date: Thu Dec 22 21:54:53 2011 New Revision: 228817 URL: http://svn.freebsd.org/changeset/base/228817 Log: Use the correct types when calling the decompression mask function. There's currently no public code which uses this feature and the current reference driver doesn't e

svn commit: r228829 - head/sys/dev/ath

2011-12-22 Thread Adrian Chadd
Author: adrian Date: Fri Dec 23 02:21:22 2011 New Revision: 228829 URL: http://svn.freebsd.org/changeset/base/228829 Log: Add a temporary debugging statement in order to try and identify what's going on with the occasional garbage rs_antenna field reported by AR9285 users. I've discover

svn commit: r228830 - head/sys/dev/ath

2011-12-22 Thread Adrian Chadd
Author: adrian Date: Fri Dec 23 02:40:35 2011 New Revision: 228830 URL: http://svn.freebsd.org/changeset/base/228830 Log: Make some more of the 11n specific code conditional. This doesn't fix compilation w/out AH_SUPPORT_AR5416 as all of the software aggregation support in if_ath_tx.c and

svn commit: r228831 - head/tools/tools/ath

2011-12-22 Thread Adrian Chadd
Author: adrian Date: Fri Dec 23 02:57:18 2011 New Revision: 228831 URL: http://svn.freebsd.org/changeset/base/228831 Log: Add in ath_ee_9287_print. Modified: head/tools/tools/ath/Makefile Modified: head/tools/tools/ath/Makefile

svn commit: r228832 - head/sys/dev/ath

2011-12-22 Thread Adrian Chadd
Author: adrian Date: Fri Dec 23 03:59:49 2011 New Revision: 228832 URL: http://svn.freebsd.org/changeset/base/228832 Log: Rework this ugly mess that tries to handle reset serialisation. Some users were reporting concurrent resets _were_ occuring - ie, either two ath_reset()s ran at the sa

svn commit: r228833 - head/sys/dev/ath/ath_hal/ar9002

2011-12-22 Thread Adrian Chadd
Author: adrian Date: Fri Dec 23 04:05:39 2011 New Revision: 228833 URL: http://svn.freebsd.org/changeset/base/228833 Log: Remove unused #define's. Pointy hat to: adrian, for not properly reading things when he copied ar9285.h to ar9287.h. Modified: head/sys/dev/ath/ath_hal/ar9002/ar9

svn commit: r228834 - head/sys/dev/ath/ath_hal/ar5416

2011-12-23 Thread Adrian Chadd
Author: adrian Date: Fri Dec 23 08:32:53 2011 New Revision: 228834 URL: http://svn.freebsd.org/changeset/base/228834 Log: Port over some GPIO and LED fixes. * As a preparation for AR9287 GPIO support, add in the AR9287 GPIO mask. * Fix the association mask values; these are post-shift val

svn commit: r228836 - head/sys/dev/ath/ath_hal/ar5416

2011-12-23 Thread Adrian Chadd
Author: adrian Date: Fri Dec 23 08:53:22 2011 New Revision: 228836 URL: http://svn.freebsd.org/changeset/base/228836 Log: Port over some more GPIO fixes from the atheros reference HAL. * Bring the AR5416 GPIO mux mask code in line with the code from the HAL. * Add HAL_DEBUG_GPIO de

svn commit: r228837 - head/sys/dev/ath/ath_hal/ar5416

2011-12-23 Thread Adrian Chadd
Author: adrian Date: Fri Dec 23 09:09:10 2011 New Revision: 228837 URL: http://svn.freebsd.org/changeset/base/228837 Log: Disable the code which hard-sets the LEDs on. This prevents the LED state from correctly updating things. The reference driver directly enables/disables the LED state

svn commit: r228886 - head/sys/dev/ath

2011-12-25 Thread Adrian Chadd
Author: adrian Date: Mon Dec 26 05:26:35 2011 New Revision: 228886 URL: http://svn.freebsd.org/changeset/base/228886 Log: Do a quick style(9) pass of some of the code introduced with 802.11n support. Modified: head/sys/dev/ath/if_ath.c Modified: head/sys/dev/ath/if_ath.c ==

svn commit: r228887 - in head/sys: conf dev/ath modules/ath

2011-12-25 Thread Adrian Chadd
Author: adrian Date: Mon Dec 26 05:37:09 2011 New Revision: 228887 URL: http://svn.freebsd.org/changeset/base/228887 Log: First pass of LED related code changes. Migrate the LED code out of if_ath.c and into if_ath_led.c. These routines are _all_ software based LED blinking. Added: hea

svn commit: r228888 - head/sys/dev/ath

2011-12-25 Thread Adrian Chadd
Author: adrian Date: Mon Dec 26 05:46:22 2011 New Revision: 22 URL: http://svn.freebsd.org/changeset/base/22 Log: Refactor out the software LED config code into a common function, called ath_led_config(). The eventual aim is to have both software and hardware based LED configura

svn commit: r228889 - head/sys/dev/ath/ath_hal/ar5416

2011-12-25 Thread Adrian Chadd
Author: adrian Date: Mon Dec 26 06:07:21 2011 New Revision: 228889 URL: http://svn.freebsd.org/changeset/base/228889 Log: Update the hardware LED blinking code to do something useful rather than relying on what the register defaults are. This forces the blink mode to be proportional to th

svn commit: r228890 - head/sys/dev/ath

2011-12-25 Thread Adrian Chadd
Author: adrian Date: Mon Dec 26 06:25:12 2011 New Revision: 228890 URL: http://svn.freebsd.org/changeset/base/228890 Log: Setup the initial LED state on attach and resume. Some of the NICs I have here power up with the LEDs blinking, which is incorrect. The blinking should only occur when

svn commit: r228891 - head/sys/dev/ath

2011-12-25 Thread Adrian Chadd
Author: adrian Date: Mon Dec 26 07:47:05 2011 New Revision: 228891 URL: http://svn.freebsd.org/changeset/base/228891 Log: Flesh out configurable hardware based LED blinking. The hardware (MAC) LED blinking involves a few things: * Selecting which GPIO pins map to the MAC "power" and "n

svn commit: r228892 - head/sys/dev/ath

2011-12-25 Thread Adrian Chadd
Author: adrian Date: Mon Dec 26 07:48:29 2011 New Revision: 228892 URL: http://svn.freebsd.org/changeset/base/228892 Log: Since the only thing with a mux is the AR5416 and later, and we're now doing split software/hardware LED configuration, we can now simply treat "softled" as an "output" m

svn commit: r228893 - head/sys/dev/ath/ath_hal/ar5416

2011-12-26 Thread Adrian Chadd
Author: adrian Date: Mon Dec 26 08:21:29 2011 New Revision: 228893 URL: http://svn.freebsd.org/changeset/base/228893 Log: AR5416 has 14 GPIO pins, from 0->13. Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c Modified: head/sys/dev/ath/ath_hal/ar5416/ar5416_attach.c =

svn commit: r228903 - head/tools/tools/ath

2011-12-26 Thread Adrian Chadd
Author: adrian Date: Mon Dec 26 19:41:46 2011 New Revision: 228903 URL: http://svn.freebsd.org/changeset/base/228903 Log: Oops, my bad. Fix a broken thing I introduced earlier. Modified: head/tools/tools/ath/Makefile Modified: head/tools/tools/ath/Makefile ==

svn commit: r228944 - head/sys/mips/conf

2011-12-28 Thread Adrian Chadd
Author: adrian Date: Thu Dec 29 05:51:48 2011 New Revision: 228944 URL: http://svn.freebsd.org/changeset/base/228944 Log: Break out the AR71XX config file into _BASE and board specific bits. The ROUERSTATION and RSPRO variants contain: * the board specific bits (eg the RTC for RSPRO,

svn commit: r228945 - head/sys/mips/conf

2011-12-28 Thread Adrian Chadd
Author: adrian Date: Thu Dec 29 06:07:24 2011 New Revision: 228945 URL: http://svn.freebsd.org/changeset/base/228945 Log: Flesh out the RSPRO GPIO config, including the RF LED. Modified: head/sys/mips/conf/AR71XX_BASE head/sys/mips/conf/RSPRO.hints Modified: head/sys/mips/conf/AR71XX_BASE

svn commit: r228987 - head/sys/mips/conf

2011-12-30 Thread Adrian Chadd
Author: adrian Date: Fri Dec 30 09:39:24 2011 New Revision: 228987 URL: http://svn.freebsd.org/changeset/base/228987 Log: Add a couple of missing wlan modules. Modified: head/sys/mips/conf/AR71XX_BASE Modified: head/sys/mips/conf/AR71XX_BASE ==

svn commit: r228988 - head/sys/mips/conf

2011-12-30 Thread Adrian Chadd
Author: adrian Date: Fri Dec 30 09:48:35 2011 New Revision: 228988 URL: http://svn.freebsd.org/changeset/base/228988 Log: Add a configuration file for the Atheros PB47 reference board. This is an AR71xx based board with 8MB flash, 64MB RAM, a Mini-PCI+ slot (see below) and a single 10/100/10

Re: svn commit: r228986 - in head: share/man/man4 sys/net

2011-12-30 Thread Adrian Chadd
This just broke wlan. Please consider fixing this patch :) Adrian *** Interface: wlan0: start can't re-use a leaf (wlan0)! panic: bpfattach tscfgoid KDB: enter: panic [ thread pid 166 tid 100048 ]Stopped at kdb_enter+0x4c: lui at,0x8048 db> db> bt Tracing pid 166 tid 100048 td 0x80c3790

Re: svn commit: r228986 - in head: share/man/man4 sys/net

2011-12-30 Thread Adrian Chadd
Please file a PR for me? :) Adrian On 30 December 2011 23:02, Lawrence Stewart wrote: > On 12/31/11 11:13, Adrian Chadd wrote: >> >> This just broke wlan. Please consider fixing this patch :) >> >> >> Adrian >> >> *** Interface: wlan0: start >&g

svn commit: r229126 - head/sys/mips/conf

2011-12-31 Thread Adrian Chadd
Author: adrian Date: Sat Dec 31 15:56:00 2011 New Revision: 229126 URL: http://svn.freebsd.org/changeset/base/229126 Log: Oops - this was referencing a local file, which I've done away with. Modified: head/sys/mips/conf/ROUTERSTATION Modified: head/sys/mips/conf/ROUTERSTATION ===

svn commit: r229162 - head/sys/mips/conf

2011-12-31 Thread Adrian Chadd
Author: adrian Date: Sat Dec 31 23:41:19 2011 New Revision: 229162 URL: http://svn.freebsd.org/changeset/base/229162 Log: This particular work around isn't required any longer, now that the 11n radio backends are also added into the RF linker set. This saves around 7k from the kernel bina

svn commit: r229165 - head/sys/dev/ath

2011-12-31 Thread Adrian Chadd
Author: adrian Date: Sun Jan 1 01:08:51 2012 New Revision: 229165 URL: http://svn.freebsd.org/changeset/base/229165 Log: If frames are dumped out of the queue, let's at least see what they are. This shows that the majority of the weird traffic I see here are probe frames that haven't bee

<    1   2   3   4   5   6   7   8   9   10   >