Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp494540ybl; Tue, 28 Jan 2020 06:50:43 -0800 (PST) X-Google-Smtp-Source: APXvYqwUnIWeS5rxXuOvyKB1aUnm90nuEQ2z+iEfil4b1uJ2o2N3dqkiv28vDjwZ1UTy1x/VESJL X-Received: by 2002:a9d:6181:: with SMTP id g1mr17294196otk.104.1580223043722; Tue, 28 Jan 2020 06:50:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580223043; cv=none; d=google.com; s=arc-20160816; b=VllFdamp3svH4+e5lAYjiqKa/E+VunORaGORGH5LFt4OYvv2pK3KfY7cQ8it34qvy8 +UOk9OmLWBwMHrFwDVwVB8LEz1jVaP0ekSk+A82hyaeTY+xT5fNCmWDd22hjh5o3Q344 OVn3AOsFt46NVOV5tkrWNLJ/5BhFOw3HKW2PMA35hkkyckzFgY5U7ajFxOwUno/KBhk9 iDWTu/1lgC6mas9inMlfpQl8iXt8GED2HBnbTseTuerOlWUH2DyTkU/1faNn8r4VvHFq tYKDMTIRrEAnqk98BWT1Hpoadd/wSbjZ0AaVGNCweByBJJZau31Cdr8yDzAMdXlFpZtc 0ARw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kxyxxRAstoVzw1941bs5GjhtCZx/rYNkdIcRMtganMY=; b=i0NvIycFoPzD24DaPAtd06Xts+xQdnflsMu7dYlt5HdHb81ogT1l17a/n1x18N8SeP qtwVWWWovJIBptXnMVbWZAKMAqk8q8XS76pZNJ7Mn1V+XGtKnoEjl2tlQb3A6yRKhRyQ Ybj1re8MeTNqWDCsRB+ir112LZo03Be+Yxj0mN36Xk8lOCUJlKwkVVWAn5mDqs0jY4lV e4gp7ftnAoTOnRzatMOhJ3fbbhc8EgOPYu1+T/cfoifKZlOZSO7QxxsI/YitJ7nOuJPO m98LAvNab34g20KNGRKTVxFRiIyfUjlLsz36GbsPVlRmbfATtB1eyRA3cm6JPuVfGY78 KXIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GXICbPpT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t9si6326037otp.57.2020.01.28.06.50.32; Tue, 28 Jan 2020 06:50:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GXICbPpT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727781AbgA1ODC (ORCPT + 99 others); Tue, 28 Jan 2020 09:03:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:49518 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727771AbgA1OC7 (ORCPT ); Tue, 28 Jan 2020 09:02:59 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B0DE6205F4; Tue, 28 Jan 2020 14:02:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580220179; bh=UI4qpDBPZWL60iebMjsOsFxDjVRgMXoR9HmhwXFonz0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GXICbPpTXkwd1TEWBrEhP4iJE3g5X3y0aD9n5Mi8LKTdoTA/XepYaZ8gvhdfseX33 Tsf6a6VetfIa0XdwCBmWfSDCXcjcVFKQu5aAlICcbxC/1QBdM9SmdvnK5Xp3IGXrly yoSc8bkGdC5tYMqcav+QqSZebGm633bbMoK1jAqk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Emmanuel Grumbach , Kalle Valo Subject: [PATCH 5.4 049/104] iwlwifi: mvm: dont send the IWL_MVM_RXQ_NSSN_SYNC notif to Rx queues Date: Tue, 28 Jan 2020 15:00:10 +0100 Message-Id: <20200128135824.452356310@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135817.238524998@linuxfoundation.org> References: <20200128135817.238524998@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Emmanuel Grumbach commit d829229e35f302fd49c052b5c5906c90ecf9911d upstream. The purpose of this was to keep all the queues updated with the Rx sequence numbers because unlikely yet possible situations where queues can't understand if a specific packet needs to be dropped or not. Unfortunately, it was reported that this caused issues in our DMA engine. We don't fully understand how this is related, but this is being currently debugged. For now, just don't send this notification to the Rx queues. This de-facto reverts my commit 3c514bf831ac12356b695ff054bef641b9e99593: iwlwifi: mvm: add a loose synchronization of the NSSN across Rx queues This issue was reported here: https://bugzilla.kernel.org/show_bug.cgi?id=204873 https://bugzilla.kernel.org/show_bug.cgi?id=205001 and others maybe. Fixes: 3c514bf831ac ("iwlwifi: mvm: add a loose synchronization of the NSSN across Rx queues") CC: # 5.3+ Signed-off-by: Emmanuel Grumbach Signed-off-by: Kalle Valo Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/intel/iwlwifi/mvm/constants.h | 1 + drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c | 17 ++++++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) --- a/drivers/net/wireless/intel/iwlwifi/mvm/constants.h +++ b/drivers/net/wireless/intel/iwlwifi/mvm/constants.h @@ -154,5 +154,6 @@ #define IWL_MVM_D3_DEBUG false #define IWL_MVM_USE_TWT false #define IWL_MVM_AMPDU_CONSEC_DROPS_DELBA 10 +#define IWL_MVM_USE_NSSN_SYNC 0 #endif /* __MVM_CONSTANTS_H */ --- a/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c @@ -514,14 +514,17 @@ static bool iwl_mvm_is_sn_less(u16 sn1, static void iwl_mvm_sync_nssn(struct iwl_mvm *mvm, u8 baid, u16 nssn) { - struct iwl_mvm_rss_sync_notif notif = { - .metadata.type = IWL_MVM_RXQ_NSSN_SYNC, - .metadata.sync = 0, - .nssn_sync.baid = baid, - .nssn_sync.nssn = nssn, - }; + if (IWL_MVM_USE_NSSN_SYNC) { + struct iwl_mvm_rss_sync_notif notif = { + .metadata.type = IWL_MVM_RXQ_NSSN_SYNC, + .metadata.sync = 0, + .nssn_sync.baid = baid, + .nssn_sync.nssn = nssn, + }; - iwl_mvm_sync_rx_queues_internal(mvm, (void *)¬if, sizeof(notif)); + iwl_mvm_sync_rx_queues_internal(mvm, (void *)¬if, + sizeof(notif)); + } } #define RX_REORDER_BUF_TIMEOUT_MQ (HZ / 10)