All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adrian Chadd <adrian@freebsd.org>
To: sandeep suresh <sandeep.suresh@yahoo.co.in>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	ath9k-devel <ath9k-devel@lists.ath9k.org>
Subject: Re: AR9287 ; 2-wire coexistence expected behavior
Date: Thu, 4 Apr 2013 21:13:03 -0700	[thread overview]
Message-ID: <CAJ-VmokqjXqkJEN1cwgsOcJ7p8cvCsRxUG8Qc9gE8fWXaq+E0g@mail.gmail.com> (raw)
In-Reply-To: <1365131280.68622.YahooMailNeo@web193506.mail.sg3.yahoo.com>

You'll have to give me some more time to digest what I'm reading
internally; it's all new to me.

For FreeBSD, you can look at these files in FreeBSD-HEAD:

sys/dev/ath/ath_hal/ar5416/ar5416_btcoex.c
sys/dev/ath/ath_hal/ar9002/ar9285_btcoex.c (not that relevant for you,
but still)

These contain the register writes that the internal reference HAL is
doing when programming btcoex for AR9285/AR9287.

The AR9287 should support 2-wire coex fine.

Just read those source files. The ar5416InitBTCoex() programs the
BT_ACTIVE / WLAN_ACTIVE gpio's when you say the coexistence type is
2-wire. There's weights and such being programmed elsewhere; you need
to make sure you pick the default values for that and try it out.

I can't help you more than that at the moment; I'm busy doing other
work that doesn't at all touch wifi. :)



Adrian

On 4 April 2013 20:08, sandeep suresh <sandeep.suresh@yahoo.co.in> wrote:
> Hello Mr.Adrian,
>     Thanks for your mail. Regarding your comment below:
>
> "THen you need to ensure the bluetooth coexistence registers are programmed
> so that btactive will correctly stomp wifi traffic."
>
> Can you please elaborate on this? As I understand the concept of "stomping"
> is only in 3-wire coexistence; correct me if I am wrong.
>
> As mentioned earlier, the set-up we have is a PCB board with general purpose
> MCU controlling the 2-wire coexistence pins of AR9287. As there are other
> 2.4GHz radio (called PROP radio here) on the board, we want to ensure that
> both radios do not transmit at the same time which will result in
> collisions. Hence we want to build a co-operative coexistence approach so
> that when PROP radio is active (by asserting BT_ACTIVE), AR9287 has to
> buffer transmissions and allow PROP radio to be active. Only when PROP radio
> is inactive (BT_ACTIVE is deasserted), only then WiFi can be active. Hope
> this is achievable?
>
> Thanks & Regards
> Sandeep.
>
> From: Adrian Chadd <adrian@freebsd.org>
> To: sandeep suresh <sandeep.suresh@yahoo.co.in>
> Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>;
> ath9k-devel <ath9k-devel@lists.ath9k.org>
> Sent: Thursday, 4 April 2013 11:36 PM
>
> Subject: Re: AR9287 ; 2-wire coexistence expected behavior
>
> Hi!
>
> I'm glad you're looking into this in more depth!
>
> On 4 April 2013 08:19, sandeep suresh <sandeep.suresh@yahoo.co.in> wrote:
>
>> I understand that ATH_BTCOEX_CFG_2_WIRE, ATH_BTACTIVE_GPIO_9280 (GPIO6 as
>> per btcoex.h) and ATH_WLANACTIVE_GPIO_9280 (GPIO5 as per btcoex.h) are
>> used.
>
> Ok, right.
>
>> I next started monitoring GPIO5 on oscillaoscope to see WLAN activity and
>> I
>> could see a lot of pulse trains. Next in order to simulate high priority
>> BT
>> traffic, I pulled the line GPIO6 high. But I did not see any change in
>> WLAN
>> activity as I could continue to see the pulse trains. My expectation was
>> that there should not be any WLAN activity and hence no pulses. Please
>> guide
>> if I am missing anything?
>
> Well, firstyl you need to ensure that the GPIO pin has been programmed
> to be an input, and it's of the right bluetooth type. As I said
> before, GPIO pins can be input, output; they can be connected via an
> internal mux to a variety of "behaviours". Take a look at the gpio
> configure code in ath9k to see more.
>
> THen you need to ensure the bluetooth coexistence registers are
> programmed so that btactive will correctly stomp wifi traffic.
>
> THat's all I know for now. Sorry.
>
>
>
> adrian
>
>

