<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/modules/ath/Makefile, branch releng/10.2</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F10.2</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F10.2'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2014-01-04T18:19:53Z</updated>
<entry>
<title>MFC r260025:</title>
<updated>2014-01-04T18:19:53Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2014-01-04T18:19:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b86ba936ed46cefb45b96e4ca7a865b27ecd2d4b'/>
<id>urn:sha1:b86ba936ed46cefb45b96e4ca7a865b27ecd2d4b</id>
<content type='text'>
Disable warning about unused functions for ar9300_reset.c for now.
</content>
</entry>
<entry>
<title>Migrate the LNA mixing diversity machinery from the AR9285 HAL to the driver.</title>
<updated>2013-06-12T14:52:57Z</updated>
<author>
<name>Adrian Chadd</name>
<email>adrian@FreeBSD.org</email>
</author>
<published>2013-06-12T14:52:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=216ca2346fff3a53770769146cf8a59a3f8c7b95'/>
<id>urn:sha1:216ca2346fff3a53770769146cf8a59a3f8c7b95</id>
<content type='text'>
The AR9485 chip and AR933x SoC both implement LNA diversity.
There are a few extra things that need to happen before this can be
flipped on for those chips (mostly to do with setting up the different
bias values and LNA1/LNA2 RSSI differences) but the first stage is
putting this code into the driver layer so it can be reused.

This has the added benefit of making it easier to expose configuration
options and diagnostic information via the ioctl API.  That's not yet
being done but it sure would be nice to do so.

Tested:

* AR9285, with LNA diversity enabled
* AR9285, with LNA diversity disabled in EEPROM
</content>
</entry>
<entry>
<title>Bring over the initial static bluetooth coexistence configuration</title>
<updated>2013-06-07T09:02:02Z</updated>
<author>
<name>Adrian Chadd</name>
<email>adrian@FreeBSD.org</email>
</author>
<published>2013-06-07T09:02:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b70f530bc7a43b0310cb9686a4b80a6d97577d1e'/>
<id>urn:sha1:b70f530bc7a43b0310cb9686a4b80a6d97577d1e</id>
<content type='text'>
for the WB195 combo NIC - an AR9285 w/ an AR3011 USB bluetooth NIC.

The AR3011 is wired up using a 3-wire coexistence scheme to the AR9285.

The code in if_ath_btcoex.c sets up the initial hardware mapping
and coexistence configuration.  There's nothing special about it -
it's static; it doesn't try to configure bluetooth / MAC traffic priorities
or try to figure out what's actually going on.  It's enough to stop basic
bluetooth traffic from causing traffic stalls and diassociation from
the wireless network.

To use this code, you must have the above NIC.  No, it won't work
for the AR9287+AR3012, nor the AR9485, AR9462 or AR955x combo cards.

Then you set a kernel hint before boot or before kldload, where 'X'
is the unit number of your AR9285 NIC:

# kenv hint.ath.X.btcoex_profile=wb195

This will then appear in your boot messages:

[100482] athX: Enabling WB195 BTCOEX

This code is going to evolve pretty quickly (well, depending upon my
spare time) so don't assume the btcoex API is going to stay stable.

In order to use the bluetooth side, you must also load in firmware using
ath3kfw and the binary firmware file (ath3k-1.fw in my case.)

Tested:

* AR9280, no interference
* WB195 - AR9285 + AR3011 combo; STA mode; basic bluetooth inquiries
  were enough to cause traffic stalls and disassociations.  This has
  stopped with the btcoex profile code.

TODO:

* Importantly - the AR9285 needs ASPM disabled if bluetooth coexistence
  is enabled.  No, I don't know why.  It's likely some kind of bug to do
  with the AR3011 sending bluetooth coexistence signals whilst the device
  is asleep.  Since we don't actually sleep the MAC just yet, it shouldn't
  be a problem.  That said, to be totally correct:

  + ASPM should be disabled - upon attach and wakeup
  + The PCIe powersave HAL code should never be called

  Look at what the ath9k driver does for inspiration.

* Add WB197 (AR9287+AR3012) support
* Add support for the AR9485, which is another combo like the AR9285
* The later NICs have a different signaling mechanism between the MAC
  and the bluetooth device; I haven't even begun to experiment with
  making that HAL code work.  But it should be a lot more automatic.

