Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp860089ybj; Tue, 5 May 2020 08:40:28 -0700 (PDT) X-Google-Smtp-Source: APiQypIgH1Tq4shmABzeynWXL82jdOhA0dfjFCfong9VsNAj5ObhtTWId681xFvTvq19r6YTsHXc X-Received: by 2002:a05:6402:552:: with SMTP id i18mr3112103edx.378.1588693228781; Tue, 05 May 2020 08:40:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588693228; cv=none; d=google.com; s=arc-20160816; b=iBAFnk8vjkTmSpLiIAov9md0rC2kvUHf28glZVwcfm6vREg9nFGLZjK9wPAAd6T2mb LW3tzPfh6B04QZEbKwu8fdoZRDOrVAk6SHYp9vgqGy3UnFize8FwGT8HoBa3XmhBInQV plUZPmfAHR7AaW/qvb/gE46frPxgCctRtXkoP+d+BkFpyMtic9GTKyoMQQC9Xm0IUWIq UjH0UmMFs2kVOfdP6OyGTgtFU2Z58b2w9lXx2RXSG3md3Au7mZLqf3RLBm7nyqY9wlLo S3Ab/jdzkEB9qARYMmjQbMBGkYGBo5d28v1UpEkeAWyKIrU35IutDd4QpSZbIB7G/xSr STsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=VRSExmv1HE5xIFylv1dPd9N5L65SaLV8nJnllN9wvsw=; b=Ow+uaTcINpMlb+k+Cd8zw2yIg8mEmy6Zs7BFM5/ciqQjq+aYIpKe5rVnIcrbkyVWG6 Q0C2esOij1uvWBAllSp60XtDhowMrSaqYWRU1YFVlHig4xhDJNTJpxZd8FK/+OZg4Ydm gKiJHgnpJd6zXOmPnh6KhpJ4NmDPElVqiie2bS5jR2Juch5/RU5PjNql7eeiAmEtX9Qt 4pqm3GAOe5EEA4so7GG5cxqvnpTuqAeAwEX8YxpOGN7uQRyq/tcjjxfKTrk2SvfHd9eJ /pY/i7DAynld5MQLRLwaGrCaKVRc3yVhpd3kbbLzAp7MFBnW+aXCycpVaXlYJVWynkGn tcaQ== ARC-Authentication-Results: i=1; mx.google.com; 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 d9si1262545ejh.303.2020.05.05.08.39.58; Tue, 05 May 2020 08:40:28 -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; 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 S1729464AbgEEPha (ORCPT + 99 others); Tue, 5 May 2020 11:37:30 -0400 Received: from smail.rz.tu-ilmenau.de ([141.24.186.67]:36766 "EHLO smail.rz.tu-ilmenau.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729317AbgEEPh3 (ORCPT ); Tue, 5 May 2020 11:37:29 -0400 Received: from [192.168.178.34] (unknown [87.147.56.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smail.rz.tu-ilmenau.de (Postfix) with ESMTPSA id A9725580248; Tue, 5 May 2020 17:37:27 +0200 (CEST) Subject: Re: [PATCH 1/2] ath10k: use cumulative survey statistics To: Sven Eckelmann , ath11k@lists.infradead.org Cc: Rajkumar Manoharan , linux-wireless-owner@vger.kernel.org, linux-wireless@vger.kernel.org, ath10k@lists.infradead.org, kvalo@codeaurora.org References: <20200504154122.91862-1-markus.theil@tu-ilmenau.de> <2335594.cnkAv9Vaq7@bentobox> <1845755.pTfhzBy2qg@bentobox> From: Markus Theil Message-ID: <46ab4ffd-b512-de43-40bb-f35989d228b9@tu-ilmenau.de> Date: Tue, 5 May 2020 17:37:27 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <1845755.pTfhzBy2qg@bentobox> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 5/5/20 9:49 AM, Sven Eckelmann wrote: > On Tuesday, 5 May 2020 09:01:34 CEST Sven Eckelmann wrote: >> On Tuesday, 5 May 2020 01:46:12 CEST Rajkumar Manoharan wrote: >> [...] >>> IIRC this was fixed a while ago by below patch. Somehow it never landed >>> in ath.git. >>> Simple one line change is enough. >>> >>> https://patchwork.kernel.org/patch/10550707/ >> Because it doesn't work for everything. Remember that 10.2.4.x overflows all >> the time (14-30s) because it used only 31 bit for the counters. >> >> But feel free to point me to the firmware version which fixed this. > See also https://patchwork.kernel.org/patch/9701459/ > > Kind regards, > Sven This patch already fixes the problem for me. I tested it on QCA988X hw with firmware 10.2.4. [?? 10.350919] ath10k_pci 0000:04:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043222ff sub 0000:0000 [?? 10.350930] ath10k_pci 0000:04:00.0: kconfig debug 1 debugfs 1 tracing 1 dfs 0 testmode 0 [?? 10.351803] ath10k_pci 0000:04:00.0: firmware ver 10.2.4-1.0-00047 api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 35bd9258 [?? 10.385617] ath10k_pci 0000:04:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08 [?? 11.536818] ath10k_pci 0000:04:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1 I also did not see the 31 bit overflow after a small amount of seconds. Survey data from wlp4s0 ??? frequency:??? ??? ??? 2412 MHz [in use] ??? noise:??? ??? ??? ??? -65 dBm ??? channel active time:??? ??? 5370225 ms ??? channel busy time:??? ??? 924199 ms ??? channel receive time:??? ??? 140 ms ??? channel transmit time:??? ??? 0 ms Kind regards, Markus