Message ID | 1669018873-4718-1-git-send-email-quic_taozha@quicinc.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1453011wrr; Mon, 21 Nov 2022 00:25:20 -0800 (PST) X-Google-Smtp-Source: AA0mqf5CsjRUX+7gvDJCDAlSTmLz2uEkXOMHUGUTwYDp5CCWtaqRopxc/JrqduO4krGKgfFSI//W X-Received: by 2002:a05:6402:43cd:b0:467:c68b:b06c with SMTP id p13-20020a05640243cd00b00467c68bb06cmr14737888edc.428.1669019120466; Mon, 21 Nov 2022 00:25:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669019120; cv=none; d=google.com; s=arc-20160816; b=nqY0yKxs2fwX/NrWDfPxChjEjC8BP0SUH4HMpZOuG3rauRFBo+yAFtmGPw1PB2baYM RCzffC5z7+hFB7CYSH21ef5SIaecgk37dp1jkKgJtgzCaoBGYKz73b1lvFJiwaElVz++ qSMhRY/NNzPeb8VcMZ+Y9qPdQdH8erxgUKQjOTzYBRLrCY4axx7Qcqbf8GoUeVdN0Ajr r8KoqJgdv+YHo6J0oiJobjjErmkqQai/eEfpvnkQaVQE/SxyzPVFrPzjzkysznw94hvz MdWHjvFjbdh2fK1ui7TDIoQo+6BDD2KlcoOsemN6WoztLppCpXIHGHb6J/Cj3qH6jI0m 6h2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=HnQ/VhVAg5/54ECgdjWt75VvtWXXrdWMW01v0gpOZwQ=; b=AQUB1RIagjJg/KYtwe3OPRaG9tkcBcUrtLsNZ6sgRYEU9fomuelATWzV/ZkQKkDw60 4UcdQsuNO5mEOdy0Au9mpxfpxqQoNPrwjPHVlGZ4SnFlSC8wssEfFK8HVx8eA2tsj8ok fI9nZq2URKfHOnYW1neB/8kGrrb4BPhj9zR867EveoEwtixRfriYdc+4KNfAAFIaaeAE EgMvRgbCwnyjvQ4UQ/vvycU+ahmdh24rHYCG0uBM0npH1QdRsydPieoIXTdA16PKf2t9 Ma+VZV2FupORqXvVTSSLkkphUQ4sGjcBiWYL1CGkreKY6H7o0IeQ9XRC/lPeKM8OD+Wd C2SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="ckdAcF/N"; 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=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id og17-20020a1709071dd100b0079ed0a585c2si6954374ejc.261.2022.11.21.00.24.55; Mon, 21 Nov 2022 00:25: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=@quicinc.com header.s=qcppdkim1 header.b="ckdAcF/N"; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229782AbiKUIWn (ORCPT <rfc822;peter110.wang@gmail.com> + 99 others); Mon, 21 Nov 2022 03:22:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229558AbiKUIWh (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 21 Nov 2022 03:22:37 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC7C7B1E; Mon, 21 Nov 2022 00:22:34 -0800 (PST) Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AL7RRsp025769; Mon, 21 Nov 2022 08:22:18 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=qcppdkim1; bh=HnQ/VhVAg5/54ECgdjWt75VvtWXXrdWMW01v0gpOZwQ=; b=ckdAcF/NEt3893qAKSWdXjz9PcR/Qt40C6lEzDcrPv9Ocucgtrb3dcccuGgsLE/RJXKI P2hUQ1xKhGwTMW2VLNy9iTxuZdSNtJXGRy55gVbCP0g278HaB29PmULujCuzCtJLI9Io oHLN6sT4XdInHIURgfgvqRlw6aXgkBpep2zi+fo505u7ZynwGEuuNK3XNEgWJIUssdZo 7iA6Me/BgohhigOYnrgskDUh7KoiTiibUJBa+0QHANyj9iOMaPw31EkEULbR5SD15iho IXwchTxfyJxmbUCHAwsKNZpZPErK+t50YeW64U3T4PdAi4B11/iuqZ1ZwAWufcdN6WFV EA== Received: from nalasppmta02.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3kxrac3w8e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 21 Nov 2022 08:22:18 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 2AL8MHR2023953 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 21 Nov 2022 08:22:17 GMT Received: from taozha-gv.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Mon, 21 Nov 2022 00:22:11 -0800 From: Tao Zhang <quic_taozha@quicinc.com> To: Mathieu Poirier <mathieu.poirier@linaro.org>, Suzuki K Poulose <suzuki.poulose@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Konrad Dybcio <konradybcio@gmail.com>, Mike Leach <mike.leach@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org> CC: Tao Zhang <quic_taozha@quicinc.com>, Jinlong Mao <quic_jinlmao@quicinc.com>, Leo Yan <leo.yan@linaro.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, <coresight@lists.linaro.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <devicetree@vger.kernel.org>, Tingwei Zhang <quic_tingweiz@quicinc.com>, Yuanfang Zhang <quic_yuanfang@quicinc.com>, Trilok Soni <quic_tsoni@quicinc.com>, Hao Zhang <quic_hazha@quicinc.com>, <linux-arm-msm@vger.kernel.org>, <bjorn.andersson@linaro.org> Subject: [PATCH v1 0/9] Add support to configure TPDM DSB subunit Date: Mon, 21 Nov 2022 16:21:04 +0800 Message-ID: <1669018873-4718-1-git-send-email-quic_taozha@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 4j2ZdldFPDijTi_11AvKZdBDHDVHq1qu X-Proofpoint-ORIG-GUID: 4j2ZdldFPDijTi_11AvKZdBDHDVHq1qu X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-21_05,2022-11-18_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 malwarescore=0 impostorscore=0 mlxlogscore=999 adultscore=0 clxscore=1011 mlxscore=0 phishscore=0 priorityscore=1501 suspectscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2210170000 definitions=main-2211210065 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1750093392913416424?= X-GMAIL-MSGID: =?utf-8?q?1750093392913416424?= |
Series |
Add support to configure TPDM DSB subunit
|
|
Message
Tao Zhang
Nov. 21, 2022, 8:21 a.m. UTC
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. /sys/devices/platform/soc@0/69d0000.tpdm/tpdm0#ls -l | grep dsb -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_edge_ctrl -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_edge_ctrl_mask -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_mode -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_patt_mask -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_patt_ts -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_patt_type -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_patt_val -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_trig_patt_mask -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_trig_patt_val -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_trig_ts -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_trig_type 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/tpdm0/reset echo 0x3 0x3 0x1 > /sys/bus/coresight/devices/tpdm0/dsb_edge_ctrl_mask echo 0x6d 0x6d 0 > /sys/bus/coresight/devices/tpdm0/dsb_edge_ctrl echo 1 > /sys/bus/coresight/devices/tpdm0/dsb_patt_ts echo 1 > /sys/bus/coresight/devices/tpdm0/dsb_patt_type echo 0 > /sys/bus/coresight/devices/tpdm0/dsb_trig_ts echo 0 0xFFFFFFFF > /sys/bus/coresight/devices/tpdm0/dsb_patt_mask echo 0 0xFFFFFFFF > /sys/bus/coresight/devices/tpdm0/dsb_trig_patt_val This series applies to coresight/next https://git.kernel.org/pub/scm/linux/kernel/git/coresight/linux.git?h=next This patch series depends on patch series "[v12,0/9] Coresight: Add support for TPDM and TPDA" https://patchwork.kernel.org/project/linux-arm-kernel/cover/20221114144027.14365-1-quic_jinlmao@quicinc.com/ Tao Zhang (9): dt-bindings: arm: Add support for DSB element coresight-tpda: Add DSB dataset support coresight-tpdm: Initialize DSB subunit configuration coresight-tpdm: Add reset node to TPDM node coresight-tpdm: Add nodes to set trigger timestamp and type coresight-tpdm: Add node to set dsb programming mode coresight-tpdm: Add nodes for dsb element creation coresight-tpdm: Add nodes to configure pattern match output coresight-tpdm: Add nodes for timestamp request .../bindings/arm/qcom,coresight-tpda.yaml | 9 + drivers/hwtracing/coresight/coresight-tpda.c | 62 ++ drivers/hwtracing/coresight/coresight-tpda.h | 4 + drivers/hwtracing/coresight/coresight-tpdm.c | 630 ++++++++++++++++++++- drivers/hwtracing/coresight/coresight-tpdm.h | 65 +++ 5 files changed, 765 insertions(+), 5 deletions(-)
Comments
On 21/11/2022 08:21, 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. > /sys/devices/platform/soc@0/69d0000.tpdm/tpdm0#ls -l | grep dsb > -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_edge_ctrl > -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_edge_ctrl_mask > -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_mode > -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_patt_mask > -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_patt_ts > -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_patt_type > -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_patt_val > -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_trig_patt_mask > -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_trig_patt_val > -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_trig_ts > -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_trig_type > > 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/tpdm0/reset > echo 0x3 0x3 0x1 > /sys/bus/coresight/devices/tpdm0/dsb_edge_ctrl_mask > echo 0x6d 0x6d 0 > /sys/bus/coresight/devices/tpdm0/dsb_edge_ctrl > echo 1 > /sys/bus/coresight/devices/tpdm0/dsb_patt_ts > echo 1 > /sys/bus/coresight/devices/tpdm0/dsb_patt_type > echo 0 > /sys/bus/coresight/devices/tpdm0/dsb_trig_ts > echo 0 0xFFFFFFFF > /sys/bus/coresight/devices/tpdm0/dsb_patt_mask > echo 0 0xFFFFFFFF > /sys/bus/coresight/devices/tpdm0/dsb_trig_patt_val > > This series applies to coresight/next > https://git.kernel.org/pub/scm/linux/kernel/git/coresight/linux.git?h=next Does it ? > This patch series depends on patch series "[v12,0/9] Coresight: Add > support for TPDM and TPDA" > https://patchwork.kernel.org/project/linux-arm-kernel/cover/20221114144027.14365-1-quic_jinlmao@quicinc.com/ > And the CoreSight Dynamice Trace ID series too. Change log please Suzuki
On 21/11/2022 10:21, Suzuki Kuruppassery Poulose wrote: > On 21/11/2022 08:21, 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. >> /sys/devices/platform/soc@0/69d0000.tpdm/tpdm0#ls -l | grep dsb >> -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_edge_ctrl >> -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_edge_ctrl_mask >> -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_mode >> -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_patt_mask >> -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_patt_ts >> -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_patt_type >> -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_patt_val >> -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_trig_patt_mask >> -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_trig_patt_val >> -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_trig_ts >> -rw-r--r-- 1 root root 4096 Jan 1 00:01 dsb_trig_type >> >> 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/tpdm0/reset >> echo 0x3 0x3 0x1 > /sys/bus/coresight/devices/tpdm0/dsb_edge_ctrl_mask >> echo 0x6d 0x6d 0 > /sys/bus/coresight/devices/tpdm0/dsb_edge_ctrl >> echo 1 > /sys/bus/coresight/devices/tpdm0/dsb_patt_ts >> echo 1 > /sys/bus/coresight/devices/tpdm0/dsb_patt_type >> echo 0 > /sys/bus/coresight/devices/tpdm0/dsb_trig_ts >> echo 0 0xFFFFFFFF > /sys/bus/coresight/devices/tpdm0/dsb_patt_mask >> echo 0 0xFFFFFFFF > /sys/bus/coresight/devices/tpdm0/dsb_trig_patt_val >> >> This series applies to coresight/next >> https://git.kernel.org/pub/scm/linux/kernel/git/coresight/linux.git?h=next > > Does it ? > >> This patch series depends on patch series "[v12,0/9] Coresight: Add >> support for TPDM and TPDA" >> https://patchwork.kernel.org/project/linux-arm-kernel/cover/20221114144027.14365-1-quic_jinlmao@quicinc.com/ >> > > And the CoreSight Dynamice Trace ID series too. > > Change log please > Also, more importantly, as requested previousl please host a tree with all the dependencies applied including this series. It is hard to review looking all the way back to a dependent series back and forth. Or we could shelve this until the dependencies are merged/queued. Suzuki