Message ID | 20230531104625.18296-4-hejunhao3@huawei.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2789994vqr; Wed, 31 May 2023 04:02:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4St+etlFI4yz8OPBD4VzsiphdEdGc4xDqCNbvpbd9ETncpjnAojLNPSrM16RRoW0NbDM1x X-Received: by 2002:a05:6358:3389:b0:121:ab21:1632 with SMTP id i9-20020a056358338900b00121ab211632mr2243726rwd.26.1685530976846; Wed, 31 May 2023 04:02:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685530976; cv=none; d=google.com; s=arc-20160816; b=IH+4bgUojXo8YGnQrjNvQ3TznKDLiiXHkQb9KuVgBpSY+IqIXfgN54ZSOmgcdtu9jT 2Uy+2DOvVZPEqCY5AdAIgfEoCCvfl+a456cRgBwEmAm1NoCELb6uMO5+86fkHdptqL8X cZFREajX4N/ogZKW0JuSGAKNVkRq2llIPDsTbyZYdiesBUdvQucL6f9Qpm/pZGbaE2pb IK0YR+Wa/5Cg1VQcr91QCWUnWhBZDzJ2kR//hjLYvQWAb5PR4gv+PBnhr3OOnguT1NuL ofcVESI7ok5+KkIST2lib1x1ntsi7cqPXrQdkeiAGx9qjEROEAFRz4JZV80Na4TZErEg xCcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=yY3nM0t87f3WKWbUSaacPcvzvgFkw9glfxBcfmzDSGo=; b=fNKJDEEUdh4JoKNWD6z1fpzj5xyQHmGQ8vJBWQRm4Wc6zoaS800om3c4AI3xZY5TaP 4IB2XkbuQmc0kb9UkS0rgwjkg9ZZV0OEABSTNzmzlOpeAd4Q373sSJIKuLkJ1/CUZCr6 uq+n2LPAQBJ9Cz+Fvg22U9SzDCFv/NlBnDNfCFHey+7tLNZu5tGDYoKWbdzYng4VipHT WowyFVyoShOMN/tlnUvZJl80+CN1V5YOZz6hUBawPmhqHj7DXuMlgJmdo1RXEOyE4JiS 6cm05n7KCBecGpWagmBikpGr5CGNmw477OGZoCl+z+jt97hi3p/fb5alme8j8z+zQsrI zoJA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 30-20020a17090a01de00b002533873625dsi826123pjd.24.2023.05.31.04.02.39; Wed, 31 May 2023 04:02:56 -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 S234760AbjEaKse (ORCPT <rfc822;andrewvogler123@gmail.com> + 99 others); Wed, 31 May 2023 06:48:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229935AbjEaKs0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 31 May 2023 06:48:26 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B2FE123; Wed, 31 May 2023 03:48:24 -0700 (PDT) Received: from dggpeml500002.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4QWQrz41kvzLqKR; Wed, 31 May 2023 18:45:23 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by dggpeml500002.china.huawei.com (7.185.36.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 31 May 2023 18:48:22 +0800 From: Junhao He <hejunhao3@huawei.com> To: <will@kernel.org>, <jonathan.cameron@huawei.com>, <linux-kernel@vger.kernel.org>, <mark.rutland@arm.com> CC: <linux-arm-kernel@lists.infradead.org>, <linux-doc@vger.kernel.org>, <linuxarm@huawei.com>, <yangyicong@huawei.com>, <shenyang39@huawei.com>, <prime.zeng@hisilicon.com>, <hejunhao3@huawei.com> Subject: [PATCH v2 3/3] docs: perf: Add new description for HiSilicon UC PMU Date: Wed, 31 May 2023 18:46:25 +0800 Message-ID: <20230531104625.18296-4-hejunhao3@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230531104625.18296-1-hejunhao3@huawei.com> References: <20230531104625.18296-1-hejunhao3@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500002.china.huawei.com (7.185.36.158) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,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: <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?1767407329860505531?= X-GMAIL-MSGID: =?utf-8?q?1767407329860505531?= |
Series |
Add support for HiSilicon SoC uncore PMU
|
|
Commit Message
hejunhao
May 31, 2023, 10:46 a.m. UTC
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 <hejunhao3@huawei.com>
---
Documentation/admin-guide/perf/hisi-pmu.rst | 8 ++++++++
1 file changed, 8 insertions(+)
Comments
On Wed, 31 May 2023 18:46:25 +0800 Junhao He <hejunhao3@huawei.com> 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 <hejunhao3@huawei.com> Seems reasonable to me. Reviewed-by: Jonathan Cameron <Jonthan.Cameron@huawei.com> > --- > 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
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 <hejunhao3@huawei.com> I still prefer this in the same patch with the driver support, anyway the docs alone looks good to me. Reviewed-by: Yicong Yang <yangyicong@hisilicon.com> > --- > 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 >
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