Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1101799rwb; Thu, 19 Jan 2023 06:41:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXtrWF5BGQjS9lQG3aEJHmd9aSudXsjoHxVI6iOSqY/+Gcwjc1OI35qsLIrD1iL9BPaxx8cn X-Received: by 2002:a17:906:781:b0:871:8297:7576 with SMTP id l1-20020a170906078100b0087182977576mr10804973ejc.26.1674139318088; Thu, 19 Jan 2023 06:41:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674139318; cv=none; d=google.com; s=arc-20160816; b=YghBiDVxFHH2FmNxyknyjfCNoDj73dcaKH51Db4FmvGN950wer+u2ifZGr2OjBIfgS VsacMZc7MAea38GWtRkG8XgXSf5hSZTKTsDWKS/VlYEsNf1jimILRcx34SL0BjZo/luF UwxPs64V3FTPehTJra3/1GQNuvOaGxf97M830baEc2cmgJXw0fGo/JnsQd3TNagePiwM xyV2N/D9UV7W4GOdqPYygTFn+MPjnrqBAsMAaX7Y+kZHCE09JqYFZV4weW1dg6APYkLi J5PLO6CPxQByRrJTRJX+fi8r/46UGRSa2++qYQEJqJcfrUhSgRypuOWsNDhS2Q7dCjH6 qqJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=yCqPKnSa7WozhuTI0rKqXlgcivKBLrizV645POVS478=; b=w160B6PW/0AwFWQdLLkVJmjh9CvooTcUaFAsEZu+uxVSOKq+U7uYAMprmpNyf9fme1 g3bF+PW7oce+F6IPKoUWgbECbU9jCWeuqT1iAMFhhSmd0useDpajANY69vDKsooY3ANs rt7FHIXkxkoXrVYNwnq+kRfHZzXwkopEiJ6z6HQxyoyhBi2qxk5g/+fe/mxWY3lQRe9/ hQUE3ekouSBX61Pakr8q0NfOGNqt/x+T6T7TB6EK6sBPFLgv8rRWGw0gdbcDkH6nz/dh iKVt8JLY7NJPjdeFTsEcVK4HcVFb0kVO/67dlI1cCowJp9xBv6qG2PP+pxOMUt07IeEZ /TYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=db7e5U5L; 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=raspberrypi.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ht14-20020a170907608e00b0081b58e47ec3si41129783ejc.444.2023.01.19.06.41.47; Thu, 19 Jan 2023 06:41:58 -0800 (PST) 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=@raspberrypi.com header.s=google header.b=db7e5U5L; 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=raspberrypi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229712AbjASNbZ (ORCPT + 44 others); Thu, 19 Jan 2023 08:31:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbjASNbY (ORCPT ); Thu, 19 Jan 2023 08:31:24 -0500 Received: from mail-yb1-xb32.google.com (mail-yb1-xb32.google.com [IPv6:2607:f8b0:4864:20::b32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 007BB78AA9 for ; Thu, 19 Jan 2023 05:31:22 -0800 (PST) Received: by mail-yb1-xb32.google.com with SMTP id c124so2411877ybb.13 for ; Thu, 19 Jan 2023 05:31:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=yCqPKnSa7WozhuTI0rKqXlgcivKBLrizV645POVS478=; b=db7e5U5L08xVk+LSrK+0Kzj2SoihxS7LOo1B9e7WOS2L+qKfJwkApXLkv/jZ78/G4H IxqD/5L3tUGUwSXT/PlYvrRWcXFJQtmwaZ87c9sThcKO68mhz8X6oLhWLdcUFiOU92gl PrYEbE44mJj16MmmijES1wJSe5H5wNjUyxUk4L1BBnDtXvDeFy7FNOwRAQxRsNnx2ug9 x5kxH4b+8T6jpqZVva65untJEfUlHIdFw6Ve5kC0Cqa/lP6v3pSkQwyaSa93O+SLcAtj byulHgj3QUqnPkTvDeNeBt1lME23sk2JxOVWIcb64lVVsgkUaZEyLZNkmF9zxOya7tAL XcqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yCqPKnSa7WozhuTI0rKqXlgcivKBLrizV645POVS478=; b=CPZdlm8yAHf+peRo+r74E+oq7hjcjS2sXe+aEAuOb4od6RKmVB7mzshnqBBIm0sFWi Mp5Q3e8fW8gWGnvJBNItWqaxYcIpZAoC3YsHxK3/Lcg7q+6UdwSy4Vf98Kt3ch2l4xHd 87H6WZMDij66gYxiVgaEOQj5kovB2tXUCTG03c6Xc4SkxDe+8y8LduLbfyxoOMYGTXtn QhfQMdNrm0MCqxEmeZokP4NEHwTP9AZp0SWEhxRcIKmHCThKcoCrxUnho3aDtzZZPRUQ QOksnsDrOYShcBvKOgWuON1ajiBlTExoVdeJPPov2iGLUr/AHloS7r9CxNJAQAHEH/NT ehtQ== X-Gm-Message-State: AFqh2kqtWbQ2bC0ll9lQ3Hbb0VVM+KbgtROK8nhnB+3h9+Y5whWDYxpm cwK607JLUd2qB7NziIQC5IDs536KfiWxFdP5DVTeNQ== X-Received: by 2002:a25:bd14:0:b0:73f:fb7d:400 with SMTP id f20-20020a25bd14000000b0073ffb7d0400mr1646414ybk.352.1674135082149; Thu, 19 Jan 2023 05:31:22 -0800 (PST) MIME-Version: 1.0 References: <20230118115810.21979-1-umang.jain@ideasonboard.com> In-Reply-To: From: Phil Elwell Date: Thu, 19 Jan 2023 13:31:12 +0000 Message-ID: Subject: Re: [RFC PATCH 0/4] Drop custom logging To: Stefan Wahren Cc: Umang Jain , linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, Greg Kroah-Hartman , linux-rpi-kernel@lists.infradead.org, Florian Fainelli , Adrien Thierry , Dan Carpenter , Dave Stevenson , Kieran Bingham , Laurent Pinchart , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Hi all, On Wed, 18 Jan 2023 at 17:55, Stefan Wahren wrote: > > Hi Umang, > > [add Phil] > > Am 18.01.23 um 12:58 schrieb Umang Jain: > > Drop custom logging from the vchiq interface. > > Mostly of them are replaced with dev_dbg and friends > > and/or pr_info and friends. > > > > The debugfs log levels (in 4/4) are mapped to kernel > > logs levels (coming from include/linux/kern_levels.h) > > Would like some thoughts on it as I am not sure (hence > > marking this is RFC) > > > > From drivers/staging/vc04_services/interface/TODO: > > > > """ > > * Cleanup logging mechanism > > > > The driver should probably be using the standard kernel logging mechanisms > > such as dev_info, dev_dbg, and friends. > > i don't have any experience with vchiq logging/debug. So i'm not sure if > it's acceptable to lose the second log level dimension (like > vchiq_arm_log_level) completely. Complex drivers like brcmfmac have a > debug mask to avoid log spamming [1]. Maybe this is a compromise. > > Btw some loglevel locations has already been messed up during > refactoring :-( > > [1] - drivers/net/wireless/broadcom/brcm80211/brcmfmac/debug.h > > > """ > > > > Umang Jain (4): > > staging: vc04_services: vchiq_core: Drop custom logging > > staging: vc04_services: vchiq_arm: Drop custom logging > > staging: vc04_services: Drop custom logging > > staging: vc04_services: Drop remnants of custom logging > > > > .../interface/vchiq_arm/vchiq_arm.c | 151 +++--- > > .../interface/vchiq_arm/vchiq_connected.c | 5 +- > > .../interface/vchiq_arm/vchiq_core.c | 479 ++++++++---------- > > .../interface/vchiq_arm/vchiq_core.h | 39 -- > > .../interface/vchiq_arm/vchiq_debugfs.c | 26 +- > > .../interface/vchiq_arm/vchiq_dev.c | 78 ++- > > 6 files changed, 329 insertions(+), 449 deletions(-) > > Thanks for the nudge - this patch set hasn't yet made its way through the sluggish rpi-kernel moderation. I understand the desire to remove the custom logging. I don't welcome the loss of flexibility that comes with such a strategy, but I'm not going to argue about it. What's harder to understand is the state that this patchset leaves VCHIQ logging in. From what I can see, the per-service logging control has gone, but the code still contains macros that hint at something useful. Similarly, the debugfs support is completely vestigial, giving the appearance of control while actually achieving nothing. Phil