WARNING: multiple messages have this Message-ID (diff)
From: Adrian Chadd <adrian@freebsd.org>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] AR9287 ; 2-wire coexistence expected behavior
Date: Thu, 4 Apr 2013 21:13:03 -0700	[thread overview]
Message-ID: <CAJ-VmokqjXqkJEN1cwgsOcJ7p8cvCsRxUG8Qc9gE8fWXaq+E0g@mail.gmail.com> (raw)
In-Reply-To: <1365131280.68622.YahooMailNeo@web193506.mail.sg3.yahoo.com>

You'll have to give me some more time to digest what I'm reading
internally; it's all new to me.

For FreeBSD, you can look at these files in FreeBSD-HEAD:

sys/dev/ath/ath_hal/ar5416/ar5416_btcoex.c
sys/dev/ath/ath_hal/ar9002/ar9285_btcoex.c (not that relevant for you,
but still)

These contain the register writes that the internal reference HAL is
doing when programming btcoex for AR9285/AR9287.

The AR9287 should support 2-wire coex fine.

Just read those source files. The ar5416InitBTCoex() programs the
BT_ACTIVE / WLAN_ACTIVE gpio's when you say the coexistence type is
2-wire. There's weights and such being programmed elsewhere; you need
to make sure you pick the default values for that and try it out.

I can't help you more than that at the moment; I'm busy doing other
work that doesn't at all touch wifi. :)



Adrian

On 4 April 2013 20:08, sandeep suresh <sandeep.suresh@yahoo.co.in> wrote:
> Hello Mr.Adrian,
>     Thanks for your mail. Regarding your comment below:
>
> "THen you need to ensure the bluetooth coexistence registers are programmed
> so that btactive will correctly stomp wifi traffic."
>
> Can you please elaborate on this? As I understand the concept of "stomping"
> is only in 3-wire coexistence; correct me if I am wrong.
>
> As mentioned earlier, the set-up we have is a PCB board with general purpose
> MCU controlling the 2-wire coexistence pins of AR9287. As there are other
> 2.4GHz radio (called PROP radio here) on the board, we want to ensure that
> both radios do not transmit at the same time which will result in
> collisions. Hence we want to build a co-operative coexistence approach so
> that when PROP radio is active (by asserting BT_ACTIVE), AR9287 has to
> buffer transmissions and allow PROP radio to be active. Only when PROP radio
> is inactive (BT_ACTIVE is deasserted), only then WiFi can be active. Hope
> this is achievable?
>
> Thanks & Regards
> Sandeep.
>
> From: Adrian Chadd <adrian@freebsd.org>
> To: sandeep suresh <sandeep.suresh@yahoo.co.in>
> Cc: "linux-wireless at vger.kernel.org" <linux-wireless@vger.kernel.org>;
> ath9k-devel <ath9k-devel@lists.ath9k.org>
> Sent: Thursday, 4 April 2013 11:36 PM
>
> Subject: Re: AR9287 ; 2-wire coexistence expected behavior
>
> Hi!
>
> I'm glad you're looking into this in more depth!
>
> On 4 April 2013 08:19, sandeep suresh <sandeep.suresh@yahoo.co.in> wrote:
>
>> I understand that ATH_BTCOEX_CFG_2_WIRE, ATH_BTACTIVE_GPIO_9280 (GPIO6 as
>> per btcoex.h) and ATH_WLANACTIVE_GPIO_9280 (GPIO5 as per btcoex.h) are
>> used.
>
> Ok, right.
>
>> I next started monitoring GPIO5 on oscillaoscope to see WLAN activity and
>> I
>> could see a lot of pulse trains. Next in order to simulate high priority
>> BT
>> traffic, I pulled the line GPIO6 high. But I did not see any change in
>> WLAN
>> activity as I could continue to see the pulse trains. My expectation was
>> that there should not be any WLAN activity and hence no pulses. Please
>> guide
>> if I am missing anything?
>
> Well, firstyl you need to ensure that the GPIO pin has been programmed
> to be an input, and it's of the right bluetooth type. As I said
> before, GPIO pins can be input, output; they can be connected via an
> internal mux to a variety of "behaviours". Take a look at the gpio
> configure code in ath9k to see more.
>
> THen you need to ensure the bluetooth coexistence registers are
> programmed so that btactive will correctly stomp wifi traffic.
>
> THat's all I know for now. Sorry.
>
>
>
> adrian
>
>

  reply	other threads:[~2013-04-05  4:13 UTC|newest]

