From patchwork Tue May 23 13:18:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hejunhao X-Patchwork-Id: 97995 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2148671vqo; Tue, 23 May 2023 06:36:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4yr2R4yrJmof6bEeyNZflQIMlwLcpmTW04PsVJrR+bwg7+iBJBS/od9zS8lgcjLT8ktGhp X-Received: by 2002:a05:6a00:1994:b0:64a:ff32:7349 with SMTP id d20-20020a056a00199400b0064aff327349mr21072991pfl.32.1684848970845; Tue, 23 May 2023 06:36:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684848970; cv=none; d=google.com; s=arc-20160816; b=Fcl92YTb2VTmK4hCVQWq/0bo/MTDUB4D8bdtCgaYGjlsWsHYZp3Z3x48WlsFN00hUu qIkWhtrVP5FWOLGUmeTQjYNDbeawuLxfs4pt0cCyWHQjS38btn1VxfY+6j/W+AtfttWD yc+3Wq700PtFHK9p65QwQ3svTmJHKXyB6XGv2WiXhak1Aq0RD7n++GbkdrJI7IbjHyNP FpaAVxRIV4/fEpwkDHJiU9bS44oBcx5dR6LXi6+MGKxONepZ9psHqI1rWRyxhr/QgN7g XswrD31hcHncX2yc8J8jLFnhPVc4b7+gNAlo1O+Tqb6YVlNqifeUbkw/qPzvMhct4s0u 7KUg== 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=QMycCGThOqMLZrbyMjIokYQ5l1NFMl55ZyZJfwyQnaaLl4nSE06UQIK9bKCWZt8v/D uVvOKzoVlFNwexZ/MKNg28UUwPGiU7VfgmbOfDFn9EqdS7sbmNWIeKGYJyXd1eEA9JoQ ptlU7sYLLgyFrUcPfjJVZnTsSsEhMNDkR21sqghF3nOubXCkEe7zFIi6vojlzyhjNO3j IM7sidOnqaUgKoCOsFdnguRfQ7wTWPWep2oKNnSi88U8Xaak7+tYWq31X8B3S1OCs2cZ KzrEyGW9r5R/1AvjOPIStFszI/bAW4V44NVvWrGuuYF/5x1TQpt+XhQ9WOqP4NBjOb/T 0QuQ== 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 x5-20020a654145000000b00524da606617si1227854pgp.233.2023.05.23.06.35.54; Tue, 23 May 2023 06:36:10 -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 S236834AbjEWNU1 (ORCPT + 99 others); Tue, 23 May 2023 09:20:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236478AbjEWNUW (ORCPT ); Tue, 23 May 2023 09:20:22 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CB67109; Tue, 23 May 2023 06:20:19 -0700 (PDT) Received: from dggpeml500002.china.huawei.com (unknown [172.30.72.54]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4QQZc02Ss1zLq2M; Tue, 23 May 2023 21:17:20 +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; Tue, 23 May 2023 21:20:16 +0800 From: Junhao He To: , , , CC: , , , , , , Subject: [PATCH 3/3] docs: perf: Add new description for HiSilicon UC PMU Date: Tue, 23 May 2023 21:18:25 +0800 Message-ID: <20230523131825.6102-4-hejunhao3@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230523131825.6102-1-hejunhao3@huawei.com> References: <20230523131825.6102-1-hejunhao3@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) 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, RCVD_IN_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766692194529544074?= X-GMAIL-MSGID: =?utf-8?q?1766692194529544074?= 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 --- 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