Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp4183048ybp; Mon, 14 Oct 2019 00:08:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwa1PKeYloMpQbeb0RffYXYdtr2ejtCbppMO1giWImc5wVHYlezRY3c6bGYezqGItpCl+Sl X-Received: by 2002:a17:906:35c7:: with SMTP id p7mr27067363ejb.310.1571036934893; Mon, 14 Oct 2019 00:08:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571036934; cv=none; d=google.com; s=arc-20160816; b=Et/H/0JV70jH2aj8eincAr7yvfzfu/m2LPCR+EbQC09hYd7XfsG1+P5D8ehyBWrIiY ifmfu74c1cSqIwN+M6S66/yWS6TfOQGPuXygpJMW2SiLiQydSs9NRcU3vlFfqYM1xhgB oo2omClbW6cbaaFXuuj/xmVtCaAGhHS2i0EtPkXDXmdWWr9QZLijkJtP1ub9VYSTG+7r siQk0VWXgQDbXQ2y1PWQCDYjU+clQVPD/a0Zi0ZfUuc+1+rYNXeLXmXbi1UQMXXy5UDR E07OLdmCNjXSbHmhy/4fjS4alTkaNArTgPHjyXF0zKEkfsoEzJnv411WNlONBIukz6Z3 g44g== ARC-Message-Signature: i=1; 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=axC+jM4ADqxgdZJ1iBxOf/jTq46214TEMAimEqIXNSc=; b=zmf3TBL0ezM8vmM9JdO4xyJZ/yOxTXJYCVjKGbiRx9WCfye+86Y2QJeydJm25VW0np qWonlNBPVbBfuWqjkUlshyQdm9+6jHBi3Bnd7+6MTHMtahY7Q8PpFznXhtH+qXMFFZ/g cPPGyY+ZgrOpb91QdPggqWoIsp8WvNrykzR5CSPaH0fQEpZyERSmZ0Srvg+fuEoeeL9P MkvXQMg48Y8HJfSBn5NhnNHC8j1LlqYdnal9P3vQieDO2S0uJAZ6/hBzB9mSrF4u6etV 1T/daVTHHqU5D9W/c3fa4TVhP/vU2UG/wG4ykorRFeex1mz/fel9/WIR7AYNFT7VnN8y Tyzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@narfation.org header.s=20121 header.b=MDel8nDR; 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 l21si12121344edc.112.2019.10.14.00.08.19; Mon, 14 Oct 2019 00:08:54 -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=MDel8nDR; 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 S1730153AbfJNHHr (ORCPT + 99 others); Mon, 14 Oct 2019 03:07:47 -0400 Received: from dvalin.narfation.org ([213.160.73.56]:48692 "EHLO dvalin.narfation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726500AbfJNHHr (ORCPT ); Mon, 14 Oct 2019 03:07:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=narfation.org; s=20121; t=1571036865; 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=axC+jM4ADqxgdZJ1iBxOf/jTq46214TEMAimEqIXNSc=; b=MDel8nDR21+wfafqAJXW1f0RGPFbIWDMQ/92nyka1xYDL7yF20tVInjdlxGyGzJnLvr4+L aqaN6zA+zuopcXZ5iQ93FyKr3xdcf1aDpMgT1xYcWEWgXUH7X7Z06mHVj7nmvk4eMQWvue 5ZshFriTeYLmL9+GxkV0naLBUPTbr7I= From: Sven Eckelmann To: Sebastian Gottschall Cc: ath10k@lists.infradead.org, vnaralas@codeaurora.org, linux-wireless@vger.kernel.org Subject: Re: [RFC PATCH 0/2] ath10k: provide survey info as accumulated data Date: Mon, 14 Oct 2019 09:07:42 +0200 Message-ID: <1614044.H5m0Cyd3Ly@bentobox> In-Reply-To: <9a9ec99b-9643-7288-eed5-b549a9fe1487@newmedia-net.de> References: <20190918124259.17804-1-sven@narfation.org> <9a9ec99b-9643-7288-eed5-b549a9fe1487@newmedia-net.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3096302.iHDqCeegG6"; micalg="pgp-sha512"; protocol="application/pgp-signature" Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --nextPart3096302.iHDqCeegG6 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Monday, 14 October 2019 00:15:20 CEST Sebastian Gottschall wrote: > 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 Thanks for the feedback. So we have now a firmware 10.2.4 which is counting busy + active up and has wraparound problems. And then we have a 10.4 firmware (on QCA9888 and QCA4019) which is clearing everything as expected with WMI_BSS_SURVEY_REQ_TYPE_READ_CLEAR and then we have some 10.4 firmware (one QCA9984) which behaves more like ath 10.2.4 firmware but is marked as ATH10K_HW_CC_WRAP_SHIFTED_EACH like the QCA4019. So I have no idea how to fix this when QCA4019 and QCA9984 are currently marked the same but behave differently. Does somebody have a overview how the different HW versions should behave or is there some special bit in the data reported by the firmware which can be used to evaluate the expected behavior? Kind regards, Sven --nextPart3096302.iHDqCeegG6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEF10rh2Elc9zjMuACXYcKB8Eme0YFAl2kHr4ACgkQXYcKB8Em e0Y0gA/+J3vh6vqdz7b6HrkGIgGPto8oO94eyZVurrnv2bQg6wZtGaBZsiw0c0Fg +kl6b+xDAOwy2WzfEEqZUAY1Wkbdub7MHG41dLJ2sJ8UvARksGNuPx6qT16yseHY ewaTaIdBb6cIQmb/HewibxC8sIeLAz2s0Qj4UPxqlnmgRiEK39VHZ3tyGD1uptcH Br0SkxDg4nTvIKqvNVHRIq8iduM+InK0mMl3WXV+/Q0ax93CR3wfStHE0G2hP9ep fO1ZWdgPtw4Do9RRh9j+0K6eEmyA/EhDy6kTYptonIRcz9+yRRS8OhNtg+8xrwIk 0nPhlBKpvZKcSDhISyJfakbktXVFuEYaPgJXilBK7AjVPIUxS+9VVCR1v1AxA/Ep CcDn/akUBbFf4s6/HD2kiQUEghfxrPp4lt0qqBb0Mbe4eDjVlAtbQFQll1RyOf9F Vf2K/0I/bdIG/TCAu7qDLJqypUdjOSUAYxBe2tkuewkLji+xFg61Z9J8Pdb/gFUZ ba/tacoXY1gRF+56yaj07WlJg1GcKtMWNmP+531awg/sSm7v1M89qhXM5kqMAc9H 5dIt1m/rSiTDW9zjOUS1Rh0WtUnZYqG4MKZNxLqasat9rwW3it9PPCHykTlDmHay OtZakA1Y43+fELFCVsJgJnfPC6y3F0o6FFHL1pXCIvI4+JfEUIQ= =GLvq -----END PGP SIGNATURE----- --nextPart3096302.iHDqCeegG6--