From patchwork Sun Dec 31 17:29:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erik Stromdahl X-Patchwork-Id: 10138247 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 623D260362 for ; Sun, 31 Dec 2017 17:31:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A8BF2886B for ; Sun, 31 Dec 2017 17:31:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3F6102887A; Sun, 31 Dec 2017 17:31:59 +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.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, 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 E2C4F2886B for ; Sun, 31 Dec 2017 17:31:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751167AbdLaRb5 (ORCPT ); Sun, 31 Dec 2017 12:31:57 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:40387 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751063AbdLaRbt (ORCPT ); Sun, 31 Dec 2017 12:31:49 -0500 Received: by mail-lf0-f65.google.com with SMTP id u84so32315054lff.7 for ; Sun, 31 Dec 2017 09:31:48 -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=7yv+Iym/JSq33MVgnxjN7LbV5u3+BYHSvKUNzPakfK8=; b=CluRqXm84bpGpL9v80rT1byD7ccV3h4S1UiTxVozBcfuVpHaznpjUvf9ja7JuuF8iX IQfpQ5HHUFLQvwuIGMQOa3QxzCF9KKR/e9qYK2tbsj7Z4JJVGjc9u4nvRo8VdaHWNYUh F7hPy4Mu9WJXb9btlZGrbwlhvkWXrgCs2T3dJmPVisvc4GrarWAA2S8uJQynzdpMVZ5+ bHmLpjnojY8hmws8KIOaLiFMGebwRJywH5tYU+XZdZtzLbysNMb+cLgVD8ausp7f4msZ p39JYbheH2opM5MuitCKk2vHcDJ6QO81i8M55JtTcL5BmjRYdD4RwbtLX1MQRwpKhCJZ 6vkw== 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=7yv+Iym/JSq33MVgnxjN7LbV5u3+BYHSvKUNzPakfK8=; b=EsbxO3DRKDVs6MzZdrpyI2Z1QYjG6p3oLv+s0OVDRzuub0qnFIxfwscHqpCsXw5zou PyB90olZF8eHzm+IC1v4HxLHXwSC+xROZEfT0yB/rln4st106zNGnCfkBeVbtQGfWTHm tgqvnb/uIduYzBCz1IcsVTVhNSq8X0bG5DgwxRlg95ofLuLuTexUIABElo4xgii2YT+b MqKAGh0iVIzsKyznEY+bRKzt2pZMX/foS/N6Bkz8eH12RhJLpN7V3L2B6cQ/JhnvyMK/ KCBPbL2cq1Qy+oPIdT2RprzOspOg0ZxkQEi5+/kEiD/P/PoxLvzlM7fGghYFd5+EUPhK h3kw== X-Gm-Message-State: AKGB3mKang23PonepF6HBI7moJdo659Nety2AH9JwYilBKIYZoupCAoe nFVgsEZkM23BhEvdOmEHYjQ= X-Google-Smtp-Source: ACJfBosMJ5RM++3rRGXTRYgIlKjKVu9r6G16/yB7J06H4C7xoRv2MQGWbCaVFXsMIjQ7rjnLQQiLcQ== X-Received: by 10.25.145.85 with SMTP id y21mr13371332lfj.123.1514741507993; Sun, 31 Dec 2017 09:31:47 -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.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 31 Dec 2017 09:31:47 -0800 (PST) From: Erik Stromdahl To: kvalo@qca.qualcomm.com, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org Cc: Erik Stromdahl Subject: [RFC v4 16/18] ath10k: remove htt pending TX count for high latency Date: Sun, 31 Dec 2017 18:29:23 +0100 Message-Id: <20171231172925.24014-17-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> 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 chipsets 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 7ea27454ef3f..0c14fb3b7181 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)