From patchwork Sun Dec 31 17:29:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 10138267 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 6EC4B60362 for ; Sun, 31 Dec 2017 17:32:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 55EAE2886B for ; Sun, 31 Dec 2017 17:32:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 496972887E; Sun, 31 Dec 2017 17:32:19 +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 D0E332886B for ; Sun, 31 Dec 2017 17:32:18 +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=F6WVxTTvzumj/PoNUhMC8iSNSXejTCtfo0ZwU2///eM=; b=laBmxYwSQ5OVOpM90LPoJac41H QwZ7ja6no0JPRZYd0HJkuAwnzTs+4HZ9yiqj5c/uXdmUtwOIuvGAXLz0glFe2n1lp8L89Z5MWUmy2 4ICJaWk9L8Sv7lUeozq7d1Rf3iweUgH9XjLkVUE3mx64fw1Cz/LvVMia2hQ7v5t7KWyR+FUkMvMs4 bzENiQtI2+JF19NLW1VI8IBIfEViyX7X9max6Gj/6AVfaDuHZx7WW36a++R8q+p9NPT/OSb4Sq0rE hVgY1h973wOLwyWJzppkuJ+msxuB/97PTCSrh/eTxaiVnfJxO16QqC2mZ2yOyPBUxYj0R3C0kBb8O YxRDj6gA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eVhSl-00066D-GQ; Sun, 31 Dec 2017 17:31:55 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eVhSd-0005z7-7w for ath10k@lists.infradead.org; Sun, 31 Dec 2017 17:31:51 +0000 Received: by mail-lf0-x241.google.com with SMTP id h5so8624765lfj.2 for ; Sun, 31 Dec 2017 09:31:42 -0800 (PST) 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=h6TivBdRt/Kp5zjgKWrlfIXiu9g6ZjNpFDXDSwPG7sU=; b=sZdkiC8YrzipQ7IKERqvUUmfTAjU/yMZrfSbNjGc8XhNyNucYQ4mC3nlpYFNnM1FU7 8wOyIXik4GG8IRpWC0NtY92iu+cmDOiwADQRABzAt9qivABA4Na34z4eICR72MePu+/I rcqqLeAoB+GtlVmFzPuUptUKZNwRAHucvEMxUsTcxFtN0DhDuRzmgQ6C0fwmUGzcl8IJ 3lVN8udS1QpBe33T8ImyJ07O/yrx5/2BuG11tooKdaZuOF0mMRAGXEoVrwWv3IVpPBTH Dd2jQUL12bHLo2KJf++VFbb7+grqNkDWP55jZbVBTE5gRqCN/94yZPZAg6wPjSwhJV/u JCNA== 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=h6TivBdRt/Kp5zjgKWrlfIXiu9g6ZjNpFDXDSwPG7sU=; b=OsCPLHNKvyW4275/PeDzoCdGEMaGYtQTwwL0ozaKXL/bA6FDPuBd+sdL6ufHn4t4Mw 7id7CW8fOELrYnJoK1Sv4k3Dc+OewwgpXNp8Ij32LjCJYx8JU54tAtn6JTiEMeVLuAza g24sf7i7X6z88hX/2vpmmpAHUAVmmQH/Hup0LUs6WoI4TgfiBRBV6zZ42ACPtCsGKxFn AQOJZ1UskD2AADAMk2BBE+dwHR9ApE26Ld5rYX/svTxBNu8oI8ngmuHA3pJu9HGxG+R6 qCeQGzpXI1DfEtKHJxOHXRbz1W/6nR0G9pK2CHP1dNyB5nkVVFCGdivjt1aq+0HtTd6J y03g== X-Gm-Message-State: AKGB3mLt7gDckL0JHlcHTqh9beN52/pZzXOqm3YGoZQI0JWBVSbAcCxs AcVUAjyvBPzOAwKNkx3ZA/U= X-Google-Smtp-Source: ACJfBosznwcW5JVfAElwh+B4irljGwv9aC04eleXxBf4zkuAtV+KJWI+KVp0azmOgF4ewPyUxp0bDQ== X-Received: by 10.25.204.69 with SMTP id c66mr23635018lfg.57.1514741500879; Sun, 31 Dec 2017 09:31:40 -0800 (PST) Received: from localhost.localdomain (90-227-62-61-no75.tbcn.telia.com. [90.227.62.61]) by smtp.gmail.com with ESMTPSA id o64sm5048449lfo.53.2017.12.31.09.31.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Dec 2017 09:31:40 -0800 (PST) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Subject: [RFC v4 08/18] ath10k: various fixes for high latency devices Date: Sun, 31 Dec 2017 18:29:15 +0100 Message-Id: <20171231172925.24014-9-erik.stromdahl@gmail.com> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20171231172925.24014-1-erik.stromdahl@gmail.com> References: <20171231172925.24014-1-erik.stromdahl@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171231_093147_374976_C1C423F8 X-CRM114-Status: UNSURE ( 8.46 ) 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 A few execution paths are not applicable for high latency devices and can be skipped. Signed-off-by: Erik Stromdahl --- drivers/net/wireless/ath/ath10k/htt_rx.c | 3 ++- drivers/net/wireless/ath/ath10k/txrx.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c index 7b3d6bf015c7..1432d5b3e9d3 100644 --- a/drivers/net/wireless/ath/ath10k/htt_rx.c +++ b/drivers/net/wireless/ath/ath10k/htt_rx.c @@ -2686,7 +2686,8 @@ bool ath10k_htt_t2h_msg_handler(struct ath10k *ar, struct sk_buff *skb) break; } case HTT_T2H_MSG_TYPE_TX_COMPL_IND: - ath10k_htt_rx_tx_compl_ind(htt->ar, skb); + if (!ar->is_high_latency) + ath10k_htt_rx_tx_compl_ind(htt->ar, skb); break; case HTT_T2H_MSG_TYPE_SEC_IND: { struct ath10k *ar = htt->ar; diff --git a/drivers/net/wireless/ath/ath10k/txrx.c b/drivers/net/wireless/ath/ath10k/txrx.c index febc3eb93fbd..a151abe5e97b 100644 --- a/drivers/net/wireless/ath/ath10k/txrx.c +++ b/drivers/net/wireless/ath/ath10k/txrx.c @@ -90,7 +90,7 @@ int ath10k_txrx_tx_unref(struct ath10k_htt *htt, ath10k_htt_tx_free_msdu_id(htt, tx_done->msdu_id); ath10k_htt_tx_dec_pending(htt); - if (htt->num_pending_tx == 0) + if (!ar->is_high_latency && (htt->num_pending_tx == 0)) wake_up(&htt->empty_tx_wq); spin_unlock_bh(&htt->tx_lock);