From: greearb@candelatech.com To: linux-wireless@vger.kernel.org Cc: ath10k@lists.infradead.org, Ben Greear <greearb@candelatech.com> Subject: [PATCH v2 10/10] ath10k: request firmware flush in ath10k_flush. Date: Tue, 23 Sep 2014 14:17:25 -0700 [thread overview] Message-ID: <1411507045-18973-10-git-send-email-greearb@candelatech.com> (raw) In-Reply-To: <1411507045-18973-1-git-send-email-greearb@candelatech.com> From: Ben Greear <greearb@candelatech.com> CT firmware now supports flushing all tids for all peers for all vdevs. This appears to help the ath10k_flush logic work faster and not cause timeouts. Signed-off-by: Ben Greear <greearb@candelatech.com> --- v2: No changes, just added it to the series in case it helps justify adding the CT feature flag. drivers/net/wireless/ath/ath10k/mac.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 34ec992..bde3a2f 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -3917,6 +3917,7 @@ static void ath10k_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ath10k *ar = hw->priv; bool skip; int ret; + u8 peer_addr[ETH_ALEN] = {0}; /* mac80211 doesn't care if we really xmit queued frames or not * we'll collect those frames either way if we stop/delete vdevs */ @@ -3928,6 +3929,12 @@ static void ath10k_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif, if (ar->state == ATH10K_STATE_WEDGED) goto skip; + /* If we are CT firmware, ask it to flush all tids on all peers on + * all vdevs. Normal firmware will just crash if you do this. + */ + if (test_bit(ATH10K_FW_FEATURE_WMI_10X_CT, ar->fw_features)) + ath10k_wmi_peer_flush(ar, 0xFFFFFFFF, peer_addr, 0xFFFFFFFF); + ret = wait_event_timeout(ar->htt.empty_tx_wq, ({ bool empty; -- 1.7.11.7
WARNING: multiple messages have this Message-ID (diff)
From: greearb@candelatech.com To: linux-wireless@vger.kernel.org Cc: Ben Greear <greearb@candelatech.com>, ath10k@lists.infradead.org Subject: [PATCH v2 10/10] ath10k: request firmware flush in ath10k_flush. Date: Tue, 23 Sep 2014 14:17:25 -0700 [thread overview] Message-ID: <1411507045-18973-10-git-send-email-greearb@candelatech.com> (raw) In-Reply-To: <1411507045-18973-1-git-send-email-greearb@candelatech.com> From: Ben Greear <greearb@candelatech.com> CT firmware now supports flushing all tids for all peers for all vdevs. This appears to help the ath10k_flush logic work faster and not cause timeouts. Signed-off-by: Ben Greear <greearb@candelatech.com> --- v2: No changes, just added it to the series in case it helps justify adding the CT feature flag. drivers/net/wireless/ath/ath10k/mac.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/mac.c b/drivers/net/wireless/ath/ath10k/mac.c index 34ec992..bde3a2f 100644 --- a/drivers/net/wireless/ath/ath10k/mac.c +++ b/drivers/net/wireless/ath/ath10k/mac.c @@ -3917,6 +3917,7 @@ static void ath10k_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif, struct ath10k *ar = hw->priv; bool skip; int ret; + u8 peer_addr[ETH_ALEN] = {0}; /* mac80211 doesn't care if we really xmit queued frames or not * we'll collect those frames either way if we stop/delete vdevs */ @@ -3928,6 +3929,12 @@ static void ath10k_flush(struct ieee80211_hw *hw, struct ieee80211_vif *vif, if (ar->state == ATH10K_STATE_WEDGED) goto skip; + /* If we are CT firmware, ask it to flush all tids on all peers on + * all vdevs. Normal firmware will just crash if you do this. + */ + if (test_bit(ATH10K_FW_FEATURE_WMI_10X_CT, ar->fw_features)) + ath10k_wmi_peer_flush(ar, 0xFFFFFFFF, peer_addr, 0xFFFFFFFF); + ret = wait_event_timeout(ar->htt.empty_tx_wq, ({ bool empty; -- 1.7.11.7 _______________________________________________ ath10k mailing list ath10k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath10k
next prev parent reply other threads:[~2014-09-23 21:18 UTC|newest] Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top 2014-09-23 21:17 [PATCH v2 01/10] ath10k: use 64-bit vdev map greearb 2014-09-23 21:17 ` greearb 2014-09-23 21:17 ` [PATCH v2 02/10] ath10k: add helper method to grab debug stats greearb 2014-09-23 21:17 ` greearb 2014-09-23 21:17 ` [PATCH v2 03/10] ath10k: support ethtool stats greearb 2014-09-23 21:17 ` greearb 2014-09-24 7:44 ` Michal Kazior 2014-09-24 7:44 ` Michal Kazior 2014-09-24 14:37 ` Ben Greear 2014-09-24 14:37 ` Ben Greear 2014-09-29 8:21 ` Kalle Valo 2014-09-29 8:21 ` Kalle Valo 2014-09-29 16:07 ` Ben Greear 2014-09-29 16:07 ` Ben Greear 2014-09-23 21:17 ` [PATCH v2 04/10] ath10k: make firmware text debug messages more verbose greearb 2014-09-23 21:17 ` greearb 2014-11-22 15:28 ` Kalle Valo 2014-11-22 15:28 ` Kalle Valo 2014-11-22 16:07 ` Ben Greear 2014-11-22 16:07 ` Ben Greear 2014-11-24 15:18 ` Kalle Valo 2014-11-24 15:18 ` Kalle Valo 2014-11-24 14:19 ` Kalle Valo 2014-11-24 14:19 ` Kalle Valo 2014-09-23 21:17 ` [PATCH v2 05/10] ath10k: apply chainmask settings to vdev on creation greearb 2014-09-23 21:17 ` greearb 2014-11-26 6:25 ` Kalle Valo 2014-11-26 6:25 ` Kalle Valo 2014-09-23 21:17 ` [PATCH v2 06/10] ath10k: use configured nss instead of max nss greearb 2014-09-23 21:17 ` greearb 2014-11-04 19:55 ` Ben Greear 2014-11-04 19:55 ` Ben Greear 2014-11-13 13:22 ` Kalle Valo 2014-11-13 13:22 ` Kalle Valo 2014-11-26 6:26 ` Kalle Valo 2014-11-26 6:26 ` Kalle Valo 2014-09-23 21:17 ` [PATCH v2 07/10] ath10k: add fw-powerup-fail to ethtool stats greearb 2014-09-23 21:17 ` greearb 2014-09-29 8:24 ` Kalle Valo 2014-09-29 8:24 ` Kalle Valo 2014-09-29 16:05 ` Ben Greear 2014-09-29 16:05 ` Ben Greear 2014-09-30 12:27 ` Michal Kazior 2014-09-30 12:27 ` Michal Kazior 2014-09-30 15:53 ` Ben Greear 2014-09-30 15:53 ` Ben Greear 2014-09-23 21:17 ` [PATCH v2 08/10] ath10k: support CT firmware flag greearb 2014-09-23 21:17 ` greearb 2014-09-23 21:17 ` [PATCH v2 09/10] ath10k: always request htc tx replenishment greearb 2014-09-23 21:17 ` greearb 2014-09-23 21:17 ` greearb [this message] 2014-09-23 21:17 ` [PATCH v2 10/10] ath10k: request firmware flush in ath10k_flush greearb 2014-10-01 8:22 ` [PATCH v2 01/10] ath10k: use 64-bit vdev map Kalle Valo 2014-10-01 8:22 ` Kalle Valo
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=1411507045-18973-10-git-send-email-greearb@candelatech.com \ --to=greearb@candelatech.com \ --cc=ath10k@lists.infradead.org \ --cc=linux-wireless@vger.kernel.org \ /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: linkBe 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.