Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2177388ybt; Sun, 28 Jun 2020 10:27:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLZGWbYTlvNUpl8Q9alVXlpw27q7rSkDqKlpsyAHnCwRl/GaXJuFG5+40AO5cR2vrtCSyU X-Received: by 2002:aa7:da89:: with SMTP id q9mr13871911eds.273.1593365262843; Sun, 28 Jun 2020 10:27:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593365262; cv=none; d=google.com; s=arc-20160816; b=d6vAntWqfRGUWigefB6Vsf+TbFDYL+UKXChkrq7dIimNDUl1BHEqLJbTvh8DflXldr 2z/0vG5i0Z9asIYikDHN98LKSBLkwHP73PTP4AhHafQ26Obyu9gubhRApYfWFUW6KbnM lrHut290Q7guqUXnjXhb9Gh97hZ+pZTOEZRFyzxsbuB7WDnjAW1TWqMBcQ+zADPBNTfd xvOCQyLNdo/JiXSDDH17IinCcP4JUWL+37yCAaZSMoS4DcntKjsQlVmTpqSI3ylU/8lu zlsqfw0YqvLo4v5+6aT8MbPQw2AshTt4fiWwRMQqZFG/cnz50liU5wREArE1VFrdBLju +QaQ== 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:cc:references:to :subject:dkim-signature:dkim-filter; bh=qL8Y4upHGrQ5ZJT8/+AxMGiW3hu24TsaN81d00b6DrI=; b=kEbN2BYHTjBwKj6DXHk/q0QJege+VAwSFlr9Jz6YSxWrKK2ihRhb3SHtA3LJdOuc0z iKGbLa1Mr2xVM6hySsBL0KhgrQW+YrboQeVLNI1ub//kz9SyWwNbJ2WwQi/bulN77yjC ndxP76Fk+TYLgJixJViYau9l2/H+OLevWA9kyuPyLpWCvX1TIAEI+uTKDLEvDS9mxg2l ygD5PWlwnwrhKdkwZkr3kVM+DjXqZpRGvyFRTobPajEnE00+/DlNSelwH0/Ww7P6qUtG aRHd7uOiqYqQgek40Niu/P/m7IMqLRfh7NKd8bUwaCgmpcTMrbcNOFskId+BW926GXXb 6cqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=g5yBfQ3o; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k17si5968278edk.3.2020.06.28.10.27.07; Sun, 28 Jun 2020 10:27:42 -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=pass header.i=@candelatech.com header.s=default header.b=g5yBfQ3o; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726104AbgF1RZh (ORCPT + 99 others); Sun, 28 Jun 2020 13:25:37 -0400 Received: from mail2.candelatech.com ([208.74.158.173]:44860 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726059AbgF1RZg (ORCPT ); Sun, 28 Jun 2020 13:25:36 -0400 Received: from [192.168.254.4] (unknown [50.34.202.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id 490EC13C2B1; Sun, 28 Jun 2020 10:25:36 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 490EC13C2B1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1593365136; bh=RSXDKa6OlffLkH4jXYtrInoE8VFv1UeIibxEquQKUVA=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=g5yBfQ3ohwywTjkcsrBgigTKa6J72KYWtBjvZDS4YyP7bp8kbygZoAzHnCMfxz+cO llUWvfuV1dqO3UyY+6SjFtEpsdO3Hl2U7m7wigIRXPQ6jch1/sg1cuXab0u6MXuAVf hbGGVuNqEWlDTCBP0oFHUUnJ1xBofvFYkPAi2AVc= Subject: Re: [PATCH] ath10k: Add history for tracking certain events To: Rakesh Pillai , ath10k@lists.infradead.org References: <1593238973-23237-1-git-send-email-pillair@codeaurora.org> <926301ed-e27f-0d8f-0177-6484bfffa40c@candelatech.com> <000201d64d0a$b3d39d10$1b7ad730$@codeaurora.org> Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org From: Ben Greear Message-ID: <859a8ffb-6108-81f3-b379-4a0adfa064fe@candelatech.com> Date: Sun, 28 Jun 2020 10:25:35 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <000201d64d0a$b3d39d10$1b7ad730$@codeaurora.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 06/27/2020 10:12 PM, Rakesh Pillai wrote: > > >> -----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 ? Yes, because you are adding lots of locks/unlocks. That is way more expensive than an if statement. You can add an 'unlikely' to the if check as well, so compiler will optimize for this feature not being enabled. Thanks, Ben > >> >> 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 > -- Ben Greear Candela Technologies Inc http://www.candelatech.com