From patchwork Fri Jan 25 04:10:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rakesh Pillai X-Patchwork-Id: 10780547 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 243FE139A for ; Fri, 25 Jan 2019 04:10:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0FE1E2FCD6 for ; Fri, 25 Jan 2019 04:10:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 04AB62FD5D; Fri, 25 Jan 2019 04:10: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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 A56762FCD6 for ; Fri, 25 Jan 2019 04:10:37 +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=ndABpUUuYgRrgKWnFqfDiARizjVcHOnP1bFYyHbNRlE=; b=O5nTMx6mDGYIdBT/+ErZShmrdd wXCSukzn/5Ohj9Z6Rg9Yz4LlLP1rK/xrMVEoaE4NBAaX38ffNP4kBLKWn/JWmbLhOeJXfTW6bNFRV CvXaWBgaKilelGZYATuKgJW/xWI9ovmi8Nh+qgQBArdFu3RIDT0a9U7g0lfd4ztT8TpLD3cz4ZL6b tkcYBYzDvnf3hFMMGWVSoQ6wfSoe7XS+awA9TLB9mkLkSIELTpIXMCf5cZWsCkPn9xedSzqdyQRsT vUzV9bju0JWiosiwaoZ1TGUREd2NOyjWVV7zU04fufyY7wr1F+fDm3G4oUFFdD7bqyXV5y0XWUGv2 1JBIUPZQ==; 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 1gmspA-00021M-Vn; Fri, 25 Jan 2019 04:10:36 +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 1gmsp5-0001wg-MT for ath10k@lists.infradead.org; Fri, 25 Jan 2019 04:10:33 +0000 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 66DA76086B; Fri, 25 Jan 2019 04:10:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1548389431; bh=HrOlc1zDUKyWWGyVPxiCU5kL9TUiMteTJrdVtojkMnI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bvGqD2rvmBiO9uygM16H3QQ7ZyVvlt4S1z5JBj5h5D1YlgCKZT8ORCgIJH2I4GPNf 72j7bVRAUh7CtMRXe5D4zZ4XE+tRjMp+Edk/SGPz5f3yfnvUbSq7aPg3zHsN0zzBSS JU46HOe5Vxi6ccXz9ZHITrIJtufxJMm172zdKeE8= 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 83449605A5; Fri, 25 Jan 2019 04:10:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1548389430; bh=HrOlc1zDUKyWWGyVPxiCU5kL9TUiMteTJrdVtojkMnI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IajE4x1tAHwJw6gebmSVSwJiwDsS8ygWeZhubnK+adcv7PvpOR8qP755gTymwDbF1 droVbLMRvogES1yNiM6dcGW9n5rUlHJOulUxDVPNJjzugf9K+unhGws4Y4PgK2q0Z7 xNJ3eLuNiPrbZF29Ngx0NmgJ6I8GvHz7F18ScAEg= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 83449605A5 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 v2 2/2] ath10k: Enable bundle tx compl for management frames in WCN3990 Date: Fri, 25 Jan 2019 09:40:02 +0530 Message-Id: <1548389402-10083-3-git-send-email-pillair@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1548389402-10083-1-git-send-email-pillair@codeaurora.org> References: <1548389402-10083-1-git-send-email-pillair@codeaurora.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190124_201031_787676_E85AFA7E X-CRM114-Status: GOOD ( 11.37 ) 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 e85d6be..e6f62bb 100644 --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.c +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.c @@ -1688,7 +1688,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 5941961..298d917 100644 --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.h +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.h @@ -1593,6 +1593,8 @@ struct chan_info_params { u32 mac_clk_mhz; }; +#define WMI_TLV_FLAG_MGMT_BUNDLE_TX_COMPL BIT(9) + struct wmi_tlv_mgmt_tx_compl_ev { __le32 desc_id; __le32 status;