From patchwork Wed Feb 12 08:04:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wen Gong X-Patchwork-Id: 216483 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 21AB8C2BA83 for ; Wed, 12 Feb 2020 08:04:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EA5E120661 for ; Wed, 12 Feb 2020 08:04:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="key not found in DNS" (0-bit key) header.d=mg.codeaurora.org header.i=@mg.codeaurora.org header.b="NPNcrOoU" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728472AbgBLIEf (ORCPT ); Wed, 12 Feb 2020 03:04:35 -0500 Received: from mail26.static.mailgun.info ([104.130.122.26]:60215 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728192AbgBLIEe (ORCPT ); Wed, 12 Feb 2020 03:04:34 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1581494674; h=Content-Transfer-Encoding: MIME-Version: Message-Id: Date: Subject: Cc: To: From: Sender; bh=RHVInp9cgSQ4mxL0zWLszjFZKH0EkZfVY/0ExLB4yWU=; b=NPNcrOoULEWlNx+UEoFlEQXvHcmruzl5vl6bJcOrjcQ8ANOxsMTG4RXcIXfn7jF/5h+S5Nvw oU5iMHUL6Xs4xw6JgbUnQG1gsvXjFA+s+dQhAK0JoWUjkD4d8YJiIGDnmTuG3UpPS4UChD27 gpxjq0REJaJN/kQUsncwCePd/9M= X-Mailgun-Sending-Ip: 104.130.122.26 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by mxa.mailgun.org with ESMTP id 5e43b191.7efd98ae9fb8-smtp-out-n01; Wed, 12 Feb 2020 08:04:33 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id BF3F5C4479D; Wed, 12 Feb 2020 08:04:32 +0000 (UTC) Received: from wgong-HP-Z240-SFF-Workstation.qca.qualcomm.com (unknown [180.166.53.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: wgong) by smtp.codeaurora.org (Postfix) with ESMTPSA id 29298C4479C; Wed, 12 Feb 2020 08:04:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 29298C4479C Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=wgong@codeaurora.org From: Wen Gong To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, wgong@codeaurora.org Subject: [PATCH v9 0/4] ath10k: improve throughout of TX of sdio Date: Wed, 12 Feb 2020 16:04:11 +0800 Message-Id: <20200212080415.31265-1-wgong@codeaurora.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org v9: change ath10k_htt_htc_tx_complete to fix the use-after-free panic v8: split out patch "change ATH10K_SDIO_BUS_REQUEST_MAX_NUM from 64 to 1024" from "disable TX complete indication of htt for sdio". merge patch "ath10k: clean bundle tx queue of htt tx stop for sdio" into "add htt TX bundle for sdio" v7: change a few code style to meet ath10k-check script v6: remove module parameters disable_tx_comp and alt_data this is 3 patches of the 7 patches from ath10k: improve throughout of tcp/udp TX/RX of sdio v5: change ath10k_htc_setup_tx_req to add check bundle_tx to forbidden init 2 times v4: add macro ATH10K_HTC_MSG_READY_EXT_ALT_DATA_MASK v3: change some code style v2: change some code style The bottleneck of throughout on sdio chip is the bus bandwidth, to the patches are all to increase the use ratio of sdio bus. These patches only affect sdio bus chip, explanation is mentioned in each patch's commit log. Wen Gong (4): ath10k: disable TX complete indication of htt for sdio ath10k: change ATH10K_SDIO_BUS_REQUEST_MAX_NUM from 64 to 1024 ath10k: add htt TX bundle for sdio ath10k: enable alt data of TX path for sdio drivers/net/wireless/ath/ath10k/core.c | 27 +- drivers/net/wireless/ath/ath10k/core.h | 4 +- drivers/net/wireless/ath/ath10k/hif.h | 9 + drivers/net/wireless/ath/ath10k/htc.c | 394 +++++++++++++++++++++-- drivers/net/wireless/ath/ath10k/htc.h | 40 ++- drivers/net/wireless/ath/ath10k/htt.c | 13 + drivers/net/wireless/ath/ath10k/htt.h | 17 +- drivers/net/wireless/ath/ath10k/htt_rx.c | 35 +- drivers/net/wireless/ath/ath10k/htt_tx.c | 43 ++- drivers/net/wireless/ath/ath10k/hw.h | 2 +- drivers/net/wireless/ath/ath10k/sdio.c | 23 ++ drivers/net/wireless/ath/ath10k/sdio.h | 3 +- 12 files changed, 557 insertions(+), 53 deletions(-)