Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6844727rwb; Wed, 18 Jan 2023 10:03:16 -0800 (PST) X-Google-Smtp-Source: AMrXdXs2PQ2dkja3jt2r9gyMLks8a+4OIArANHHJeJ45hOw1/0ktwPV1cG7hZVu74eK93HtINtDt X-Received: by 2002:aa7:da42:0:b0:45c:834b:eb5f with SMTP id w2-20020aa7da42000000b0045c834beb5fmr7725301eds.42.1674064996776; Wed, 18 Jan 2023 10:03:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674064996; cv=none; d=google.com; s=arc-20160816; b=f26rmNTKw/C1pbOJkujrbmorOZ59x6jMQOem1x15qGGI+QiFbHe6eoLJm4OJkRO8e3 GIBERkr8Sdsp2vWLszZQcAaZj7s618OXQjzVGOPwZiPs3saoXQp3T3grucigfYrc8phb 8PMtESHeGL5a37/SkxRR5VTOVdzODUCcvPou2ITdLQN7q8xxiwIYaX3A6F6tLQurqTPq ZHUxbCeBLOnX9b4of8Vfx4/8YzpPNFgMCLD3E2n7hgJDwDHoB8PvW79g32WXG7dJHt13 Ut4Kh6hCRgTGu9X9FjCAQPI61+zmHcKhDeFpAwMED+d/HnRS2PojH/0X7PwkJMChWfji JLvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id; bh=P0iqFW6p0dW95/O92Wu2MMo85Ehv+v26IkiQkZO6W9A=; b=cqp+DS53sOgdxSpXjQWxcqCEOKlIrrauMN4IFuEjEjvSsmE1RkmRtnNr3JkHfdUndv adRCNKXOctidWY6oMj+Ocmojw7lJOams+KL8NnpJN0gX+ImR2zAJKV6m13YO316Go3/D UBYpMihJrcSAh4QR3YL+N5l2jwlpmJBCNARd474zsAXkbTbAYR/cx8eq1Hnix/Y8uCNl odm+0icF7G2XDJn18UDAakC0QifDf30Af8bB7UW66/uwnY0Ow/WkqcPR4WaArUtFHr+8 xtgJclYy6wtzi30M9zcI+QknPUj3UldWbEBwFNTrJS4ePmBmNrolh9tjGpFpE6YEodQI DyEA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cm12-20020a0564020c8c00b004823533c5bdsi34272475edb.211.2023.01.18.10.03.04; Wed, 18 Jan 2023 10:03:16 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229812AbjARRzS (ORCPT + 45 others); Wed, 18 Jan 2023 12:55:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229525AbjARRzR (ORCPT ); Wed, 18 Jan 2023 12:55:17 -0500 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E18814DE0A; Wed, 18 Jan 2023 09:55:15 -0800 (PST) Received: from [192.168.1.139] ([37.4.248.41]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MLR5f-1p1UqQ3tIZ-00IXeC; Wed, 18 Jan 2023 18:54:58 +0100 Message-ID: Date: Wed, 18 Jan 2023 18:54:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [RFC PATCH 0/4] Drop custom logging Content-Language: en-US To: Umang Jain , Phil Elwell Cc: 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 References: <20230118115810.21979-1-umang.jain@ideasonboard.com> From: Stefan Wahren In-Reply-To: <20230118115810.21979-1-umang.jain@ideasonboard.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:PPbgUQZFNUodbOa/IggBR+CuQHji8sAXXNDLVRn1143oRxT7xED oBPVjhAXF+2WpKzkRm4MQNfrIjnzaJebYqOE/6rYL3j6lOz5jmJWSxyrAjaj1sGD2m0ETY6 iTe9JYVwS+M0pEMCx1zuHc0xGHJbUiNWQPjjosOz3DSRySOI1stuI/RuwSxOjSHMG6me5lq /2JUSPHLjD+GAtFhwLEAg== UI-OutboundReport: notjunk:1;M01:P0:DWEOI3VL3Ug=;wI/vhD4uuwEVFEsH0pX9CDJFtYa uWnuMR4vZvcCph2wMaDVAeHGw7tutiLNnsXoaL5wEC7Xhrweux6VyrbZbeuxPcBTWuO9Ia2f2 emFeNBgDNzxBxFLkxJyLCGyQtdJ83JFU0x0CGxRbicdQGU2/XnxX1zYeddRCna7ExVYdnUaaA AnakOEj3ayX7pxKcV7zh1fZ8O8Sb6YWRUOWwkJpPTAmgVO6qtRRc8cBSZDlijQLG2FQ4r47lP ASkwsgmhksnQyf+cngn4hCvCvQP6cuvicELX7j1VU+5tpyKocbq01niWMcP5bRghBserJxb+P Wz6wtTInBxyrzi7zi+TNl29U7CnNEXIS4aY7a7Aa62ejUbE21aZymKOl5qKiWpRNXwR4K7AMn zdJ6ApGksqEJg+Fx1ZXSAr9SUE5PsZcuJfx3PSVO+9VdCTrUy0JMYHVakQOeflkiTi5JjVVST ygfk9iNGBqmSV7BJA7y18L9yyoKEDWk7dfndWoVf+w6FayYSiDWNUB1CMglSIpGbQ0NFS2P32 DyNRQSF5pk1ZOL1jtayWI/PoLJ5HizakEiXlc7k8u8YuDzYLDSJTOa3snLfkoj1P8KERwFnyl nfvbJhxQNM6L3+//JEdBiUnZ07wHv0dhPz1fy3FXGOkY9nbCCuS+mHICw6hkCN9tbW/2K2MMJ BOd33NuDl/1/K2RMP6zncYFLkebgxHvpjAL7Dibfrw== X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 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(-) >