Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1108821rwd; Wed, 31 May 2023 09:33:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4gsmgwE1f/YegzU5O9a6tgfWBxBXy2SN+8PnAG+JcJJA02yg9NwYW5LhjoqrFAWBrQlOAm X-Received: by 2002:a05:6a20:4299:b0:10f:b53d:8641 with SMTP id o25-20020a056a20429900b0010fb53d8641mr6014902pzj.46.1685550803376; Wed, 31 May 2023 09:33:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685550803; cv=none; d=google.com; s=arc-20160816; b=nZXyJHW8Ko6j1xh0DEm290gJ0KQKikIY4R2BL+8phUb9Qq/L2F5sJzhrASVRH4hJbz OX6WV7QS+ZGacHeDu3yI0WuyKjuFeTcR3F1k8eVInRluz7hAwI6HbTSxno+5qatUacIE W2EIxniZTWXesjbBLKPM9oRz5pUoEp7R+F1DSIwxpmtTVsdJDShdnf5ACsKeocc7JnVB 8Hf3MGErPtHL05jrt0Lut2pLG+aKJLywOgJNHD/E8m15xk6lefWSyIQoNEuEQbhtQinf O3eK0dPt2DivSrzLMx4ksB4mYzR3ho6ZdCxZaoRUh27jwfQg0jkMGw7oT4AtTS898cTF 1jbg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=DH4U3bYqq2cL+U78TCtUOiX2t3KUXHXVfixKsZEyrJQ=; b=i12fwWseJA15g9FMELnRIlBXiscIiBgwTTYvRB4vxrVAu60pWWQOPSc83yhZU9R7WU ejeGqLQ3wd9uW8m3YQCQkN9Q0QJ8sttTsbN+gFDD7CAMCJVxQvcDb0VFHniW+/MkGm5M cUGf8LO4RFF4Pd+fGDT5ZzOwKaxhBjhujOz6+YgURSv2d6G6BP7RjpU3UVlRUlmlXpib KaXlgSHjWgyDQcGq3IJJDkWqRVi5jAzFS+t5CUg1tpXivBcUgFny5cNFwEil6FU/NI6a rdwBtqsArjnX0JJ63ANXBGxlPeBMyFxHQr1RpD8QLIU2jiHrKdcLjMv/h5z30UaE2KjC T0/g== 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 t21-20020a63b255000000b0053b8c700f19si1195232pgo.529.2023.05.31.09.33.07; Wed, 31 May 2023 09:33:23 -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 S234044AbjEaQAS (ORCPT + 99 others); Wed, 31 May 2023 12:00:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233823AbjEaQAR (ORCPT ); Wed, 31 May 2023 12:00:17 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAA4E194; Wed, 31 May 2023 09:00:04 -0700 (PDT) Received: from lhrpeml500005.china.huawei.com (unknown [172.18.147.201]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4QWYkJ6M8tz6J7Sx; Wed, 31 May 2023 23:55:04 +0800 (CST) Received: from localhost (10.202.227.76) by lhrpeml500005.china.huawei.com (7.191.163.240) 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 17:00:02 +0100 Date: Wed, 31 May 2023 17:00:01 +0100 From: Jonathan Cameron To: Junhao He CC: , , , , , , , , Subject: Re: [PATCH v2 3/3] docs: perf: Add new description for HiSilicon UC PMU Message-ID: <20230531170001.00005210@Huawei.com> In-Reply-To: <20230531104625.18296-4-hejunhao3@huawei.com> References: <20230531104625.18296-1-hejunhao3@huawei.com> <20230531104625.18296-4-hejunhao3@huawei.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 4.1.0 (GTK 3.24.33; x86_64-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.202.227.76] X-ClientProxiedBy: lhrpeml500005.china.huawei.com (7.191.163.240) To lhrpeml500005.china.huawei.com (7.191.163.240) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,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 On Wed, 31 May 2023 18:46:25 +0800 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 Seems reasonable to me. Reviewed-by: Jonathan Cameron > --- > 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