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: 9955045 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 043176028A for ; Sun, 17 Sep 2017 19:41:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EC71428A6E for ; Sun, 17 Sep 2017 19:41:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E188F28A8D; Sun, 17 Sep 2017 19:41:52 +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=-4.2 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id F2E4428A6E for ; Sun, 17 Sep 2017 19:41:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=S5Io7TmPrHAD5c2HZS9Eg5g1PMBmQYe7iqjHgHvcugY=; b=DCJpkcfc4q2eAqGx5TTxfwxwg2 PSwTbUJOY5xJgyxMVYq2Ey80SlClEJDFqd9zuJOBxOlTFPYwTA0CffZmJ9qMBSw1qHvz/n/ichUtb vI4hBtCtrwwnbUgxFZnT4A+/PkHsVA3utlY70Q68FuJrbfGHQzbcsof3mWBEbEmlKlE49Ye0oB7/y rx1bf+1uH1joZt40Idc8i71uMfRSC2nlS83MsZrv3gDfqxsLIh9VbVsFuQ9FKRteoPEY7KT1cELi4 kR16KcGdjBSQfl0ZA400FW7DlfPLw16QH5g7oiJyoc0PTq0YRVZ5h8PCap8BX13gxzXHpwdCi4Dm5 1kvwSJZA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dtfRn-0000fY-Ku; Sun, 17 Sep 2017 19:41:43 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dtfQy-0008Jk-18 for ath10k@lists.infradead.org; Sun, 17 Sep 2017 19:41:00 +0000 Received: by mail-lf0-x241.google.com with SMTP id c8so3538451lfe.2 for ; Sun, 17 Sep 2017 12:40:35 -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=B7EYlK+ACUuxSQ2L7X+fDVdYt9jKLCFKG328PrEVpPfr+q2qKiGAcF+RSbiXXUGfE6 OYvyVV4DZjSqlRRc6G+gQB8RV0vLkstR5ULW5gUneCyK7MKW7lNgtowll4d9UPxelTf6 RKCR1zt738LosLhYdh4JilXQlpOzCHPusWI18PiYCaYE4cFH2zDdozwaxVOz6Mo3M1mM zOulCypxa2rNGgOBg15vvDn9RpGhKmk3b/FXc2CIil/A2EiBFcKhWpj8gGqLaJnSnjo5 4Uj2d1ym/Mp5JYl+baxWpnroNEek1w8c57ggATNUaao2Qx/3fNIP+tW9nP5G8pnWVGjs M0xA== X-Gm-Message-State: AHPjjUirbk2Med8cUq8LCxXf2pskFGOvB4Ep7rf3JXcxVLbj9iwLmPMR mGbBnjl/p9ECS5Jv 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 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> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170917_124052_829552_1D9A0A17 X-CRM114-Status: UNSURE ( 7.54 ) X-CRM114-Notice: Please train this message. X-BeenThere: ath10k@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Erik Stromdahl MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.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)