Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3607363pxv; Mon, 5 Jul 2021 01:09:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDDJOLWfIbUGVaamSFlyBWOFlPsvkr6aUoMz3N++ZNKrBV/pi2x7azPCW0mkXa2+rGxbkF X-Received: by 2002:a17:906:c108:: with SMTP id do8mr12421486ejc.74.1625472542058; Mon, 05 Jul 2021 01:09:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625472542; cv=none; d=google.com; s=arc-20160816; b=Xewhb36T0I56O86I5f/piSOG+vCaAiwwQFMqvg2/bRuuDExGtoOAf0ZEzyfNWiOZeV ZptTCn0bYlfl/UidCYG0400aEQbXh/4H6WuMRDwABEkySZy0apTnaLTyG84+3PK6zkAj Ff4QQuHr2vCDpMnoURjaZaK4iJcncfV4bYL6DRZ0/jLZVFIahjytsEuWxJ4TOqnSe+4v 80YvrtEr31AahqGXtXqzJ8oC4W2EIu04Q7jGOz6rflgALogu+zorOL/pWahRUtDh71ne graByLxYd/FBKj94T3Geg/FtZV8Si/kRNlC9IGxvIGhefgrud+LhM7eraSXG3SpN2ryP gI8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:dmarc-filter:sender :dkim-signature; bh=RW8fyJsH303IPqDUiCLh0NYuRGV6pL/uvwf96HsVGEI=; b=qmxjHLV/AwNRhk+gFCFap8ZOeaa+wDLpBp2RfgN6GvYykdMaHx0maIPZfqbsq55xXD iEESrdCPytZVOjwPWVFbDNvHV8/QIHH/wZ5cL5/NphC7Y60nsVODN59ACooQ3/7D6NMc ZCQyCNLI/eMRsVufjfe+b/v1pgz36vmJS6Af+h4RBvlSa4RZnkavwuNmQC8dLPd57jIq R9Y+t+qOZ0GhG+UNXIHwHQBZn5B47vRcPV2LasB9I3hN4sfyx78UiHws3fyKp5KNdpUX xiC3EzG9gceICR3AHQSzRAR9Pjlj2YPsIi4sZwIkP2TFu8pE6Zz7FowEaCibWSwDuCel Pzgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=pXQSafwr; 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 i7si10254604eje.129.2021.07.05.01.08.31; Mon, 05 Jul 2021 01:09:02 -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=@mg.codeaurora.org header.s=smtp header.b=pXQSafwr; 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 S230073AbhGEIKz (ORCPT + 99 others); Mon, 5 Jul 2021 04:10:55 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:26186 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230032AbhGEIKy (ORCPT ); Mon, 5 Jul 2021 04:10:54 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1625472498; h=Content-Type: MIME-Version: Message-ID: Date: References: In-Reply-To: Subject: Cc: To: From: Sender; bh=RW8fyJsH303IPqDUiCLh0NYuRGV6pL/uvwf96HsVGEI=; b=pXQSafwrBpfQzVL3Ym8Y61FmMTGvaHClehS+QhnSgvEBMTM8CYvpQ7x/tPf7S5QhC0SscHlV Q2EEGRwYyMNl8sWDauE6P0BNHouoepLztUordTVUnLwGW5gb2XtPQJYJWtghxEzAJM155htM Sj0YDaZxCRdY9skMrdTVY0ypSDQ= X-Mailgun-Sending-Ip: 69.72.43.7 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-n04.prod.us-west-2.postgun.com with SMTP id 60e2bdecad0600eede24b250 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 05 Jul 2021 08:08:12 GMT Sender: kvalo=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id CA222C433D3; Mon, 5 Jul 2021 08:08:12 +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=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from tykki (tynnyri.adurom.net [51.15.11.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: kvalo) by smtp.codeaurora.org (Postfix) with ESMTPSA id 3C1DBC433D3; Mon, 5 Jul 2021 08:08:09 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 3C1DBC433D3 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=fail smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Oleksij Rempel Cc: Brian Norris , Ping-Ke Shih , linux-wireless , netdev@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH 04/24] rtw89: add debug files In-Reply-To: <20210702175740.5cdhmfp4ldiv6tn7@pengutronix.de> (Oleksij Rempel's message of "Fri, 2 Jul 2021 19:57:40 +0200") References: <20210618064625.14131-1-pkshih@realtek.com> <20210618064625.14131-5-pkshih@realtek.com> <20210702072308.GA4184@pengutronix.de> <20210702175740.5cdhmfp4ldiv6tn7@pengutronix.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Date: Mon, 05 Jul 2021 11:08:07 +0300 Message-ID: <87k0m5i3o8.fsf@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Oleksij Rempel writes: > On Fri, Jul 02, 2021 at 10:08:53AM -0700, Brian Norris wrote: >> On Fri, Jul 2, 2021 at 12:23 AM Oleksij Rempel wrote: >> > On Fri, Jun 18, 2021 at 02:46:05PM +0800, Ping-Ke Shih wrote: >> > > +#ifdef CONFIG_RTW89_DEBUGMSG >> > > +unsigned int rtw89_debug_mask; >> > > +EXPORT_SYMBOL(rtw89_debug_mask); >> > > +module_param_named(debug_mask, rtw89_debug_mask, uint, 0644); >> > > +MODULE_PARM_DESC(debug_mask, "Debugging mask"); >> > > +#endif >> > >> > >> > For dynamic debugging we usually use ethtool msglvl. >> > Please, convert all dev_err/warn/inf.... to netif_ counterparts >> >> Have you ever looked at a WiFi driver? > > Yes. You can parse the kernel log for my commits. > >> I haven't seen a single one that uses netif_*() for logging. >> On the other hand, almost every >> single one has a similar module parameter or debugfs knob for enabling >> different types of debug messages. >> >> As it stands, the NETIF_* categories don't really align at all with >> the kinds of message categories most WiFi drivers support. Do you >> propose adding a bunch of new options to the netif debug feature? > > Why not? It make no sense or it is just "it is tradition, we never do > it!" ? > > Even dynamic printk provide even more granularity. So module parameter looks > like stone age against all existing possibilities. I'm all for improving wireless driver debugging features, but let's please keep that as a separate thread from reviewing new drivers. I think there are 4-5 new drivers in the queue at the moment so to keep all this manageable let's have the review process as simple as possible, please. Using a module parameter for setting the debug mask is a standard feature in wireless drivers so it shouldn't block rtw89. If we want a generic debug framework for wireless drivers, an rfc patch for an existing upstream wireless driver is a good way to get that discussion forward. -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches