Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp557871rwd; Thu, 8 Jun 2023 04:55:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4i159Uelbq3urtQh88ChOQpeHoRALma0YfiX8DJ7buhOS/AEsLmLgLvYQM3Bl5CpKIt8Xi X-Received: by 2002:a17:90a:4ecd:b0:256:937:48dc with SMTP id v13-20020a17090a4ecd00b00256093748dcmr7127336pjl.40.1686225322724; Thu, 08 Jun 2023 04:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686225322; cv=none; d=google.com; s=arc-20160816; b=l0FYQzZbIc8ccGU2wu2o+gwea4J6Obr5cBsCZ1ITkwr3qIbAFEuS4t5c8XvjAQYht8 zkyopwrXv9VvgWwpe8MbwgOa1SIdFu3BlvBU45ExuWftHs9sXvIn8XHFKeKaQanxTxUg geT76746V7zvKdFZU62dq5t6PF/8JU8oVFzZuS1f3dwhyFGacRQsN/SCLLAnAwqrjfcc /JHtin2+Wib6nisRV5knWrrePMTitBIwfA6NZhEBQfYuyahuPkxDh3a6Ei51wUj+H9BR fMk3hDJeH+wUrJBYJjfb5Yd5AG81PXmM47xqEAirwOD9Zs7giTck6m+/c0rj8HWsDZ42 OaVg== 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=ip7+XV0yO89G0zO6hsusji4SVQ4md0srOXCIaz2u4Y1JrhjPqHVVPgk/94Ur+h9f// CrR2wM/zfMoeENg4FC3nywGiQQs8QwhOUraYwHydSsQhk6EvVASSPEAl99fNCo/sc6Wx eJnz2YU15NUiZU+hPaE7PDFkFSIzzzrK7jPf99xZ7cWe5nAjdlfPqgg5JMWZ1zcYwspR rnHigi/o9lKyVL5KBSro/WfoPUCF0oVoJWNV9UbvxUo9WjvJc/Exz+JUbzlMAKrumvYV 1zdEDOYGfbgiwa2Q9YoY1UlM3K8zK0j4rEMn8t8tdWj4s1hZWhA4ealvHNXJIOFVqZlr v0sw== 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 lb10-20020a17090b4a4a00b002593aab9988si947264pjb.169.2023.06.08.04.55.08; Thu, 08 Jun 2023 04:55:22 -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 S236250AbjFHLj1 (ORCPT + 99 others); Thu, 8 Jun 2023 07:39:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235746AbjFHLjZ (ORCPT ); Thu, 8 Jun 2023 07:39:25 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00B9D1FF5; Thu, 8 Jun 2023 04:39:23 -0700 (PDT) Received: from dggpeml500002.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4QcMcp4DKyzkXJn; Thu, 8 Jun 2023 19:36:58 +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, 8 Jun 2023 19:39:21 +0800 From: Junhao He To: , , , CC: , , , , , , Subject: [PATCH v3 3/3] docs: perf: Add new description for HiSilicon UC PMU Date: Thu, 8 Jun 2023 19:37:19 +0800 Message-ID: <20230608113719.27433-4-hejunhao3@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20230608113719.27433-1-hejunhao3@huawei.com> References: <20230608113719.27433-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: 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, 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 --- 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