Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp946841rwl; Fri, 24 Mar 2023 04:21:43 -0700 (PDT) X-Google-Smtp-Source: AKy350a/V6KNJlZOF9pnMEPu+0dPAWTs/FtBY5Rur7iH0aXCxlHhBvZYraPtysXxOoIAwKXwDAvZ X-Received: by 2002:a05:6402:187:b0:501:d3a1:9a3a with SMTP id r7-20020a056402018700b00501d3a19a3amr2191437edv.25.1679656903553; Fri, 24 Mar 2023 04:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679656903; cv=none; d=google.com; s=arc-20160816; b=syJssuC64T2+vEExPdK7FukBbxpDMN1z6pPEGnuzcX8jXgcE9KVMPuDHdyk8s8nXzz GLAxh4aYVMxJO4FMz/b5NzEDHoWFWbrnACiLxAsldbTYgBTU72O5pTKDxW5duJzHdE7S qf7tXvoYlenpKkBW1SvP+dF0cxbm2UOsCSiPcQqB9MX4lJgpAuuyK2a+CqthO28bCbo+ U35s/ct/XmRzeoIkJ1rNCtmy2E2X9wX5D1CWDPvfg9XoulllNphEAtN+JhQzUh6DIELZ eed7jLCu7aavJd1uDHh5x59oGvPp8o0DCks4sdbd7evhReHaEkteaIC+VFfVZ1i3q/H3 9Uuw== 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 :references:cc:to:subject:user-agent:mime-version:date:message-id; bh=JOD9RFgO9J07GICzSCFEfsuctiBsJ5xwCNrAA1vYUm4=; b=navqEVbHPK5qUFxPMFaDyDgk847Qjk4qA4ZuwdeeBx7WMm3/VFL4evp+7iQnGoawhq yiNkOOw5eYpof9U5LQbGYk8Eo+IUKAybew2xT3YTAJnsBy1LxZ3KgOTx6UkfgvbEb5hq 4ywn9zN4Xx6Za0ex2tpMuM8UNLrSpj63RP6IrABvypBwlHfzCNaalw3ikbD8RhpGeXrT aUgbGUBQwW7NV/lMn7+ZPjqaN1+HK8ctD8Mid30rgxvChXQmcdAcKEbTl1bqyJNKaEmM zZoy6GtVeYyD6K0h8n+JTMv8nTCid2phC2ggmjLs4Drf387+rxEBne9+fCOmn36lUFzh 2ZOA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y20-20020aa7ccd4000000b004ad726540b2si11974181edt.468.2023.03.24.04.21.18; Fri, 24 Mar 2023 04:21:43 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231311AbjCXLBD (ORCPT + 99 others); Fri, 24 Mar 2023 07:01:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230213AbjCXLBC (ORCPT ); Fri, 24 Mar 2023 07:01:02 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F32D7244B4; Fri, 24 Mar 2023 04:01:00 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B088411FB; Fri, 24 Mar 2023 04:01:44 -0700 (PDT) Received: from [10.57.55.150] (unknown [10.57.55.150]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E54483F6C4; Fri, 24 Mar 2023 04:00:56 -0700 (PDT) Message-ID: Date: Fri, 24 Mar 2023 11:00:55 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v2 3/3] Documentation: trace: Add documentation for Coresight Dummy Trace To: Hao Zhang , Mathieu Poirier , Alexander Shishkin , Konrad Dybcio , Mike Leach , Rob Herring , Krzysztof Kozlowski , Andy Gross , Paul Walmsley , Palmer Dabbelt , Albert Ou , Jonathan Corbet Cc: Leo Yan , Greg Kroah-Hartman , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Tingwei Zhang , Jinlong Mao , Yuanfang Zhang , Tao Zhang , Trilok Soni , linux-arm-msm@vger.kernel.org, Bjorn Andersson , linux-doc@vger.kernel.org References: <20230324061608.33609-1-quic_hazha@quicinc.com> <20230324061608.33609-4-quic_hazha@quicinc.com> From: Suzuki K Poulose In-Reply-To: <20230324061608.33609-4-quic_hazha@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.3 required=5.0 tests=NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 24/03/2023 06:16, Hao Zhang wrote: > Add documentation for Coresight Dummy Trace under trace/coresight. > > Signed-off-by: Hao Zhang > --- > .../trace/coresight/coresight-dummy.rst | 58 +++++++++++++++++++ > 1 file changed, 58 insertions(+) > create mode 100644 Documentation/trace/coresight/coresight-dummy.rst > > diff --git a/Documentation/trace/coresight/coresight-dummy.rst b/Documentation/trace/coresight/coresight-dummy.rst > new file mode 100644 > index 000000000000..819cabab8623 > --- /dev/null > +++ b/Documentation/trace/coresight/coresight-dummy.rst > @@ -0,0 +1,58 @@ > +.. SPDX-License-Identifier: GPL-2.0 > + > +============================= > +Coresight Dummy Trace Module > +============================= > + > + :Author: Hao Zhang > + :Date: March 2023 > + > +Introduction > +--------------------------- > + > +Coresight Dummy Trace Module is for the specific devices that HLOS don't Please do not use cryptic abbreviations, please use "kernel" > +have permission to access or configure. Such as Coresight sink EUD, some > +TPDMs etc. Say "e.g., CoreSight TPDMs on Qualcomm platforms.: So there need driver to register dummy devices as Coresight > +devices. Add: "It may also be used to define components that may not have any programming interfaces (e.g, static links), so that paths can be established in the driver. " Provide Coresight API for dummy device operations, such as > +enabling and disabling dummy devices. Build the Coresight path for dummy > +sink or dummy source for debugging. I think the following content may not be needed as they are part of the standard source/sink type devices, nothing specific to dummy devices. --- vvvvv --- > + > +Sysfs files and directories > +--------------------------- > + > +Root: ``/sys/bus/coresight/devices/dummy`` > + > +---- > + > +:File: ``enable_source`` (RW) > +:Notes: > + - > 0 : enable the datasets of dummy source. > + > + - = 0 : disable the datasets of dummy source. > + > +:Syntax: > + ``echo 1 > enable_source`` > + > +---- > + > +:File: ``enable_sink`` (RW) > +:Notes: > + - > 0 : enable the datasets of dummy sink. > + > + - = 0 : disable the datasets of dummy sink. > + > +:Syntax: > + ``echo 1 > enable_sink`` > + > +---- > + --- You may remove the above ^^^ ---- > +Config details > +--------------------------- > + > +There are two types of nodes, dummy sink and dummy source. The nodes > +should be observed at the coresight path > +"/sys/bus/coresight/devices". > +e.g. > +/sys/bus/coresight/devices # ls -l | grep dummy > +dummy0 -> ../../../devices/platform/soc@0/soc@0:dummy_source/dummy0 > +dummy1 -> ../../../devices/platform/soc@0/soc@0:dummy_sink/dummy1 Suzuki