Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4854035rwl; Wed, 28 Dec 2022 09:39:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXse3yHCh44lVEcpGv51EI6goYWaP2HWoshtEIIRHDBuBxGWQMh1d/6pgOJfIqOvPlLHg4Jb X-Received: by 2002:a05:6a20:7d9e:b0:af:6d41:dd8c with SMTP id v30-20020a056a207d9e00b000af6d41dd8cmr42600077pzj.38.1672249160202; Wed, 28 Dec 2022 09:39:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672249160; cv=none; d=google.com; s=arc-20160816; b=AnnKXsjCN3aTpeYbTMKHdi5faK4PsbONVmo6F/Zbo+tyP7/LaK6URq3Cl0mUBql3W0 18bfllAe7D3LdJpzf2aInOq67YIKzQXGXcZOrYiUipkdrPOEbA9rFlfB4x6Np93JEJ2u 8ip+9X0JNvUu8bPHOfR5irYq4Y3BvazCYVuLL0w8Z7WmYRTqjkc8vJNbvBKprOyY2z7a ACdeG0sZF8lg0hNfRpdPYIC/eoWDj7sMuedIS/9SP9fIBV36YhOubDtR0SslVXCxGXaB NqcZYlHAgklGI4c6ZKZFtoqIVFKY3y9SjtaP1pVpmgD+GqJZ4eXjOZH4FYPm1E52v5V0 VpBw== 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=K6Nfj6Jcxq1ffegBNOgrxqAINNSIO2fL162xMYCIfek=; b=tR2CwvpUkkM/PbKxXe+vZ+0qQUlqw3aDjBlDD4qd1O1NnI/NJvvcFzeWeZ7ALX1jxx enQq/J+2TxhQHH2qxbXU1cPcQNgavniAaIpi+OL1cvwIZXqJHntJzvynfx9ErIGtyxPj ekV3gKJRzqeCyLdXLjK+hspbd3nOi6HgMirsOm7tVNZm4xt5wOyFA13SOZOsBeYodZ7U FqLF94IDR/BKXE4jrnPajVxZELbLfHhzJgT3F3IZhdyYV/WwfZd2Kx+IJ8OfFQMhPdPy lFknVCfcY5Mdlkz8uRQQlHufCmKSOfBqHbW5sfKfd2TqsPLfZIHiay+iPC7riOY9AgmI En0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=vKUt7VZw; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n18-20020a170903405200b00187073496b4si15661721pla.136.2022.12.28.09.39.11; Wed, 28 Dec 2022 09:39:20 -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=@kernel.org header.s=k20201202 header.b=vKUt7VZw; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233157AbiL1R2c (ORCPT + 64 others); Wed, 28 Dec 2022 12:28:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230443AbiL1R2b (ORCPT ); Wed, 28 Dec 2022 12:28:31 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D00A61658C; Wed, 28 Dec 2022 09:28:29 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1D2C36158D; Wed, 28 Dec 2022 17:28:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 67ADCC433D2; Wed, 28 Dec 2022 17:28:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672248508; bh=Dibxouqu84SBg/J/yTbFauKUYfl32fPLgSeV3dyv87M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vKUt7VZwbGsaph7PITSfybymzqitYVro09zdOLMCKweCHJswdPLN8+DWtM5OaADkI Y5l4AjmP5JAsT5O+Un3k0kQTEabwFunEg87S3l/whHsadqK/3BLQRavztcIKMBpoT2 ASdFFeIKZlOEV6+gEoAmRpHQYaL6NmaJOTFzbL/kDdO1raB4+l92tz1MWcMcp/sbmv hlXLsuGHg5KS2oOhXgKbdzW7XTPh+TtnHGuJHKq9UNXWHveZRkVicVKEv5VyhiL91o KOQCXczg5VyfRxJ7YP2k4/36749ogmfcs8U4EGhVDUJs3fv5s4RHcKDdNJrfbF3Z+Q 7VMYnCXL7W2zA== Date: Wed, 28 Dec 2022 11:28:25 -0600 From: Bjorn Andersson To: Souradeep Chowdhury Cc: Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Rob Herring , Alex Elder , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Sai Prakash Ranjan , Sibi Sankar , Rajendra Nayak , vkoul@kernel.org Subject: Re: [PATCH V21 2/7] soc: qcom: dcc: Add driver support for Data Capture and Compare unit(DCC) Message-ID: <20221228172825.r32vpphbdulaldvv@builder.lan> References: <644b4f66a358492a8a6738454035c3b120092fe7.1672148732.git.quic_schowdhu@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <644b4f66a358492a8a6738454035c3b120092fe7.1672148732.git.quic_schowdhu@quicinc.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 Tue, Dec 27, 2022 at 08:52:46PM +0530, Souradeep Chowdhury wrote: > The DCC is a DMA Engine designed to capture and store data > during system crash or software triggers. The DCC operates > based on user inputs via the debugfs interface. The user gives > addresses as inputs and these addresses are stored in the > dcc sram. In case of a system crash or a manual software > trigger by the user through the debugfs interface, > the dcc captures and stores the values at these addresses. > This patch contains the driver which has all the methods > pertaining to the debugfs interface, auxiliary functions to > support all the four fundamental operations of dcc namely > read, write, read/modify/write and loop. The probe method > here instantiates all the resources necessary for dcc to > operate mainly the dedicated dcc sram where it stores the > values. The DCC driver can be used for debugging purposes > without going for a reboot since it can perform software > triggers as well based on user inputs. > > Also add the documentation for debugfs entries which explains > the functionalities of each debugfs file that has been created > for dcc. > > The following is the justification of using debugfs interface > over the other alternatives like sysfs/ioctls > > i) As can be seen from the debugfs attribute descriptions, > some of the debugfs attribute files here contains multiple > arguments which needs to be accepted from the user. This goes > against the design style of sysfs. > > ii) The user input patterns have been made simple and convenient > in this case with the use of debugfs interface as user doesn't > need to shuffle between different files to execute one instruction > as was the case on using other alternatives. > I would have preferred to get some more input from users of the debugfs interface, but it's after all not ABI. So let's get this merged and if people has concerns/objections/suggestions we'll improve it as necessary. Thanks for pushing this Souradeep! > Signed-off-by: Souradeep Chowdhury > Reviewed-by: Alex Elder Thanks Alex. Regards, Bjorn