Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp164420rdh; Sat, 23 Sep 2023 05:55:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFLCDD6fl2uBMip+1iAEQaL654qeEyICgtotGHzWI5cGPo5Vgm1fF1SFrcF576Qs6eT+2C1 X-Received: by 2002:a05:6e02:17c6:b0:351:165b:8b7c with SMTP id z6-20020a056e0217c600b00351165b8b7cmr2841975ilu.18.1695473719863; Sat, 23 Sep 2023 05:55:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695473719; cv=none; d=google.com; s=arc-20160816; b=DTYnSE3pCotT1WH1bd4EZvkU4UWMM8OkK1toJVH9j5xkupDMXUOBYw2LKNzCC+61KV MK+2K9OC6yIo/c/1PZMXTQYSp3ps9d9ZkcxmXeeQ1gHICsz3RMCsD+PuUYQCarmq1cxo EXt1eq6XLqngEVe5ldwrkpvdIi4bEGtOivK8viBjOgMN5Oi4IRaoa6f6kC+XvyFMvAOF jCBEkC8VPaugp7RPUVu0yfG6Ftj28GVonRh4r3ZodIH2L14Wuss/0UjU+sUee9jmEYR/ nAylmx0nRdBqyXzqePdp7/pO0Qz5VIpqilEUNbIsVW3b32z/LVJ5a+n6zmN6R4C5uHqg MXMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=YL89VKURvYfUx/qbiUF2YQRHICbge4H7S+IUBrKQVcQ=; fh=ZYQdZGrY1gbTTX/nzfHo9AYzbWUvLmtmO8JRJCyDKlQ=; b=xLlsuIfgPunjSuBVdU/WYynti+qIimgiA4mD3FjblV+eRQiUMeHTuLpIzdqLBLdBBt nRnXMFaN+m3g3IB9wfBTLTs7UUir8k+35TVT8duf5yHe42/FfgCAW3UlIMn5SddrvGoK ayRXhWOoDoe1NiQ+l1P3Tcrc6ozHAmIh9oI5Lve3jjEc9PgD8oMvgixS6yXzZVYKimtq SoRLGxZEnTz2WavObEHf6pq/xSDVP34lWd9VTfYEBFBawCXM6IGXUibW3k+pminoDeAS jAdIqMns615eiG+EdEO2XHRZGmRQiap/bKh2RmU61O3FdJDfGBfYrdM7GmpY4kGhMsIj kTvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=CAVJ32rI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id w71-20020a63824a000000b00574134c9acdsi5921621pgd.647.2023.09.23.05.55.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 05:55:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=CAVJ32rI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id EC7B083746B1; Sat, 23 Sep 2023 02:40:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230525AbjIWJjw (ORCPT + 99 others); Sat, 23 Sep 2023 05:39:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231313AbjIWJjs (ORCPT ); Sat, 23 Sep 2023 05:39:48 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EF60196; Sat, 23 Sep 2023 02:39:40 -0700 (PDT) Received: from [IPV6:2001:818:e7d2:8300:2412:6733:7e63:fb46] (unknown [IPv6:2001:818:e7d2:8300:2412:6733:7e63:fb46]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5EDF1DE2; Sat, 23 Sep 2023 11:37:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1695461879; bh=5rwlDgb18LMeY6PGIIJDEvGpiQq5OlIONr+fS/lgUek=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=CAVJ32rItefld/CVJeWF3kknOncqbkl/dVP+UY1mUPtkblGiMPQ7X7k7EmDFeEjeb wpm7IlcB+e0NQRHZsjp9zdLHdGULQ1VYJKNmp5XLlJdnayesIRnhbind0sH+Bm7uNv V1XkfDVEafukNtLhIgk1GP5YkReXKQenpDdTdYgM= Message-ID: <3f040e44-3bdc-b09c-58b3-ea3b0ac6d5dd@ideasonboard.com> Date: Sat, 23 Sep 2023 15:09:33 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [RFC PATCH v2 0/4] staging: vc04: Drop custom logging To: Stefan Wahren , 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: Umang Jain In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=1.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,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 groat.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 (groat.vger.email [0.0.0.0]); Sat, 23 Sep 2023 02:40:18 -0700 (PDT) X-Spam-Level: * 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. > >> >>> 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 >>