Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2869409iob; Fri, 6 May 2022 12:09:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXJBBeVzSInKmRr7t6fPdCIjuldj2PJbxSxSNta05ykz9q17+wt8KA3q956DGhgAyHHv2G X-Received: by 2002:a17:907:1c97:b0:6f5:22ae:7024 with SMTP id nb23-20020a1709071c9700b006f522ae7024mr3636417ejc.570.1651864152948; Fri, 06 May 2022 12:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651864152; cv=none; d=google.com; s=arc-20160816; b=eTX6H+41+lhKEdxy3Iv7jU0lDAjhiKwGPrx9o2ASu+7VcDJZGF4JWydNVfYvh65QE4 CxJq+iW3V4NRih+yPxkDNlLeY4gScy3SOxPs+Ny23mtiKd7IQw52AKi1eAusX2jh06u5 LVlMZ4sKWxqJVKbCxjosxUg78/PPgDmDC+sUznVWl6MiJytMu2bMK63oNqcLUIZDhz30 aji1a5GO6dm661oOfynGjvUT7eiKgHP5hBGw0WYOd5j88tq6VebhzRD4BgcJnppAh/XC 8u/21W6hMlsKBwE2M5H4ls25NBfHXPefvNcnzZSppxyABoBhqJpe06C6Xo0KY/Ho2mao eFMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lPAnSS18jBYqK1FGxzEGcrjNSb4gObo1VhAKMWv3Ogw=; b=0OMfjU7ZZs9DvuPuON5hCCu3jfCxm7FcFyOJcQeNXil86ioV5rwMyX04nX2Opg1v9N P4CQ2jJnvLas8QTHp6LmPxM6CmDsXnesOuMAy96HsJjIg9TY2SZhFiU2lneiDj+pH4z/ 9n7D+dAOleGYA0qervyAa6iphlJVhwVe+ZhvRRCdAUqRxhREvkyyCeT62ctrvxGWc+TV ciykQ/sMGyIYTa2RhbFDTZq8m9YcxGo6GSxcx60tBuWInbWYBfxS6lbMXTuvJAnfkVpE bOOcP+MHoLjunmWmxlsRw5fK8+20QHdT95K2D9trl/u/xIgMef/fx34kcpvQHEoVU20c 1aVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sLInGr2t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hv13-20020a17090760cd00b006f50e8941f9si3001664ejc.885.2022.05.06.12.08.48; Fri, 06 May 2022 12:09:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sLInGr2t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382837AbiEERpq (ORCPT + 99 others); Thu, 5 May 2022 13:45:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382810AbiEERny (ORCPT ); Thu, 5 May 2022 13:43:54 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31C885D643; Thu, 5 May 2022 10:40:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id E52BACE2F17; Thu, 5 May 2022 17:40:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 19B9FC385AE; Thu, 5 May 2022 17:40:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1651772402; bh=LadALzBO76IZIhY8zk7doDAmtjAq+INNAF1NnnHxrUs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sLInGr2tnnXgxO0ZV1wLnKBiMXljVidKippK7tkX/zrESqFVJoJrClIjABzah4W4x 6gk6Vwq/4H24PlAitI9jgsfJP0Xmz9QVv5maunm9tFX4ysmjxLZSnqWBTnbcbH7WI3 VOLyqDWhObxI9s5nHH0Bhx6JEHzL0hT2yg4pubIw= Date: Thu, 5 May 2022 19:38:24 +0200 From: Greg Kroah-Hartman To: Frank Wunderlich Cc: Viresh Kumar , Frank Wunderlich , linux-pm@vger.kernel.org, "Rafael J. Wysocki" , Viresh Kumar , Nishanth Menon , Stephen Boyd , linux-kernel@vger.kernel.org Subject: Re: Aw: Re: [RFC v1] opp: add config option for debug Message-ID: References: <20220504174823.156709-1-linux@fw-web.de> <20220505055857.bqjm72qkzwcbuvuh@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 05, 2022 at 05:54:18PM +0200, Frank Wunderlich wrote: > Hi, > > > Gesendet: Donnerstag, 05. Mai 2022 um 07:58 Uhr > > Von: "Viresh Kumar" > > An: "Frank Wunderlich" > > Cc: linux-pm@vger.kernel.org, "Frank Wunderlich" , "Greg Kroah-Hartman" , "Rafael J. Wysocki" , "Viresh Kumar" , "Nishanth Menon" , "Stephen Boyd" , linux-kernel@vger.kernel.org > > Betreff: Re: [RFC v1] opp: add config option for debug > > > > On 04-05-22, 19:48, Frank Wunderlich wrote: > > > From: Frank Wunderlich > > > > > > Currently OPP debug is enabled by DEBUG_DRIVER option. This is generic > > > driver debug and opp floods serial console. This is annoying if opp is > > > not needed so give it an additional config-key. > > > > > > Signed-off-by: Frank Wunderlich > > > --- > > > drivers/base/Kconfig | 1 + > > > drivers/opp/Kconfig | 7 +++++++ > > > drivers/opp/Makefile | 2 +- > > > 3 files changed, 9 insertions(+), 1 deletion(-) > > > > Isn't something like Dynamic Debug helpful here ? > > you mean something like this: > > https://www.kernel.org/doc/html/v5.17/admin-guide/dynamic-debug-howto.html#debug-messages-during-boot-process > > so enabling debug only with cmdline-param... > > have you a simple example how to implement it? have not done anything with dynamic-debug yet...seems mighty but not trivial to implement. > > currently dev_dbg() is used for the messages that i try to disable...but show others from driver_debug at debug level. > > What needs to be changed to filter it via DYNAMIC_DEBUG? > > found this, but i'm not sure if i interpret it the right way... > > https://elixir.bootlin.com/linux/v5.18-rc5/source/drivers/acpi/utils.c#L495 > defines __acpi_handle_debug > called via acpi_handle_debug macro > https://elixir.bootlin.com/linux/v5.18-rc5/source/include/linux/acpi.h#L1136 > > so basicly convert dev_dbg to __dynamic_pr_debug Ick, no, just stick with all dev_dbg() calls and do not add any Makefile changes and all should be fine. And drop the Kconfig option, should not be needed for a subsystem/driver at all. thanks, greg k-h