Thread overview: 100+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-15  0:10 Announcement: open source AR9380 and later HAL Adrian Chadd
2013-03-15  0:10 ` [ath9k-devel] " Adrian Chadd
2013-04-01 22:20 ` Nick Kossifidis
2013-04-01 22:20   ` [ath9k-devel] " Nick Kossifidis
2013-04-02  3:00   ` [ath9k-devel] Source code for Bluetooth AR3012 drivers sandeep suresh
2013-04-02  3:07     ` Adrian Chadd
2013-04-02  3:07       ` Adrian Chadd
2013-04-02  4:15       ` sandeep suresh
2013-04-02 11:57   ` [ath9k-devel] AR9287; mapping between GPIOs and COEX pins sandeep suresh
2013-04-02 14:53     ` Adrian Chadd
2013-04-02 14:53       ` [ath9k-devel] " Adrian Chadd
2013-04-02 15:20       ` sandeep suresh
2013-04-02 16:47         ` Adrian Chadd
2013-04-02 16:47           ` [ath9k-devel] " Adrian Chadd
2013-04-04 15:19   ` [ath9k-devel] AR9287 ; 2-wire coexistence expected behavior sandeep suresh
2013-04-04 18:06     ` Adrian Chadd
2013-04-04 18:06       ` [ath9k-devel] " Adrian Chadd
2013-04-05  3:08       ` sandeep suresh
2013-04-05  4:13         ` Adrian Chadd [this message]
2013-04-05  4:13           ` Adrian Chadd
2013-04-05  8:00           ` sandeep suresh
2013-04-05  8:17             ` Adrian Chadd
2013-04-05  8:17               ` [ath9k-devel] " Adrian Chadd
2013-04-05  9:06               ` sandeep suresh
2013-04-05  9:13                 ` Adrian Chadd
2013-04-05  9:13                   ` [ath9k-devel] " Adrian Chadd
2013-04-05 11:31                 ` Sujith Manoharan
2013-04-05 11:31                   ` Sujith Manoharan
2013-04-05 15:24                   ` sandeep suresh
2013-04-05 16:41                     ` Adrian Chadd
2013-04-05 16:41                       ` Adrian Chadd
2013-04-05 17:37                       ` Adrian Chadd
2013-04-05 17:37                         ` Adrian Chadd
2013-04-05 22:36                         ` Adrian Chadd
2013-04-05 22:36                           ` Adrian Chadd
2013-04-07 14:54                           ` sandeep suresh
2013-04-07 17:46                             ` Adrian Chadd
2013-04-07 17:46                               ` Adrian Chadd
2013-04-08  5:20                               ` sandeep suresh
2013-04-08  8:58                                 ` Adrian Chadd
2013-04-08  8:58                                   ` Adrian Chadd
2013-04-08  9:00                                 ` Adrian Chadd
2013-04-08  9:00                                   ` Adrian Chadd
2013-04-08  9:39                                   ` sandeep suresh
2013-04-08 15:09                                     ` sandeep suresh
2013-04-08 18:39                                       ` Adrian Chadd
2013-04-08 18:39                                         ` Adrian Chadd
2013-04-09 23:00                                         ` Adrian Chadd
2013-04-09 23:00                                           ` Adrian Chadd
2013-04-10  2:37                                           ` sandeep suresh
2013-04-10  5:37                                             ` Adrian Chadd
2013-04-10  5:37                                               ` Adrian Chadd
2013-04-10  6:13                                               ` sandeep suresh
2013-04-10  7:22                                                 ` Adrian Chadd
2013-04-10  7:22                                                   ` Adrian Chadd
2013-04-15  7:53                                                   ` sandeep suresh
2013-04-15 14:21                                                     ` Adrian Chadd
2013-04-15 14:21                                                       ` Adrian Chadd
2013-04-15 15:40                                                       ` sandeep suresh
2013-04-15 15:44                                                       ` sandeep suresh
2013-04-15 16:13                                                       ` sandeep suresh
2013-04-15 17:45                                                         ` Adrian Chadd
2013-04-15 17:45                                                           ` Adrian Chadd
2013-04-16  3:16                                                           ` sandeep suresh
2013-04-16  3:55                                                           ` sandeep suresh
2013-04-16 17:00                                                             ` Adrian Chadd
2013-04-16 17:00                                                               ` Adrian Chadd
2013-04-17 10:33                                                               ` sandeep suresh
     [not found]                                                                 ` <CAJ-Vmokx0MbTC47+0fcRt9yQshfTaPEDte2A=7Ycn2bzwLSPxg@mail.gmail.com>
     [not found]                                                                   ` <1366248389.18545.YahooMailNeo@web193503.mail.sg3.yahoo.com>
     [not found]                                                                     ` <CAJ-VmomXz93U7HCmscd=NVZKQ+RFbty+Xh_wcOPYEDhX57ptbw@mail.gmail.com>
     [not found]                                                                       ` <1366281249.7026.YahooMailNeo@web193504.mail.sg3.yahoo.com>
2013-04-18 14:16                                                                         ` Adrian Chadd
2013-04-18 14:16                                                                           ` Adrian Chadd
2013-05-21  6:40                                                                           ` sandeep suresh
2013-05-21 14:33                                                                             ` Adrian Chadd
2013-05-21 14:33                                                                               ` Adrian Chadd
2013-05-22  5:49                                                                               ` sandeep suresh
2013-06-25  6:09                                                                                 ` sandeep suresh
2013-07-03 22:24                                                                                   ` Kamran Nishat
2013-07-05 14:45                                                                                     ` sandeep suresh
2014-02-07 14:48                                                                                       ` [ath9k-devel] How to prepare a 802.11 channel map with energy using ATH9K sandeep suresh
2014-02-09 21:41                                                                                         ` karl at aspodata.se
2014-02-11  3:09                                                                                           ` sandeep suresh
2014-02-11  7:53                                                                                             ` karl
2014-02-11  7:53                                                                                               ` karl at aspodata.se
2014-02-26 16:46                                                                                               ` Linux board that supports AR9287 and 7" display with ath9k support sandeep suresh
2014-02-26 16:46                                                                                                 ` [ath9k-devel] " sandeep suresh
2013-05-27  8:10                                                                               ` [ath9k-devel] AR9287; WiFi AP Mode - Increase interbeacon duration of 100ms sandeep suresh
2013-06-03 10:15                                                                                 ` sandeep suresh
2013-06-03 16:16                                                                                   ` Ben Greear
2013-06-03 16:16                                                                                     ` Ben Greear
2013-06-04 10:36                                                                                     ` sandeep suresh
2014-03-31 14:35                                         ` Impact of migration from compat wireless to backports sandeep suresh
2014-03-31 14:35                                           ` [ath9k-devel] " sandeep suresh
2014-04-04  1:55                                           ` Wifi client Bluetooth coexistence; non smooth video streams sandeep suresh
2014-04-04  1:55                                             ` [ath9k-devel] " sandeep suresh
2013-04-06 19:36                     ` [ath9k-devel] AR9287 ; 2-wire coexistence expected behavior Sujith Manoharan
2013-04-06 19:36                       ` Sujith Manoharan
2013-04-06 19:40                       ` Sujith Manoharan
2013-04-06 19:40                         ` Sujith Manoharan
2013-04-07 14:46                         ` sandeep suresh
2013-04-04 22:27     ` Adrian Chadd
2013-04-05  2:55       ` sandeep suresh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJ-VmokqjXqkJEN1cwgsOcJ7p8cvCsRxUG8Qc9gE8fWXaq+E0g@mail.gmail.com \
    --to=adrian@freebsd.org \
    --cc=ath9k-devel@lists.ath9k.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=sandeep.suresh@yahoo.co.in \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.