Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1874823rdh; Tue, 26 Sep 2023 06:16:52 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHu+63RwoKKTQnPyqkR6+doyI0JMSKDhcNvchlAJBLhCZzXC13qEZvDal18LUL/u5+uJ0Tz X-Received: by 2002:a17:902:ea0c:b0:1c6:1714:8164 with SMTP id s12-20020a170902ea0c00b001c617148164mr6408909plg.11.1695734211701; Tue, 26 Sep 2023 06:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695734211; cv=none; d=google.com; s=arc-20160816; b=Kw7r6jO6FN/lhU0sm9ROKvxWKYi8XWaOGeAPzk+GRrKoFqDlQLVa0FS+39fzoHVd+Q VU6nLKEyNuT+Q2y+e1dp0VceibZt4vfrQgsyMUIiyq2eZY56CHNq2O5ncvFZE6hj1Mf1 YbLHyXjv9wwXCzAF6qRsNp7S+tdVYB1f26CetW6H28evxC/XjAMPdR29Zptr1K1+nrNO ExxzHCRL56cQCtyRkYV0OuTkk7qE7BORuk/6xbfOH1ZRErWqffCGbYOivzogFH7TYAYS MVNVnFEHLcWkVl7Mut6mLfq5pjVwZiYQACD1tddt9+vt+oL4BsP5ZQ2pq4hUJsfWOTU6 Lsvg== 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:content-language:subject:user-agent:mime-version :date:message-id; bh=m7hMEFSkqvWkFU1iO7H33EOuZ9f7mBIe/cl3EWhdSzQ=; fh=EIolEX5wSdLd6JOc/IXAoJmWROGfd5OoUhU7Zjw1aJQ=; b=t182jDsDV9c2izdimKJnz1mEZllH0FUww2IrLhqzbiyEC7kFrbM3U1Z1r1uMUVeLiZ YMDzbjBGF6a73u4ZG6aQQvSBe9HJXxTW6BVrDefxdL6cOLsfcMVG5KyPNtuBw3lbC2Ek 4ZpL8o5JdA4VHBycNfMDE/pp5oK0F+R7+yo2PixRi5ummTuZERez4jguFe4/0Nak2ro9 Hx63tj/65a2SsoapoTvLm96ynq6HiY0T0O03QnFVfStcY4dlQQ9F/a7FSkMcE6eFYi22 QgPiRkaNZ5OkzVq9k3iMDGu61pubJswJ2plStxWWe5URoQpX6HfXUHQO511Kjv04hrep 5E/w== 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:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id j6-20020a170902da8600b001c1eb8b79afsi13689255plx.360.2023.09.26.06.16.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 06:16:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 8635780B7AE9; Tue, 26 Sep 2023 06:12:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234796AbjIZNMW (ORCPT + 99 others); Tue, 26 Sep 2023 09:12:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234800AbjIZNMV (ORCPT ); Tue, 26 Sep 2023 09:12:21 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7C7E8FC; Tue, 26 Sep 2023 06:12:14 -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 40AEC1FB; Tue, 26 Sep 2023 06:12:52 -0700 (PDT) Received: from [10.1.197.1] (ewhatever.cambridge.arm.com [10.1.197.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BC9EF3F5A1; Tue, 26 Sep 2023 06:12:11 -0700 (PDT) Message-ID: <2fe54425-70b5-95e8-1e9e-337424827adb@arm.com> Date: Tue, 26 Sep 2023 14:12:10 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v9 00/13] Add support to configure TPDM DSB subunit Content-Language: en-US To: Tao Zhang , Mathieu Poirier , Alexander Shishkin , Konrad Dybcio , Mike Leach , Rob Herring , Krzysztof Kozlowski Cc: Jinlong Mao , 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 , Yuanfang Zhang , Trilok Soni , Hao Zhang , linux-arm-msm@vger.kernel.org, andersson@kernel.org References: <1694670204-11515-1-git-send-email-quic_taozha@quicinc.com> From: Suzuki K Poulose In-Reply-To: <1694670204-11515-1-git-send-email-quic_taozha@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 26 Sep 2023 06:12:22 -0700 (PDT) On 14/09/2023 06:43, Tao Zhang wrote: > Introduction of TPDM DSB subunit > DSB subunit is responsible for creating a dataset element, and is also > optionally responsible for packing it to fit multiple elements on a > single ATB transfer if possible in the configuration. The TPDM Core > Datapath requests timestamps be stored by the TPDA and then delivering > ATB sized data (depending on ATB width and element size, this could > be smaller or larger than a dataset element) to the ATB Mast FSM. > > The DSB subunit must be configured prior to enablement. This series > adds support for TPDM to configure the configure DSB subunit. > > Once this series patches are applied properly, the new tpdm nodes for > should be observed at the tpdm path /sys/bus/coresight/devices/tpdm* > which supports DSB subunit. > e.g. > root@qemuarm64:/sys/devices/platform/soc@0/6c08000.tpdm/tpdm1# ls -l > drwxr-xr-x 2 root root 0 Jan 1 00:00 connections > drwxr-xr-x 2 root root 0 Jan 1 00:00 dsb_edge > -rw-r--r-- 1 root root 4096 Jan 1 00:00 dsb_mode > drwxr-xr-x 2 root root 0 Jan 1 00:00 dsb_msr > drwxr-xr-x 2 root root 0 Jan 1 00:00 dsb_patt > -rw-r--r-- 1 root root 4096 Jan 1 00:00 dsb_patt_ts > -rw-r--r-- 1 root root 4096 Jan 1 00:00 dsb_patt_type > drwxr-xr-x 2 root root 0 Jan 1 00:00 dsb_trig_patt > -rw-r--r-- 1 root root 4096 Jan 1 00:00 dsb_trig_ts > -rw-r--r-- 1 root root 4096 Jan 1 00:00 dsb_trig_type > -rw-r--r-- 1 root root 4096 Jan 1 00:02 enable_source > --w------- 1 root root 4096 Jan 1 00:00 integration_test > drwxr-xr-x 2 root root 0 Jan 1 00:00 power > --w------- 1 root root 4096 Jan 1 00:02 reset_dataset > lrwxrwxrwx 1 root root 0 Apr 5 2021 subsystem -> ../../../../../bus/coresight > -rw-r--r-- 1 root root 4096 Apr 5 2021 uevent > -r--r--r-- 1 root root 4096 Jan 1 00:00 waiting_for_supplier > > We can use the commands are similar to the below to configure the > TPDMs which support DSB subunit. Enable coresight sink first. > echo 1 > /sys/bus/coresight/devices/tmc_etf0/enable_sink > echo 1 > /sys/bus/coresight/devices/tpdm1/reset_dataset > echo 0x3 > /sys/bus/coresight/devices/tpdm1/dsb_edge/ctrl_idx > echo 0x1 > /sys/bus/coresight/devices/tpdm1/dsb_edge/ctrl_mask > echo 0x0 > /sys/bus/coresight/devices/tpdm1/dsb_edge/ctrl_val > echo 1 > /sys/bus/coresight/devices/tpdm1/dsb_patt/enable_ts > echo 1 > /sys/bus/coresight/devices/tpdm1/dsb_patt/set_type > echo 0 > /sys/bus/coresight/devices/tpdm1/dsb_trig_ts > echo 0xFFFFFFFF > /sys/bus/coresight/devices/tpdm1/dsb_patt/tpmr5 > echo 0xFFFFFFFF > /sys/bus/coresight/devices/tpdm1/dsb_trig_patt/xpr2 > echo 1 > /sys/bus/coresight/devices/tpdm1/enable_source > I have reviewed this set, except for the last patch, rest looks fine. If you could resend the series with the comments addressed, we could queue this. Suzuki