All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH for v5.2] iwlwifi: mvm: disable TX-AMSDU on older NICs
@ 2019-07-03  8:10 Luca Coelho
  2019-07-03  8:14 ` Luca Coelho
  0 siblings, 1 reply; 5+ messages in thread
From: Luca Coelho @ 2019-07-03  8:10 UTC (permalink / raw)
  To: davem
  Cc: kvalo, linux-wireless, emmanuel.grumbach, johannes.hirte, steven,
	Johannes Berg, Luca Coelho

From: Johannes Berg <johannes.berg@intel.com>

On older NICs, we occasionally see issues with A-MSDU support,
where the commands in the FIFO get confused and then we see an
assert EDC because the next command in the FIFO isn't TX.

We've tried to isolate this issue and understand where it comes
from, but haven't found any errors in building the A-MSDU in
software.

At least for now, disable A-MSDU support on older hardware so
that users can use it again without fearing the assert.

This fixes https://bugzilla.kernel.org/show_bug.cgi?id=203315.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
---
 drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
index fdbabca0280e..3a076e5e319f 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c
@@ -468,7 +468,19 @@ int iwl_mvm_mac_setup_register(struct iwl_mvm *mvm)
 	ieee80211_hw_set(hw, SUPPORTS_VHT_EXT_NSS_BW);
 	ieee80211_hw_set(hw, BUFF_MMPDU_TXQ);
 	ieee80211_hw_set(hw, STA_MMPDU_TXQ);
-	ieee80211_hw_set(hw, TX_AMSDU);
+	/*
+	 * On older devices, enabling TX A-MSDU occasionally leads to
+	 * something getting messed up, the command read from the FIFO
+	 * gets out of sync and isn't a TX command, so that we have an
+	 * assert EDC.
+	 *
+	 * It's not clear where the bug is, but since we didn't used to
+	 * support A-MSDU until moving the mac80211 iTXQs, just leave it
+	 * for older devices. We also don't see this issue on any newer
+	 * devices.
+	 */
+	if (mvm->cfg->device_family >= IWL_DEVICE_FAMILY_9000)
+		ieee80211_hw_set(hw, TX_AMSDU);
 	ieee80211_hw_set(hw, TX_FRAG_LIST);
 
 	if (iwl_mvm_has_tlc_offload(mvm)) {
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH for v5.2] iwlwifi: mvm: disable TX-AMSDU on older NICs
  2019-07-03  8:10 [PATCH for v5.2] iwlwifi: mvm: disable TX-AMSDU on older NICs Luca Coelho
@ 2019-07-03  8:14 ` Luca Coelho
  2019-07-03 11:45   ` Kalle Valo
  0 siblings, 1 reply; 5+ messages in thread
From: Luca Coelho @ 2019-07-03  8:14 UTC (permalink / raw)
  To: davem
  Cc: kvalo, linux-wireless, emmanuel.grumbach, johannes.hirte, steven,
	Johannes Berg

On Wed, 2019-07-03 at 11:10 +0300, Luca Coelho wrote:
> From: Johannes Berg <johannes.berg@intel.com>
> 
> On older NICs, we occasionally see issues with A-MSDU support,
> where the commands in the FIFO get confused and then we see an
> assert EDC because the next command in the FIFO isn't TX.
> 
> We've tried to isolate this issue and understand where it comes
> from, but haven't found any errors in building the A-MSDU in
> software.
> 
> At least for now, disable A-MSDU support on older hardware so
> that users can use it again without fearing the assert.
> 
> This fixes https://bugzilla.kernel.org/show_bug.cgi?id=203315.
> 
> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
> ---

Hi Dave,

This is an important fix for a bug that has been reported by several
users in bugzilla (and elsewhere).  It fixes FW crashes that disrupt
throughput and connectivity in general in very popular devices (Intel's
WiFi 7000 and 8000 series).

I know it's a bit late for v5.2, but if possible, it would be great to
take this.  Kalle is on vacation, so we agreed that I would send it
directly to you.

Please let me know if this is okay or if we should send this to -next
and get it into v5.2 via stable releases instead.

Thanks!

--
Cheers,
Luca.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH for v5.2] iwlwifi: mvm: disable TX-AMSDU on older NICs
  2019-07-03  8:14 ` Luca Coelho
@ 2019-07-03 11:45   ` Kalle Valo
  2019-07-24 23:55     ` Brian Norris
  0 siblings, 1 reply; 5+ messages in thread
From: Kalle Valo @ 2019-07-03 11:45 UTC (permalink / raw)
  To: Luca Coelho
  Cc: davem, linux-wireless, emmanuel.grumbach, johannes.hirte, steven,
	Johannes Berg

Luca Coelho <luca@coelho.fi> writes:

