Received: by 2002:a05:6520:1682:b0:147:d1a0:b502 with SMTP id ck2csp5596731lkb; Mon, 11 Oct 2021 09:39:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTglavdkgrkX0j9im4/Pv405x7/SiNaCbDDc9LRac1zM+ZMVk8Qw5FtmZ7YXEvv5sdZ11i X-Received: by 2002:a17:902:c104:b0:13f:24db:8658 with SMTP id 4-20020a170902c10400b0013f24db8658mr13079516pli.7.1633970356187; Mon, 11 Oct 2021 09:39:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633970356; cv=none; d=google.com; s=arc-20160816; b=roUvJN06JLhlZ4c14ThnL3lRKUFIkG3bhiHfPI5DkvQn+QMB4Z/zv5sfNOe1mPKgvr V5rs7UPI73px0dgOz482jUa+mLZ95cAPa/CrsrPJZlL8j/71lowR1anjQ6h3aQbvkndh Gll2JCIgBtuUPEVpFKsA5yTyLtEhyCtfbmLlU8M9gqnGYDXinv49Rr27I2xQqigm1QHc DGBMwvhIU547XGcgRX4UkCUczp0uz/tEKpqMqMOs0YIAcvfcRNL9fHVUGzOybCx4A1XG etrdFcZUTwK9ix6/JiuVUh+QLXIDVgz0dbzSXBz/aGVV/TNNX/Q5U3eqWTNuBgNLGMaw slKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject:dkim-signature:dkim-filter; bh=ptMpJgVmtP09nCNX8BILUYkBXSVQxLGX1JU9AActbkM=; b=qldTkcCkY4gU8t0SgTB/t27b9JNkQWFDM828iwIavAROFHon3/TbOTG1pnU+rBWmcH +gtEY7aaRfO5PLTrEA6yyR+oGbXiGetFK9HnNYTcg8U9AmbohCiBepCubX1MiWN5NF0W XPtRyy6OygH8WkHamJynDOYaX5JUEcg5Pcb6WNK79pJxEmmI0N8mVgeUiLczfVU1f2kG a2KdOoHiPGVsdTfxf+8PukUOYYsZS7tCNlkSSwRLWiTY7GsjJzIW01YA8Ng9715d/i1J /cRq+Bkqcsz5jKMZVwuG2RZWagbMQmbvSDKh5HnYrjptPRqhdTE3awzbul24wSw4Sz3d Ri3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=ZkpYyjzz; 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 k10si11298658plt.217.2021.10.11.09.39.10; Mon, 11 Oct 2021 09:39:16 -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=ZkpYyjzz; 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 S238565AbhJKOYQ (ORCPT + 45 others); Mon, 11 Oct 2021 10:24:16 -0400 Received: from dispatch1-us1.ppe-hosted.com ([67.231.154.164]:58468 "EHLO dispatch1-us1.ppe-hosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238126AbhJKOXA (ORCPT ); Mon, 11 Oct 2021 10:23:00 -0400 X-Greylist: delayed 494 seconds by postgrey-1.27 at vger.kernel.org; Mon, 11 Oct 2021 10:23:00 EDT Received: from dispatch1-us1.ppe-hosted.com (localhost.localdomain [127.0.0.1]) by dispatch1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id 1D1B0226157 for ; Mon, 11 Oct 2021 14:12:48 +0000 (UTC) X-Virus-Scanned: Proofpoint Essentials engine Received: from mx1-us1.ppe-hosted.com (unknown [10.110.51.177]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTPS id 26EF41A006C; Mon, 11 Oct 2021 14:12:44 +0000 (UTC) Received: from mail3.candelatech.com (mail2.candelatech.com [208.74.158.173]) by mx1-us1.ppe-hosted.com (PPE Hosted ESMTP Server) with ESMTP id DAA40680017; Mon, 11 Oct 2021 14:12:43 +0000 (UTC) Received: from [192.168.1.115] (unknown [206.214.224.211]) (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 27EE713C2B0; Mon, 11 Oct 2021 07:12:26 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 27EE713C2B0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1633961546; bh=GoJnhjzl+/RzwgltKNAs/NgVXCHQ3prpK60tN6Zsq2I=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=ZkpYyjzzzKFlxDTz+k28G6xfpND3BJTwn9AZVVfdJFxGaNbhARhrgzeL2II4hUIB9 WmweXJkbOKLFk0fkLfZbDBP4JDK9Uzau/LoePFVr18qpfCeZoEtH4sXh+4m8kwinBI 1sBMmnvdjbhLWc/nr2XbehVqsVAAuy3ivBm9xuS4= Subject: Re: [PATCH v5 05/11] mt76: mt7915: debugfs hook to enable TXS for NO_SKB pkt-ids To: Kalle Valo Cc: linux-wireless@vger.kernel.org References: <20210804134505.3208-1-greearb@candelatech.com> <20210804134505.3208-5-greearb@candelatech.com> <87mtpda079.fsf@tynnyri.adurom.net> <093b94ea-b6db-aca8-26c4-6981e57e8ff4@candelatech.com> <87ily352s4.fsf@codeaurora.org> From: Ben Greear Organization: Candela Technologies Message-ID: <0894595c-cea8-6ced-2082-9c7abc9f88d3@candelatech.com> Date: Mon, 11 Oct 2021 07:12:25 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <87ily352s4.fsf@codeaurora.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-MW Content-Transfer-Encoding: 7bit X-MDID: 1633961564-3JT5r9KMCoxz Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 10/11/21 2:28 AM, Kalle Valo wrote: > Ben Greear writes: > >> On 8/19/21 9:06 AM, Kalle Valo wrote: >>> greearb@candelatech.com writes: >>> >>>> From: Ben Greear >>>> >>>> This lets user turn on/off this feature. Enabling gives better >>>> tx-rate related stats, but will cause extra driver and (maybe) >>>> firmware work. Not sure if it actually affects performance or >>>> not. >>>> >>>> Signed-off-by: Ben Greear >>> >>> This is grey area, debugfs is not really meant to be used for users >>> enabling driver features. >>> >> >> What method do you suggest? Surely not trying to drive something down through >> netlink for something this chipset specific? > > I think a module parameter would be a good choise for enabling this kind > of feature. > > Of course the downside of a module parater is that when it's not > possible to configure this per device, only per driver. Like discussed > many times in the past, we would really need some kind more advanced > module parameters which can be per device. Enabling/disabling via debugfs is way more useful than a module parameter. It is per-device and also changeable at run-time. Maybe you want to enable detailed stats for a bit of time for some reason, and then go back to lower overhead approach. You are asking for a worse technical solution than debugfs implementation. For the per-device module parameters, I implemented something similar for ath10k using a 'fwcfg' file that is loaded with device options sort of like a board file. That worked well enough for that sort of thing. Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com