Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp104513rdh; Sat, 23 Sep 2023 03:28:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEg1xbQShJ4mB7Sm+hwyGRjQN9ut+ePr+mUz0FiVXNQ8bbxVWv2aE/Sp1K8b1+Lin82eQf2 X-Received: by 2002:a17:902:da83:b0:1b2:4852:9a5f with SMTP id j3-20020a170902da8300b001b248529a5fmr1811377plx.54.1695464918487; Sat, 23 Sep 2023 03:28:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695464918; cv=none; d=google.com; s=arc-20160816; b=Wacdr6T2DoBXoiaNpGrnpE42ewC9sDHuayjxcq1jfsKrloPwIXFwsQwd8D+9drP3li j1MaWfMd1X2ns8OfqM2LCYHZ6bAEkCpHn1KNcTqtazgj1xoyEApwylGEWMSVR9byor7u Gf6wu/26hetAXVB93rK098O5iOE99eH14unPNEpcgKpy5unc/IWPDjfewD8l4H3JCxKa FmzHSpl/IocC8j6E0jT1EtcnF9f56BEGrwsBaIMc9722cutArTZyMx+4vTEGdx85Br1S F/WD3YMtso1MXXGdFjOr1MrELfWQQ8GWSoxiz3bhdw78jnuCaROSXFKLk8PtxZiTYV+f CGpw== 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=OdQvNQYK+UKbM3ySQNRrczD+7mqcDmITQj35faYJv/A=; fh=GobSTE2oFz44oCyaEU9KNUQzAFjrBNOhv/U+N0wSZ+o=; b=a9eral7DBHRQUhWr16NG/JL4iwvB8EBXzaUGahSlyvgTypLRqK4A3d2MlwJw++dv87 2kKkjEyO8egPdX7EuIzlxlrhWR2ZDKLRoKmBGsMFXm0aoXtJG94xW6v2llSvnYiuLCej vTvbEWMZ7F+SoYFVqgHmqjV+2MFm9ZSP4DImrlNY7IMLglaFW69X9dWMpMwKTpPmg3qL SVQBIYdnWH82+mKMoqkj5EmZBp4s9CPiooDk5TcHiNIQ2UHa25sXrYUqPPZ3dmbPZ82/ ydfOvM3/6RB1jhHAlMf5p2OZm8u4n1jgoBxECGD3HUPY2wKx1tVoD/q7H13JHJIKZFcZ MqKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id q19-20020a170902bd9300b001c3ea2bbebcsi5382228pls.322.2023.09.23.03.28.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 03:28:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 098EA8256C8A; Sat, 23 Sep 2023 03:27:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231361AbjIWK1T (ORCPT + 99 others); Sat, 23 Sep 2023 06:27:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231448AbjIWK1M (ORCPT ); Sat, 23 Sep 2023 06:27:12 -0400 Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0A15CD9; Sat, 23 Sep 2023 03:20:04 -0700 (PDT) Received: from [192.168.1.129] ([37.4.248.43]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MysFQ-1reYJ00JV4-00vvV2; Sat, 23 Sep 2023 12:19:44 +0200 Message-ID: <21893e62-2a93-af84-a004-5bebc9916627@i2se.com> Date: Sat, 23 Sep 2023 12:19:42 +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> <3f040e44-3bdc-b09c-58b3-ea3b0ac6d5dd@ideasonboard.com> Content-Language: en-US From: Stefan Wahren In-Reply-To: <3f040e44-3bdc-b09c-58b3-ea3b0ac6d5dd@ideasonboard.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:OFXh+SWAalxlA/BKarJEaKNh9elJf6QmZksB0h43QjpisjqGtPb P4dwfYkn0nxOJNRDcn+08zW0B50MOIcgT10MmI3ri06XRKELcujsGfJiJmNklFw7aTIEiqR O54kv1Rip8jhf20KE+df8IvZMrl8YiIldtOaqiK72Q5CQ2E6+gQeeRof4+poGtxuLrsEGhy fDjnHo+JYxMGWfb006x0w== UI-OutboundReport: notjunk:1;M01:P0:wxOQh8MJRw8=;/OXycivT0mp7vH58Q7/B3taAhpO IvofYFeT2GzPwAz9phoOngRC+wamU1M/I3UF07JboQKWm9BQ/3WNxvzuZFB8dmHLbe2eDFo4G q1QF10VsWolLf6mkBp4qsOVhauvoIDnuO9sOuQl8ZRi4Ni4LDYaP3MQKrdB0vYdv9tuNNStu8 BMZbTP4MmSSAa7VT09inq0ClzyuZzfc/iewKgSGEtGwXigIJW6B/7Rzl5TYe9kSdVv+c4QK3e f1yUsZH7aIbRuG6IxA+T7WQlf7YzlsIAdTf8Fqq/yP/n8jHZDAA38JCI4fXkwIvTDvePpevRr WLoAyKcDXeIWPOZlBnz3uU1hoVI0JDILSZSGTrFU8Aw5zuTktH/9BdkpWmEiIsYbvsMzZEP49 fJoc4hPHEr45QkXIE/o23DT+o38TW+4U9UVD5IjOMcuFRFIkEnstm6Ho//c2Pgt4PGdlfEPp9 /0fg66PflRf3letiUQjXgdbO6kz5x/mR88Ewnv9nl1ZyrwkgHCjQVPvMAHaRDOSQPAafwKPlJ 6TA3cHAt1jdfvr2NoSg8zm8y6HiCr1Fm3WXzA9l3mffBaTKpoySahH1dORtxHTvTk9KsvvCiy ssAaRGK8xke5HW//eQrxqQrojOeiyTQINsZSLirmbWlEuu+mh3n+oIGyaa1slvFlD0X5UFspb w/5lb3XUkcN/PcPx6lFgNZsuafUzlxM2EjY0AKiNpKkINP3QOMG+RMUYPti4p9oJqm56pqdBH +SG31DqhXPwthfyd/FCuYn01OmCwqMgRnSztVMw4E7VaigRKwQSb6hFrIB9fCCZ6y6vgX076X DkgKgjXMuBp2puTQBd+4ifvBEnmLGPdEqVXUfhLy7mmC4kv/Y21EjYwLTosvpuV9kErT+HT/W hJDzImYbNHdCbIQ== X-Spam-Status: No, score=1.3 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Sat, 23 Sep 2023 03:27:33 -0700 (PDT) X-Spam-Level: * Hi Umang, Am 23.09.23 um 11:39 schrieb Umang Jain: > Hi Stefan, > > On 9/17/23 9:06 PM, Stefan Wahren wrote: >> 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. > > +1 >>> >>>> 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. > > Can't the state dump be printed to dev_dbg() ? Will it pollute the > kernel log?  Having debugfs for a single dump doesn't seem worthwhile if > the state dump can be incorporated to dev_dbg() too. debugfs was created for a good reason. dev_dbg() is a nice tool, but it isn't useful in every situation. In case of communication the usage of counter is quite popular and removing this ability would make debugging not easier. Try to make "cat /dev/vchiq" you will see you don't want pollute the kernel log with this kind of information. Actually i don't see a problem with have a single dump in debugfs. Let me send a draft of my changes for a better discussion ... Regards Stefan >> >>> >>>> 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. > > Thanks Dan. >>> >>> regards, >>> dan carpenter >>> >