Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1083348rwd; Thu, 15 Jun 2023 06:13:32 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ze0BOLWDS1UpVru74Stlx52jA0h5wxwfs39usCLVOW0Kun23t6GE0vyg5h2X0MSW6xkmk X-Received: by 2002:a05:6a20:54a8:b0:10f:472f:ffbb with SMTP id i40-20020a056a2054a800b0010f472fffbbmr5960990pzk.7.1686834811723; Thu, 15 Jun 2023 06:13:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686834811; cv=none; d=google.com; s=arc-20160816; b=sTCEwtnvAw0sgM/u7Iq/ODlZs61W8ah7/YUtZaSrY4+tEmPrQe6BtjkgB4AVv3EDK1 hJYh5OrpEk8vK0f7648urv2gfRHcJrJxj37UGUNLEeLsNzzUHeMPaZ93vX/sluQfISbO GKjeol7jvtGbFFrYtvKVFmSSGgDMkGVSzK+EK45ROcl4L/4NuGMI99Mui1vlPSDyKnhz IrWZxgf3tou4z4WebhFkez+86jnEycWbfHjZGdJGHe8NpWLFgDsEtNb7IJYzIMYTuvY4 1LgBBfNvmK0hxoS3wcLj8oNkJko098V+8JGPDmtWYnmFbmi6BB0mo3kPr/PfHuyY/QfV IOCQ== 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=KX+Q3XNoQGGjzYe0+7VGz5vO9eThNoFa9sm0SY5k0Ik=; b=FlPrlx4pGUJpCIIvkH9lQ0d94sp/mGGbM1lbaYdHdmY2VKm1AYXJUa0MpR3QdJsRev f4S5j/Di9KD3N6wyOWdOElJAo9SwbJprOxTQukSztFyVz0iYOrpn6RKL++pm+fb+wlxR E4OtRbZsi3a8PvqC0tZngnX9O4LMopHufO52WB6RWbwnGkrgdWydwhPZ7Y+JG+JScn2s QyVOx5gfXlalL45MUn66jsXKxSn91Lh38Yje0TsirDu6b0dH2x5dDlJoAuCsa+2cxa7+ MlcOKtZHSr7E5mGv6rPyKlfu28Wv+cZB+A4Q/rSCIY4PZd1O7jyJGNWv9DpCuQfApQ8W P7QA== 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 k186-20020a6384c3000000b0054fd5f23cbbsi3247648pgd.727.2023.06.15.06.13.17; Thu, 15 Jun 2023 06:13:31 -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 S1343797AbjFONB5 (ORCPT + 99 others); Thu, 15 Jun 2023 09:01:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343650AbjFONBi (ORCPT ); Thu, 15 Jun 2023 09:01:38 -0400 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6EEFF268C; Thu, 15 Jun 2023 06:01:36 -0700 (PDT) Received: from dggpeml500002.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Qhj5c5BSfzMpW1; Thu, 15 Jun 2023 20:58:28 +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; Thu, 15 Jun 2023 21:01:34 +0800 From: Junhao He To: , , , CC: , , , , , , Subject: [PATCH v5 3/3] docs: perf: Add new description for HiSilicon UC PMU Date: Thu, 15 Jun 2023 20:59:26 +0800 Message-ID: <20230615125926.29832-4-hejunhao3@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230615125926.29832-1-hejunhao3@huawei.com> References: <20230615125926.29832-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: dggems701-chm.china.huawei.com (10.3.19.178) 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 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 -- 2.33.0