Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp36739rdb; Wed, 29 Nov 2023 19:05:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IGtqIZDAnR4x6jJIrp0aPbMMPqFKfxQPX1sIGXqGg0oBrk/QGAtULGJff95vBbDS0fZveBv X-Received: by 2002:a05:6a00:35ce:b0:6cb:8c91:682 with SMTP id dc14-20020a056a0035ce00b006cb8c910682mr24265690pfb.29.1701313508127; Wed, 29 Nov 2023 19:05:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701313508; cv=none; d=google.com; s=arc-20160816; b=oj7EvqDoi/CZM65RccAHyz6ZnRVQQy5MA3o4+VMguCfx19igQtRcoa63d2oZpXALGt geqWVBhlhPRJacJzx1W9ajDgZ9G2j7SFbnDPG0B4ieUdwghKM7NP9sNyfFLPU9N6Dpwq PmFIwnXKQzzXCjFCTnHe2V85u1WMJU+KvCyz4uJVbOBhjWPDtf0chhwJcRTvx9olSG3X sh8FK97zgU6spWcdtt+dMgQAHadcyGZ/cq8IymUS4YGroO7G8IA3L0I6sgR+jcF2y2rH gJAx3Hc7xBIEDwPlI+nSEAdQ8UGpXkjeVTWPTF/+flsGPICrqErYHX4/ZMPuMfSxsUhy JIdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=m2xmnp7JSDugdYBKFbMBDY1wQVFsDs8VJGY850sAsTM=; fh=t2qGvYY2T8sI25xghw/yY2Ok4bjLdUJ/BVTDV1w148w=; b=HnNNiJfVZhZkksweXxoSDK0ifNhdsYg3Flj1xlvpOJoAnzF9axmOSm+1AWqbR8c1j/ l/bPmkBY/w6Yl/L9h/2SJkv6VkgWebtTBNKyjKLc3KrnTuPlL72e//RZ1oo0xvd4832r DYJCvpCCl4PffkE64qLLFY+BeNbdSF0AWqlb2C10gsZm8WaI0qWzGvKFyp/k+FXMN1G8 en72K+asgbUnLy+bm6fiXWscco4E27/1hjjIQoLJdKfOUVCpCgrOSJEMg605eoo0mrqU GA7u7GexhVyuwiwlTMRrr2jPRmiwdIQNsdUmcEcQVHHqe+o1Rq/iXIoMgR2BlEUZfpNJ f1Vw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id s19-20020a656453000000b00573fa8f2829si311750pgv.383.2023.11.29.19.05.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 19:05:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id B7EFD803B736; Wed, 29 Nov 2023 19:05:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344199AbjK3DEr (ORCPT + 99 others); Wed, 29 Nov 2023 22:04:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230393AbjK3DEr (ORCPT ); Wed, 29 Nov 2023 22:04:47 -0500 Received: from out30-99.freemail.mail.aliyun.com (out30-99.freemail.mail.aliyun.com [115.124.30.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A981D5E; Wed, 29 Nov 2023 19:04:53 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R511e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=xueshuai@linux.alibaba.com;NM=1;PH=DS;RN=16;SR=0;TI=SMTPD_---0VxQ.kvS_1701313489; Received: from 30.240.112.131(mailfrom:xueshuai@linux.alibaba.com fp:SMTPD_---0VxQ.kvS_1701313489) by smtp.aliyun-inc.com; Thu, 30 Nov 2023 11:04:50 +0800 Message-ID: <50c44afb-f1ea-4136-9d85-4916a4f3d109@linux.alibaba.com> Date: Thu, 30 Nov 2023 11:04:48 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v11 4/5] drivers/perf: add DesignWare PCIe PMU driver Content-Language: en-US To: Ilkka Koskinen Cc: kaishen@linux.alibaba.com, helgaas@kernel.org, yangyicong@huawei.com, will@kernel.org, Jonathan.Cameron@huawei.com, baolin.wang@linux.alibaba.com, robin.murphy@arm.com, chengyou@linux.alibaba.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, rdunlap@infradead.org, mark.rutland@arm.com, zhuo.song@linux.alibaba.com, renyu.zj@linux.alibaba.com References: <20231121013400.18367-1-xueshuai@linux.alibaba.com> <20231121013400.18367-5-xueshuai@linux.alibaba.com> From: Shuai Xue In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 29 Nov 2023 19:05:05 -0800 (PST) On 2023/11/30 09:43, Ilkka Koskinen wrote: > > On Tue, 21 Nov 2023, Shuai Xue wrote: >> This commit adds the PCIe Performance Monitoring Unit (PMU) driver support >> for T-Head Yitian SoC chip. Yitian is based on the Synopsys PCI Express >> Core controller IP which provides statistics feature. The PMU is a PCIe >> configuration space register block provided by each PCIe Root Port in a >> Vendor-Specific Extended Capability named RAS D.E.S (Debug, Error >> injection, and Statistics). >> >> To facilitate collection of statistics the controller provides the >> following two features for each Root Port: >> >> - one 64-bit counter for Time Based Analysis (RX/TX data throughput and >>  time spent in each low-power LTSSM state) and >> - one 32-bit counter for Event Counting (error and non-error events for >>  a specified lane) >> >> Note: There is no interrupt for counter overflow. >> >> This driver adds PMU devices for each PCIe Root Port. And the PMU device is >> named based the BDF of Root Port. For example, >> >>    30:03.0 PCI bridge: Device 1ded:8000 (rev 01) >> >> the PMU device name for this Root Port is dwc_rootport_3018. >> >> Example usage of counting PCIe RX TLP data payload (Units of bytes):: >> >>    $# perf stat -a -e dwc_rootport_3018/Rx_PCIe_TLP_Data_Payload/ >> >> average RX bandwidth can be calculated like this: >> >>    PCIe TX Bandwidth = Rx_PCIe_TLP_Data_Payload / Measure_Time_Window >> >> Signed-off-by: Shuai Xue >> Reviewed-by: Baolin Wang >> Reviewed-by: Jonathan Cameron >> Reviewed-by: Yicong Yang >> Tested-by: Ilkka Koskinen > > Looks good to me and seems to work fine. Thus, > >   Reviewed-and-tested-by: Ilkka Koskinen > > > You can keep my "Tested-by: ..." in the other patches. > > Cheers, Ilkka Thank you very much :) Cheers Shuai