Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1816061ybt; Sat, 27 Jun 2020 22:13:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyASSpHfWAnf4YlPxvlOaqkBnat5FiJ/FM+P/Xkh6a2CFatXgv8/UBb/ghmylI/3SEBkuAD X-Received: by 2002:a17:906:4942:: with SMTP id f2mr9331701ejt.125.1593321205879; Sat, 27 Jun 2020 22:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593321205; cv=none; d=google.com; s=arc-20160816; b=RUc12+rjA8l6Fcnbqb7gw1OTNbIcxQCqfw+t9uEv8IsTW/6d17L3b82IBjoZwcgpM/ lqeHjCSgvDQz7w8BwvQV9a/+fwbcSn/4Ok0Gu6G6JZi5KL97tFd0gq+pmR4C0yD8d++V +gGNUeYl+0W0ZzzRZtztYMS0vipPmaJPWfSv+Hm/QnO8bTAXR+T2R3jdVSyW2NkhN3Y+ mCDD3WlOTaMaiS59SWwBVQQseosnAj4FgQYwXC/sU+citTMNgq6y8/wiuhorcpzxdtky 6wjVXMElRBhbqH1TZCkQpzT/1gmIxOm1hmyvZ6qc6ikYkT1mqEnbV7eRDaQ1xg0aAByk 7Wgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dmarc-filter:dkim-signature; bh=YTaaN3Hxz2vWl27vpHURFA7UvYiADqyHcDWxUUkAnok=; b=yfAG7iHW53UTUU32hZdP9nCmHzkSOVpjnWBh8+C39WQ2I30pi7U7P5hA0o/s1V7Pok GTGwsO8ThWD8d3zCi6M3fyj3M+Xr863gGENJs088NcWnmf/F0CjFLMY680105F/tm4S7 +MYsOx1bQwlZoPJGTlh/btGCHMYrXo+Vn8l4uiHCQF3IDYHHhNmgzP9jAPjJJ7T+QO18 gaJG54tRdHRwKBlDXbUaeGt+Og5j0WXBKLsO12hKJQkE2I19I7zt5bEMYF4rcC7CaIbs mjBRv+D/5tUQZCAprok+UxdekoFaGBLxtlEfffCGmVxIaGIc2ZUVOqJ9OY8KNrpGVIFy 6y7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=rzgJmwSX; 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 n27si5434357eje.543.2020.06.27.22.12.42; Sat, 27 Jun 2020 22:13:25 -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; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=rzgJmwSX; 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 S1725999AbgF1FM2 (ORCPT + 99 others); Sun, 28 Jun 2020 01:12:28 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:32691 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbgF1FM2 (ORCPT ); Sun, 28 Jun 2020 01:12:28 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1593321147; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-ID: Date: Subject: In-Reply-To: References: Cc: To: From: Sender; bh=YTaaN3Hxz2vWl27vpHURFA7UvYiADqyHcDWxUUkAnok=; b=rzgJmwSX86xGHshGYUYFt43RGcFBwNaV44i48qphYB4vOFIz4yPGLTJk7dZ8hGqWwu4VwAXs 29STzOyd78/xZ2Nk+OlqRCuFLZiB/Qi8O64t1yS0/sAcQ9m7jDZZF6OaWQ96DSJT4rRVuPkQ J35ZA0Af0+7uDAngzgewIcOLm8c= 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-n10.prod.us-west-2.postgun.com with SMTP id 5ef826b7e144dd51152e8031 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sun, 28 Jun 2020 05:12:23 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id C6B5FC433CB; Sun, 28 Jun 2020 05:12:22 +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=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from Pillair (unknown [183.83.71.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: pillair) by smtp.codeaurora.org (Postfix) with ESMTPSA id 97943C433C6; Sun, 28 Jun 2020 05:12:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 97943C433C6 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=none smtp.mailfrom=pillair@codeaurora.org From: "Rakesh Pillai" To: "'Ben Greear'" , Cc: , References: <1593238973-23237-1-git-send-email-pillair@codeaurora.org> <926301ed-e27f-0d8f-0177-6484bfffa40c@candelatech.com> In-Reply-To: <926301ed-e27f-0d8f-0177-6484bfffa40c@candelatech.com> Subject: RE: [PATCH] ath10k: Add history for tracking certain events Date: Sun, 28 Jun 2020 10:42:15 +0530 Message-ID: <000201d64d0a$b3d39d10$1b7ad730$@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJ0JDYcv05C8nhyAbHgeWn72AC7twKruW4sp5xugGA= Content-Language: en-us Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > -----Original Message----- > From: Ben Greear > Sent: Saturday, June 27, 2020 8:58 PM > To: Rakesh Pillai ; ath10k@lists.infradead.org > Cc: linux-wireless@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] ath10k: Add history for tracking certain events > > > > On 06/26/2020 11:22 PM, Rakesh Pillai wrote: > > For debugging many issues, a history of the > > below mentioned events can help get an idea > > of what exactly was going on just before any > > issue occurred in the system. These event > > history will be collected only when the host > > driver is run in debug mode (i.e. with the > > config ATH10K_DEBUG enabled). > > This should be disabled by default unless user specifically pokes some > debugfs > value to turn it on so that it does not impact performance. Hi Ben, This history is enabled only if the user compiles the kernel with ATH10K_DEBUG. Making it runtime, adds a lot of "if" conditions for this history record. Do you suggest to add support to enable/disable it runtime even in ATH10K_DEBUG ? > > Thanks, > Ben > > > > > Add history for tracking the below events > > - register read > > - register write > > - IRQ trigger > > - IRQ Enable > > - IRQ Disable > > - NAPI poll > > - CE service > > - WMI cmd > > - WMI event > > - WMI tx completion > > > > This will help in debugging any crash or any > > improper behaviour. > > > -- > Ben Greear > Candela Technologies Inc http://www.candelatech.com