Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3870653ybp; Sun, 13 Oct 2019 16:20:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxXPOZoU4pEoxLeHrgUabTVnr/wBTA/MyAh9QOSyddB44Mdvb9dlK6tJzwLomuZ++mNZ9ii X-Received: by 2002:a50:ec91:: with SMTP id e17mr24808901edr.169.1571008822881; Sun, 13 Oct 2019 16:20:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571008822; cv=none; d=google.com; s=arc-20160816; b=MODNQanjo0pyoXU5Lx9UWv2L4FrqeSUAbPoc9pd48mqug14oQGsppAXvkAiHL9VyYw vzRqbeNHdIaaEIskMs87dpdJ0Bk0EVB6JP5TBfvpeNgI3oUegBnAiJSFmKA/sgin8E9T Pb8WL9WmSPJWSpKkAO13/Z8hKMDzYeYYZIMn0tXTnLho3pKuATESBoi0oKo2luNOaPvt Mdoea/tdmihEUHUE2k7FyZMMdMfneKI7XThWXDUkUELnOmQQRwFcyvO3HRG3+yu3h8ys NaW2fsrLcY9G/Fml8erjCSIMwspcQxmKmAasPNTTG6MLkj5MBiSagvLOqXIYHMTUCVTp krcA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject:dkim-signature; bh=sAvABYYWkOqEUXstZ/Py+FTGTOMBRBR1llb5mPcMIpg=; b=gZcLCpVC4AwAnXV2DaZJrMIlR6tdJ8VVoyV3whwxyyic2JsX7i9LUlfuiNsMMwstjv cB/TQnRXOnqOszmrkRGKOr4ixlaxKMrDbSSDldrF6UXQVVu2iiLVcEjks0hsdJdmEdd0 4kzH96bYwPN+dUOkThiBWz5YDzxOylauc/sXZvXWySxaYVx9D2DIULuhjmtQ43ZW137e BnLrfd8CgiTYqFZ0MWM1fEMxq9Kno0fg+TUJ/0+fTyJsoI3NOqDyOoZ5cXHhbNhJvqFd 9yzXm9u+R6kmbMO2sxq73GBiiBfdnQZc2mM57mXNWMdzoqOzkeCCxOkiZXpxWAKx/jCe Basg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@newmedia-net.de header.s=mikd header.b=F92kOt8J; 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=newmedia-net.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 64si8590462eda.384.2019.10.13.16.19.43; Sun, 13 Oct 2019 16:20:22 -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=@newmedia-net.de header.s=mikd header.b=F92kOt8J; 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=newmedia-net.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729654AbfJMWfU (ORCPT + 99 others); Sun, 13 Oct 2019 18:35:20 -0400 Received: from webmail.newmedia-net.de ([185.84.6.166]:55320 "EHLO webmail.newmedia-net.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728946AbfJMWfU (ORCPT ); Sun, 13 Oct 2019 18:35:20 -0400 X-Greylist: delayed 1193 seconds by postgrey-1.27 at vger.kernel.org; Sun, 13 Oct 2019 18:35:19 EDT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=newmedia-net.de; s=mikd; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=sAvABYYWkOqEUXstZ/Py+FTGTOMBRBR1llb5mPcMIpg=; b=F92kOt8JrdrLwCex75w6QRWQUMv3/ZYlVPv+sRmtXoMn/IrdYgWd1d25oZL0CsqjTe2DTMr35CYVZgNzROJgBqeUXWBlF6oKNbsz7jNJb1hPwy5zoERsY4Rharx37MImavP+3YRDUlO63AotEpJVcsRJbILdcmj7zMhk+V+qZVc=; Subject: Re: [RFC PATCH 0/2] ath10k: provide survey info as accumulated data To: Sven Eckelmann , ath10k@lists.infradead.org Cc: vnaralas@codeaurora.org, linux-wireless@vger.kernel.org, Sven Eckelmann References: <20190918124259.17804-1-sven@narfation.org> From: Sebastian Gottschall Message-ID: <9a9ec99b-9643-7288-eed5-b549a9fe1487@newmedia-net.de> Date: Mon, 14 Oct 2019 00:15:20 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.1.1 MIME-Version: 1.0 In-Reply-To: <20190918124259.17804-1-sven@narfation.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Received: from [2003:c9:3f0e:8900:8835:685e:aa39:2c16] by webmail.newmedia-net.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.72) (envelope-from ) id 1iJm8r-0004NH-Hr; Mon, 14 Oct 2019 00:15:09 +0200 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org i checked your patch on 10.4 based chipsets with 9984. the values are now looking bogus and wrong at all. busy and active time time in ms does increase in hours each second the problem seem to be that your patch is 10.2.4 only related. ath_clean_survey does not trigger on 10.4 so the values double itself each time the event raises since you add the full values and not just a delta on top Sebastian Am 18.09.2019 um 14:42 schrieb Sven Eckelmann: > From: Sven Eckelmann > > Hi, > > it was observed that ath9k provides accumulated survey counters but ath10k > neither provides deltas nor accumulated counters. Instead it returns > some value which was returned at some point from the firmware. > > But as it turns out, this data is not reliable. To make it more useful, > ath10k has to: > > * retrieve counters rather frequently for hardware which is known to use > firmware versions with low number counter bits (for only 14-30s) > * clean up received counter values > * accumulate counters from firmware > > A comparison of the resulting output with these fixes can be seen under > https://stats.freifunk-vogtland.net/d/ffv_node/nodeinfo?orgId=1&var-node=ac86749f4d60&fullscreen&panelId=5&from=1568782046974&to=1568807068706 > > The left side of the graph shows the output before the patches were applied > and the right side the output with the patches applied. Just as reference, an > ath9k device in the same building is > https://stats.freifunk-vogtland.net/d/ffv_node/nodeinfo?orgId=1&var-node=ac86740037e0&fullscreen&panelId=5&from=1568782046974&to=1568807068706 > > Kind regards, > Sven > > Sven Eckelmann (2): > ath10k: report survey info as accumulated values > ath10k: regularly fetch survey counters > > drivers/net/wireless/ath/ath10k/core.c | 8 ++++ > drivers/net/wireless/ath/ath10k/core.h | 3 ++ > drivers/net/wireless/ath/ath10k/hw.c | 13 +++-- > drivers/net/wireless/ath/ath10k/mac.c | 52 ++++++++++++++++++++ > drivers/net/wireless/ath/ath10k/mac.h | 3 ++ > drivers/net/wireless/ath/ath10k/wmi.c | 66 ++++++++++++++++++++++---- > 6 files changed, 130 insertions(+), 15 deletions(-) >