Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp483546rwb; Wed, 18 Jan 2023 21:26:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXuNnb/XW8rPwYQrofVMtZdfRf2cNUhchHt1BSDY1V3yFfcGkMw2o3euj97AiRX3TADss632 X-Received: by 2002:a17:907:80c7:b0:84c:eca0:5f67 with SMTP id io7-20020a17090780c700b0084ceca05f67mr7139760ejc.54.1674105975541; Wed, 18 Jan 2023 21:26:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674105975; cv=none; d=google.com; s=arc-20160816; b=s+rjuzgglAxFP5hF9LEeU9BEj8XFd2Cfh1DNWdxgIJxX8T/yfbkDEA/O4s79yY3v38 rPeUFYPGg0WkO6JjEka4Lnb0VubWzF/1ATp2ARVjlUhJVFkCJZPvCRuqz9d6YCDnJBq3 i/cx9JTPpk8kH0u5NAd1RROP1rQxqoaezdVsVjWzAoDZaWqWNzEjXvdon7AVAQ8e0LNN SfN8vjw8gdaNkTznQX2YWq4orML5rSNAMjNQIYOlxYjWpo0/odwZzu4Bori6LTv+muGD H9WbjcH4YTUI2WCRLSRRe4k8fIPgYrUntYBQng6+dUAWHIwP4/h3xJupeUVa8aM2rhbK G4ow== 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=/Tjbpu1SxuTEzHSu4hfhiQLazDPHI+RGvql9dhrL0NQ=; b=BjSj0cBV1S/K0wWQEtDpZy4QAjYBkZW2uIOICF/duJItXRoRcVKlqxk9xK87wOnTGA jQdgABDL4+npojRjvx2r9L6vlKH73BjytVDsU57SE3iYdXcaRHbTWr7FpITBQfOybfP3 SyP0SSqtccMp3aFnG8E2mWEi619oKkMO/ohIWTJR29fqcrTQZu621MHzEAxg+OoBfeAq 5PLo3YASyIZIBinb0EDRoDfD6Umei5ZsEyT1ovLavlgI/16Hlr+67zBDPGdjktmLTqYP mCJBwp2oSBE0zOjtZcRP9p2x/or+3uu6oRZXwS1B+74LOg7Ju4jgroU5wX29M7GnZ5nt NBKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BZHdfb3x; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id va28-20020a17090711dc00b00872d3e7b9b2si5923045ejb.473.2023.01.18.21.26.04; Wed, 18 Jan 2023 21:26:15 -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=@gmail.com header.s=20210112 header.b=BZHdfb3x; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229773AbjASFNM (ORCPT + 44 others); Thu, 19 Jan 2023 00:13:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229769AbjASFMb (ORCPT ); Thu, 19 Jan 2023 00:12:31 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 694AB22DFD; Wed, 18 Jan 2023 21:11:05 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id q10so721728wrs.2; Wed, 18 Jan 2023 21:11:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=/Tjbpu1SxuTEzHSu4hfhiQLazDPHI+RGvql9dhrL0NQ=; b=BZHdfb3xC+QUE9x42xdBIAVgRdnD+oADJ+j2t4Lg6k78gutt71TMP9p8T+msJiZLIW 68FHTJK0KLA+8x8xskBC/94eRIK+woqo4c+qzMJ9LmNyJ4u3pMllBanunBPvsFnpuFeD oZuY10iqQwhG5MKy8hFDgr1RjYdNSskxz4NMVGMsHKZ9Ki5TQOmf5zfnMvDcyW+Hrxbt a0ddXCwV2bS+CxdnI6AooGaamiMFE/oji8rb7DFd8OIQYcJQTuRqMYenigUzUaWCeI7X /VmWlrYtGA+JyOGyj3ms51Ccgq0EmxO3R6QTOBot5p6pFTLf1E/K0yXLEuZDhKnyd/1W Ce8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/Tjbpu1SxuTEzHSu4hfhiQLazDPHI+RGvql9dhrL0NQ=; b=hR226kBvKZ8Z0Ko7KkDw4hm9V+v50jQ31Vs+scc37rxzL3nyMe2IP2pUxIHiey4qV4 MTmex7GLWJiAKZbTWTnTCf9w067afbHP2GctcxJUj96Sym8YO0AmgOScWdA31s427dIS 2bVenPRXS7BVctrJ5pnki+mgxBjZDjLWtA+nOs/LkQxH4Y/R033VRSp8umm6Zi6mpXTc qDPSsRBNFMKl++0KFaw2kiALLiQSCjDuAonrdQcMvap2drHxCM9FidnlQvgO3EeM84UG cpbRr5Lb3UiGANXb4fsTDyAyxqPq+uKvMGRRq2bwvScjNXjHAAEZxSdDnJlH6uP/uKK1 B52Q== X-Gm-Message-State: AFqh2krO/37hKRw6+b92dl0DCUK/3lYU4iF1/kXP3Jn3Q6S5xYkCvsJL zg6yvF5EIO/eX6jYFRF/xPM= X-Received: by 2002:adf:f085:0:b0:2bd:d4bd:581d with SMTP id n5-20020adff085000000b002bdd4bd581dmr4037847wro.53.1674105063778; Wed, 18 Jan 2023 21:11:03 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id t13-20020adfe10d000000b002b6bcc0b64dsm20494305wrz.4.2023.01.18.21.11.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Jan 2023 21:11:03 -0800 (PST) Date: Thu, 19 Jan 2023 08:11:00 +0300 From: Dan Carpenter To: Stefan Wahren Cc: Umang Jain , Phil Elwell , 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 , Dave Stevenson , Kieran Bingham , Laurent Pinchart , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 0/4] Drop custom logging Message-ID: References: <20230118115810.21979-1-umang.jain@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,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 On Wed, Jan 18, 2023 at 06:54:56PM +0100, 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 > Kernel logging is actually has a bunch of features. You can turn them on for just a module or function or enable a specific message. See Documentation/admin-guide/dynamic-debug-howto.rst for more info. This vchiq logging is a re-implementation of a subset of the features that normal kernel logging infrastructure provides. Moving to normal logging will make it cleaner but also more flexible and powerful. It's better in every way. The broadcom stuff is different and more complicated than what this module is trying to do. They are sorting out their logging according to various components. I understand the motivation, but they would probably have been better just use standard logging like everyone else. regards, dan carpenter