Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp307081rwd; Wed, 31 May 2023 23:59:17 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7XS/LxQvhVw1l9+5/Fro0YPhsxKQSijCrIhe43MDUSexfPC3YkscM6iucghrufqjoqz4aK X-Received: by 2002:a05:6214:29ce:b0:626:f3d:9e37 with SMTP id gh14-20020a05621429ce00b006260f3d9e37mr7608212qvb.35.1685602756965; Wed, 31 May 2023 23:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685602756; cv=none; d=google.com; s=arc-20160816; b=HZTAKJHyTEJxTHoisWbAjpTqAbz7jKTyXO0fTUV7u0n7TkOqMUEA/+b0KDgsMTuN39 la28w3vwjkOjuqNfJipufxo4rGc3UMV1u8L+iwBP71VIyeMSypp1MC0ylJWfGh9EZvqF RTacJPgFaLRPuOmCWZuzWEl/LOVo4lpeOZdHeCsTIm3oKVsvIumV7vjh+TaeFHTjYk45 4wtI8TLxgtwsbyXLRDYV78pZ9CCs9M++2XHDvkGlbGEGs+11qIl+u5bMHJPkp2f+3n/z Wl9S7cWs3mXSGNKLyGycJ4YS4bnMRC3l0Si0wACifuPe3Y7fuz31E5yVnJcfTkMQySlk 9XMA== 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 :mime-version:user-agent:date:message-id:from:references:to:subject :cc; bh=CLMwa0Db/S8h4+8JLN1pvP+gfeKOVH/mHejg3EjWNDM=; b=mvV4tA1oQPpHaPjFCkbSGybu2KPvsRP4QNAxQSBtYcZjiKpATLCbCrf5DFHCaiA1jj Xg8w00YV85uH4pZYogrkWyOApsNBWyntrehUcLQRPrSqU+HdLvx4wq4nM7UApl5LpHRa hv/nalz6hhEAxH8vRwyRlzPHNbNnvpbRA1m3Tgcp0K7E4/Xmv1R8kHKU293ZwRI7ka4f aV9DG2By92wWOGeanAon0dku8/ScEuTcp7gqszIQoC4XlTUTBCPTkHLFySsSnrJ52z1F QS2APdvoMhD4xEjofwcmpPlGy7T3xSJPVhJgPYDp+NilKaWHTBwAkRJa+MCYpmVPXck3 a/LQ== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n14-20020a170903110e00b001aaf78f7a95si2357497plh.101.2023.05.31.23.59.05; Wed, 31 May 2023 23:59:16 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231856AbjFAGoc (ORCPT + 99 others); Thu, 1 Jun 2023 02:44:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231836AbjFAGoa (ORCPT ); Thu, 1 Jun 2023 02:44:30 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BDD1C0; Wed, 31 May 2023 23:44:27 -0700 (PDT) Received: from canpemm500009.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QWxM24m0gzqTZv; Thu, 1 Jun 2023 14:39:42 +0800 (CST) Received: from [10.67.102.169] (10.67.102.169) by canpemm500009.china.huawei.com (7.192.105.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Thu, 1 Jun 2023 14:44:22 +0800 CC: , , , , , Subject: Re: [PATCH v2 3/3] docs: perf: Add new description for HiSilicon UC PMU To: Junhao He , , , , References: <20230531104625.18296-1-hejunhao3@huawei.com> <20230531104625.18296-4-hejunhao3@huawei.com> From: Yicong Yang Message-ID: Date: Thu, 1 Jun 2023 14:44:22 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.5.1 MIME-Version: 1.0 In-Reply-To: <20230531104625.18296-4-hejunhao3@huawei.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.102.169] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500009.china.huawei.com (7.192.105.203) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/5/31 18:46, Junhao He wrote: > A new function is added on HiSilicon uncore UC PMU. > > The UC PMU support to filter statistical information based on > the specified tx request uring channel. Make user configuration > through "uring_channel" parameter. > Document them to provide guidance on how to use them. > > Signed-off-by: Junhao He I still prefer this in the same patch with the driver support, anyway the docs alone looks good to me. Reviewed-by: Yicong Yang > --- > Documentation/admin-guide/perf/hisi-pmu.rst | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/Documentation/admin-guide/perf/hisi-pmu.rst b/Documentation/admin-guide/perf/hisi-pmu.rst > index 546979360513..939a524fa1d6 100644 > --- a/Documentation/admin-guide/perf/hisi-pmu.rst > +++ b/Documentation/admin-guide/perf/hisi-pmu.rst > @@ -98,6 +98,14 @@ CCL/ICL-ID. For I/O die, the ICL-ID is followed by: > 5'b00011: HAC_ICL; > 5'b10000: PCIe_ICL; > > +(e) uring_channel: UC PMU events 0x47~0x59 supports filtering by tx request > +uring channel. It is 2 bits. Some important codes are as follows: > +2'b11: count the events which sent to the uring_ext (MATA) channel; > +2'b01: is the same as 2'b11; > +2'b10: count the events which sent to the uring (non-MATA) channel; > +2'b00: default value, count the events which sent to the both uring and > + uring_ext channel; > + > Users could configure IDs to count data come from specific CCL/ICL, by setting > srcid_cmd & srcid_msk, and data desitined for specific CCL/ICL by setting > tgtid_cmd & tgtid_msk. A set bit in srcid_msk/tgtid_msk means the PMU will not >