Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6386087ybe; Wed, 18 Sep 2019 02:36:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxsnaZq8b72QGZvHlyu88WOAfrTz15bt2KgWyzZVxBQlu6HH3ZyI7zG1oFw6BFQYvyyzodI X-Received: by 2002:a50:9208:: with SMTP id i8mr9035275eda.3.1568799362367; Wed, 18 Sep 2019 02:36:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568799362; cv=pass; d=google.com; s=arc-20160816; b=rYH2g93TE4aLrbeLbQPwWOeT7orbpDkuc3LRWmau/Ph0J8BUfHtmWvNuYejk+GxU8+ xV8+6l8Sod3x91iCq1KhNyESwMmYZIk5bIzWAldN5CQan6lqhayVyJTjuIaZOjf89UNS lDERjDInEhSp7G6rjZ7AMKFskvpIXz93a7lhsprcIrp9iWDJa9Etbxy6yGwmYnHbpl97 z5vFZ37a6F0B6E2/V1I/7sSPzHdPKHNjtPS7WJ2g34viuC7moL4Au+8T0YqJ3sEzoPwd NYKr8+4MW7iXMT//02oUhHhwSVvCa0/vEhCfX25fHB6tyEc6gwLPBzt6YbOxZsZYDO6y RrEw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=BX4fjwFVQL4NLd+uNgUnLQ9RSR+S9QPFP1f84ohjf/4=; b=Ppa4VE/Mlk/ig/dPPOW7K4Q/NrCbhOpVydr2+bRahDKqNqBxFoV+Buw1KExLBADGw/ vM1RnCAbYbZyPGv6yqdduAwYTYfjBPhvi0WQjrvFV4en91xqMmDiFfP5j9wL+F9ASlT5 E9elYXAl/Z7ya0dr6nDSH4K78lPc7q1eepwjJVKp/ZiEtPEyknqdRkBgntwT+3IpR1zI Aqvk2dnPzGq1RsGrTIItQ2mg9oWNnFNeF/FxlCQpcxnH6jQtZf+yPly/FQq3zJwOp592 54WgS8aSRH/Jxy+Lz9vQWb+5k4UXLgf2aTP32UINaq0XBQ/2PU8tJXq3ZTWkH5I0tFPi qyFw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@narfation.org header.s=20121 header.b="dPoPVt/p"; arc=pass (i=1); spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=narfation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n16si2507506ejh.165.2019.09.18.02.35.37; Wed, 18 Sep 2019 02:36:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@narfation.org header.s=20121 header.b="dPoPVt/p"; arc=pass (i=1); spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=narfation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729703AbfIRIqY (ORCPT + 99 others); Wed, 18 Sep 2019 04:46:24 -0400 Received: from dvalin.narfation.org ([213.160.73.56]:43034 "EHLO dvalin.narfation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727614AbfIRIqY (ORCPT ); Wed, 18 Sep 2019 04:46:24 -0400 Received: from bentobox.localnet (p200300C5971113F0000000000000063E.dip0.t-ipconnect.de [IPv6:2003:c5:9711:13f0::63e]) by dvalin.narfation.org (Postfix) with ESMTPSA id A033E1FF9B; Wed, 18 Sep 2019 08:16:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1568794612; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BX4fjwFVQL4NLd+uNgUnLQ9RSR+S9QPFP1f84ohjf/4=; b=dPoPVt/pmEoL8Zgr/+ZSYBFVTPjJaJUifQNR7aFbb1+Cp9bFL6nPxlzQ7qrBqpzirqGxbc AVOttPUjObj0Qw9GuADtjs2oYE2w/4I3NK7LfL9DiqWW6nOMsa109Ku5iwiwIlUmmstr4F p3kYBWoEdGoqrcm4gzlv4KtYSmKFVF8= From: Sven Eckelmann To: ath10k@lists.infradead.org, sw@simonwunderlich.de Cc: vnaralas@codeaurora.org, Johannes Berg , slakkavalli@datto.com, linux-wireless@vger.kernel.org Subject: Re: [PATCH] cfg80211: Add cumulative channel survey dump support. Date: Wed, 18 Sep 2019 10:46:08 +0200 Message-ID: <18458963.ukFM9YuvQx@bentobox> In-Reply-To: <2083094.mFhUXK7yzB@bentobox> References: <1526980556-26707-1-git-send-email-vnaralas@codeaurora.org> <2083094.mFhUXK7yzB@bentobox> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3954164.CNjgTPF8Pu"; micalg="pgp-sha512"; protocol="application/pgp-signature" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1568794612; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BX4fjwFVQL4NLd+uNgUnLQ9RSR+S9QPFP1f84ohjf/4=; b=zmSLPj7CkLwF3xTKf9tyTQsLqXn3oEOXbtzJhpvlrQWNPMjp4VzoXpwRuOnLBDDKHoIpik bLHa2OcdPP7Rt+sx3UsmlqLwZWaLEkXjKx74a9z64kyq8hFONEzGcWPNLtAMkvfXqCi9eg WccEVY2UBHrP+qy6DQUGF3i2a/fB3P4= ARC-Seal: i=1; s=20121; d=narfation.org; t=1568794612; a=rsa-sha256; cv=none; b=YjbDJOMyfpt1uGFX2M9iVhiCJeZCpY2odfjnlQEodkkPP5dpdy7qK37W8JALFQ/2YBRQu4 d/2CERSjP4DYPmCF9AIZQ/if7vlO/sU0X6VeFUwck59FYFnQ9YrvU/4BvQrY+GRt3JmoMt su7SZR2luVoqz2iw/qb5pu7hagfZfpI= ARC-Authentication-Results: i=1; dvalin.narfation.org; auth=pass smtp.auth=sven smtp.mailfrom=sven@narfation.org Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --nextPart3954164.CNjgTPF8Pu Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Tuesday, 17 September 2019 19:27:50 CEST Sven Eckelmann wrote: [...] > So whatever the firmware does when it gets a > WMI_BSS_SURVEY_REQ_TYPE_READ_CLEAR - it is not a CLEAR after read. And they > also don't simply wrap around but there all values have to get some kind of > "fix" like the active time one shown in ath10k_hw_fill_survey_time. > Just that the actual "fixes" for them are unknown. To me it looks like > firmware ATH10K_HW_CC_WRAP_SHIFTED_ALL have busy and rx interlinked with > the overflow of total. But the tx and rx_bss are actually cleared. > > Other than that, the counters are wrapping every ~14-30 seconds. So we > also need also some worker for ath10k which every couple of seconds > requests new values for all the channel from the firmware. Which already > sounds problematic because I get > "ath10k_pci 0000:00:00.0: bss channelsurvey timed out" all the time > when requesting surveys manually. I've just tested it on 10.4 (wave-2) cards and it seems like it is cleared as expected on them. So the change I posted earlier (with a minor fix for ath10k_hw_fill_survey_time) returns now useful (accumulated) values. This can be seen in https://stats.freifunk-vogtland.net/d/ffv_node/nodeinfo?orgId=1&var-node=ac86749f4d60&fullscreen&panelId=5&from=1568782046974&to=1568807068706 (after the reboot at 10:15 UTC+2) So as Ben Greear said, the 10.4 firmware version is fixed and 10.2.* (for the wave-1 cards) is still broken and we need a QCA firmware engineer to fix it. Or to work around it by polling every couple of seconds and manually do the cleanup of the values from the firmware. Kind regards, Sven --nextPart3954164.CNjgTPF8Pu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEF10rh2Elc9zjMuACXYcKB8Eme0YFAl2B7tAACgkQXYcKB8Em e0aTpA/+Mw2cCvo49jZ32Ctihgqw3ZkWKxTaizRZzAKNDnCArDWWs3wER2zw1BPm 2Y4S9Nj0fq4fju1W+JRG/gX9gDFGJEhuCwG695aCofby6a9cXerq/3dzz3ciiJlh EJnkQOIgf4zHTGDhbzdca+2NxXWvxwXOhWZ+jehFrBux8P6oi/UafWpXVEALTsUV Byj4lW7/5rmJ99xDGXzeQF1S1MWw4q7clMKYGvlJl6yurbiHQpSqc859dDRsVhDw 00mfmhCu4aEIJl9MlVMWY4HLpmW7S1sl1Y+dFR9ioDLgChWUQzq//EihpWwtYJUD Sjnvfpa77OZ9HO52bdWH2Epi45YoLdSV3jSoY2OSw0cQmYZMPiPod2C+tctfeg6U 9Ky4MZ0ELXvzmrlYHE3p0QVu1IOQywCIzkjwDjHQuFsOam7KcpL1D2Nt/etnKN0D O+bVWoe0FEZ1ZDVnyjrX+bYcth7LH42LJrSIbBL+deAdO/6EIxrfTcibk6iYKJhq 0uProQ4J4DtcqBvhI+zw1O1lGViIZ+csmODioRGPvSjMJ2zXwkLJRKZQAqz8i+QJ QRWFdi0oEsQyCGI4bg0i7p+6VzeFfc2dh6z95HdbfOKDzwaLYjuZkuCJBPVAB0fQ ql6U6cyZccZARNAVSAhG6/hq8NpWJmMmwB93Vt2NgKNWfmriMgY= =GhvJ -----END PGP SIGNATURE----- --nextPart3954164.CNjgTPF8Pu--