Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2537959ybg; Fri, 31 Jul 2020 02:49:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxD7PeElN6NWwSwJTfOhQTv4I0KG51QSFU3w++VIuk9Zyxd9lm22iY5brSfu+m2sjj5Ead9 X-Received: by 2002:a17:906:d20e:: with SMTP id w14mr3008794ejz.551.1596188960923; Fri, 31 Jul 2020 02:49:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596188960; cv=none; d=google.com; s=arc-20160816; b=F2azmVXEftvH5nu+v+qHFVAfarWsMfn2WzrLTBXreI1YtpnSscQfhZpR8Kn8ro1KG5 SD2WAR5Q6V+u1yEQ4NsU2P+e8pjBiHgdBbeuMls/RhRO3kLDz9H+/CIwHeZJfoaC3AiU 6pUWx7AerU4faEVS5c5ptNOiRF1fKLBDfydTPn1VJzPTFGLM5q7VFP6N4PROasgZ89ej cbRqEwtHWvPwlh+zftiFE/F3p4v3Qwyuuf6LwkA+3IX1sNYM3Rc2tEgcmS6Y9Vf/8hMN ciANvYcDybljVqgYrirKmhXaCdpQTHbxDg0ECsl6iFbAszS7eB64XIwaemFWfmCTTDxU YHUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=SyM3bUbcZRvkDLS/uRQdPaWfBMxsdLSFCFADWC6HkKY=; b=abTbe5USG7k0RVObZrtNGnJckRAg2qzLTANMnan5xCzcyFLgfdIwtDQyS11NqrTD4y VA5JTFB83OBWcDzliB8e+jnY+jrVjsEC0c6+OrqvS7o8RpouC8xB326hOYNjjt8QL5p0 DSIpfKU3Ggcg6rYAENXUzGITiLo9H3DlLpkhiTkxu3qwu38R3Jz1dibi5yl+fxm6jQfA IJtvm7OLTdtcKEMwnMWgUyszjrfgmXoBk/jLHTMO/IH35vvOXOimFOTdPZyYHcc/6imY jQQuS5ndKfwOQc9n/bnzV57HBtoJBA6RU9l4LRvGK3QwtQsWG+WmJqWtzc4ZEhxRa65d +dIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=qZtSatIZ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n1si1267581ejb.57.2020.07.31.02.48.44; Fri, 31 Jul 2020 02:49:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=qZtSatIZ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732358AbgGaJpJ (ORCPT + 99 others); Fri, 31 Jul 2020 05:45:09 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:16529 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732303AbgGaJpI (ORCPT ); Fri, 31 Jul 2020 05:45:08 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1596188708; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=SyM3bUbcZRvkDLS/uRQdPaWfBMxsdLSFCFADWC6HkKY=; b=qZtSatIZLd+zyXzrIpKk62nbsjC7AyCS3hIFk+arUE+dLxyc7iuEyIvoHw0qcpgXOusrC+6v 2UOO8tQjP55Lbdj12wF1w/u96PqZwGzNsPAHFhPw/T6bgy9PejWZDWiepQoazHKf9vcRAr9b 9voBdXi0OP8PM+ybelZH5UkXMm4= X-Mailgun-Sending-Ip: 104.130.122.29 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 smtp-out-n17.prod.us-west-2.postgun.com with SMTP id 5f23e822849144fbcb1e4ad3 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 31 Jul 2020 09:45:06 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id CB658C433CA; Fri, 31 Jul 2020 09:45:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from ironmsg01-blr.qualcomm.com (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: murugana) by smtp.codeaurora.org (Postfix) with ESMTPSA id 2A9A0C433C9; Fri, 31 Jul 2020 09:45:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 2A9A0C433C9 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=murugana@codeaurora.org From: Sathishkumar Muruganandam To: stable@vger.kernel.org Cc: ath10k@lists.infradead.org, linux-wireless@vger.kernel.org, Abhishek Ambure , Balaji Pothunoori , Kalle Valo , Sathishkumar Muruganandam Subject: [PATCH] ath10k: enable transmit data ack RSSI for QCA9884 Date: Fri, 31 Jul 2020 15:14:16 +0530 Message-Id: <20200731094416.5172-1-murugana@codeaurora.org> X-Mailer: git-send-email 2.17.1 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Abhishek Ambure commit cc78dc3b790619aa05f22a86a9152986bd73698c upstream. This commit fixes the regression caused by commit 6ddc3860a566 ("ath10k: add support for ack rssi value of data tx packets") in linux-5.4.y branch. ath10k_is_rssi_enable() always returns 0 for QCA9984 and this will cause the ppdu_info_offset to hold invalid value in ath10k_htt_rx_tx_compl_ind(). This leads to CE corruption for HTC endpoints to cause WMI command failures with insufficient HTC credits. Below warnings are seen due to beacon command failure in QCA9984. [ 675.939638] ath10k_pci 0000:03:00.0: SWBA overrun on vdev 0, skipped old beacon [ 675.947828] ath10k_pci 0000:04:00.0: SWBA overrun on vdev 1, skipped old beacon Tested HW: QCA9984 Tested FW: 10.4-3.10-00047 Tested Kernel version: 5.4.22 Fixes: 6ddc3860a566 ("ath10k: add support for ack rssi value of data tx packets") Signed-off-by: Abhishek Ambure Signed-off-by: Balaji Pothunoori [kvalo@codeaurora.org: improve commit log] Signed-off-by: Kalle Valo Signed-off-by: Sathishkumar Muruganandam --- drivers/net/wireless/ath/ath10k/hw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/ath10k/hw.c b/drivers/net/wireless/ath/ath10k/hw.c index c415e971735b..004af89a02b8 100644 --- a/drivers/net/wireless/ath/ath10k/hw.c +++ b/drivers/net/wireless/ath/ath10k/hw.c @@ -1145,6 +1145,7 @@ static bool ath10k_qca99x0_rx_desc_msdu_limit_error(struct htt_rx_desc *rxd) const struct ath10k_hw_ops qca99x0_ops = { .rx_desc_get_l3_pad_bytes = ath10k_qca99x0_rx_desc_get_l3_pad_bytes, .rx_desc_get_msdu_limit_error = ath10k_qca99x0_rx_desc_msdu_limit_error, + .is_rssi_enable = ath10k_htt_tx_rssi_enable, }; const struct ath10k_hw_ops qca6174_ops = { -- 2.17.1