* pull-request: iwlwifi 2013-01-03
@ 2013-01-03 14:42 Johannes Berg
2013-01-03 14:43 ` [PATCH 1/2] iwlwifi: fix PCIe interrupt handle return value Johannes Berg
2013-01-04 21:13 ` pull-request: iwlwifi 2013-01-03 John W. Linville
0 siblings, 2 replies; 4+ messages in thread
From: Johannes Berg @ 2013-01-03 14:42 UTC (permalink / raw)
To: John Linville; +Cc: linux-wireless
[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]
John,
I have two fixes for iwlwifi: one to fix a lost return value that was
dropped in a previous patch and could cause "nobody cared" IRQ messages,
and one to work around a firmware issue.
Please pull.
Thanks,
johannes
The following changes since commit a49f0d1ea3ec94fc7cf33a7c36a16343b74bd565:
Linux 3.8-rc1 (2012-12-21 17:19:00 -0800)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes.git for-john
for you to fetch changes up to f590dcec944552f9a4a61155810f3abd17d6465d:
iwlwifi: fix the reclaimed packet tracking upon flush queue (2013-01-03 15:31:15 +0100)
----------------------------------------------------------------
Emmanuel Grumbach (1):
iwlwifi: fix the reclaimed packet tracking upon flush queue
Johannes Berg (1):
iwlwifi: fix PCIe interrupt handle return value
drivers/net/wireless/iwlwifi/dvm/tx.c | 24 +++++++++++++++++-------
drivers/net/wireless/iwlwifi/pcie/rx.c | 1 +
2 files changed, 18 insertions(+), 7 deletions(-)
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH 1/2] iwlwifi: fix PCIe interrupt handle return value 2013-01-03 14:42 pull-request: iwlwifi 2013-01-03 Johannes Berg @ 2013-01-03 14:43 ` Johannes Berg 2013-01-03 14:43 ` [PATCH 2/2] iwlwifi: fix the reclaimed packet tracking upon flush queue Johannes Berg 2013-01-04 21:13 ` pull-request: iwlwifi 2013-01-03 John W. Linville 1 sibling, 1 reply; 4+ messages in thread From: Johannes Berg @ 2013-01-03 14:43 UTC (permalink / raw) To: linux-wireless; +Cc: Johannes Berg From: Johannes Berg <johannes.berg@intel.com> By accident, commit eb6476441bc2fecf6232a87d0313a85f8e3da7f4 ("iwlwifi: protect use_ict with irq_lock") changed the return value of the iwl_pcie_isr() function in case it handles an interrupt -- it now returns IRQ_NONE instead of IRQ_HANDLED. Put back the correct return value. Cc: stable@vger.kernel.org Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com> --- drivers/net/wireless/iwlwifi/pcie/rx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/iwlwifi/pcie/rx.c b/drivers/net/wireless/iwlwifi/pcie/rx.c index dad4c4a..8389cd3 100644 --- a/drivers/net/wireless/iwlwifi/pcie/rx.c +++ b/drivers/net/wireless/iwlwifi/pcie/rx.c @@ -1166,6 +1166,7 @@ static irqreturn_t iwl_pcie_isr(int irq, void *data) else if (test_bit(STATUS_INT_ENABLED, &trans_pcie->status) && !trans_pcie->inta) iwl_enable_interrupts(trans); + return IRQ_HANDLED; none: /* re-enable interrupts here since we don't have anything to service. */ -- 1.8.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] iwlwifi: fix the reclaimed packet tracking upon flush queue 2013-01-03 14:43 ` [PATCH 1/2] iwlwifi: fix PCIe interrupt handle return value Johannes Berg @ 2013-01-03 14:43 ` Johannes Berg 0 siblings, 0 replies; 4+ messages in thread From: Johannes Berg @ 2013-01-03 14:43 UTC (permalink / raw) To: linux-wireless; +Cc: Emmanuel Grumbach From: Emmanuel Grumbach <emmanuel.grumbach@intel.com> There's a bug in the currently released firmware version, the sequence control in the Tx response isn't updated in all cases. Take it from the packet as a workaround. Cc: stable@vger.kernel.org Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com> --- drivers/net/wireless/iwlwifi/dvm/tx.c | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/drivers/net/wireless/iwlwifi/dvm/tx.c b/drivers/net/wireless/iwlwifi/dvm/tx.c index da21328..a790599 100644 --- a/drivers/net/wireless/iwlwifi/dvm/tx.c +++ b/drivers/net/wireless/iwlwifi/dvm/tx.c @@ -1151,13 +1151,6 @@ int iwlagn_rx_reply_tx(struct iwl_priv *priv, struct iwl_rx_cmd_buffer *rxb, next_reclaimed = ssn; } - if (tid != IWL_TID_NON_QOS) { - priv->tid_data[sta_id][tid].next_reclaimed = - next_reclaimed; - IWL_DEBUG_TX_REPLY(priv, "Next reclaimed packet:%d\n", - next_reclaimed); - } - iwl_trans_reclaim(priv->trans, txq_id, ssn, &skbs); iwlagn_check_ratid_empty(priv, sta_id, tid); @@ -1208,11 +1201,28 @@ int iwlagn_rx_reply_tx(struct iwl_priv *priv, struct iwl_rx_cmd_buffer *rxb, if (!is_agg) iwlagn_non_agg_tx_status(priv, ctx, hdr->addr1); + /* + * W/A for FW bug - the seq_ctl isn't updated when the + * queues are flushed. Fetch it from the packet itself + */ + if (!is_agg && status == TX_STATUS_FAIL_FIFO_FLUSHED) { + next_reclaimed = le16_to_cpu(hdr->seq_ctrl); + next_reclaimed = + SEQ_TO_SN(next_reclaimed + 0x10); + } + is_offchannel_skb = (info->flags & IEEE80211_TX_CTL_TX_OFFCHAN); freed++; } + if (tid != IWL_TID_NON_QOS) { + priv->tid_data[sta_id][tid].next_reclaimed = + next_reclaimed; + IWL_DEBUG_TX_REPLY(priv, "Next reclaimed packet:%d\n", + next_reclaimed); + } + WARN_ON(!is_agg && freed != 1); /* -- 1.8.0 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: pull-request: iwlwifi 2013-01-03 2013-01-03 14:42 pull-request: iwlwifi 2013-01-03 Johannes Berg 2013-01-03 14:43 ` [PATCH 1/2] iwlwifi: fix PCIe interrupt handle return value Johannes Berg @ 2013-01-04 21:13 ` John W. Linville 1 sibling, 0 replies; 4+ messages in thread From: John W. Linville @ 2013-01-04 21:13 UTC (permalink / raw) To: Johannes Berg; +Cc: linux-wireless On Thu, Jan 03, 2013 at 03:42:53PM +0100, Johannes Berg wrote: > John, > > I have two fixes for iwlwifi: one to fix a lost return value that was > dropped in a previous patch and could cause "nobody cared" IRQ messages, > and one to work around a firmware issue. > > Please pull. > > Thanks, > johannes > > > The following changes since commit a49f0d1ea3ec94fc7cf33a7c36a16343b74bd565: > > Linux 3.8-rc1 (2012-12-21 17:19:00 -0800) > > are available in the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/iwlwifi-fixes.git for-john > > for you to fetch changes up to f590dcec944552f9a4a61155810f3abd17d6465d: > > iwlwifi: fix the reclaimed packet tracking upon flush queue (2013-01-03 15:31:15 +0100) I'm pulling this, intending to forward it to Dave early next week. -- John W. Linville Someday the world will need a hero, and you linville@tuxdriver.com might be all we have. Be ready. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-01-04 21:15 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-01-03 14:42 pull-request: iwlwifi 2013-01-03 Johannes Berg 2013-01-03 14:43 ` [PATCH 1/2] iwlwifi: fix PCIe interrupt handle return value Johannes Berg 2013-01-03 14:43 ` [PATCH 2/2] iwlwifi: fix the reclaimed packet tracking upon flush queue Johannes Berg 2013-01-04 21:13 ` pull-request: iwlwifi 2013-01-03 John W. Linville
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).