summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorsten Leemhuis <fedora@leemhuis.info>2019-07-28 10:48:40 +0200
committerThorsten Leemhuis <fedora@leemhuis.info>2019-07-28 10:48:40 +0200
commitf0d2609a5b2bba58b6a80f4802059237ccb61e6e (patch)
tree8f9132e7e48728dbfb57424e6eface6077f91c2d
parent5ac1c1d3533913050c816ee2ea0e1921047298f3 (diff)
parentc955d866d3a6936b5e730c2352dca078288c3f21 (diff)
downloadkernel-f0d2609a5b2bba58b6a80f4802059237ccb61e6e.tar.gz
kernel-f0d2609a5b2bba58b6a80f4802059237ccb61e6e.tar.xz
kernel-f0d2609a5b2bba58b6a80f4802059237ccb61e6e.zip
Merge remote-tracking branch 'origin/stabilization' into stabilization-user-thl-vanilla-fedora
-rw-r--r--for-v5.2-iwlwifi-mvm-disable-TX-AMSDU-on-older-NICs.patch108
-rw-r--r--kernel.spec6
2 files changed, 114 insertions, 0 deletions
diff --git a/for-v5.2-iwlwifi-mvm-disable-TX-AMSDU-on-older-NICs.patch b/for-v5.2-iwlwifi-mvm-disable-TX-AMSDU-on-older-NICs.patch
new file mode 100644
index 000000000..a28e0177d
--- /dev/null
+++ b/for-v5.2-iwlwifi-mvm-disable-TX-AMSDU-on-older-NICs.patch
@@ -0,0 +1,108 @@
+From patchwork Wed Jul 3 08:10:49 2019
+Content-Type: text/plain; charset="utf-8"
+MIME-Version: 1.0
+Content-Transfer-Encoding: 7bit
+X-Patchwork-Submitter: Luca Coelho <luca@coelho.fi>
+X-Patchwork-Id: 11029027
+X-Patchwork-Delegate: kvalo@adurom.com
+Return-Path: <linux-wireless-owner@kernel.org>
+Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org
+ [172.30.200.125])
+ by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A4F061398
+ for <patchwork-linux-wireless@patchwork.kernel.org>;
+ Wed, 3 Jul 2019 08:11:03 +0000 (UTC)
+Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1])
+ by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93D7228807
+ for <patchwork-linux-wireless@patchwork.kernel.org>;
+ Wed, 3 Jul 2019 08:11:03 +0000 (UTC)
+Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486)
+ id 82C5C28786; Wed, 3 Jul 2019 08:11:03 +0000 (UTC)
+X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
+ pdx-wl-mail.web.codeaurora.org
+X-Spam-Level:
+X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI,
+ RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1
+Received: from vger.kernel.org (vger.kernel.org [209.132.180.67])
+ by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A56D28786
+ for <patchwork-linux-wireless@patchwork.kernel.org>;
+ Wed, 3 Jul 2019 08:11:03 +0000 (UTC)
+Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
+ id S1727179AbfGCILC (ORCPT
+ <rfc822;patchwork-linux-wireless@patchwork.kernel.org>);
+ Wed, 3 Jul 2019 04:11:02 -0400
+Received: from paleale.coelho.fi ([176.9.41.70]:54844 "EHLO
+ farmhouse.coelho.fi" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org
+ with ESMTP id S1727052AbfGCILC (ORCPT
+ <rfc822;linux-wireless@vger.kernel.org>);
+ Wed, 3 Jul 2019 04:11:02 -0400
+Received: from 91-156-6-193.elisa-laajakaista.fi ([91.156.6.193]
+ helo=redipa.ger.corp.intel.com)
+ by farmhouse.coelho.fi with esmtpsa
+ (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
+ (Exim 4.92)
+ (envelope-from <luca@coelho.fi>)
+ id 1hiaLv-0004w3-Ei; Wed, 03 Jul 2019 11:10:55 +0300
+From: Luca Coelho <luca@coelho.fi>
+To: davem@davemloft.net
+Cc: kvalo@codeaurora.org, linux-wireless@vger.kernel.org,
+ emmanuel.grumbach@intel.com, johannes.hirte@datenkhaos.de,
+ steven@uplinklabs.net, Johannes Berg <johannes.berg@intel.com>,
+ Luca Coelho <luciano.coelho@intel.com>
+Subject: [PATCH for v5.2] iwlwifi: mvm: disable TX-AMSDU on older NICs
+Date: Wed, 3 Jul 2019 11:10:49 +0300
+Message-Id: <20190703081049.28831-1-luca@coelho.fi>
+X-Mailer: git-send-email 2.20.1
+MIME-Version: 1.0
+Sender: linux-wireless-owner@vger.kernel.org
+Precedence: bulk
+List-ID: <linux-wireless.vger.kernel.org>
+X-Mailing-List: linux-wireless@vger.kernel.org
+X-Virus-Scanned: ClamAV using ClamSMTP
+
+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>
+Acked-by: Kalle Valo <kvalo@codeaurora.org>
+---
+ 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)) {
diff --git a/kernel.spec b/kernel.spec
index 64b09681e..2d573f654 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -605,6 +605,9 @@ Patch531: drm-panel-orientation-quirks.patch
# rhbz 1732045
Patch532: 0001-dma-direct-correct-the-physical-addr-in-dma_direct_s.patch
+# This should make stable soon
+Patch533: for-v5.2-iwlwifi-mvm-disable-TX-AMSDU-on-older-NICs.patch
+
# END OF PATCH DEFINITIONS
%endif
@@ -1846,6 +1849,9 @@ fi
#
#
%changelog
+* Fri Jul 26 2019 Justin M. Forbes <jforbes@fedoraproject.org>
+- Fix for older iwlwifi NICs.
+
* Fri Jul 26 2019 Justin M. Forbes <jforbes@fedoraproject.org> - 5.2.3-200
- Linux v5.2.3