Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4661602iob; Sun, 8 May 2022 21:02:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwpzXK8fqVhsTppbFeeY+WmsJ9l1nXg1j/8kGQZgLGACuG0e/pV0lFpRzNPIGj5+VEFoUsz X-Received: by 2002:a17:90b:1d11:b0:1dc:5dd1:b50e with SMTP id on17-20020a17090b1d1100b001dc5dd1b50emr23886331pjb.218.1652068933117; Sun, 08 May 2022 21:02:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652068933; cv=none; d=google.com; s=arc-20160816; b=tMwmw+KP7tfIINPJEXZ9HfWjeS5n54kuZgXqh0r2hlg/sHaldu6Uz3qDqIlfNDmqDF vbFkeE8UukVpcOt4R2/b+dOykorzzpihOoJUxHgm63cW1DV4JWz3VIwQT1iVFomFwSE4 iJijEFurIMpgzpw98/yhrFbKLlM5soQuqKm0ZzE/li+ewVCRfXz7nQUfukl8YK7HIxTZ kAlQGt3SKUW9m+1jXtmgAaIO38Upg8XgeHAca87nCJK8IDb1y8NXaOCzet04B8+U6kL3 gqUeoVppuVkoA9p0Ye+b0Mc8pFNp+DNLr3hZugu5SFz5EEm37oOsOHwugNq82D9Fa8sZ i8qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:from:cc:to:reply-to:subject :content-transfer-encoding:mime-version:references:in-reply-to :user-agent:date:dkim-signature; bh=ShaUQI/pwRoPGSW1BES6mzxkO2qOrjl8wpcUcqvpHfw=; b=JSw9NxA56GUDaxE+tfoOLPYb81La+tp5FaRBF5xpTCcx4jIRfgl6glmuld1o0pSUa/ LPgFxGhJoXoIxHV94zqWtGd1UuAzGgRAam3VizqaD5UiO+80kNOXh41l+hVjzsAi9peL zeeoMDKimIENo9kB2awlZ8Ixe35fOqt9j2wLz5dk3saFv+d3r2O7PuhojlQUxcPP+qcC beDEqsVLlzyZ7ALpDU55nv6JQCBIdMqVDJkWNfuX+GJrG8Sw3Td8B98IaPo4ET0MqRUX frmd/MahhwhKds4VjrSS2mV/E+OkGkN/foYiaI6P7+JB2CMIvq543eTpSkXCiA0nVrXM tYIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmx.net header.s=badeba3b8450 header.b="gk/gSaTL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f12-20020a62380c000000b0050de3100e2asi11703860pfa.97.2022.05.08.21.02.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 21:02:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=fail header.i=@gmx.net header.s=badeba3b8450 header.b="gk/gSaTL"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4C058A199; Sun, 8 May 2022 21:00:37 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344847AbiEERyx (ORCPT + 99 others); Thu, 5 May 2022 13:54:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237406AbiEERyu (ORCPT ); Thu, 5 May 2022 13:54:50 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E052D28E33; Thu, 5 May 2022 10:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1651773059; bh=r9fBrr7FwH7W9LRmDQgfqli9/FO04mumkS5KUN+Fqio=; h=X-UI-Sender-Class:Date:In-Reply-To:References:Subject:Reply-to:To: CC:From; b=gk/gSaTLSzaEoiFc2mPGZ4K1Rcys0i28Eu+WHzlAwTPXZPcF4UZ0vaKG2hp9tVV55 66ffgtdUSYkY+u17Fs8qY7qKrrQHoDl8FmX7AKi4UoNrZOL2AFWtfHYJGirGT/RDb1 qr1qDpOBp/meL4FauWeqbtlI0O0nj602bgj15t7Y= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from frank-s9 ([217.61.145.208]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N2mBQ-1nwnV92Sy4-0132QR; Thu, 05 May 2022 19:50:59 +0200 Date: Thu, 05 May 2022 19:50:56 +0200 User-Agent: K-9 Mail for Android In-Reply-To: References: <20220504174823.156709-1-linux@fw-web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [RFC v1] opp: add config option for debug Reply-to: frank-w@public-files.de To: Greg Kroah-Hartman , Frank Wunderlich CC: linux-pm@vger.kernel.org, "Rafael J. Wysocki" , Viresh Kumar , Nishanth Menon , Stephen Boyd , linux-kernel@vger.kernel.org From: Frank Wunderlich Message-ID: X-Provags-ID: V03:K1:+1AIM9qLsiUaMHn1Nne6xcZJg75ywWG9yhRsl+x8MvbEGOmmlfp qZpIE8jgusQpzDhDiY4rw7YkuilHUSmy2ZOHuRr55RyLCxjcAVlNurRUd6zfAxNweovbANH i/GlkpQ9M/bYyE0Ni277f0DEpE9LcCv8G/jEq31y7gc4xfMvsxP5Jk0tuLBqkzbdHglQZCV f35GRXSnaYNmzVvNlqIkg== X-UI-Out-Filterresults: notjunk:1;V03:K0:2kcDMSfUhf8=:Abm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fzgoLyh7AkCZyugELIM23neSrZ/bhkTtHqycJpM/0Jr ZQHR07KcNiI3ig= X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Hi, Am 4=2E Mai 2022 20:24:00 MESZ schrieb Greg Kroah-Hartman : >On Wed, May 04, 2022 at 07:48:23PM +0200, Frank Wunderlich wrote: >> From: Frank Wunderlich >>=20 >> Currently OPP debug is enabled by DEBUG_DRIVER option=2E This is >generic >> driver debug and opp floods serial console=2E This is annoying if opp >is >> not needed so give it an additional config-key=2E >>=20 >> Signed-off-by: Frank Wunderlich >> --- >> drivers/base/Kconfig | 1 + >> drivers/opp/Kconfig | 7 +++++++ >> drivers/opp/Makefile | 2 +- >> 3 files changed, 9 insertions(+), 1 deletion(-) >>=20 >> diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig >> index 6f04b831a5c0=2E=2E8ae826c95d5f 100644 >> --- a/drivers/base/Kconfig >> +++ b/drivers/base/Kconfig >> @@ -130,6 +130,7 @@ config DEV_COREDUMP >> config DEBUG_DRIVER >> bool "Driver Core verbose debug messages" >> depends on DEBUG_KERNEL >> + imply DEBUG_OPP > >This should not be needed, otherwise we would have to do that for all >random driver subsystem in the kernel=2E Have added this to have same behaviour if anyone sets DEBUG_DRIVER via def= config=2E Else this is disabled by default=2E >> help >> Say Y here if you want the Driver core to produce a bunch of >> debug messages to the system log=2E Select this if you are having a >> diff --git a/drivers/opp/Kconfig b/drivers/opp/Kconfig >> index e8ce47b32735=2E=2E6a2d2c6c1143 100644 >> --- a/drivers/opp/Kconfig >> +++ b/drivers/opp/Kconfig >> @@ -12,3 +12,10 @@ config PM_OPP >> representing individual voltage domains and provides SOC >> implementations a ready to use framework to manage OPPs=2E >> For more information, read >> + >> +menu "Operating Performance Points (OPP)" >> +config DEBUG_OPP >> + bool "Debug Operating Performance Points" >> + help >> + enable opp debugging >> +endmenu >> diff --git a/drivers/opp/Makefile b/drivers/opp/Makefile >> index f65ed5985bb4=2E=2E2589915eef95 100644 >> --- a/drivers/opp/Makefile >> +++ b/drivers/opp/Makefile >> @@ -1,5 +1,5 @@ >> # SPDX-License-Identifier: GPL-2=2E0-only >> -ccflags-$(CONFIG_DEBUG_DRIVER) :=3D -DDEBUG >> +ccflags-$(CONFIG_DEBUG_OPP) :=3D -DDEBUG > >This feels wrong, you shouldn't need a -DDEBUG for anything if all is >going correctly=2E Why is opp so odd this way? Just use the normal >dev_dbg() macros and all will be fine, nothing special should be needed >at all=2E I have looked more into it,just wanted to get driver debug (probing/bindin= g) and dev_dbg messages without the opp spam (floods serial console)=2E >And don't use a config option for it either, no one will turn it on, it >needs to "just work" for all systems=2E Config option is to enable if needed and not via driver-debug=2E >thanks, > >greg k-h regards Frank