From patchwork Tue Oct 2 18:03:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rakesh Pillai X-Patchwork-Id: 10623977 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BDDC21515 for ; Tue, 2 Oct 2018 18:04:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ACDF627B81 for ; Tue, 2 Oct 2018 18:04:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F4602766D; Tue, 2 Oct 2018 18:04:33 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.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 3B2AD2766D for ; Tue, 2 Oct 2018 18:04:33 +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=h3psubw61bD4ON0a9rQy0M5o3IuHMP29C2fkJtVKuK4=; b=UEgnvVW7wkGjugYHaM62IeV2Wx VP1Fvdi9ps9LKQIjBrW31gI6bJZ7lHZyzphG3Y+u0IwiNvEd+LeU1kluFEYAITZIlaQWDKwLtJagy xuI66nzYhfLCUJ5hsLz6lAf0lR5Tlch95pvbaZeGQy1VpQdDGC5mO/uVOgLiaYZ1p7EZ9F9WsUKbK p25yVJNe1Sly9zTiyn3ScCGJDSrr3TCDjmfiAAxYznTehZVNhZVO1iw8DvrRtHoCbSUixsnhCgoGp 2saoTBfuXYVhx18X6ZV44XrDKimfmhV5xXuP0fvFknsJdKUKPHgT6aGl97AUpW+Ubszo7ty6HkGrM 9T72ShSw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g7P26-0005jd-Az; Tue, 02 Oct 2018 18:04:30 +0000 Received: from smtp.codeaurora.org ([198.145.29.96]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g7P1p-0005Yo-Ak for ath10k@lists.infradead.org; Tue, 02 Oct 2018 18:04:21 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id E938360C4D; Tue, 2 Oct 2018 18:04:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538503442; bh=PbBj6vOdPE36We5O25jLsEZowlkS/OTVb0/kGtfetUw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FyoIDOQYYgY2uGYA3MFGbxWuEzK+lSq6SeFCVtPA+EegAg5xO8uxlO++whAjiljkm T5iXdVcFVX/ph9LuYHnFoC7YYURT/CTvX+MHcyNCe9o2uuMm+qbCNKXy+cEoAa3bMc UvHwWGCcxgHowLnLmPRoMQC1HqJzyfNL4IyCLwxc= Received: from pillair-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: pillair@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 31C9860C4B; Tue, 2 Oct 2018 18:04:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538503442; bh=PbBj6vOdPE36We5O25jLsEZowlkS/OTVb0/kGtfetUw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FyoIDOQYYgY2uGYA3MFGbxWuEzK+lSq6SeFCVtPA+EegAg5xO8uxlO++whAjiljkm T5iXdVcFVX/ph9LuYHnFoC7YYURT/CTvX+MHcyNCe9o2uuMm+qbCNKXy+cEoAa3bMc UvHwWGCcxgHowLnLmPRoMQC1HqJzyfNL4IyCLwxc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 31C9860C4B Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=pillair@codeaurora.org From: Rakesh Pillai To: ath10k@lists.infradead.org Subject: [PATCH 2/2] ath10k: Enable bundle tx compl for management frames in WCN3990 Date: Tue, 2 Oct 2018 23:33:41 +0530 Message-Id: <1538503421-17607-3-git-send-email-pillair@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1538503421-17607-1-git-send-email-pillair@codeaurora.org> References: <1538503421-17607-1-git-send-email-pillair@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181002_110413_494100_1078F0BC X-CRM114-Status: GOOD ( 11.38 ) 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: Rakesh Pillai , linux-wireless@vger.kernel.org MIME-Version: 1.0 Sender: "ath10k" Errors-To: ath10k-bounces+patchwork-ath10k=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP WCN3990 sends tx completion of multiple management frames bundled together in a single event, if the host driver exposes the support to handle this bundled tx completion event. This reduces the number of WMI events which are sent to the host driver by the target. Set the BUNDLE_TX_COMPL flag in the host capability flags when host sends the wmi init command, to indicate the host capability to handle bundled tx completion for management frames. Tested HW: WCN3990 Tested FW: WLAN.HL.2.0-01188-QCAHLSWMTPLZ-1 Signed-off-by: Rakesh Pillai --- drivers/net/wireless/ath/ath10k/wmi-tlv.c | 2 +- drivers/net/wireless/ath/ath10k/wmi-tlv.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/wmi-tlv.c b/drivers/net/wireless/ath/ath10k/wmi-tlv.c index f7d4f01..df8f673 100644 --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.c +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.c @@ -1685,7 +1685,7 @@ static struct sk_buff *ath10k_wmi_tlv_op_gen_init(struct ath10k *ar) cfg->num_ocb_vdevs = __cpu_to_le32(0); cfg->num_ocb_channels = __cpu_to_le32(0); cfg->num_ocb_schedules = __cpu_to_le32(0); - cfg->host_capab = __cpu_to_le32(0); + cfg->host_capab = __cpu_to_le32(WMI_TLV_FLAG_MGMT_BUNDLE_TX_COMPL); ath10k_wmi_put_host_mem_chunks(ar, chunks); diff --git a/drivers/net/wireless/ath/ath10k/wmi-tlv.h b/drivers/net/wireless/ath/ath10k/wmi-tlv.h index c575921..8014fc8 100644 --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.h +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.h @@ -1580,6 +1580,8 @@ struct ath10k_mgmt_tx_pkt_addr { dma_addr_t paddr; }; +#define WMI_TLV_FLAG_MGMT_BUNDLE_TX_COMPL BIT(9) + struct wmi_tlv_mgmt_tx_compl_ev { __le32 desc_id; __le32 status;