Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1069099ybg; Wed, 10 Jun 2020 23:29:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrCEg0b1eb4RZ8YVXxkJlm4hSp0AXiUWrdLXiwFHxY3YQK4O//eVswbXRbZjcLufeRq/PE X-Received: by 2002:a17:907:72ca:: with SMTP id du10mr6867724ejc.78.1591856946941; Wed, 10 Jun 2020 23:29:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591856946; cv=none; d=google.com; s=arc-20160816; b=b/Dz1xjhYa82JkcwA6YpORvYm9qphGE6WRGal0S0kSvpNW1xFn1UYwlW65GJbEMLBS 1xlwomMSoWTPH0dbCVQkCNUP1D/AyW3Ktl6hKyJHqmpZlunnrbnK1B3/5XLSX74anG4d 1GHAW9Yf9UEDpQm4k955zyFdVaXrT5Mr+2fNTlYIhkyE8X5m11sbLCez5XRQ7/G/TjnT VsoP0hRQf6AYyau1vUsicDBsZu0lLOXtzcCmEGCl5AjkfiUUANVatYDZLRSFE6H/2/r4 FL/hFFz8WRRP4rxP/FPF1YBKJAinHgGYK4/99jOQ9EwTUZClMw4/q7X+u+dhcLQ0k95L 57MQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=IBbsBR4jAolivjq/fDd9WqZyG1TfkPXVU2L4cs9GVfw=; b=EklzE6VoU6iWKMi06qCDtLuYW7T86HRvVDA7UeFrCZjNOkQko+IZhfPxEIPH2HUU30 fL1GClsgGLfTsDn3w8YxgZPlTPGFTUYNp/ZArM3SQHF8fsyp2LrvdT2BTQOIz6r1Q5bz FxXteZS+vt43o5/F3WHIJ5N7TGHJvTa24Re4Qrz2ClBtnTzuaTCX7ayWt7tIcCVNqK4Y txhRZUJj8Zw1TuveVDHgbhGH3axRFiwsepFwp8NhmI6y6Y7k1ptVHQDNlpQIlWZzFyoV yTommflYD4jn8LQ/YVZ3Yf4qvTIKnr9wmzMOwVgZZOVEOG2VMyz1XnyuHdhcygDnV0UY PAvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Wb4+Ay7m; 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 sb5si1496975ejb.274.2020.06.10.23.28.44; Wed, 10 Jun 2020 23:29:06 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Wb4+Ay7m; 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 S1726652AbgFKG0x (ORCPT + 99 others); Thu, 11 Jun 2020 02:26:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:42210 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726511AbgFKG0w (ORCPT ); Thu, 11 Jun 2020 02:26:52 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1254B207C3; Thu, 11 Jun 2020 06:26:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591856811; bh=0/pvtFISGXWR/yF7DaOfCvGCGI4UYkIET66t0WEuF/o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Wb4+Ay7mYfdyuww63fbICOkyEHGLxu6pD7ZnQR+qXTOgZcklh41O1JYlThBAGUXxR ArCTn8BFU6hNzvNt/tPAIrEHNGpoINlhldC5PNWcZPEGpJkDpdy8YADOWHnVKcn+cD THG3ryrd/Mkj/slsbY3ILY8y+FCD0e6X0H69+tW4= Date: Thu, 11 Jun 2020 08:26:48 +0200 From: Greg Kroah-Hartman To: Joe Perches Cc: Stanimir Varbanov , 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 Subject: Re: [PATCH v3 6/7] venus: Make debug infrastructure more flexible Message-ID: <20200611062648.GA2529349@kroah.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> <2fab7f999a6b5e5354b23d06aea31c5018b9ce18.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2fab7f999a6b5e5354b23d06aea31c5018b9ce18.camel@perches.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 10, 2020 at 01:23:56PM -0700, Joe Perches wrote: > 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; > > Ok, and will this proposal be able to handle stuff like this? If not, then it is yet another way for driver authors to think that they need to come up with something unique to themselves. :( greg k-h