From patchwork Sun Sep 17 19:40:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 9955015 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9361E6028A for ; Sun, 17 Sep 2017 19:40:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 879FA28A89 for ; Sun, 17 Sep 2017 19:40:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C90D28AB5; Sun, 17 Sep 2017 19:40:38 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 2CD3128A89 for ; Sun, 17 Sep 2017 19:40:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751636AbdIQTkh (ORCPT ); Sun, 17 Sep 2017 15:40:37 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:37178 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751562AbdIQTkf (ORCPT ); Sun, 17 Sep 2017 15:40:35 -0400 Received: by mail-lf0-f68.google.com with SMTP id q132so3528966lfe.4 for ; Sun, 17 Sep 2017 12:40:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=n1h4as/WuRCoGjZWz9Trf4T4oTBPDO40w18pPvs8svg=; b=E55tIt8duxZAzv+opPU8uO0Ylch+0GUppjbFyg76UBguvQpofbVf3Vgn5xRQx+Xd2U Wt9mTfXX/4+YrFioIDC+wfLwkCXGcL5IbfZf+IA5RJWHqQc8UXJA9niWBdpDhdUDLvuo PZcZD7jkZsKsw3rVtQYLpwmgU6QwYPOxk/9CpD3qkraT3USCmaFkTR9rXT3tJ9xuUexY Tdw1shlC1KlGHNza0dg51wfguGJlQE0zCeoHRTcrxIvT6jYABmrlQNXcSVXb0eyyFSIB 0I3cInHIx3kSuUaegopXqheqHjMIhMXgoVQJ35AIA5vPl1nOh39fpz3wgg9890yy/fQd KxAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=n1h4as/WuRCoGjZWz9Trf4T4oTBPDO40w18pPvs8svg=; b=nL8Ojc80Hr9Nq6UIMc5SEjySjPjMUaVD8HyDBCHGEywfpYkRO6bqCAz8OhCvIc/FN0 hOdnkf8sEUJf1iCJg+hqnMsRPJZl5N/FXehujoT5KGjGv2rpq03PQUyd2NY39/qWoerC zVEkaLT3kkMsBW/WkO7KlRJ7dOdzULK6qcG/6CpHEQOl8cckX81JSdeIUG4lq5h8392I u0BYa03bj6SVNdKKLPyp/UZJbsJCj5740AVxXD6FGQpMTFgDnCpLTXt/tNKAdZ5E7ZKX jX3M2iZfw3QBoGtdTUdIRydsBKuZ8V6RP8WoFIHlBoOit8wxiPU4QE++UhBTLlehiiua QakA== X-Gm-Message-State: AHPjjUjvPFmJbaeUKKiFhWvpz1LwvKwOmvQd4CvDw9H/8FMf+WnYaw/N ZgBVI6WIVUqrmQ== X-Google-Smtp-Source: AOwi7QA/BVGniGG31J9ZitgsSDwRQgCwLELcqB08imGzfKSavGoGzjCTI+mBkct2Y/mVjzke50Nkow== X-Received: by 10.25.210.204 with SMTP id j195mr2960222lfg.83.1505677233801; Sun, 17 Sep 2017 12:40:33 -0700 (PDT) Received: from erik-arch-i5-6600.lan (90-227-62-61-no75.tbcn.telia.com. [90.227.62.61]) by smtp.gmail.com with ESMTPSA id 1sm1452879ljo.13.2017.09.17.12.40.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 17 Sep 2017 12:40:33 -0700 (PDT) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Cc: Erik Stromdahl Subject: [RFC v3 11/11] ath10k: remove htt pending TX count for high latency Date: Sun, 17 Sep 2017 21:40:13 +0200 Message-Id: <20170917194013.8658-12-erik.stromdahl@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170917194013.8658-1-erik.stromdahl@gmail.com> References: <20170917194013.8658-1-erik.stromdahl@gmail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP High latency chipsest does not seem to send any HTT_T2H_MSG_TYPE_TX_COMPL_IND for outgoing frames. This means that htt->num_pending_tx will never be decremented and we will eventually hit the maximum limit. All outgoing packets will then be discarded. Signed-off-by: Erik Stromdahl --- drivers/net/wireless/ath/ath10k/htt_tx.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wireless/ath/ath10k/htt_tx.c b/drivers/net/wireless/ath/ath10k/htt_tx.c index 82d01139ff92..c74fc137ac67 100644 --- a/drivers/net/wireless/ath/ath10k/htt_tx.c +++ b/drivers/net/wireless/ath/ath10k/htt_tx.c @@ -153,6 +153,9 @@ void ath10k_htt_tx_txq_update(struct ieee80211_hw *hw, void ath10k_htt_tx_dec_pending(struct ath10k_htt *htt) { + if (htt->ar->is_high_latency) + return; + lockdep_assert_held(&htt->tx_lock); htt->num_pending_tx--; @@ -162,6 +165,9 @@ void ath10k_htt_tx_dec_pending(struct ath10k_htt *htt) int ath10k_htt_tx_inc_pending(struct ath10k_htt *htt) { + if (htt->ar->is_high_latency) + return 0; + lockdep_assert_held(&htt->tx_lock); if (htt->num_pending_tx >= htt->max_num_pending_tx)