Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1461553pxb; Wed, 2 Feb 2022 05:36:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPuS3ObUSb5iVjQiAJ0SGKJimQxifTqMEeHl9aYVVg3W+FIMnVGyTVrGY9B257LIwh69O4 X-Received: by 2002:a17:902:c951:: with SMTP id i17mr7188355pla.26.1643808982511; Wed, 02 Feb 2022 05:36:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643808982; cv=none; d=google.com; s=arc-20160816; b=tFC2yd+g8rosQc4AyuxpMX4KBU4XOL0rm/1oJpwJVJuiotR0EKiQVNjUmytyGbx7CM 5r4LXBjwnPswH7gBgNb/k6WMy32dwRGsLMAO4GMMkyXrRJ9XEhtBKSD3sRnQ/lrFKWPS PMcJgP1yammpjT0c0unPhJyVbv0wLaqNa3Syhd+Dr+67idvcge8DB47mpxSAiWOs7vEB xqbXB0wKE3ymI+S/a+2sLJhLSgu/QBwj/bU0wPWCqC5BueI1dPiO6S0g43tuzRvE9HQy WAQxZX97MFyXeHJoySPlvXKDFAgZBfkN0/gLJnXG2ATiSOoRXH/6HaOj1AobZx7mSzCy 9wuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:message-id:user-agent:cc:to:references :in-reply-to:from:subject:content-transfer-encoding:mime-version :dkim-signature; bh=6nMm4MBHwQQwzvFzugeqMKdLqMQu/sgEr+9TVmOJZE4=; b=yBW5nKhFRBl9YbpiC+ii1jpe9jQ6ZlRyXcVx1CfruzDdEke+HyTAQXQi2Gtd4qbZWa loGPKNTwrdvB5KmK1Y2kfBpZ1efpRsaFAUD0jJzPilQiU8j36mgh291JIimzGRuHG7NR ZOMAfSDgkFuiyHHtKY/mG0ZypDghC28whre9z3JV8BtY3HQDIgX8EIMZ7+WW4hH4wNFY 9a0VQAW4aDV3eMzaKuxE2dPZvsKRrwMT/uebq5B5i9Jltu/0Dd8iHeVZk7w8Iapf9ZQT 8LCR8lxvOA/GyIpZ7FPsmtZ/6JSjEZ0nm2e6DIJJOsEgYTJ1pSkzkkUPCLoQW6mZffRl S7Bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bsWh8gGu; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fz3si4916635pjb.46.2022.02.02.05.36.13; Wed, 02 Feb 2022 05:36:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bsWh8gGu; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237021AbiBAK4b (ORCPT + 65 others); Tue, 1 Feb 2022 05:56:31 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:46984 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237023AbiBAK4a (ORCPT ); Tue, 1 Feb 2022 05:56:30 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 604B8B82D4C for ; Tue, 1 Feb 2022 10:56:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 204F6C340EB; Tue, 1 Feb 2022 10:56:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643712988; bh=SpC38fS8iFbLq0u6UuKQwO4knvRRZ3wf4OOgc0c9GdA=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=bsWh8gGu1VOy5fdcgyyjMVKwQpOhwzjGPFAC0fH6C7oho5EKzP4+cLdZMjxpNPcc6 TtxMBuGWDVIzBJuvgP4Hfryeoo/ptXSdTgAHhWtOc3EUsl2v/WK5B+COr5TH30Ap5z g5ohi4ni46ZQ5suMM9kRb2IJ4NNoAl4B1ZsRs24LWvw/0UFv6Qdv0U6ZHT50+qY82f ywK0IOp3C/EGX+B3TUn3wo77shBs1ABqvQrEtUfnO7HSD2r68wJuqWVrXJK5A7CWlo WWCMSLFx36FhPOjduG0ViUsWZ0Ut1ByafixB78a+KciROCoAGbPgEOkm+ZZXmVXLJd OtZAKrneLpEOg== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PATCHv2] ath11k: Add debugfs interface to configure firmware debug log level From: Kalle Valo In-Reply-To: <1642405103-32302-1-git-send-email-quic_seevalam@quicinc.com> References: <1642405103-32302-1-git-send-email-quic_seevalam@quicinc.com> To: Seevalamuthu Mariappan Cc: , , Seevalamuthu Mariappan User-Agent: pwcli/0.1.0-git (https://github.com/kvalo/pwcli/) Python/3.7.3 Message-ID: <164371298346.12561.4258328175713727016.kvalo@kernel.org> Date: Tue, 1 Feb 2022 10:56:26 +0000 (UTC) Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Seevalamuthu Mariappan wrote: > Add debugfs interface "fw_dbglog_config" to configure firmware log level. > Configuration is done via WMI command WMI_DBGLOG_CFG_CMDID. > > Command to configure, > echo " " > > /sys/kernel/debug/ath11k//macX/fw_dbglog_config > > where dbglog_param can be, > 1) WMI_DEBUG_LOG_PARAM_LOG_LEVEL - configure log level for a given module > here, = <0xaaaa00bb>, 'aaaa' - module id and 'bb' - loglevel > 2) WMI_DEBUG_LOG_PARAM_VDEV_ENABLE - enable debug log for a given vdev > here, = vdev_id > 3) WMI_DEBUG_LOG_PARAM_VDEV_DISABLE - disable debug log for a given vdev > except ERROR logs > here, = vdev_id > 4) WMI_DEBUG_LOG_PARAM_VDEV_ENABLE_BITMAP - set vdev enable bitmap > here, = vdev_enable_bitmap > 5) WMI_DEBUG_LOG_PARAM_MOD_ENABLE_BITMAP - set a given log level to all the > modules specified in the module bitmap. Command to configure for this log param, > > $ echo "5 " > > /sys/kernel/debug/ath11k//macX/fw_dbglog_config > here, > = <0xaaaaaaaa000000bb>, 'aaaaaaaa' - module bitmap and > 'bb' - loglevel > = index of module bitmap. Max module id is 512. > So, module_id_index is 0-15. > = to indicate if more configuration to follow. > > 6) WMI_DEBUG_LOG_PARAM_WOW_MOD_ENABLE_BITMAP - Wow mode specific logging enable. > Command to configure for this log param, > > $ echo "6 " > > /sys/kernel/debug/ath11k//macX/fw_dbglog_config > here, > = <0xaaaaaaaa000000bb>, 'aaaaaaaa' - module bitmap and > 'bb' - loglevel > = index of module bitmap. Max module id is 512. > So, module_id_index is 0-15. > = to indicate if more configuration to follow. > > Sample command usage, > > To enable module WLAN_MODULE_WMI and log level ATH11K_FW_DBGLOG_VERBOSE, > echo "1 0x10001" > /sys/kernel/debug/ath11k//macX/fw_dbglog_config > > To enable module bit map from 32 to 63 and log level ATH11K_FW_DBGLOG_VERBOSE, > echo "5 0xffffffff00000001 1 1" > /sys/kernel/debug/ath11k//macX/fw_dbglog_config > > Tested-on: QCN9074 hw1.0 PCI WLAN.HK.2.4.0.1-01734-QCAHKSWPL_SILICONZ-1 > > Signed-off-by: Seevalamuthu Mariappan > Signed-off-by: Kalle Valo Patch applied to ath-next branch of ath.git, thanks. f295ad912910 ath11k: Add debugfs interface to configure firmware debug log level -- https://patchwork.kernel.org/project/linux-wireless/patch/1642405103-32302-1-git-send-email-quic_seevalam@quicinc.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches