Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp5707058rdb; Sun, 17 Sep 2023 08:37:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7AzrCA5FOjMM3EWzfxkSAICoAYOE22zz1xQ+TAAttP+gGC48SSudPAxlnG2pC2Su7cikW X-Received: by 2002:a17:902:dad2:b0:1bb:9f07:5e0 with SMTP id q18-20020a170902dad200b001bb9f0705e0mr8881085plx.60.1694965069822; Sun, 17 Sep 2023 08:37:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694965069; cv=none; d=google.com; s=arc-20160816; b=lF4rsCFqN9d6BmoYsA+O6tELaLrxZLuPrA69UMlkRUZGGpDcV5e7ZGG+w6t0smeF7y jnCAP52zJ0sNhRKjzCRjSaj+DzrnEk8tD34tFGJKbd1+tANVo9e056A1x5jTa1mm5wwM V42v4yoc9Tk+PSkIpCIhyCzjQMceI7JPihCCwidxPRkt5mZtyuHlSIPSEuEV0JmuIyRW wMQ9wcBaL+1P7E6cpXdZAB5cquHJouR4A5mRAIMA/XOJOMy2TQv1+PI8p0mTmlbQvEsM EA0xmddflVuBpdwTuP5q0oDPvhpSB+XfLRFGFRfa0yXSrPqqbe/WDozwDjr1fKTkvROo lQ3w== 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:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id; bh=x3JNPRbqIXgstQQl75FaWbNdIN5uRby6mmwVNKUz0UI=; fh=GobSTE2oFz44oCyaEU9KNUQzAFjrBNOhv/U+N0wSZ+o=; b=W4oD5QNOTF9GrPIvexk1Nh6jw9XXzaprgHvuv/jnI+Qa92FZyuI83ShwdFdFZcI2Li X9V24g1Gsg/zw58SKiYrfvkLHzoh9kP+r1M8l33K1wsK2VXfD6V75Jl+RYIFSARR5q4t eGOZy4q6uBPTL5t7tCGUdgXFf205EFQDkO6Q9eYYVTRRd0MI4wB3IcjpWluZeedPRBR0 zsrDuCtfbYtbIdj9AmSAHpwBdrwSgqt3CLvbsIOoH1ZVNF+DRW0Mmp8GtPkH9sk4yXm+ ZqqqEs2/ccV25X4LTxF6WVZ5m1yKfLaURzYB831wwX20oaB/EZUwsA9ExSAPG/TdF5io wzXg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id d15-20020a170902654f00b001c38ae70497si6465330pln.553.2023.09.17.08.37.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Sep 2023 08:37:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 99627815B12F; Sun, 17 Sep 2023 08:37:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237497AbjIQPhR (ORCPT + 99 others); Sun, 17 Sep 2023 11:37:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236852AbjIQPgh (ORCPT ); Sun, 17 Sep 2023 11:36:37 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8414F7; Sun, 17 Sep 2023 08:36:31 -0700 (PDT) Received: from [192.168.1.129] ([37.4.248.43]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M5jA2-1qnvQi1KaQ-007D1k; Sun, 17 Sep 2023 17:36:14 +0200 Message-ID: Date: Sun, 17 Sep 2023 17:36:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [RFC PATCH v2 0/4] staging: vc04: Drop custom logging To: Umang Jain , Dan Carpenter Cc: linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Florian Fainelli , Adrien Thierry , Dan Carpenter , Dave Stevenson , Kieran Bingham , Laurent Pinchart , Phil Elwell References: <20230913185528.770634-1-umang.jain@ideasonboard.com> <1d54715d-25f9-4937-bdff-de0136c95fe8@kadam.mountain> Content-Language: en-US From: Stefan Wahren In-Reply-To: <1d54715d-25f9-4937-bdff-de0136c95fe8@kadam.mountain> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:uPuw4stiPpBMOYelFVe2qtzF38EcAPeTCrViqcm3NlXkWZhzOZ0 lnRBC8e0/8mhwjdFMc30OAJI+h5CV08nCC/h9O57Az0+31d+fXxvmXIH5shRDQWVqCQNuI5 RZpM7Pn5yh8AxGTEn1BqkJRGQdwiij6WEhjLn3gV3wAN25rievUtmdoHdJlw0XhiEVedt50 kQvy+lNWkN9hZTPJgq1EA== UI-OutboundReport: notjunk:1;M01:P0:+VdWnsPgrrI=;T37xSK4VxoSptZfT7xZGg0iUS14 JQE1cZm1YURTNMVGQtCROf7RJPspOj4NIGnhfPZcQsUNhh6QEDVWoaPAI2FCmBmyVM2g0bE0E E1WsQ7YlN+CCmbJ4ZWidCiY6VhBzkKHOUMP0BeTuDc0j2JfOMWEz6uGKwz0ThDoc4lHf5ZSWG Yb96VYx7BRV9PaL4CSiIFk3FUEyHxPdMQ26E1LFW3NhQSotoiGMQmA4tW9QoSAZYJxKo8ivoW 7qQrliTagWRa2eNQ+PCPZA8x2/DSzvEuFLTuRpLi8VH1y66KYywGoFIlhoN9LcWrPA9w1IqLl clgsC+2bcFXnom/srlkhh709duwNQldehrK93WMi5SarECMRLjM/scRv0fgg+1eVsiPA0vONf GGsL/MQh0C/mN1hXa2ovLE22vw4izu54MLh5sHD7Oh07RU9SVar6eF1nGeCQQPsszHCK5vn3l XCBg7ss6VT8ekSW1ax21kL4pRO0j6VJuK8WJeG+6RxFiqExtBvI5VX5vQ5kUALAdlHaO0ajyu U4aJBr6Up2p2nhSHbCrJAJ2EK9oR98MeaRAGd26IRqY0zmtpsHPedJbRup+jyuVZJIduIvoLd 6c1JIqtmjEVL/BatKyj9JNDTaNTb+61rd6qZD3KUNmDKpOStqdlVV+STXlQvk1oiFQtXYbHD7 wJRvHZRwCjYLm7BoR+G59jnLn830j1ZVNJ1nWRLyQ1GyniaSfmYYjlyz31WCyYKdsJjDcVSTG VUL94g7l1j1KG0i3UH6y8Wd6SzVOG9sowtqz+5h0T+YoQ5R5OS1UNMl15bsP7Jie1m5N7GUD8 lHqCC+oCW7JjE7YOf+5TcGhHyIlXiYszeo9lLPWMDMZYfgWVZ1TwZkE2srMUkadi7bkFLYfvL IFPUvTJvPegpBzw== X-Spam-Status: No, score=-2.2 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sun, 17 Sep 2023 08:37:45 -0700 (PDT) Hi, Am 14.09.23 um 08:35 schrieb Dan Carpenter: > On Thu, Sep 14, 2023 at 12:25:24AM +0530, Umang Jain wrote: >> Hello, >> >> This series attempts to restart the discussion on custom logging used >> in VC04. In the last feedback gathered in [1] it seems that the logging >> would rather be moved to use dynamic debug. The series tries to move >> in that direction. >> >> The elephant in the room is the ability of turning on/off log levels, >> which this series just drops. Compensated by a crude strings >> ("error", "warning", "info"... etc) for easier grepping. >> >> The log category are also just strings (which probably can be transformed >> to dynamic debug class names moving forwards?). >> >> To move forwards, I would like feedback on the broader direction. >> There are couple of TODOs in each of the patch (summarised in commit >> messages) which require case-by-case discussion. >> >> Additional high-level questions to move forwards: >> 1. Is loss of log levels by moving to dynamic debug, is actually a >> concern? Is dynamic debug a valid replacement? > > Dynamic debug is honestly going to be an improvement. I guess, Greg and > I said this back in Jan. > >> 2. Whether debugfs should be dropped as well, found vestigial in [2] > > Yes. The "vchiq/log" should be removed. Ideally as part of this > patchset so it's easier to understand. Yes, but please do not remote vchiq_debugfs entirely. I'm working on a patch to move the state dump (debug feature) from the character device /dev/vchiq to debugfs /sys/kernel/debug/vchiq/dump_state. > >> 3. whether vchiq_log_trace() should actually be tracing support for VC04 > > That can be done later if people want. No need to discuss it now. > > regards, > dan carpenter >