Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp692619pxf; Wed, 10 Mar 2021 15:32:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJyhOj+dj45zf0JwER5whQmBFLCekOzb66Y4LUMydDztUZFEAK/RkU7/iMqDMMq0cndHlBI5 X-Received: by 2002:a17:906:aed6:: with SMTP id me22mr334819ejb.146.1615419160137; Wed, 10 Mar 2021 15:32:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615419160; cv=none; d=google.com; s=arc-20160816; b=PBt1j8R+7GZNnQT/nIJB6C6x5lgZVTAPgUyEAp9Vel0bxzdQ0OpBGlNfzWpxpOFw4P Doc+9++ABlRAb27FgAO0NDb9iZE8nODx/quEl1EXMeUtH9pQzykrU1sJVaHxx/afaNpC NkzxPTKFiqIRs43N1dpEC5qzEC+8CJ90K5JbXr5flQzmP1meoLE92cVUBPubpEb+j6yq NEUeVjWO//SaehEXK3lFIHXGGoSU6V3S3qi6d51puycmO2r8Tu0luZpg+dVesV0xQ2k4 w/fGRaJEi6WIBrTyuo/A2W8dF2QftMHssb6sVhs5tQ+2FQD+AKnViGyqtCtGl1d8pMuB WhCQ== 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=CcpjnFhs+hD8NIsHxenerG7IM+48zY0/1AwqAoJFhWQ=; b=1DY5qUczaJeB4iFIMXt/4bS1kNoGUp1pUNsOF0DMfG3P/wJnXA1MfILUdvT8afEczI VT6Qi3Ve/aJ+s70TK7luXrTxSy4Qg1qwaXFUKrqjXW6jwfDipceaoG9AFL53KYYak0xT rF797G15mCSSxKDQ5e+Gs+Ln4G4ecUhVa8idkennmn7eKJHTfs7D03cYTRcJ+hc2BP7r gRFShF6Yg5xvkwaeygJy+MunCAtMluMCfYVs/WlXgbIyr6BCf5HxbAjSEYX5vYUeQIXN dBWwlD4OLG95BveW7Tt4hUBm9fYTPAgGJqzWLJcHa80DSIyWMMMf1nOdGQZEV/cVC1Yf Kp9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bKne5Djb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s18si513084ejj.88.2021.03.10.15.32.17; Wed, 10 Mar 2021 15:32:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bKne5Djb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232571AbhCJX2v (ORCPT + 99 others); Wed, 10 Mar 2021 18:28:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232933AbhCJX2t (ORCPT ); Wed, 10 Mar 2021 18:28:49 -0500 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BCC7EC061760 for ; Wed, 10 Mar 2021 15:28:49 -0800 (PST) Received: by mail-ot1-x32f.google.com with SMTP id a17so18221965oto.5 for ; Wed, 10 Mar 2021 15:28:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=CcpjnFhs+hD8NIsHxenerG7IM+48zY0/1AwqAoJFhWQ=; b=bKne5DjbZE9XY5B/uBertZFJs2UrcfISuG2Z5FAP3+P4BEi8k0hijfCeLcQT4EOmM3 hD0sukxdht/nOTSaCOmDUJ3aYZElo+UBaqA5JmmA76TDHs2O4fXRP5XaHNzYO2pocp8K cS2e4pHyf9tHqtF1OSQQTgBHvp/8UovsFmwXnK0Ob8+bO65/QhaII/fTFMK8e+SgeQPr hROoy/oKmFS/J6oFxe+Gu1CN8MaQdiKokHTgcw02pKhWGE4OK3hmvaVVPwhxBmQFodS9 uoYu0OOKh4XiHQPMXAOgbrGaK7hfd6ybeVDXmOkuQE+fjIUyfZnz9ArTIUtilhjl+BFJ j/Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=CcpjnFhs+hD8NIsHxenerG7IM+48zY0/1AwqAoJFhWQ=; b=o+xN9JmZ0hRQIwRCuFxKpfwEWbXqNSDMgp2CAbisNIBradOXYPzjQQh/j3xLUmfvUj /Slp5PwBU8H1jtAaSlHtpKl/hPSbWZeKRcQKlfqSTy2G21wgiuXVrLmmmEX6CgQAlyWr VBbOIyAannEvtSp7FakPpCx6ypW0otavqgSEkh1o42FUw9pL2mM7ktppZNr34GuCxjfo geJvt1jQqYfy46IUY3nmwXS/L2AX0ugs1YdEHeWCvTbX44uupkygfy56N41c/VlMhN4z 7r2nolcl3Ax8Hj0GRL/3qqnMkKNvvlegLWGbWfdkaOhHiavwaasAQL/Gn40E8ne/0kxD 1qLQ== X-Gm-Message-State: AOAM530MARRvA9W7U2ZkfoDYQ6iAqEsRSWepvaPUJZjCVoiRnfapwrUK becjDXAGgEGzjrnG88P+2BMQ+Q== X-Received: by 2002:a9d:6a50:: with SMTP id h16mr4504158otn.67.1615418929055; Wed, 10 Mar 2021 15:28:49 -0800 (PST) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id g21sm183373ooa.15.2021.03.10.15.28.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Mar 2021 15:28:48 -0800 (PST) Date: Wed, 10 Mar 2021 17:28:46 -0600 From: Bjorn Andersson To: Souradeep Chowdhury Cc: Rob Herring , Andy Gross , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, sibis@codeaurora.org, saiprakash.ranjan@codeaurora.org, Rajendra Nayak , vkoul@kernel.org Subject: Re: [PATCH V1 4/6] DCC: Added the sysfs entries for DCC(Data Capture and Compare) driver Message-ID: References: <332477ea39088fca5879af1a5278c289e1602f6d.1615393454.git.schowdhu@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <332477ea39088fca5879af1a5278c289e1602f6d.1615393454.git.schowdhu@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 10 Mar 10:46 CST 2021, Souradeep Chowdhury wrote: > The DCC is a DMA engine designed to store register values either in > case of a system crash or in case of software triggers manually done > by the user. Using DCC hardware and the sysfs interface of the driver > the user can exploit various functionalities of DCC. The user can specify > the register addresses, the values of which is stored by DCC in it's > dedicated SRAM. The register addresses can be used either to read from, > write to, first read and store value and then write or to loop. All these > options can be exploited using the sysfs interface given to the user. > Following are the sysfs interfaces exposed in DCC driver which are > documented > 1)trigger > 2)config > 3)config_write > 4)config_reset > 5)enable > 6)rd_mod_wr > 7)loop > > Signed-off-by: Souradeep Chowdhury > --- > Documentation/ABI/testing/sysfs-driver-dcc | 74 ++++++++++++++++++++++++++++++ > 1 file changed, 74 insertions(+) > create mode 100644 Documentation/ABI/testing/sysfs-driver-dcc > > diff --git a/Documentation/ABI/testing/sysfs-driver-dcc b/Documentation/ABI/testing/sysfs-driver-dcc > new file mode 100644 > index 0000000..7a855ca > --- /dev/null > +++ b/Documentation/ABI/testing/sysfs-driver-dcc > @@ -0,0 +1,74 @@ > +What: /sys/bus/platform/devices/.../trigger > +Date: February 2021 > +Contact: Souradeep Chowdhury > +Description: > + This file allows the software trigger to be enabled > + by the user through the sysfs interface.Through this > + interface the user can manually start a software trigger > + in dcc where by the dcc driver stores the current status > + of the specified registers in dcc sram. > + > +What: /sys/bus/platform/devices/.../enable > +Date: February 2021 > +Contact: Souradeep Chowdhury > +Description: > + This file allows the user to manually enable or > + disable dcc driver.The dcc hardware needs to be > + enabled before use. > + > +What: /sys/bus/platform/devices/.../config > +Date: February 2021 > +Contact: Souradeep Chowdhury > +Description: > + This file allows user to configure the register values > + along with addresses to the dcc driver.This register > + addresses are used to read from,write or loop through. > + To enable all these options separate sysfs files have > + are created. Please describe the expected content of this file. > + > +What: /sys/bus/platform/devices/.../config_write > +Date: February 2021 > +Contact: Souradeep Chowdhury > +Description: > + This file allows user to write a value to the register > + address given as argument.The values are entered in the > + form of . So it's just a generic 'write some user defined data to some user defined register'? This doesn't sound like the typical way things are exposed in sysfs. > + > +What: /sys/bus/platform/devices/.../config_reset > +Date: February 2021 > +Contact: Souradeep Chowdhury > +Description: > + This file is used to reset the configuration of > + a dcc driver to the default configuration. > + > +What: /sys/bus/platform/devices/.../loop > +Date: February 2021 > +Contact: Souradeep Chowdhury > +Description: > + This file is used to enter the loop count as dcc > + driver gives the option to loop multiple times on > + the same register and store the values for each > + loop. > + > +What: /sys/bus/platform/devices/.../rd_mod_wr > +Date: February 2021 > +Contact: Souradeep Chowdhury > +Description: > + This file is used to read the value of the register > + and then write the value given as an argument to the > + register address in config.The address argument should > + be given of the form . > + > +What: /sys/bus/platform/devices/.../ready > +Date: February 2021 > +Contact: Souradeep Chowdhury > +Description: > + This file is used to check the status of the dcc > + hardware if it's ready to take the inputs. > + > +What: /sys/bus/platform/devices/.../curr_list > +Date: February 2021 > +Contact: Souradeep Chowdhury > +Description: > + This file is used to configure the linkedlist data > + to be used while configuring addresses. Please describe the format of this attr. Is it read/write? Regards, Bjorn > -- > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member > of Code Aurora Forum, hosted by The Linux Foundation >