From patchwork Fri Jun 9 07:56:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hejunhao X-Patchwork-Id: 105374 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp789468vqr; Fri, 9 Jun 2023 01:16:22 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7iLQnGOAuidIkiZr//xZjbuKyDMCM39BN2/wG1VrYtqL8XegMhG6vggU5q9gM03qEls9hi X-Received: by 2002:a05:6808:1881:b0:398:29ce:81f7 with SMTP id bi1-20020a056808188100b0039829ce81f7mr970576oib.11.1686298581800; Fri, 09 Jun 2023 01:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686298581; cv=none; d=google.com; s=arc-20160816; b=fWJbsMWhQBmyYccxC/O03r4GW/IcUMgfSrVJpqOI45G9sz3esLmwI/UxhgaUMTaQHG Q6Nlr9UxwJe/QtI2XpaaIvZUK0poc7x8aJD1fF54RQsRKoXciaNt1Ic4FK1QuRzN/I2j unhW5fdpDxGqMZJZVHZysMOxnSlStApDDqxRXqSPYbOEwzKxZnJHlkh0o4H/Qa758vWO /mD+mIXtKDmSKWL1m3vFxR/2fiZkjJcWgKDtKBSX0ed5AamWgfi8KI13ma+9uFoTx+1J fzDQjqKf+fECfdkVBKam4WIwdDPIkJpByb9vSHbxqoEAQmIpbAY7DXBETNzmY0wPtwgY fGCw== 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=f0cfXFhHEDoTD3iKqZKowJfpEPh6FdUSMcF/QpHAxx0=; b=rh4q083prAygDBzkpi2MNg1OSQhexIjhqHpgyZA72K0q8zzUnQTEkvAyhPjmMA8aiL mwthVNAtObbP+tjkFAVHnbnQCY/uzj2IDF/qm015F/BI2YuIQVGXgUMYsJ/4wfCPr9D9 cq6Hcm7wk/cyPMGjY6zIsiL1J6vO4S7s8KqurVjfz6X1+rcbo65yYp5Qdyr2fju4HZZO YH8EBuimDbZVJni60id91dAw1DeMgictEmLJGajbC1BrcznWEa2Rj0+fpwuZrF0V8xdH u0kWqtGTi9j6Fn/yqgFEiU/TVpD7jURHzKFTwwP5Ow2izrKyWwfgVMNk3YVgkjenwcGb Exvg== 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 kr7-20020a170903080700b001a1f70cc7dbsi2233292plb.562.2023.06.09.01.16.07; Fri, 09 Jun 2023 01:16:21 -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 S239978AbjFIIBU (ORCPT + 99 others); Fri, 9 Jun 2023 04:01:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239775AbjFIIAh (ORCPT ); Fri, 9 Jun 2023 04:00:37 -0400 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B50282121; Fri, 9 Jun 2023 00:58:58 -0700 (PDT) Received: from dggpeml500002.china.huawei.com (unknown [172.30.72.53]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4QctcK6HgQz18MBM; Fri, 9 Jun 2023 15:53:21 +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; Fri, 9 Jun 2023 15:58:11 +0800 From: Junhao He To: , , , CC: , , , , , , Subject: [PATCH v4 3/3] docs: perf: Add new description for HiSilicon UC PMU Date: Fri, 9 Jun 2023 15:56:08 +0800 Message-ID: <20230609075608.36559-4-hejunhao3@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230609075608.36559-1-hejunhao3@huawei.com> References: <20230609075608.36559-1-hejunhao3@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768212221538379580?= X-GMAIL-MSGID: =?utf-8?q?1768212221538379580?= 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 Reviewed-by: Jonathan Cameron Reviewed-by: Yicong Yang Acked-by: Mark Rutland --- 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