Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp772387rdb; Wed, 1 Nov 2023 02:07:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGRgeT7lN9Ak6iW6zDbbTW2RSdeCVD2E1+CrT1wF5XTLVbpZfc7gfhpchVt2Gqnq8EF98WK X-Received: by 2002:a17:903:188:b0:1cc:6787:c714 with SMTP id z8-20020a170903018800b001cc6787c714mr5268739plg.35.1698829676913; Wed, 01 Nov 2023 02:07:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698829676; cv=none; d=google.com; s=arc-20160816; b=qKkkJpI+r2K9BNurG9wN8JrFs2Vl7kscDqJvRv2UzIi7RNv+vRyVvL6274rAbifPLI 0RpfXXu8yM0//9vJ+5lSrd12jhZ+X1HE5RpR8JyicltXvSTRvDOgDK9LbCjD06uyJHPO wXk+/ndd95MpkBYgQ+M6deI3lx4++Ysu5XTGI6YhODsKXo1YW3stulnM9Rj/EUv7G1cU jDVYR7osprOz+12C9GSTWmHrbEvqz36+Sd+wLT5FQTaGibhBFiWqHrglxXan3WDdsHEb 5Yn18P0JxeOMKh8CHvCMthET4MOuPXUcBj8z1T/ChXAo6bhlC9XzGnFzmQ+7zig2TW7s UwpQ== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=IOlBThydEMhGc7QoFRuOa4ssmZqQYyjeSpWiLRMWaiM=; fh=QLuGN3nncMoml5AeIaUjLqWwxR9RzaUpEryunkC1f+s=; b=0eO+wYe7lDt+kPuGLWHlt8SeFn7jQIWy0uyAcQfMtscWT8mQx6uulXwkXtNVuxEIiZ cuImiBkyhNPJd0UNp26ltEkeaa3HMtK+adSjLMegVWGxpb05VFYTEtVJXY28rIqQfqn3 zGq6S0HbXxUVkfsEY3/GFLrrdtEoKsmQUxdbBotLFiWn4BlErWAEwssHhgms/weBEgEi dswVPsnvmOQKu+USZT0itBfQlnu1cv6tM2crHdKIemhRuooBU1G3ELI8SLvDOokH0kEC JP2FX85hHMe+CNQMS+P0iIK+P0QMvKdQ/UEH0csvfnIBfO8gUKmHtLWu9O0rqFexlSBk /LPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=pb+S8+C1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id n9-20020a170902d2c900b001cc3a66229dsi2720863plc.507.2023.11.01.02.07.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 02:07:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=pb+S8+C1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 794128047D6C; Wed, 1 Nov 2023 02:07:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233591AbjKAJH0 (ORCPT + 99 others); Wed, 1 Nov 2023 05:07:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233120AbjKAJHY (ORCPT ); Wed, 1 Nov 2023 05:07:24 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5636E102; Wed, 1 Nov 2023 02:07:16 -0700 (PDT) Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3A11vm1Q006624; Wed, 1 Nov 2023 09:07:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=IOlBThydEMhGc7QoFRuOa4ssmZqQYyjeSpWiLRMWaiM=; b=pb+S8+C1C0ENS8wkTfcjzxWma+/yfLMhd+mytUpxMF7lzk1fLQBdVf98V07DCQbh7DFz a7vAHQTnBPiNqfLHbzYTJluLcl4XLI1x64134aYbMSuADkegLgQgO3NHOdkpoQhxCuWo bmHkN+2xO33ExB8Pfq36X8th1CT65BDeulPfNQ70TBm1SYmQ9uxSjA8+QHrlXEV6WOR/ v3fB3WqlqtWCywjfF+iTdfLWt2XrCu92bXG5JBGQA3IjiiJDYTZ3oToFBWHuiA2rikEl gKkpb0S82ZhV8XkDH2+u5bp41WF/A38rO7fbAPvf3RZ1+P0gU/pLBjDCucPZHsKnRgaf YQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3u34sc2mhc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 01 Nov 2023 09:06:59 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3A196vBK030531 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 1 Nov 2023 09:06:57 GMT Received: from [10.239.133.211] (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.1118.39; Wed, 1 Nov 2023 02:06:53 -0700 Message-ID: <7389a1de-feed-4fe5-9aaf-75e3f11bc1ec@quicinc.com> Date: Wed, 1 Nov 2023 17:06:51 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 4/8] coresight-tpdm: Add support to configure CMB To: James Clark CC: Jinlong Mao , Greg Kroah-Hartman , , , , , Tingwei Zhang , Yuanfang Zhang , Trilok Soni , Song Chai , , , Mathieu Poirier , Suzuki K Poulose , Alexander Shishkin , Konrad Dybcio , Mike Leach , Rob Herring , Krzysztof Kozlowski References: <1698202408-14608-1-git-send-email-quic_taozha@quicinc.com> <1698202408-14608-5-git-send-email-quic_taozha@quicinc.com> <288bcd70-ee12-e4f7-2381-8d18e6fc0c1b@arm.com> Content-Language: en-US From: Tao Zhang In-Reply-To: <288bcd70-ee12-e4f7-2381-8d18e6fc0c1b@arm.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) 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-ORIG-GUID: iCQJHJmpYoZrRR5KAkYUZp-fQELYwrrU X-Proofpoint-GUID: iCQJHJmpYoZrRR5KAkYUZp-fQELYwrrU X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-01_06,2023-10-31_03,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 suspectscore=0 mlxlogscore=502 bulkscore=0 phishscore=0 priorityscore=1501 mlxscore=0 spamscore=0 clxscore=1015 adultscore=0 impostorscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310240000 definitions=main-2311010076 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 01 Nov 2023 02:07:54 -0700 (PDT) On 10/30/2023 7:29 PM, James Clark wrote: > > On 25/10/2023 03:53, Tao Zhang wrote: >> TPDM CMB subunits support two forms of CMB data set element creation: >> continuous and trace-on-change collection mode. Continuous change >> creates CMB data set elements on every CMBCLK edge. Trace-on-change >> creates CMB data set elements only when a new data set element differs >> in value from the previous element in a CMB data set. Set CMB_CR.MODE >> to 0 for continuous CMB collection mode. Set CMB_CR.MODE to 1 for >> trace-on-change CMB collection mode >> >> Signed-off-by: Tao Zhang >> Signed-off-by: Jinlong Mao >> --- >> .../ABI/testing/sysfs-bus-coresight-devices-tpdm | 10 +++ >> drivers/hwtracing/coresight/coresight-tpdm.c | 71 ++++++++++++++++++++++ >> drivers/hwtracing/coresight/coresight-tpdm.h | 12 ++++ >> 3 files changed, 93 insertions(+) >> >> diff --git a/Documentation/ABI/testing/sysfs-bus-coresight-devices-tpdm b/Documentation/ABI/testing/sysfs-bus-coresight-devices-tpdm >> index f07218e..ace7231 100644 >> --- a/Documentation/ABI/testing/sysfs-bus-coresight-devices-tpdm >> +++ b/Documentation/ABI/testing/sysfs-bus-coresight-devices-tpdm >> @@ -170,3 +170,13 @@ Contact: Jinlong Mao (QUIC) , Tao Zhang (QUIC) > Description: >> (RW) Set/Get the MSR(mux select register) for the DSB subunit >> TPDM. >> + >> +What: /sys/bus/coresight/devices//cmb_mode >> +Date: March 2023 >> +KernelVersion 6.7 >> +Contact: Jinlong Mao (QUIC) , Tao Zhang (QUIC) >> +Description: (Write) Set the data collection mode of CMB tpdm. > I know it's expanded elsewhere, but it's probably worth expanding the > CMB abbreviation here as well so people reading the docs don't have to > go into the code. Sure, I will update in the next patch series. Best, Tao > > Otherwise: > > Reviewed-by: James Clark > >> + >> + Accepts only one of the 2 values - 0 or 1. >> + 0 : Continuous CMB collection mode. >> + 1 : Trace-on-change CMB collection mode. >> diff --git a/drivers/hwtracing/coresight/coresight-tpdm.c b/drivers/hwtracing/coresight/coresight-tpdm.c >> index c8bb388..efb376e 100644 >> --- a/drivers/hwtracing/coresight/coresight-tpdm.c >> +++ b/drivers/hwtracing/coresight/coresight-tpdm.c >> @@ -148,6 +148,18 @@ static umode_t tpdm_dsb_is_visible(struct kobject *kobj, >> return 0; >> } > [...]