* The hardware can do much more interesting traffic weighting with
  bluetooth and wifi traffic.  None of this is currently used.
  Ideally someone would code up something to watch the bluetooth traffic
  GPIO (via an interrupt) and then watch it go high/low; then figure out
  what the bluetooth traffic is and adjust things appropriately.

* If I get the time I may add in some code to at least track this stuff
  and expose statistics.  But it's up to someone else to experiment with
  the bluetooth coexistence support and add the interesting stuff (like
  "real" detection of bulk, audio, etc bluetooth traffic patterns and
  change wifi parameters appropriately - eg, maximum aggregate length,
  transmit power, using quiet time to control TX duty cycle, etc.)
</content>
</entry>
<entry>
<title>Add the AR9300 HAL into the kernel and module builds.</title>
<updated>2013-05-02T07:05:34Z</updated>
<author>
<name>Adrian Chadd</name>
<email>adrian@FreeBSD.org</email>
</author>
<published>2013-05-02T07:05:34Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0e468be195cc5bb4bdb9b0bd6ba60843b044e810'/>
<id>urn:sha1:0e468be195cc5bb4bdb9b0bd6ba60843b044e810</id>
<content type='text'>
Tested:

* make universe (honest!)
</content>
</entry>
<entry>
<title>Disable warning/errors for two files for now - they don't compile clean</title>
<updated>2013-03-14T00:27:53Z</updated>
<author>
<name>Adrian Chadd</name>
<email>adrian@FreeBSD.org</email>
</author>
<published>2013-03-14T00:27:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cac48304a8e9804d60f592174e4676cb28a686f9'/>
<id>urn:sha1:cac48304a8e9804d60f592174e4676cb28a686f9</id>
<content type='text'>
with clang.

I'll work on this soon.
</content>
</entry>
<entry>
<title>Shift this over to a new location in contrib/, in preparation to push</title>
<updated>2013-03-12T02:54:49Z</updated>
<author>
<name>Adrian Chadd</name>
<email>adrian@FreeBSD.org</email>
</author>
<published>2013-03-12T02:54:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0200f963e7fdf05fac46a3490d5e3b031d8cb5d7'/>
<id>urn:sha1:0200f963e7fdf05fac46a3490d5e3b031d8cb5d7</id>
<content type='text'>
this public.
</content>
</entry>
<entry>
<title>Placeholder for the upcoming AR9300 HAL code.</title>
<updated>2013-03-09T01:05:36Z</updated>
<author>
<name>Adrian Chadd</name>
<email>adrian@FreeBSD.org</email>
</author>
<published>2013-03-09T01:05:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8ed727243a0e7392d4267a3286b1e74d29f7b583'/>
<id>urn:sha1:8ed727243a0e7392d4267a3286b1e74d29f7b583</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Link if_ath_spectral.c into the build.</title>
<updated>2013-01-02T04:00:54Z</updated>
<author>
<name>Adrian Chadd</name>
<email>adrian@FreeBSD.org</email>
</author>
<published>2013-01-02T04:00:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=aaa45683215db3b47500fd807a21cbab361815a0'/>
<id>urn:sha1:aaa45683215db3b47500fd807a21cbab361815a0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add missing update to link ar5416_spectral.c into the build.</title>
<updated>2013-01-02T01:24:36Z</updated>
<author>
<name>Adrian Chadd</name>
<email>adrian@FreeBSD.org</email>
</author>
<published>2013-01-02T01:24:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e9d8a3ab4b32d76b1be912be978c947f88fd638a'/>
<id>urn:sha1:e9d8a3ab4b32d76b1be912be978c947f88fd638a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add the btcoex code into the module compilation.</title>
<updated>2012-12-03T23:38:08Z</updated>
<author>
<name>Adrian Chadd</name>
<email>adrian@FreeBSD.org</email>
</author>
<published>2012-12-03T23:38:08Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=8db3411759373c59193d26b6c9aa35759a331e7f'/>
<id>urn:sha1:8db3411759373c59193d26b6c9aa35759a331e7f</id>
<content type='text'>
</content>
</entry>
</feed>
