Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2668847rdh; Mon, 30 Oct 2023 04:29:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF0z9SKYI+Ppg1Pzkk1IpCyu/GWR6nvLUNgcuZoObGN82Cq0eLAekXuPANPxwe16TRv/DXK X-Received: by 2002:a17:902:c783:b0:1cc:3daa:d368 with SMTP id w3-20020a170902c78300b001cc3daad368mr2330686pla.65.1698665360027; Mon, 30 Oct 2023 04:29:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698665360; cv=none; d=google.com; s=arc-20160816; b=Ehmwo3e0tJ28QMzeNnMLWVuZQ5giJRWjKO/E0LAYDt+URNLY3rmuiAfRVfil+Gxwty cvI1HG69k6i+dcwqF9D1Ovc1nf3ZmlGEEfB9m2YqqNx/FeBTGPKJhM7zfLQlyvofjqV4 cNM2YDoIOqJ0jzZ8mFX8FNYN4Sqf3Sg0F1RHVP8uIwQCNSGJGb40xIPvzBleB6xC1amk MPhBK+MWMatLG1GNJ/cVSidr0KEieGAuOTmevRY4YjpLjjIs9ZUgrg8IJxpI9GQxmoKm zhLfyukGCsZCMUlZLfi8mg4A9ky0Y4aIV+gHyeBvMjjKyoyCEPWk3NvUvXpuLRR5sI+j 26Bw== 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=mk8JJp0NVfUyk7wdUFRLlg9DDTLw3n91A/4mpTl7LjU=; fh=DGO6xS7IsUoGiHz29NYFw6zPMMiSfi4M3DKuM5d43eQ=; b=xS9JakLqCRZCSvn4ER/eDxrf60WYO0OCBUDumml9CTXahfaxNo62ststHCRbuoN0G7 CUq6mNVZvF1x46s/Gw6mnfo9jBS8ZRljc30Y/AkFPurC1c0chyyr4Yav+m0O3B3loHkl jCbp1Cn+i3w9pyDZhRPpVQ9w9MXtyltmRDxiYgvHQu1kjF/acG6uphiP8mD9p6wq9W0W 9OoJbnoe/fiF6knVhZDzYiCaONwWiZtjFhxfFwd07BDHtP/1Jo06B1CF48KqrZiUhMRl sDkBdsV6XLbj7r1de+E3K13BpM4YY2a7Bx5umXvLF26c5Y32dljQOvzY4TsgjiYBw+sp i4jw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id z5-20020a170903018500b001bb3bcd05bbsi1521385plg.471.2023.10.30.04.29.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Oct 2023 04:29:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id 87179809FA0E; Mon, 30 Oct 2023 04:29:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232994AbjJ3L3I (ORCPT + 99 others); Mon, 30 Oct 2023 07:29:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232958AbjJ3L3I (ORCPT ); Mon, 30 Oct 2023 07:29:08 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2E239B3; Mon, 30 Oct 2023 04:29:05 -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 932DCFEC; Mon, 30 Oct 2023 04:29:46 -0700 (PDT) Received: from [192.168.1.3] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6D8F83F67D; Mon, 30 Oct 2023 04:29:02 -0700 (PDT) Message-ID: <288bcd70-ee12-e4f7-2381-8d18e6fc0c1b@arm.com> Date: Mon, 30 Oct 2023 11:29:03 +0000 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 v2 4/8] coresight-tpdm: Add support to configure CMB Content-Language: en-US To: Tao Zhang Cc: Jinlong Mao , 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 , Song Chai , linux-arm-msm@vger.kernel.org, andersson@kernel.org, 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> From: James Clark In-Reply-To: <1698202408-14608-5-git-send-email-quic_taozha@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 30 Oct 2023 04:29:17 -0700 (PDT) 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. 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; > } [...]