Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1143258pxb; Wed, 10 Feb 2021 00:45:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzg4Yu3eerODmfu64YGSPrToEZCWBXEOxrkAwwSB13uFPwnYJ6v3dOSseD/k5miyEKcWlSc X-Received: by 2002:a05:6402:3494:: with SMTP id v20mr2254862edc.146.1612946729450; Wed, 10 Feb 2021 00:45:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612946729; cv=none; d=google.com; s=arc-20160816; b=b9SQOenfi3uTl3Ka8YA01qbiiLlNIz3BX9f5RWPRi41if0vM7+eXqhrkmwZ0mkLIMQ i69jqYY8abtzyMnGwTpRey2mCdJ88S1Sk9RZqCN+wzM3dzvPc6OvB/JL/Q+zwaP4+u58 H1PjIxm5tHMKPje2AJj4jSmorwxU//j0BcLJ5PdD+wbIQH409vUo3xb0xKVjW/v4vcR9 mjZxSTLph9kD4zOsTiTbAYjMxNhDlXONun0ClqejWMbvMfJIVJVPKXKdc8rZH2jB+rei WtVp+mQeQy9GjoJcTIriuN7mTPYWt5SbyXwSVlHloPElWjKu+joNSWje0lvCFXHTu+L2 kv5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=BQcw0kZHs0UzLmmDYGY+jo88rGm4rVQUuEYLarQue+s=; b=Paek55TSq2wRNXpvPRjwkStSg6HgmsFZ6ZSNEbFyificOWIdmNHnXsMhAIves+hJHZ nvhDxKbAnxAc36rya7DaVPAqnY7wWznJp2haeBwvyQ2/K8pCsa7AcadKXgLYRuoDRSLf 5OryfPCb9F3h4QAJp99JVBWuYx5kbo3Ms+MFlZ0UPAjSF5X7Vn3PvMyC7/NZYuIK/lMV w4o9yS+C8afAKfDpNhJtfTjw+4csVrG6Nj2Ka5NgRv0erp7sjaTR4B9EcpyiQ6nY0nkV Obkx41p5kH/oPbVOqc4ZsbELafWsuRBvZ5FSpOZh906qvUmXj3jwMotaTrE2gCSv0jcJ sOQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=I3By4EIm; 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 d4si886158ejb.594.2021.02.10.00.45.07; Wed, 10 Feb 2021 00:45:29 -0800 (PST) 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=pass header.i=@mg.codeaurora.org header.s=smtp header.b=I3By4EIm; 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 S229503AbhBJIaJ (ORCPT + 99 others); Wed, 10 Feb 2021 03:30:09 -0500 Received: from mail29.static.mailgun.info ([104.130.122.29]:46539 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbhBJI3v (ORCPT ); Wed, 10 Feb 2021 03:29:51 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1612945765; h=Content-Type: MIME-Version: Message-ID: In-Reply-To: Date: References: Subject: Cc: To: From: Sender; bh=BQcw0kZHs0UzLmmDYGY+jo88rGm4rVQUuEYLarQue+s=; b=I3By4EIma951xdeUfUAVOrFqzbaaYlwQ3gdUSPrMsBaYOf8vAjF+eoqqrbOQEcBbjOFWSNSD omLOKVEN/L2kH5EAoTiNwnEwNyHYNvEvB8C6Y9XoqkOBItC64EEuZlG5vDA/rIyuFtQzJ+nb t3j8IKMMXlrhJDNPE2g3vKAj7Ls= 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-n03.prod.us-east-1.postgun.com with SMTP id 6023994481f6c45dce0f6d5b (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 10 Feb 2021 08:28:52 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 5679CC43469; Wed, 10 Feb 2021 08:28:50 +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=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from potku.adurom.net (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5CADDC43461; Wed, 10 Feb 2021 08:28:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 5CADDC43461 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=fail smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Wen Gong Cc: Shuah Khan , netdev@vger.kernel.org, linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, ath10k@lists.infradead.org, kuba@kernel.org, davem@davemloft.net Subject: Re: [PATCH 5/5] ath10k: reduce invalid ht params rate message noise References: <76a816d983e6c4d636311738396f97971b5523fb.1612915444.git.skhan@linuxfoundation.org> <5c31f6dadbcc3dcb19239ad2b6106773@codeaurora.org> Date: Wed, 10 Feb 2021 10:28:45 +0200 In-Reply-To: <5c31f6dadbcc3dcb19239ad2b6106773@codeaurora.org> (Wen Gong's message of "Wed, 10 Feb 2021 10:36:23 +0800") Message-ID: <87h7mktjgi.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Wen Gong writes: > On 2021-02-10 08:42, Shuah Khan wrote: >> ath10k_mac_get_rate_flags_ht() floods dmesg with the following >> messages, >> when it fails to find a match for mcs=7 and rate=1440. >> >> supported_ht_mcs_rate_nss2: >> {7, {1300, 2700, 1444, 3000} } >> >> ath10k_pci 0000:02:00.0: invalid ht params rate 1440 100kbps nss 2 >> mcs 7 >> >> dev_warn_ratelimited() isn't helping the noise. Use dev_warn_once() >> instead. >> >> Signed-off-by: Shuah Khan >> --- >> drivers/net/wireless/ath/ath10k/mac.c | 5 +++-- >> 1 file changed, 3 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/net/wireless/ath/ath10k/mac.c >> b/drivers/net/wireless/ath/ath10k/mac.c >> index 3545ce7dce0a..276321f0cfdd 100644 >> --- a/drivers/net/wireless/ath/ath10k/mac.c >> +++ b/drivers/net/wireless/ath/ath10k/mac.c >> @@ -8970,8 +8970,9 @@ static void ath10k_mac_get_rate_flags_ht(struct >> ath10k *ar, u32 rate, u8 nss, u8 >> *bw |= RATE_INFO_BW_40; >> *flags |= RATE_INFO_FLAGS_SHORT_GI; >> } else { >> - ath10k_warn(ar, "invalid ht params rate %d 100kbps nss %d mcs %d", >> - rate, nss, mcs); >> + dev_warn_once(ar->dev, >> + "invalid ht params rate %d 100kbps nss %d mcs %d", >> + rate, nss, mcs); >> } >> } > > The {7, {1300, 2700, 1444, 3000} } is a correct value. > The 1440 is report from firmware, its a wrong value, it has fixed in > firmware. In what version? > If change it to dev_warn_once, then it will have no chance to find the > other wrong values which report by firmware, and it indicate > a wrong value to mac80211/cfg80211 and lead "iw wlan0 station dump" > get a wrong bitrate. I agree, we should keep this warning. If the firmware still keeps sending invalid rates we should add a specific check to ignore the known invalid values, but not all of them. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches