Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4535368imm; Mon, 17 Sep 2018 16:03:23 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZycie7kLE2cvVz0alTFQuZy6EofDS5+I+kt+Vlr9gWncbHXl5KNI/51fa7tM6sUpKP0UpT X-Received: by 2002:a62:5f82:: with SMTP id t124-v6mr27793611pfb.223.1537225402978; Mon, 17 Sep 2018 16:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537225402; cv=none; d=google.com; s=arc-20160816; b=Cu9YYHN16U/e7TekYGfLcqDgwOLVTZP46/tJaJFFn4jkDx8CVsrTSXnxGOBQnS6V/f FnJo8kelXJCHLISQkrqwhI1KFFd5HMvKODvgjRed0Dkxoo2r+n9JIrvG5SPtxbvmOuaO +14OjrfiFZwTQv2NiAJGNXoXsCPJACA8XQfybRT3D2VierWOwSgTfg/tIAxkgGUYvNAL +/rkTGe+7I0yPv3C4Qx5Vi+y1UjxtnfLsUIYyok8IwwsGMgVYV90VmDS4Ll1BknWoOi6 wQfxcaa4ZqgOg8rGIoTV9ukfRa5/pDu1JTNbGWJHWT9lvaeaSEON0Dtil8Rq1wKkxfkt 9cEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=b0XRUEtZ0InrNYVgDOcPt/gSKfyw4wmHkjPLGaLT4AM=; b=dsGnioj6IRIPfu34tzdxLmYrxnPwVBwAdh/DT46woHJHdv5G59x+L4eAdR4kQ7ZWQI mzkf5k6wChL1TD5QvnZnYaogv71wSoH4c3vTuquOzoqjvOTtFDCQsZpFaDf2elDKBQNm J1vP+dKCDHeLz5Mx9SditIbFXE5ZhErMiToS7HRaLjqsNpGGZaeh8Hbxgpb+JwHk5Aa1 Dr7j3IYRZvGbLFk8MihBKg2grFnUiThFUcPFhfJPOaGSYvKviY1kAJ9USn66CJmEeW16 +HeqJDlr3VTx6lOzLOJ5BtyQ/U9aYcVuS0hBMaeu0vZ5vsqOdZQBoihF6OZ3r7Q67laV BYig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v28-v6si16924849pfi.22.2018.09.17.16.03.07; Mon, 17 Sep 2018 16:03:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730485AbeIREcR (ORCPT + 99 others); Tue, 18 Sep 2018 00:32:17 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:48564 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727088AbeIREcQ (ORCPT ); Tue, 18 Sep 2018 00:32:16 -0400 Received: from localhost (li1825-44.members.linode.com [172.104.248.44]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 60CBBC03; Mon, 17 Sep 2018 23:02:48 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Surabhi Vishnoi , Rakesh Pillai , Kalle Valo , Sasha Levin Subject: [PATCH 4.14 061/126] ath10k: disable bundle mgmt tx completion event support Date: Tue, 18 Sep 2018 00:41:49 +0200 Message-Id: <20180917211708.411954274@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180917211703.481236999@linuxfoundation.org> References: <20180917211703.481236999@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Surabhi Vishnoi [ Upstream commit 673bc519c55843c68c3aecff71a4101e79d28d2b ] The tx completion of multiple mgmt frames can be bundled in a single event and sent by the firmware to host, if this capability is not disabled explicitly by the host. If the host cannot handle the bundled mgmt tx completion, this capability support needs to be disabled in the wmi init cmd, sent to the firmware. Add the host capability indication flag in the wmi ready command, to let firmware know the features supported by the host driver. This field is ignored if it is not supported by firmware. Set the host capability indication flag(i.e. host_capab) to zero, for disabling the support of bundle mgmt tx completion. This will indicate the firmware to send completion event for every mgmt tx completion, instead of bundling them together and sending in a single event. Tested HW: WCN3990 Tested FW: WLAN.HL.2.0-01188-QCAHLSWMTPLZ-1 Signed-off-by: Surabhi Vishnoi Signed-off-by: Rakesh Pillai Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/ath/ath10k/wmi-tlv.c | 5 +++++ drivers/net/wireless/ath/ath10k/wmi-tlv.h | 5 +++++ 2 files changed, 10 insertions(+) --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.c +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.c @@ -1451,6 +1451,11 @@ static struct sk_buff *ath10k_wmi_tlv_op cfg->keep_alive_pattern_size = __cpu_to_le32(0); cfg->max_tdls_concurrent_sleep_sta = __cpu_to_le32(1); cfg->max_tdls_concurrent_buffer_sta = __cpu_to_le32(1); + cfg->wmi_send_separate = __cpu_to_le32(0); + 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); ath10k_wmi_put_host_mem_chunks(ar, chunks); --- a/drivers/net/wireless/ath/ath10k/wmi-tlv.h +++ b/drivers/net/wireless/ath/ath10k/wmi-tlv.h @@ -1228,6 +1228,11 @@ struct wmi_tlv_resource_config { __le32 keep_alive_pattern_size; __le32 max_tdls_concurrent_sleep_sta; __le32 max_tdls_concurrent_buffer_sta; + __le32 wmi_send_separate; + __le32 num_ocb_vdevs; + __le32 num_ocb_channels; + __le32 num_ocb_schedules; + __le32 host_capab; } __packed; struct wmi_tlv_init_cmd {