Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3647572pxv; Mon, 5 Jul 2021 02:23:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3SWU5THClVzlaThJqBfob9p7rzq2sBKPMrlq0s0n+iBkRM9e5LUqmaMjJE4ONvo0Lie1P X-Received: by 2002:a17:906:c14a:: with SMTP id dp10mr12765373ejc.426.1625477025853; Mon, 05 Jul 2021 02:23:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625477025; cv=none; d=google.com; s=arc-20160816; b=uFjRbfiOIDQVyeuESlpubS5PvULVVd8Imhw37qVIyLvzPZaJRJ0svnmMg0K7uT9dsz I1/HxX/IOZcjK7aaKt2nu7b9JMoFa18nffrflB2tAX2poxK8PUDv0lW7aCIbe+F4Pjq/ 2mIv5EPYsr+98jF1SNOi8gOicNGFCcNfeIHk8w/j8SSm4ewE7weAeeapTf7YQjq76li1 yy0kAKD/R01SyabyzYCzuznMybUCRcKlEIEOErL/+foD7+D3wpQ1PR2sWy5siFcdqxQX JMr2BS29EiY2DKsTS9BJrXP1MoREw+RdTkIvF5yU2l18nd6wwKqHeaGQWW4PExcTezlP 9gUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=GQs50xZxKzZdRRUdczUvPHRPkTpDYAIPsJ4eT0s2L8Q=; b=ivpTTspwRjjm/A5VTckUTUVwn8yFCPt/xY2grvxB+3evsVSf+c0PXBdMyczvGx1LDv bhG0fF6xamBUjccAM42NxgxsbFwE1NEv46G2cna+fdRU8YFDxq0evzp70ilJKkehKHtb GdrD56WWWcIBVU+jlLpfcD8+CMQHKsoCpMb71T7lSC4TKm05WqSHcs2KzuPOyPF2kkaQ CHIZ/DHwbwQaqkzoZqi4a/6VBbl6emcd+Zfwt8yUFFFzdSVCEDaXlU+L6YRBqM7lVwe2 DuXudgOvkAaYQjmXCwfxtg4W8Vq0awOMj94OWS8WjwO+uV8l83kAAyyH/fdyfu2Z4FmY 639g== ARC-Authentication-Results: i=1; mx.google.com; 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 hg22si11627725ejc.400.2021.07.05.02.23.18; Mon, 05 Jul 2021 02:23:45 -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; 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 S230327AbhGEJZq (ORCPT + 99 others); Mon, 5 Jul 2021 05:25:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230149AbhGEJZp (ORCPT ); Mon, 5 Jul 2021 05:25:45 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BD1CC061574 for ; Mon, 5 Jul 2021 02:23:09 -0700 (PDT) Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m0Koi-0004St-Ld; Mon, 05 Jul 2021 11:23:04 +0200 Received: from ore by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1m0Koh-0004hF-Ib; Mon, 05 Jul 2021 11:23:03 +0200 Date: Mon, 5 Jul 2021 11:23:03 +0200 From: Oleksij Rempel To: Kalle Valo Cc: Brian Norris , Ping-Ke Shih , linux-wireless , netdev@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH 04/24] rtw89: add debug files Message-ID: <20210705092303.v37xayrsqt2ilciz@pengutronix.de> References: <20210618064625.14131-1-pkshih@realtek.com> <20210618064625.14131-5-pkshih@realtek.com> <20210702072308.GA4184@pengutronix.de> <20210702175740.5cdhmfp4ldiv6tn7@pengutronix.de> <87k0m5i3o8.fsf@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87k0m5i3o8.fsf@codeaurora.org> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 11:18:17 up 214 days, 23:24, 48 users, load average: 0.08, 0.10, 0.08 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-wireless@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, Jul 05, 2021 at 11:08:07AM +0300, Kalle Valo wrote: > 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. Ok, there is enough work to do. > 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. Ok, sounds good. Regards, Oleksij -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |