Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp777366ybg; Wed, 10 Jun 2020 13:28:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxA1wpZKKjioKFuMxP7Tw79ZY3DxyvlsIqn927z8vA+NDkkE5n2+lSWHswwQV7VoLyRwlX X-Received: by 2002:a17:906:840d:: with SMTP id n13mr5079846ejx.49.1591820905100; Wed, 10 Jun 2020 13:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591820905; cv=none; d=google.com; s=arc-20160816; b=MUTq40JlxNf2B1IJ4i7TYSUyPThtW/cxctzpXAOcUAKwrup4+qIw8MKl9EbKw/WUv/ 1tlX9p+oYyFYtwC7s1Tv++qoc29bLeN3Xr9FLbs/sL09iv+Y+J91KESBPAaHjjl3rSvc r3Q2vNtAUHbVo5Ao2epKWP5iAggk6FXu5z54R38PueD12jf7ooVbVSalo0YafUojHpn5 wp2+hX/YwKumuNnFgBJ3U8IAQ/pPQUCrA6Q/6L/FIRLmRxCFfEpkCykbqKknUGBXdCoI gwV85YUE1/drd7DsxKRAfPucCCwgd9hh1pettgPN8nIxmQtBr3O2m1Fa70d1SQK5nJpr Rgpw== 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:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=qGrubjfiuh6PXz8w31eN8n2MtftFf0muJ1OAyo5eBtc=; b=jZ0Le/OW1XHt01CCbGAT5C522JxHxuGcGz9JjI2Ue9VR6QLWVIncBWnIQWW5qmxbZo ExGnXJXWQ1o8pWf3sEA7yrpuCKPixB5yOL7LfoTMWhJ9b8O9AVujlQP+8rZ7g6uTU5HL PGtgg9nYJXPZoemEfNsdn0n4Q8k/sliVaNssv1lneQpItAeIjZHj1VHX4Icw+Vg3wi3N a6lArL3r30VCLtIGVgyceiqnGDiwxkkqHBlDGVHTISiAttM9RRa3EOZDkhiK2MDn23sU FQa2KszjWWYS8ekS7xLJmjoVe+9UoEyGOUYHbCWIuSPDoQvtyBzbE6OK/nT441Q2ZqkG IjZA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 n19si351827edv.82.2020.06.10.13.28.02; Wed, 10 Jun 2020 13:28:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728344AbgFJUYB (ORCPT + 99 others); Wed, 10 Jun 2020 16:24:01 -0400 Received: from smtprelay0047.hostedemail.com ([216.40.44.47]:59744 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726277AbgFJUYA (ORCPT ); Wed, 10 Jun 2020 16:24:00 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay04.hostedemail.com (Postfix) with ESMTP id 3B0161828F22B; Wed, 10 Jun 2020 20:23:59 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2393:2559:2562:2693:2828:3138:3139:3140:3141:3142:3352:3622:3865:3866:3867:3868:3870:3872:3874:4250:4321:5007:6119:6691:7903:10004:10400:11026:11232:11473:11658:11914:12043:12296:12297:12740:12760:12895:13069:13311:13357:13439:14659:14721:21080:21433:21611:21627:21740:21939:21990:30012:30045:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:1,LUA_SUMMARY:none X-HE-Tag: way23_5c0de7b26dce X-Filterd-Recvd-Size: 2982 Received: from XPS-9350.home (unknown [47.151.136.130]) (Authenticated sender: joe@perches.com) by omf05.hostedemail.com (Postfix) with ESMTPA; Wed, 10 Jun 2020 20:23:57 +0000 (UTC) Message-ID: <2fab7f999a6b5e5354b23d06aea31c5018b9ce18.camel@perches.com> Subject: Re: [PATCH v3 6/7] venus: Make debug infrastructure more flexible From: Joe Perches To: Greg Kroah-Hartman , Stanimir Varbanov Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-btrfs@vger.kernel.org, linux-acpi@vger.kernel.org, netdev@vger.kernel.org, Jason Baron Date: Wed, 10 Jun 2020 13:23:56 -0700 In-Reply-To: <31e1aa72b41f9ff19094476033511442bb6ccda0.camel@perches.com> References: <20200609104604.1594-1-stanimir.varbanov@linaro.org> <20200609104604.1594-7-stanimir.varbanov@linaro.org> <20200609111414.GC780233@kroah.com> <20200610133717.GB1906670@kroah.com> <31e1aa72b41f9ff19094476033511442bb6ccda0.camel@perches.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.2-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-06-10 at 12:49 -0700, Joe Perches wrote: > On Wed, 2020-06-10 at 15:37 +0200, Greg Kroah-Hartman wrote: > > Please work with the infrastructure we have, we have spent a lot of time > > and effort to make it uniform to make it easier for users and > > developers. > > Not quite. > > This lack of debug grouping by type has been a > _long_ standing issue with drivers. > > > Don't regress and try to make driver-specific ways of doing > > things, that way lies madness... > > It's not driver specific, it allows driver developers to > better isolate various debug states instead of keeping > lists of specific debug messages and enabling them > individually. For instance, look at the homebrew content in drivers/gpu/drm/drm_print.c that does _not_ use dynamic_debug. MODULE_PARM_DESC(debug, "Enable debug output, where each bit enables a debug category.\n" "\t\tBit 0 (0x01) will enable CORE messages (drm core code)\n" "\t\tBit 1 (0x02) will enable DRIVER messages (drm controller code)\n" "\t\tBit 2 (0x04) will enable KMS messages (modesetting code)\n" "\t\tBit 3 (0x08) will enable PRIME messages (prime code)\n" "\t\tBit 4 (0x10) will enable ATOMIC messages (atomic code)\n" "\t\tBit 5 (0x20) will enable VBL messages (vblank code)\n" "\t\tBit 7 (0x80) will enable LEASE messages (leasing code)\n" "\t\tBit 8 (0x100) will enable DP messages (displayport code)"); module_param_named(debug, __drm_debug, int, 0600); void drm_dev_dbg(const struct device *dev, enum drm_debug_category category, const char *format, ...) { struct va_format vaf; va_list args; if (!drm_debug_enabled(category)) return;