> On Wed, 2019-07-03 at 11:10 +0300, Luca Coelho wrote:
>> From: Johannes Berg <johannes.berg@intel.com>
>> 
>> On older NICs, we occasionally see issues with A-MSDU support,
>> where the commands in the FIFO get confused and then we see an
>> assert EDC because the next command in the FIFO isn't TX.
>> 
>> We've tried to isolate this issue and understand where it comes
>> from, but haven't found any errors in building the A-MSDU in
>> software.
>> 
>> At least for now, disable A-MSDU support on older hardware so
>> that users can use it again without fearing the assert.
>> 
>> This fixes https://bugzilla.kernel.org/show_bug.cgi?id=203315.
>> 
>> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
>> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
>> ---
>
> Hi Dave,
>
> This is an important fix for a bug that has been reported by several
> users in bugzilla (and elsewhere).  It fixes FW crashes that disrupt
> throughput and connectivity in general in very popular devices (Intel's
> WiFi 7000 and 8000 series).
>
> I know it's a bit late for v5.2, but if possible, it would be great to
> take this.  Kalle is on vacation, so we agreed that I would send it
> directly to you.

Acked-by: Kalle Valo <kvalo@codeaurora.org>

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH for v5.2] iwlwifi: mvm: disable TX-AMSDU on older NICs
  2019-07-03 11:45   ` Kalle Valo
@ 2019-07-24 23:55     ` Brian Norris
  2019-07-25  5:55       ` Kalle Valo
  0 siblings, 1 reply; 5+ messages in thread
From: Brian Norris @ 2019-07-24 23:55 UTC (permalink / raw)
  To: Kalle Valo
  Cc: Luca Coelho, David S. Miller, linux-wireless, Grumbach, Emmanuel,
	johannes.hirte, steven, Johannes Berg

On Wed, Jul 3, 2019 at 4:46 AM Kalle Valo <kvalo@codeaurora.org> wrote:
> Luca Coelho <luca@coelho.fi> writes:
> > Hi Dave,
> >
> > This is an important fix for a bug that has been reported by several
> > users in bugzilla (and elsewhere).  It fixes FW crashes that disrupt
> > throughput and connectivity in general in very popular devices (Intel's
> > WiFi 7000 and 8000 series).
> >
> > I know it's a bit late for v5.2, but if possible, it would be great to
> > take this.  Kalle is on vacation, so we agreed that I would send it
> > directly to you.
>
> Acked-by: Kalle Valo <kvalo@codeaurora.org>

5.2 has come and gone, and I believe Kalle has awoken from vacation.
Can we get this for 5.3?

Brian

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH for v5.2] iwlwifi: mvm: disable TX-AMSDU on older NICs
  2019-07-24 23:55     ` Brian Norris
@ 2019-07-25  5:55       ` Kalle Valo
  0 siblings, 0 replies; 5+ messages in thread
From: Kalle Valo @ 2019-07-25  5:55 UTC (permalink / raw)
  To: Brian Norris
  Cc: Luca Coelho, David S. Miller, linux-wireless, Grumbach, Emmanuel,
	johannes.hirte, steven, Johannes Berg

Brian Norris <briannorris@chromium.org> writes:

> On Wed, Jul 3, 2019 at 4:46 AM Kalle Valo <kvalo@codeaurora.org> wrote:
>> Luca Coelho <luca@coelho.fi> writes:
>> > Hi Dave,
>> >
>> > This is an important fix for a bug that has been reported by several
>> > users in bugzilla (and elsewhere).  It fixes FW crashes that disrupt
>> > throughput and connectivity in general in very popular devices (Intel's
>> > WiFi 7000 and 8000 series).
>> >
>> > I know it's a bit late for v5.2, but if possible, it would be great to
>> > take this.  Kalle is on vacation, so we agreed that I would send it
>> > directly to you.
>>
>> Acked-by: Kalle Valo <kvalo@codeaurora.org>
>
> 5.2 has come and gone, and I believe Kalle has awoken from vacation.

Yeah, I have sort of crawled out of my cave ;)

> Can we get this for 5.3?

Ah, this slipped through the cracks. Thanks for pointing it out. I now
took this patch from Luca and assigned to myself in patchwork and I'll
queue this for v5.3.

https://patchwork.kernel.org/patch/11029027/

-- 
Kalle Valo

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-07-25  5:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-03  8:10 [PATCH for v5.2] iwlwifi: mvm: disable TX-AMSDU on older NICs Luca Coelho
2019-07-03  8:14 ` Luca Coelho
2019-07-03 11:45   ` Kalle Valo
2019-07-24 23:55     ` Brian Norris
2019-07-25  5:55       ` Kalle Valo

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.