Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7941039rwl; Thu, 23 Mar 2023 10:28:36 -0700 (PDT) X-Google-Smtp-Source: AKy350YQj8gB4oKUxadTtk3+82piB41JWhlFmvc+QHsijNJG9xRWfUe8rGm2iICDhzHfBTLK5HG6 X-Received: by 2002:a17:902:e882:b0:1a1:f413:70b1 with SMTP id w2-20020a170902e88200b001a1f41370b1mr7693965plg.18.1679592516113; Thu, 23 Mar 2023 10:28:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679592516; cv=none; d=google.com; s=arc-20160816; b=vi9yY+M6M6RgIJIl+3WjpBknOP5F1W5cPxVSkABNDHd9/n1U/rGxELwAKSUpVVLd39 FpsUKFGr82jBqI/c4CsVggTrC+D1dWDFFezzy9gx1OHHiStgsEJKcPMMuWkjOSWf+8J/ jYEoKeJ6sEXbQMc+1+5pg7bYyDaS4+EXC8XdHfnNQ/+PwCEIkv4i/2mwbV1q+nM8Mf/1 zcnL9SfxAzBuJ8a0dOLd4R1mvkqP9FQyKfbnnL75h7mu2Jc+vrxDIghKYV/m/8eM8dMF 7cfT00c7PJ8Dn4d4dQR6P9AhNqpkF/XOhDTd9CVpJdhGR86ns+fAMZC+iJmcPTS4UG0U S/JQ== 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=LbkgzQQa2RWhX6o1dAYBNEYXMXl7z7xRJNY9DSXiwC0=; b=jXds0AJZ4w6ZYmOy/DxJptRM6nOvkIYQGWwoslOUpl4o0oPrfGl1bFY9GglQt717Qz m4LnOhSzZxg7nqdLW+Z5VZGohik6GkL7aXwF6dRuoO8Wfh5OWAtacQcH4vcUabgd+gEQ uMOS4TDQiZPtte9rejzoIAraPbPSLHU1jPcsKM8WeGZ1H4H/5dWJ6BiQjmqplnNxpd2N 5z2hiY3uBV/V6SC5XSXGpMJnrFdu9BjGoCCnI+D0aZIwAPLEOLrovAZgYhht026ha2sT jGBMIsO5ErPJTJ8Yxe8AZqzf0Y1cbPdbjdnTOcx5hbqpO+1n5T2jAudbUD5mCACoNqlU bHSQ== 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 u64-20020a638543000000b004fbb8560349si19503244pgd.58.2023.03.23.10.28.03; Thu, 23 Mar 2023 10:28:36 -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 S231928AbjCWR11 (ORCPT + 99 others); Thu, 23 Mar 2023 13:27:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230132AbjCWR10 (ORCPT ); Thu, 23 Mar 2023 13:27:26 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 201E8F1; Thu, 23 Mar 2023 10:27:25 -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 DC3CB2F4; Thu, 23 Mar 2023 10:28:08 -0700 (PDT) Received: from [10.57.53.151] (unknown [10.57.53.151]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B25633F766; Thu, 23 Mar 2023 10:27:21 -0700 (PDT) Message-ID: Date: Thu, 23 Mar 2023 17:27:20 +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 v3 08/11] coresight-tpdm: Add nodes to configure pattern match output 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, bjorn.andersson@linaro.org References: <1679551448-19160-1-git-send-email-quic_taozha@quicinc.com> <1679551448-19160-9-git-send-email-quic_taozha@quicinc.com> From: Suzuki K Poulose In-Reply-To: <1679551448-19160-9-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.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 23/03/2023 06:04, Tao Zhang wrote: > Add nodes to configure trigger pattern and trigger pattern mask. > Each DSB subunit TPDM has maximum of n(n<7) XPR registers to > configure trigger pattern match output. Eight 32 bit registers > providing DSB interface trigger output pattern match comparison. > And each DSB subunit TPDM has maximum of m(m<7) XPMR registers to > configure trigger pattern mask match output. Eight 32 bit > registers providing DSB interface trigger output pattern match > mask. > > Signed-off-by: Tao Zhang > --- > .../ABI/testing/sysfs-bus-coresight-devices-tpdm | 24 +++++++ > drivers/hwtracing/coresight/coresight-tpdm.c | 84 ++++++++++++++++++++++ > drivers/hwtracing/coresight/coresight-tpdm.h | 8 +++ > 3 files changed, 116 insertions(+) > > diff --git a/Documentation/ABI/testing/sysfs-bus-coresight-devices-tpdm b/Documentation/ABI/testing/sysfs-bus-coresight-devices-tpdm > index 094d624..c06374f 100644 > --- a/Documentation/ABI/testing/sysfs-bus-coresight-devices-tpdm > +++ b/Documentation/ABI/testing/sysfs-bus-coresight-devices-tpdm > @@ -71,3 +71,27 @@ Description: > value 1: Start EDCMR register number > value 2: End EDCMR register number > value 3: The value need to be written > + > +What: /sys/bus/coresight/devices//dsb_trig_patt_val > +Date: March 2023 > +KernelVersion 6.3 > +Contact: Jinlong Mao (QUIC) , Tao Zhang (QUIC) > +Description: > + (Write) Set the trigger pattern value of DSB tpdm. > + Read the trigger pattern value of DSB tpdm. > + > + Accepts the following two values. > + value 1: Index number of XPR register > + value 2: The value need to be written minor nit: What values are acceptable ? Otherwise looks fine. Reviewed-by: Suzuki K Poulose